Add move constructors for OwningPtr and OwningArrayPtr.
[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.2svn.
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-2012 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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/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_OPTIMIZED
689 ENABLE_PROFILING
690 DISABLE_ASSERTIONS
691 ENABLE_WERROR
692 ENABLE_EXPENSIVE_CHECKS
693 EXPENSIVE_CHECKS
694 DEBUG_RUNTIME
695 DEBUG_SYMBOLS
696 KEEP_SYMBOLS
697 JIT
698 TARGET_HAS_JIT
699 ENABLE_DOCS
700 ENABLE_DOXYGEN
701 LLVM_ENABLE_THREADS
702 ENABLE_PTHREADS
703 ENABLE_PIC
704 ENABLE_SHARED
705 ENABLE_EMBED_STDCXX
706 ENABLE_TIMESTAMPS
707 TARGETS_TO_BUILD
708 LLVM_ENUM_TARGETS
709 LLVM_ENUM_ASM_PRINTERS
710 LLVM_ENUM_ASM_PARSERS
711 LLVM_ENUM_DISASSEMBLERS
712 OPTIMIZE_OPTION
713 EXTRA_OPTIONS
714 EXTRA_LD_OPTIONS
715 CLANG_SRC_ROOT
716 BINUTILS_INCDIR
717 INTERNAL_PREFIX
718 NM
719 ifGNUmake
720 LN_S
721 CMP
722 CP
723 DATE
724 FIND
725 MKDIR
726 MV
727 RANLIB
728 AR
729 RM
730 SED
731 TAR
732 BINPWD
733 GRAPHVIZ
734 DOT
735 FDP
736 NEATO
737 TWOPI
738 CIRCO
739 GV
740 DOTTY
741 XDOT_PY
742 INSTALL_PROGRAM
743 INSTALL_SCRIPT
744 INSTALL_DATA
745 BZIP2
746 CAT
747 DOXYGEN
748 GROFF
749 GZIPBIN
750 PDFROFF
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 USE_INTEL_JITEVENTS
769 XML2CONFIG
770 LIBXML2_LIBS
771 LIBXML2_INC
772 HAVE_PTHREAD
773 HUGE_VAL_SANITY
774 MMAP_FILE
775 SHLIBEXT
776 SHLIBPATH_VAR
777 LLVM_PREFIX
778 LLVM_BINDIR
779 LLVM_LIBDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 ALL_BINDINGS
789 OCAML_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
791 RPATH
792 RDYNAMIC
793 program_prefix
794 LIBOBJS
795 LTLIBOBJS'
796 ac_subst_files=''
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 CPPFLAGS
804 CXX
805 CXXFLAGS
806 CCC
807 CPP'
808 ac_subdirs_all='projects/llvm-gcc
809 projects/test-suite
810 projects/llvm-test
811 projects/poolalloc
812 projects/llvm-poolalloc
813 projects/sample
814 projects/privbracket
815 projects/llvm-stacker
816 projects/llvm-reopt
817 projects/llvm-java
818 projects/llvm-tv
819 projects/safecode
820 projects/llvm-kernel
821 tools/polly'
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873   # If the previous option needs an argument, assign it.
874   if test -n "$ac_prev"; then
875     eval $ac_prev=\$ac_option
876     ac_prev=
877     continue
878   fi
879
880   case $ac_option in
881   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882   *)    ac_optarg=yes ;;
883   esac
884
885   # Accept the important Cygnus configure options, so we can diagnose typos.
886
887   case $ac_dashdash$ac_option in
888   --)
889     ac_dashdash=yes ;;
890
891   -bindir | --bindir | --bindi | --bind | --bin | --bi)
892     ac_prev=bindir ;;
893   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894     bindir=$ac_optarg ;;
895
896   -build | --build | --buil | --bui | --bu)
897     ac_prev=build_alias ;;
898   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899     build_alias=$ac_optarg ;;
900
901   -cache-file | --cache-file | --cache-fil | --cache-fi \
902   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903     ac_prev=cache_file ;;
904   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906     cache_file=$ac_optarg ;;
907
908   --config-cache | -C)
909     cache_file=config.cache ;;
910
911   -datadir | --datadir | --datadi | --datad)
912     ac_prev=datadir ;;
913   -datadir=* | --datadir=* | --datadi=* | --datad=*)
914     datadir=$ac_optarg ;;
915
916   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917   | --dataroo | --dataro | --datar)
918     ac_prev=datarootdir ;;
919   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921     datarootdir=$ac_optarg ;;
922
923   -disable-* | --disable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=no ;;
931
932   -docdir | --docdir | --docdi | --doc | --do)
933     ac_prev=docdir ;;
934   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935     docdir=$ac_optarg ;;
936
937   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938     ac_prev=dvidir ;;
939   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940     dvidir=$ac_optarg ;;
941
942   -enable-* | --enable-*)
943     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944     # Reject names that are not valid shell variable names.
945     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947    { (exit 1); exit 1; }; }
948     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949     eval enable_$ac_feature=\$ac_optarg ;;
950
951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953   | --exec | --exe | --ex)
954     ac_prev=exec_prefix ;;
955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957   | --exec=* | --exe=* | --ex=*)
958     exec_prefix=$ac_optarg ;;
959
960   -gas | --gas | --ga | --g)
961     # Obsolete; use --with-gas.
962     with_gas=yes ;;
963
964   -help | --help | --hel | --he | -h)
965     ac_init_help=long ;;
966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967     ac_init_help=recursive ;;
968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969     ac_init_help=short ;;
970
971   -host | --host | --hos | --ho)
972     ac_prev=host_alias ;;
973   -host=* | --host=* | --hos=* | --ho=*)
974     host_alias=$ac_optarg ;;
975
976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977     ac_prev=htmldir ;;
978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979   | --ht=*)
980     htmldir=$ac_optarg ;;
981
982   -includedir | --includedir | --includedi | --included | --include \
983   | --includ | --inclu | --incl | --inc)
984     ac_prev=includedir ;;
985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986   | --includ=* | --inclu=* | --incl=* | --inc=*)
987     includedir=$ac_optarg ;;
988
989   -infodir | --infodir | --infodi | --infod | --info | --inf)
990     ac_prev=infodir ;;
991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992     infodir=$ac_optarg ;;
993
994   -libdir | --libdir | --libdi | --libd)
995     ac_prev=libdir ;;
996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
997     libdir=$ac_optarg ;;
998
999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000   | --libexe | --libex | --libe)
1001     ac_prev=libexecdir ;;
1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003   | --libexe=* | --libex=* | --libe=*)
1004     libexecdir=$ac_optarg ;;
1005
1006   -localedir | --localedir | --localedi | --localed | --locale)
1007     ac_prev=localedir ;;
1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009     localedir=$ac_optarg ;;
1010
1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
1012   | --localstate | --localstat | --localsta | --localst | --locals)
1013     ac_prev=localstatedir ;;
1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016     localstatedir=$ac_optarg ;;
1017
1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019     ac_prev=mandir ;;
1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021     mandir=$ac_optarg ;;
1022
1023   -nfp | --nfp | --nf)
1024     # Obsolete; use --without-fp.
1025     with_fp=no ;;
1026
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n)
1029     no_create=yes ;;
1030
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     no_recursion=yes ;;
1034
1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037   | --oldin | --oldi | --old | --ol | --o)
1038     ac_prev=oldincludedir ;;
1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042     oldincludedir=$ac_optarg ;;
1043
1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045     ac_prev=prefix ;;
1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047     prefix=$ac_optarg ;;
1048
1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050   | --program-pre | --program-pr | --program-p)
1051     ac_prev=program_prefix ;;
1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054     program_prefix=$ac_optarg ;;
1055
1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057   | --program-suf | --program-su | --program-s)
1058     ac_prev=program_suffix ;;
1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061     program_suffix=$ac_optarg ;;
1062
1063   -program-transform-name | --program-transform-name \
1064   | --program-transform-nam | --program-transform-na \
1065   | --program-transform-n | --program-transform- \
1066   | --program-transform | --program-transfor \
1067   | --program-transfo | --program-transf \
1068   | --program-trans | --program-tran \
1069   | --progr-tra | --program-tr | --program-t)
1070     ac_prev=program_transform_name ;;
1071   -program-transform-name=* | --program-transform-name=* \
1072   | --program-transform-nam=* | --program-transform-na=* \
1073   | --program-transform-n=* | --program-transform-=* \
1074   | --program-transform=* | --program-transfor=* \
1075   | --program-transfo=* | --program-transf=* \
1076   | --program-trans=* | --program-tran=* \
1077   | --progr-tra=* | --program-tr=* | --program-t=*)
1078     program_transform_name=$ac_optarg ;;
1079
1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081     ac_prev=pdfdir ;;
1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083     pdfdir=$ac_optarg ;;
1084
1085   -psdir | --psdir | --psdi | --psd | --ps)
1086     ac_prev=psdir ;;
1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088     psdir=$ac_optarg ;;
1089
1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091   | -silent | --silent | --silen | --sile | --sil)
1092     silent=yes ;;
1093
1094   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095     ac_prev=sbindir ;;
1096   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097   | --sbi=* | --sb=*)
1098     sbindir=$ac_optarg ;;
1099
1100   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102   | --sharedst | --shareds | --shared | --share | --shar \
1103   | --sha | --sh)
1104     ac_prev=sharedstatedir ;;
1105   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108   | --sha=* | --sh=*)
1109     sharedstatedir=$ac_optarg ;;
1110
1111   -site | --site | --sit)
1112     ac_prev=site ;;
1113   -site=* | --site=* | --sit=*)
1114     site=$ac_optarg ;;
1115
1116   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117     ac_prev=srcdir ;;
1118   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119     srcdir=$ac_optarg ;;
1120
1121   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122   | --syscon | --sysco | --sysc | --sys | --sy)
1123     ac_prev=sysconfdir ;;
1124   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126     sysconfdir=$ac_optarg ;;
1127
1128   -target | --target | --targe | --targ | --tar | --ta | --t)
1129     ac_prev=target_alias ;;
1130   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131     target_alias=$ac_optarg ;;
1132
1133   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134     verbose=yes ;;
1135
1136   -version | --version | --versio | --versi | --vers | -V)
1137     ac_init_version=: ;;
1138
1139   -with-* | --with-*)
1140     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143       { echo "$as_me: error: invalid package name: $ac_package" >&2
1144    { (exit 1); exit 1; }; }
1145     ac_package=`echo $ac_package| sed 's/-/_/g'`
1146     eval with_$ac_package=\$ac_optarg ;;
1147
1148   -without-* | --without-*)
1149     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152       { echo "$as_me: error: invalid package name: $ac_package" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_package=`echo $ac_package | sed 's/-/_/g'`
1155     eval with_$ac_package=no ;;
1156
1157   --x)
1158     # Obsolete; use --with-x.
1159     with_x=yes ;;
1160
1161   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162   | --x-incl | --x-inc | --x-in | --x-i)
1163     ac_prev=x_includes ;;
1164   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166     x_includes=$ac_optarg ;;
1167
1168   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170     ac_prev=x_libraries ;;
1171   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173     x_libraries=$ac_optarg ;;
1174
1175   -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177    { (exit 1); exit 1; }; }
1178     ;;
1179
1180   *=*)
1181     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185    { (exit 1); exit 1; }; }
1186     eval $ac_envvar=\$ac_optarg
1187     export $ac_envvar ;;
1188
1189   *)
1190     # FIXME: should be removed in autoconf 3.0.
1191     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195     ;;
1196
1197   esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202   { echo "$as_me: error: missing argument to $ac_option" >&2
1203    { (exit 1); exit 1; }; }
1204 fi
1205
1206 # Be sure to have absolute directory names.
1207 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208                 datadir sysconfdir sharedstatedir localstatedir includedir \
1209                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210                 libdir localedir mandir
1211 do
1212   eval ac_val=\$$ac_var
1213   case $ac_val in
1214     [\\/$]* | ?:[\\/]* )  continue;;
1215     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216   esac
1217   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218    { (exit 1); exit 1; }; }
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230   if test "x$build_alias" = x; then
1231     cross_compiling=maybe
1232     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233     If a cross compiler is detected then cross compile mode will be used." >&2
1234   elif test "x$build_alias" != "x$host_alias"; then
1235     cross_compiling=yes
1236   fi
1237 fi
1238
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242 test "$silent" = yes && exec 6>/dev/null
1243
1244
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248   { echo "$as_me: error: Working directory cannot be determined" >&2
1249    { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   { echo "$as_me: error: pwd does not report name of working directory" >&2
1252    { (exit 1); exit 1; }; }
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257   ac_srcdir_defaulted=yes
1258   # Try the directory containing this script, then the parent directory.
1259   ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261          X"$0" : 'X\(//\)[^/]' \| \
1262          X"$0" : 'X\(//\)$' \| \
1263          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 echo X"$0" |
1265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)[^/].*/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\).*/{
1278             s//\1/
1279             q
1280           }
1281           s/.*/./; q'`
1282   srcdir=$ac_confdir
1283   if test ! -r "$srcdir/$ac_unique_file"; then
1284     srcdir=..
1285   fi
1286 else
1287   ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292    { (exit 1); exit 1; }; }
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297    { (exit 1); exit 1; }; }
1298         pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301   srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_env_${ac_var}_value=\$${ac_var}
1312   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320   # Omit some internal or obsolete options to make the list less imposing.
1321   # This message is too long to be a string in the A/UX 3.1 sh.
1322   cat <<_ACEOF
1323 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333   -h, --help              display this help and exit
1334       --help=short        display options specific to this package
1335       --help=recursive    display the short help of all the included packages
1336   -V, --version           display version information and exit
1337   -q, --quiet, --silent   do not print \`checking...' messages
1338       --cache-file=FILE   cache test results in FILE [disabled]
1339   -C, --config-cache      alias for \`--cache-file=config.cache'
1340   -n, --no-create         do not create output files
1341       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344   --prefix=PREFIX         install architecture-independent files in PREFIX
1345                           [$ac_default_prefix]
1346   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                           [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357   --bindir=DIR           user executables [EPREFIX/bin]
1358   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1359   --libexecdir=DIR       program executables [EPREFIX/libexec]
1360   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1361   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1362   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1363   --libdir=DIR           object code libraries [EPREFIX/lib]
1364   --includedir=DIR       C header files [PREFIX/include]
1365   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1366   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1367   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1368   --infodir=DIR          info documentation [DATAROOTDIR/info]
1369   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1370   --mandir=DIR           man documentation [DATAROOTDIR/man]
1371   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1372   --htmldir=DIR          html documentation [DOCDIR]
1373   --dvidir=DIR           dvi documentation [DOCDIR]
1374   --pdfdir=DIR           pdf documentation [DOCDIR]
1375   --psdir=DIR            ps documentation [DOCDIR]
1376 _ACEOF
1377
1378   cat <<\_ACEOF
1379
1380 System types:
1381   --build=BUILD     configure for building on BUILD [guessed]
1382   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383   --target=TARGET   configure for building compilers for TARGET [HOST]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388   case $ac_init_help in
1389      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1390    esac
1391   cat <<\_ACEOF
1392
1393 Optional Features:
1394   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396   --enable-polly          Use polly if available (default is YES)
1397   --enable-libcpp         Use libc++ if available (default is NO)
1398   --enable-cxx11          Use c++11 if available (default is NO)
1399   --enable-optimized      Compile with optimizations enabled (default is NO)
1400   --enable-profiling      Compile with profiling enabled (default is NO)
1401   --enable-assertions     Compile with assertion checks enabled (default is
1402                           YES)
1403   --enable-werror         Compile with -Werror enabled (default is NO)
1404   --enable-expensive-checks
1405                           Compile with expensive debug checks enabled (default
1406                           is NO)
1407   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1408                           NO)
1409   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1410                           optimization is on and YES if it's off)
1411   --enable-keep-symbols   Do not strip installed executables)
1412   --enable-jit            Enable Just In Time Compiling (default is YES)
1413   --enable-docs           Build documents (default is YES)
1414   --enable-doxygen        Build doxygen documentation (default is NO)
1415   --enable-threads        Use threads if available (default is YES)
1416   --enable-pthreads       Use pthreads if available (default is YES)
1417   --enable-pic            Build LLVM with Position Independent Code (default
1418                           is YES)
1419   --enable-shared         Build a shared library and link tools against it
1420                           (default is NO)
1421   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1422                           Win32 DLL (default is NO)
1423   --enable-timestamps     Enable embedding timestamp information in build
1424                           (default is YES)
1425   --enable-backtraces     Enable embedding backtraces on crash (default is
1426                           YES)
1427   --enable-targets        Build specific host targets: all or
1428                           target1,target2,... Valid targets are: host, x86,
1429                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1430                           xcore, msp430, nvptx, and cpp (default=all)
1431   --enable-experimental-targets
1432                           Build experimental host targets: disable or
1433                           target1,target2,... (default=disable)
1434   --enable-bindings       Build specific language bindings:
1435                           all,auto,none,{binding-name} (default=auto)
1436   --enable-libffi         Check for the presence of libffi (default is NO)
1437   --enable-ltdl-install   install libltdl
1438
1439 Optional Packages:
1440   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1441   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1442   --with-optimize-option  Select the compiler options to use for optimized
1443                           builds
1444   --with-extra-options    Specify additional options to compile LLVM with
1445   --with-extra-ld-options Specify additional options to link LLVM with
1446   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1447                           is stdlib)
1448   --with-clang-srcdir     Directory to the out-of-tree Clang source
1449   --with-clang-resource-dir
1450                           Relative directory from the Clang binary for
1451                           resource files
1452   --with-c-include-dirs   Colon separated list of directories clang will
1453                           search for headers
1454   --with-gcc-toolchain    Directory where gcc is installed.
1455   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1456   --with-binutils-include Specify path to binutils/include/ containing
1457                           plugin-api.h file for gold plugin.
1458   --with-bug-report-url   Specify the URL where bug reports should be
1459                           submitted (default=http://llvm.org/bugs/)
1460   --with-internal-prefix  Installation directory for internal files
1461   --with-udis86=<path>    Use udis86 external x86 disassembler library
1462   --with-oprofile=<prefix>
1463                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1464   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1465
1466
1467 Some influential environment variables:
1468   CC          C compiler command
1469   CFLAGS      C compiler flags
1470   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1471               nonstandard directory <lib dir>
1472   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473               you have headers in a nonstandard directory <include dir>
1474   CXX         C++ compiler command
1475   CXXFLAGS    C++ compiler flags
1476   CPP         C preprocessor
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to <http://llvm.org/bugs/>.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487   # If there are subdirs, report their specific --help.
1488   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489     test -d "$ac_dir" || continue
1490     ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496   # A ".." for each directory in $ac_dir_suffix.
1497   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498   case $ac_top_builddir_sub in
1499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501   esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509   .)  # We are building in place.
1510     ac_srcdir=.
1511     ac_top_srcdir=$ac_top_builddir_sub
1512     ac_abs_top_srcdir=$ac_pwd ;;
1513   [\\/]* | ?:[\\/]* )  # Absolute name.
1514     ac_srcdir=$srcdir$ac_dir_suffix;
1515     ac_top_srcdir=$srcdir
1516     ac_abs_top_srcdir=$srcdir ;;
1517   *) # Relative name.
1518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519     ac_top_srcdir=$ac_top_build_prefix$srcdir
1520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524     cd "$ac_dir" || { ac_status=$?; continue; }
1525     # Check for guested configure.
1526     if test -f "$ac_srcdir/configure.gnu"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529     elif test -f "$ac_srcdir/configure"; then
1530       echo &&
1531       $SHELL "$ac_srcdir/configure" --help=recursive
1532     else
1533       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534     fi || ac_status=$?
1535     cd "$ac_pwd" || { ac_status=$?; break; }
1536   done
1537 fi
1538
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541   cat <<\_ACEOF
1542 LLVM configure 3.2svn
1543 generated by GNU Autoconf 2.60
1544
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549
1550 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1551 _ACEOF
1552   exit
1553 fi
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1557
1558 It was created by LLVM $as_me 3.2svn, which was
1559 generated by GNU Autoconf 2.60.  Invocation command line was
1560
1561   $ $0 $@
1562
1563 _ACEOF
1564 exec 5>>config.log
1565 {
1566 cat <<_ASUNAME
1567 ## --------- ##
1568 ## Platform. ##
1569 ## --------- ##
1570
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1579
1580 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1581 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1584 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1585 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1586 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1587
1588 _ASUNAME
1589
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1592 do
1593   IFS=$as_save_IFS
1594   test -z "$as_dir" && as_dir=.
1595   echo "PATH: $as_dir"
1596 done
1597 IFS=$as_save_IFS
1598
1599 } >&5
1600
1601 cat >&5 <<_ACEOF
1602
1603
1604 ## ----------- ##
1605 ## Core tests. ##
1606 ## ----------- ##
1607
1608 _ACEOF
1609
1610
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1616 ac_configure_args=
1617 ac_configure_args0=
1618 ac_configure_args1=
1619 ac_must_keep_next=false
1620 for ac_pass in 1 2
1621 do
1622   for ac_arg
1623   do
1624     case $ac_arg in
1625     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627     | -silent | --silent | --silen | --sile | --sil)
1628       continue ;;
1629     *\'*)
1630       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631     esac
1632     case $ac_pass in
1633     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1634     2)
1635       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636       if test $ac_must_keep_next = true; then
1637         ac_must_keep_next=false # Got value, back to normal.
1638       else
1639         case $ac_arg in
1640           *=* | --config-cache | -C | -disable-* | --disable-* \
1641           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643           | -with-* | --with-* | -without-* | --without-* | --x)
1644             case "$ac_configure_args0 " in
1645               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646             esac
1647             ;;
1648           -* ) ac_must_keep_next=true ;;
1649         esac
1650       fi
1651       ac_configure_args="$ac_configure_args '$ac_arg'"
1652       ;;
1653     esac
1654   done
1655 done
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1658
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log.  We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665   # Save into config.log some information that might help in debugging.
1666   {
1667     echo
1668
1669     cat <<\_ASBOX
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1673 _ASBOX
1674     echo
1675     # The following way of writing the cache mishandles newlines in values,
1676 (
1677   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678     eval ac_val=\$$ac_var
1679     case $ac_val in #(
1680     *${as_nl}*)
1681       case $ac_var in #(
1682       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684       esac
1685       case $ac_var in #(
1686       _ | IFS | as_nl) ;; #(
1687       *) $as_unset $ac_var ;;
1688       esac ;;
1689     esac
1690   done
1691   (set) 2>&1 |
1692     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693     *${as_nl}ac_space=\ *)
1694       sed -n \
1695         "s/'\''/'\''\\\\'\'''\''/g;
1696           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697       ;; #(
1698     *)
1699       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700       ;;
1701     esac |
1702     sort
1703 )
1704     echo
1705
1706     cat <<\_ASBOX
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1710 _ASBOX
1711     echo
1712     for ac_var in $ac_subst_vars
1713     do
1714       eval ac_val=\$$ac_var
1715       case $ac_val in
1716       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717       esac
1718       echo "$ac_var='\''$ac_val'\''"
1719     done | sort
1720     echo
1721
1722     if test -n "$ac_subst_files"; then
1723       cat <<\_ASBOX
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1727 _ASBOX
1728       echo
1729       for ac_var in $ac_subst_files
1730       do
1731         eval ac_val=\$$ac_var
1732         case $ac_val in
1733         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734         esac
1735         echo "$ac_var='\''$ac_val'\''"
1736       done | sort
1737       echo
1738     fi
1739
1740     if test -s confdefs.h; then
1741       cat <<\_ASBOX
1742 ## ----------- ##
1743 ## confdefs.h. ##
1744 ## ----------- ##
1745 _ASBOX
1746       echo
1747       cat confdefs.h
1748       echo
1749     fi
1750     test "$ac_signal" != 0 &&
1751       echo "$as_me: caught signal $ac_signal"
1752     echo "$as_me: exit $exit_status"
1753   } >&5
1754   rm -f core *.core core.conftest.* &&
1755     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756     exit $exit_status
1757 ' 0
1758 for ac_signal in 1 2 13 15; do
1759   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 done
1761 ac_signal=0
1762
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1765
1766 # Predefined preprocessor variables.
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 _ACEOF
1791
1792
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796   set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 else
1800   set x "$ac_default_prefix/share/config.site" \
1801         "$ac_default_prefix/etc/config.site"
1802 fi
1803 shift
1804 for ac_site_file
1805 do
1806   if test -r "$ac_site_file"; then
1807     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809     sed 's/^/| /' "$ac_site_file" >&5
1810     . "$ac_site_file"
1811   fi
1812 done
1813
1814 if test -r "$cache_file"; then
1815   # Some versions of bash will fail to source /dev/null (special
1816   # files actually), so we avoid doing that.
1817   if test -f "$cache_file"; then
1818     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1820     case $cache_file in
1821       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822       *)                      . "./$cache_file";;
1823     esac
1824   fi
1825 else
1826   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1828   >$cache_file
1829 fi
1830
1831 # Check that the precious variables saved in the cache have kept the same
1832 # value.
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836   eval ac_new_set=\$ac_env_${ac_var}_set
1837   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838   eval ac_new_val=\$ac_env_${ac_var}_value
1839   case $ac_old_set,$ac_new_set in
1840     set,)
1841       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843       ac_cache_corrupted=: ;;
1844     ,set)
1845       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847       ac_cache_corrupted=: ;;
1848     ,);;
1849     *)
1850       if test "x$ac_old_val" != "x$ac_new_val"; then
1851         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1854 echo "$as_me:   former value:  $ac_old_val" >&2;}
1855         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1856 echo "$as_me:   current value: $ac_new_val" >&2;}
1857         ac_cache_corrupted=:
1858       fi;;
1859   esac
1860   # Pass precious variables to config.status.
1861   if test "$ac_new_set" = set; then
1862     case $ac_new_val in
1863     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864     *) ac_arg=$ac_var=$ac_new_val ;;
1865     esac
1866     case " $ac_configure_args " in
1867       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1868       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869     esac
1870   fi
1871 done
1872 if $ac_cache_corrupted; then
1873   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877    { (exit 1); exit 1; }; }
1878 fi
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904 ac_ext=c
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909
1910
1911
1912 cat >>confdefs.h <<\_ACEOF
1913 #define LLVM_VERSION_MAJOR 3
1914 _ACEOF
1915
1916
1917 cat >>confdefs.h <<\_ACEOF
1918 #define LLVM_VERSION_MINOR 2
1919 _ACEOF
1920
1921
1922 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1923
1924
1925
1926
1927
1928
1929
1930 ac_aux_dir=
1931 for ac_dir in autoconf "$srcdir"/autoconf; do
1932   if test -f "$ac_dir/install-sh"; then
1933     ac_aux_dir=$ac_dir
1934     ac_install_sh="$ac_aux_dir/install-sh -c"
1935     break
1936   elif test -f "$ac_dir/install.sh"; then
1937     ac_aux_dir=$ac_dir
1938     ac_install_sh="$ac_aux_dir/install.sh -c"
1939     break
1940   elif test -f "$ac_dir/shtool"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/shtool install -c"
1943     break
1944   fi
1945 done
1946 if test -z "$ac_aux_dir"; then
1947   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1948 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952 # These three variables are undocumented and unsupported,
1953 # and are intended to be withdrawn in a future Autoconf release.
1954 # They can cause serious problems if a builder's source tree is in a directory
1955 # whose full name contains unusual characters.
1956 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1957 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1958 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1959
1960
1961
1962 if test ${srcdir} != "." ; then
1963   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1964     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1965 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1966    { (exit 1); exit 1; }; }
1967   fi
1968 fi
1969
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976   for ac_prog in clang llvm-gcc gcc
1977   do
1978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$CC"; then
1986   ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998   fi
1999 done
2000 done
2001 IFS=$as_save_IFS
2002
2003 fi
2004 fi
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007   { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2009 else
2010   { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2012 fi
2013
2014
2015     test -n "$CC" && break
2016   done
2017 fi
2018 if test -z "$CC"; then
2019   ac_ct_CC=$CC
2020   for ac_prog in clang llvm-gcc gcc
2021 do
2022   # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   if test -n "$ac_ct_CC"; then
2030   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   for ac_exec_ext in '' $ac_executable_extensions; do
2038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039     ac_cv_prog_ac_ct_CC="$ac_prog"
2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041     break 2
2042   fi
2043 done
2044 done
2045 IFS=$as_save_IFS
2046
2047 fi
2048 fi
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 else
2054   { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2056 fi
2057
2058
2059   test -n "$ac_ct_CC" && break
2060 done
2061
2062   if test "x$ac_ct_CC" = x; then
2063     CC=""
2064   else
2065     case $cross_compiling:$ac_tool_warned in
2066 yes:)
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet.  If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet.  If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2074 esac
2075     CC=$ac_ct_CC
2076   fi
2077 fi
2078
2079
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095   (eval "$ac_compiler --version >&5") 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105   (eval "$ac_compiler -v >&5") 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115   (eval "$ac_compiler -V >&5") 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2139 # of exeext.
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 #
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort.  b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148 #
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions.  Remove them first so a
2151 # subsequent execution test works.
2152 ac_rmfiles=
2153 for ac_file in $ac_files
2154 do
2155   case $ac_file in
2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158   esac
2159 done
2160 rm -f $ac_rmfiles
2161
2162 if { (ac_try="$ac_link_default"
2163 case "(($ac_try" in
2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165   *) ac_try_echo=$ac_try;;
2166 esac
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168   (eval "$ac_link_default") 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; then
2172   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2176 # Autoconf.
2177 for ac_file in $ac_files
2178 do
2179   test -f "$ac_file" || continue
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182         ;;
2183     [ab].out )
2184         # We found the default executable, but exeext='' is most
2185         # certainly right.
2186         break;;
2187     *.* )
2188         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189         then :; else
2190            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191         fi
2192         # We set ac_cv_exeext here because the later test for it is not
2193         # safe: cross compilers may not add the suffix if given an `-o'
2194         # argument, so we may need to know it at that point already.
2195         # Even if this section looks crufty: it has the advantage of
2196         # actually working.
2197         break;;
2198     * )
2199         break;;
2200   esac
2201 done
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212    { (exit 77); exit 77; }; }
2213 fi
2214
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2218
2219 # Check that the compiler produces executables we can run.  If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226   if { ac_try='./$ac_file'
2227   { (case "(($ac_try" in
2228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229   *) ac_try_echo=$ac_try;;
2230 esac
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232   (eval "$ac_try") 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236     cross_compiling=no
2237   else
2238     if test "$cross_compiling" = maybe; then
2239         cross_compiling=yes
2240     else
2241         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247    { (exit 1); exit 1; }; }
2248     fi
2249   fi
2250 fi
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2253
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run.  If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2266 case "(($ac_try" in
2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268   *) ac_try_echo=$ac_try;;
2269 esac
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271   (eval "$ac_link") 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; then
2275   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 # `rm'.
2279 for ac_file in conftest.exe conftest conftest.*; do
2280   test -f "$ac_file" || continue
2281   case $ac_file in
2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284           break;;
2285     * ) break;;
2286   esac
2287 done
2288 else
2289   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293    { (exit 1); exit 1; }; }
2294 fi
2295
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2302 ac_exeext=$EXEEXT
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h.  */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h.  */
2314
2315 int
2316 main ()
2317 {
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2325 case "(($ac_try" in
2326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327   *) ac_try_echo=$ac_try;;
2328 esac
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330   (eval "$ac_compile") 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; then
2334   for ac_file in conftest.o conftest.obj conftest.*; do
2335   test -f "$ac_file" || continue;
2336   case $ac_file in
2337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339        break;;
2340   esac
2341 done
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }
2351 fi
2352
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 fi
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2358 ac_objext=$OBJEXT
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h.  */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h.  */
2370
2371 int
2372 main ()
2373 {
2374 #ifndef __GNUC__
2375        choke me
2376 #endif
2377
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2384 case "(($ac_try" in
2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386   *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389   (eval "$ac_compile") 2>conftest.er1
2390   ac_status=$?
2391   grep -v '^ *+' conftest.er1 >conftest.err
2392   rm -f conftest.er1
2393   cat conftest.err >&5
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397   { (case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_try") 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; } &&
2406          { ac_try='test -s conftest.$ac_objext'
2407   { (case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_try") 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   ac_compiler_gnu=yes
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421         ac_compiler_gnu=no
2422 fi
2423
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427 fi
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   ac_save_c_werror_flag=$ac_c_werror_flag
2439    ac_c_werror_flag=yes
2440    ac_cv_prog_cc_g=no
2441    CFLAGS="-g"
2442    cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2459 case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464   (eval "$ac_compile") 2>conftest.er1
2465   ac_status=$?
2466   grep -v '^ *+' conftest.er1 >conftest.err
2467   rm -f conftest.er1
2468   cat conftest.err >&5
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472   { (case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_try") 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_try") 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; }; then
2491   ac_cv_prog_cc_g=yes
2492 else
2493   echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496         CFLAGS=""
2497       cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2514 case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519   (eval "$ac_compile") 2>conftest.er1
2520   ac_status=$?
2521   grep -v '^ *+' conftest.er1 >conftest.err
2522   rm -f conftest.er1
2523   cat conftest.err >&5
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); } &&
2526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527   { (case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_try") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_try") 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   :
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551         ac_c_werror_flag=$ac_save_c_werror_flag
2552          CFLAGS="-g"
2553          cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559
2560 int
2561 main ()
2562 {
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2570 case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_compile") 2>conftest.er1
2576   ac_status=$?
2577   grep -v '^ *+' conftest.er1 >conftest.err
2578   rm -f conftest.er1
2579   cat conftest.err >&5
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583   { (case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_try") 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; } &&
2592          { ac_try='test -s conftest.$ac_objext'
2593   { (case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_try") 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   ac_cv_prog_cc_g=yes
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
2608 fi
2609
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 fi
2612
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617    ac_c_werror_flag=$ac_save_c_werror_flag
2618 fi
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622   CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624   if test "$GCC" = yes; then
2625     CFLAGS="-g -O2"
2626   else
2627     CFLAGS="-g"
2628   fi
2629 else
2630   if test "$GCC" = yes; then
2631     CFLAGS="-O2"
2632   else
2633     CFLAGS=
2634   fi
2635 fi
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   ac_cv_prog_cc_c89=no
2642 ac_save_CC=$CC
2643 cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649 #include <stdarg.h>
2650 #include <stdio.h>
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2657      char **p;
2658      int i;
2659 {
2660   return p[i];
2661 }
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2663 {
2664   char *s;
2665   va_list v;
2666   va_start (v,p);
2667   s = g (p, va_arg (v,int));
2668   va_end (v);
2669   return s;
2670 }
2671
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2673    function prototypes and stuff, but not '\xHH' hex character constants.
2674    These don't provoke an error unfortunately, instead are silently treated
2675    as 'x'.  The following induces an error, until -std is added to get
2676    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2677    array size at least.  It's necessary to write '\x00'==0 to get something
2678    that's true only with -std.  */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682    inside strings and character constants.  */
2683 #define FOO(x) 'x'
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690 int argc;
2691 char **argv;
2692 int
2693 main ()
2694 {
2695 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 do
2703   CC="$ac_save_CC $ac_arg"
2704   rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compile") 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719   { (case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_try") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_try") 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_cv_prog_cc_c89=$ac_arg
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
2744 fi
2745
2746 rm -f core conftest.err conftest.$ac_objext
2747   test "x$ac_cv_prog_cc_c89" != "xno" && break
2748 done
2749 rm -f conftest.$ac_ext
2750 CC=$ac_save_CC
2751
2752 fi
2753 # AC_CACHE_VAL
2754 case "x$ac_cv_prog_cc_c89" in
2755   x)
2756     { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2758   xno)
2759     { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2761   *)
2762     CC="$CC $ac_cv_prog_cc_c89"
2763     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765 esac
2766
2767
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774 ac_ext=cpp
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780   if test -n "$CCC"; then
2781     CXX=$CCC
2782   else
2783     if test -n "$ac_tool_prefix"; then
2784   for ac_prog in clang++ llvm-g++ g++
2785   do
2786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   if test -n "$CXX"; then
2794   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 CXX=$ac_cv_prog_CXX
2814 if test -n "$CXX"; then
2815   { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2817 else
2818   { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2820 fi
2821
2822
2823     test -n "$CXX" && break
2824   done
2825 fi
2826 if test -z "$CXX"; then
2827   ac_ct_CXX=$CXX
2828   for ac_prog in clang++ llvm-g++ g++
2829 do
2830   # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   if test -n "$ac_ct_CXX"; then
2838   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845   for ac_exec_ext in '' $ac_executable_extensions; do
2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847     ac_cv_prog_ac_ct_CXX="$ac_prog"
2848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861 else
2862   { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2864 fi
2865
2866
2867   test -n "$ac_ct_CXX" && break
2868 done
2869
2870   if test "x$ac_ct_CXX" = x; then
2871     CXX="g++"
2872   else
2873     case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet.  If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet.  If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883     CXX=$ac_ct_CXX
2884   fi
2885 fi
2886
2887   fi
2888 fi
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler --version >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compiler -v >&5") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_compiler -V >&5") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }
2922
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934
2935 int
2936 main ()
2937 {
2938 #ifndef __GNUC__
2939        choke me
2940 #endif
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961   { (case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_try") 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; } &&
2970          { ac_try='test -s conftest.$ac_objext'
2971   { (case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_try") 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; }; then
2980   ac_compiler_gnu=yes
2981 else
2982   echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985         ac_compiler_gnu=no
2986 fi
2987
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991 fi
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003    ac_cxx_werror_flag=yes
3004    ac_cv_prog_cxx_g=no
3005    CXXFLAGS="-g"
3006    cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compile") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; } &&
3045          { ac_try='test -s conftest.$ac_objext'
3046   { (case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_try") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_cv_prog_cxx_g=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060         CXXFLAGS=""
3061       cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h.  */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h.  */
3067
3068 int
3069 main ()
3070 {
3071
3072   ;
3073   return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3078 case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_compile") 2>conftest.er1
3084   ac_status=$?
3085   grep -v '^ *+' conftest.er1 >conftest.err
3086   rm -f conftest.er1
3087   cat conftest.err >&5
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); } &&
3090          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; } &&
3100          { ac_try='test -s conftest.$ac_objext'
3101   { (case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_try") 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; }; then
3110   :
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116          CXXFLAGS="-g"
3117          cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123
3124 int
3125 main ()
3126 {
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compile") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } &&
3146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147   { (case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_try") 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; } &&
3156          { ac_try='test -s conftest.$ac_objext'
3157   { (case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_try") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   ac_cv_prog_cxx_g=yes
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 fi
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186   CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188   if test "$GXX" = yes; then
3189     CXXFLAGS="-g -O2"
3190   else
3191     CXXFLAGS="-g"
3192   fi
3193 else
3194   if test "$GXX" = yes; then
3195     CXXFLAGS="-O2"
3196   else
3197     CXXFLAGS=
3198   fi
3199 fi
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3215   CPP=
3216 fi
3217 if test -z "$CPP"; then
3218   if test "${ac_cv_prog_CPP+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221       # Double quotes because CPP needs to be expanded
3222     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223     do
3224       ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3226 do
3227   # Use a header file that comes with gcc, so configuring glibc
3228   # with a fresh cross-compiler works.
3229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230   # <limits.h> exists even on freestanding compilers.
3231   # On the NeXT, cc -E runs the code through the compiler's parser,
3232   # not just through cpp. "Syntax error" is here to catch this case.
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #ifdef __STDC__
3240 # include <limits.h>
3241 #else
3242 # include <assert.h>
3243 #endif
3244                      Syntax error
3245 _ACEOF
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } >/dev/null; then
3259   if test -s conftest.err; then
3260     ac_cpp_err=$ac_c_preproc_warn_flag
3261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262   else
3263     ac_cpp_err=
3264   fi
3265 else
3266   ac_cpp_err=yes
3267 fi
3268 if test -z "$ac_cpp_err"; then
3269   :
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274   # Broken: fails on valid input.
3275 continue
3276 fi
3277
3278 rm -f conftest.err conftest.$ac_ext
3279
3280   # OK, works on sane cases.  Now check whether nonexistent headers
3281   # can be detected and how.
3282   cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288 #include <ac_nonexistent.h>
3289 _ACEOF
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } >/dev/null; then
3303   if test -s conftest.err; then
3304     ac_cpp_err=$ac_c_preproc_warn_flag
3305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306   else
3307     ac_cpp_err=
3308   fi
3309 else
3310   ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313   # Broken: success on invalid input.
3314 continue
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3322 fi
3323
3324 rm -f conftest.err conftest.$ac_ext
3325
3326 done
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3330   break
3331 fi
3332
3333     done
3334     ac_cv_prog_CPP=$CPP
3335
3336 fi
3337   CPP=$ac_cv_prog_CPP
3338 else
3339   ac_cv_prog_CPP=$CPP
3340 fi
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3343 ac_preproc_ok=false
3344 for ac_c_preproc_warn_flag in '' yes
3345 do
3346   # Use a header file that comes with gcc, so configuring glibc
3347   # with a fresh cross-compiler works.
3348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349   # <limits.h> exists even on freestanding compilers.
3350   # On the NeXT, cc -E runs the code through the compiler's parser,
3351   # not just through cpp. "Syntax error" is here to catch this case.
3352   cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #ifdef __STDC__
3359 # include <limits.h>
3360 #else
3361 # include <assert.h>
3362 #endif
3363                      Syntax error
3364 _ACEOF
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } >/dev/null; then
3378   if test -s conftest.err; then
3379     ac_cpp_err=$ac_c_preproc_warn_flag
3380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381   else
3382     ac_cpp_err=
3383   fi
3384 else
3385   ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388   :
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Broken: fails on valid input.
3394 continue
3395 fi
3396
3397 rm -f conftest.err conftest.$ac_ext
3398
3399   # OK, works on sane cases.  Now check whether nonexistent headers
3400   # can be detected and how.
3401   cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407 #include <ac_nonexistent.h>
3408 _ACEOF
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } >/dev/null; then
3422   if test -s conftest.err; then
3423     ac_cpp_err=$ac_c_preproc_warn_flag
3424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425   else
3426     ac_cpp_err=
3427   fi
3428 else
3429   ac_cpp_err=yes
3430 fi
3431 if test -z "$ac_cpp_err"; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466
3467 if test -d ${srcdir}/projects/llvm-gcc ; then
3468   subdirs="$subdirs projects/llvm-gcc"
3469
3470 fi
3471
3472 if test -d ${srcdir}/projects/test-suite ; then
3473   subdirs="$subdirs projects/test-suite"
3474
3475 fi
3476
3477 if test -d ${srcdir}/projects/llvm-test ; then
3478   subdirs="$subdirs projects/llvm-test"
3479
3480 fi
3481
3482 if test -d ${srcdir}/projects/poolalloc ; then
3483   subdirs="$subdirs projects/poolalloc"
3484
3485 fi
3486
3487 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3488   subdirs="$subdirs projects/llvm-poolalloc"
3489
3490 fi
3491
3492 for i in `ls ${srcdir}/projects`
3493 do
3494   if test -d ${srcdir}/projects/${i} ; then
3495     case ${i} in
3496       sample)       subdirs="$subdirs projects/sample"
3497     ;;
3498       privbracket)  subdirs="$subdirs projects/privbracket"
3499  ;;
3500       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3501  ;;
3502       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3503 ;;
3504       llvm-java)    subdirs="$subdirs projects/llvm-java"
3505  ;;
3506       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3507    ;;
3508       safecode)     subdirs="$subdirs projects/safecode"
3509  ;;
3510       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3511  ;;
3512       compiler-rt)       ;;
3513       llvm-gcc)       ;;
3514       test-suite)     ;;
3515       llvm-test)      ;;
3516       poolalloc)      ;;
3517       llvm-poolalloc) ;;
3518       *)
3519         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3520 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3521         ;;
3522     esac
3523   fi
3524 done
3525
3526 # Check whether --enable-polly was given.
3527 if test "${enable_polly+set}" = set; then
3528   enableval=$enable_polly;
3529 else
3530   enableval=default
3531 fi
3532
3533 case "$enableval" in
3534   yes) ENABLE_POLLY=1
3535  ;;
3536   no)  ENABLE_POLLY=0
3537  ;;
3538   default) ENABLE_POLLY=1
3539  ;;
3540   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3541 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3542    { (exit 1); exit 1; }; } ;;
3543 esac
3544
3545
3546 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3547   LLVM_HAS_POLLY=1
3548
3549   subdirs="$subdirs tools/polly"
3550
3551 fi
3552
3553
3554 # Make sure we can run config.sub.
3555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3556   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3557 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3558    { (exit 1); exit 1; }; }
3559
3560 { echo "$as_me:$LINENO: checking build system type" >&5
3561 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3562 if test "${ac_cv_build+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   ac_build_alias=$build_alias
3566 test "x$ac_build_alias" = x &&
3567   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3568 test "x$ac_build_alias" = x &&
3569   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3571    { (exit 1); exit 1; }; }
3572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3573   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3574 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3575    { (exit 1); exit 1; }; }
3576
3577 fi
3578 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3579 echo "${ECHO_T}$ac_cv_build" >&6; }
3580 case $ac_cv_build in
3581 *-*-*) ;;
3582 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3583 echo "$as_me: error: invalid value of canonical build" >&2;}
3584    { (exit 1); exit 1; }; };;
3585 esac
3586 build=$ac_cv_build
3587 ac_save_IFS=$IFS; IFS='-'
3588 set x $ac_cv_build
3589 shift
3590 build_cpu=$1
3591 build_vendor=$2
3592 shift; shift
3593 # Remember, the first character of IFS is used to create $*,
3594 # except with old shells:
3595 build_os=$*
3596 IFS=$ac_save_IFS
3597 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3598
3599
3600 { echo "$as_me:$LINENO: checking host system type" >&5
3601 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3602 if test "${ac_cv_host+set}" = set; then
3603   echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605   if test "x$host_alias" = x; then
3606   ac_cv_host=$ac_cv_build
3607 else
3608   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3609     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3610 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3611    { (exit 1); exit 1; }; }
3612 fi
3613
3614 fi
3615 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3616 echo "${ECHO_T}$ac_cv_host" >&6; }
3617 case $ac_cv_host in
3618 *-*-*) ;;
3619 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3620 echo "$as_me: error: invalid value of canonical host" >&2;}
3621    { (exit 1); exit 1; }; };;
3622 esac
3623 host=$ac_cv_host
3624 ac_save_IFS=$IFS; IFS='-'
3625 set x $ac_cv_host
3626 shift
3627 host_cpu=$1
3628 host_vendor=$2
3629 shift; shift
3630 # Remember, the first character of IFS is used to create $*,
3631 # except with old shells:
3632 host_os=$*
3633 IFS=$ac_save_IFS
3634 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3635
3636
3637 { echo "$as_me:$LINENO: checking target system type" >&5
3638 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3639 if test "${ac_cv_target+set}" = set; then
3640   echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642   if test "x$target_alias" = x; then
3643   ac_cv_target=$ac_cv_host
3644 else
3645   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3646     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3647 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3648    { (exit 1); exit 1; }; }
3649 fi
3650
3651 fi
3652 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3653 echo "${ECHO_T}$ac_cv_target" >&6; }
3654 case $ac_cv_target in
3655 *-*-*) ;;
3656 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3657 echo "$as_me: error: invalid value of canonical target" >&2;}
3658    { (exit 1); exit 1; }; };;
3659 esac
3660 target=$ac_cv_target
3661 ac_save_IFS=$IFS; IFS='-'
3662 set x $ac_cv_target
3663 shift
3664 target_cpu=$1
3665 target_vendor=$2
3666 shift; shift
3667 # Remember, the first character of IFS is used to create $*,
3668 # except with old shells:
3669 target_os=$*
3670 IFS=$ac_save_IFS
3671 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3672
3673
3674 # The aliases save the names the user supplied, while $host etc.
3675 # will get canonicalized.
3676 test -n "$target_alias" &&
3677   test "$program_prefix$program_suffix$program_transform_name" = \
3678     NONENONEs,x,x, &&
3679   program_prefix=${target_alias}-
3680
3681 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3682 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3683 if test "${llvm_cv_os_type+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   case $host in
3687   *-*-aix*)
3688     llvm_cv_link_all_option="-Wl,--whole-archive"
3689     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690     llvm_cv_os_type="AIX"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-irix*)
3693     llvm_cv_link_all_option="-Wl,--whole-archive"
3694     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695     llvm_cv_os_type="IRIX"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-cygwin*)
3698     llvm_cv_link_all_option="-Wl,--whole-archive"
3699     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700     llvm_cv_os_type="Cygwin"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-darwin*)
3703     llvm_cv_link_all_option="-Wl,-all_load"
3704     llvm_cv_no_link_all_option="-Wl,-noall_load"
3705     llvm_cv_os_type="Darwin"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-*-minix*)
3708     llvm_cv_link_all_option="-Wl,-all_load"
3709     llvm_cv_no_link_all_option="-Wl,-noall_load"
3710     llvm_cv_os_type="Minix"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-*-freebsd* | *-*-kfreebsd-gnu)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="FreeBSD"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-*-openbsd*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="OpenBSD"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-*-netbsd*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="NetBSD"
3726     llvm_cv_platform_type="Unix" ;;
3727   *-*-dragonfly*)
3728     llvm_cv_link_all_option="-Wl,--whole-archive"
3729     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730     llvm_cv_os_type="DragonFly"
3731     llvm_cv_platform_type="Unix" ;;
3732   *-*-hpux*)
3733     llvm_cv_link_all_option="-Wl,--whole-archive"
3734     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735     llvm_cv_os_type="HP-UX"
3736     llvm_cv_platform_type="Unix" ;;
3737   *-*-interix*)
3738     llvm_cv_link_all_option="-Wl,--whole-archive"
3739     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740     llvm_cv_os_type="Interix"
3741     llvm_cv_platform_type="Unix" ;;
3742   *-*-linux*)
3743     llvm_cv_link_all_option="-Wl,--whole-archive"
3744     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745     llvm_cv_os_type="Linux"
3746     llvm_cv_platform_type="Unix" ;;
3747   *-*-gnu*)
3748     llvm_cv_link_all_option="-Wl,--whole-archive"
3749     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750     llvm_cv_os_type="GNU"
3751     llvm_cv_platform_type="Unix" ;;
3752   *-*-solaris*)
3753     llvm_cv_link_all_option="-Wl,-z,allextract"
3754     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755     llvm_cv_os_type="SunOS"
3756     llvm_cv_platform_type="Unix" ;;
3757   *-*-auroraux*)
3758     llvm_cv_link_all_option="-Wl,-z,allextract"
3759     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760     llvm_cv_os_type="AuroraUX"
3761     llvm_cv_platform_type="Unix" ;;
3762   *-*-win32*)
3763     llvm_cv_link_all_option="-Wl,--whole-archive"
3764     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765     llvm_cv_os_type="Win32"
3766     llvm_cv_platform_type="Win32" ;;
3767   *-*-mingw*)
3768     llvm_cv_link_all_option="-Wl,--whole-archive"
3769     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770     llvm_cv_os_type="MingW"
3771     llvm_cv_platform_type="Win32" ;;
3772   *-*-haiku*)
3773     llvm_cv_link_all_option="-Wl,--whole-archive"
3774     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775     llvm_cv_os_type="Haiku"
3776     llvm_cv_platform_type="Unix" ;;
3777   *-unknown-eabi*)
3778     llvm_cv_link_all_option="-Wl,--whole-archive"
3779     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780     llvm_cv_os_type="Freestanding"
3781     llvm_cv_platform_type="Unix" ;;
3782   *-unknown-elf*)
3783     llvm_cv_link_all_option="-Wl,--whole-archive"
3784     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785     llvm_cv_os_type="Freestanding"
3786     llvm_cv_platform_type="Unix" ;;
3787   *)
3788     llvm_cv_link_all_option=""
3789     llvm_cv_no_link_all_option=""
3790     llvm_cv_os_type="Unknown"
3791     llvm_cv_platform_type="Unknown" ;;
3792 esac
3793 fi
3794 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3796
3797 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799 if test "${llvm_cv_target_os_type+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   case $target in
3803   *-*-aix*)
3804     llvm_cv_target_os_type="AIX" ;;
3805   *-*-irix*)
3806     llvm_cv_target_os_type="IRIX" ;;
3807   *-*-cygwin*)
3808     llvm_cv_target_os_type="Cygwin" ;;
3809   *-*-darwin*)
3810     llvm_cv_target_os_type="Darwin" ;;
3811   *-*-minix*)
3812     llvm_cv_target_os_type="Minix" ;;
3813   *-*-freebsd* | *-*-kfreebsd-gnu)
3814     llvm_cv_target_os_type="FreeBSD" ;;
3815   *-*-openbsd*)
3816     llvm_cv_target_os_type="OpenBSD" ;;
3817   *-*-netbsd*)
3818     llvm_cv_target_os_type="NetBSD" ;;
3819   *-*-dragonfly*)
3820     llvm_cv_target_os_type="DragonFly" ;;
3821   *-*-hpux*)
3822     llvm_cv_target_os_type="HP-UX" ;;
3823   *-*-interix*)
3824     llvm_cv_target_os_type="Interix" ;;
3825   *-*-linux*)
3826     llvm_cv_target_os_type="Linux" ;;
3827   *-*-gnu*)
3828     llvm_cv_target_os_type="GNU" ;;
3829   *-*-solaris*)
3830     llvm_cv_target_os_type="SunOS" ;;
3831   *-*-auroraux*)
3832     llvm_cv_target_os_type="AuroraUX" ;;
3833   *-*-win32*)
3834     llvm_cv_target_os_type="Win32" ;;
3835   *-*-mingw*)
3836     llvm_cv_target_os_type="MingW" ;;
3837   *-*-haiku*)
3838     llvm_cv_target_os_type="Haiku" ;;
3839   *-*-rtems*)
3840     llvm_cv_target_os_type="RTEMS" ;;
3841   *-*-nacl*)
3842     llvm_cv_target_os_type="NativeClient" ;;
3843   *-unknown-eabi*)
3844     llvm_cv_target_os_type="Freestanding" ;;
3845   *)
3846     llvm_cv_target_os_type="Unknown" ;;
3847 esac
3848 fi
3849 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3850 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3851
3852 if test "$llvm_cv_os_type" = "Unknown" ; then
3853   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3854 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3855    { (exit 1); exit 1; }; }
3856 fi
3857
3858 OS=$llvm_cv_os_type
3859
3860 HOST_OS=$llvm_cv_os_type
3861
3862 TARGET_OS=$llvm_cv_target_os_type
3863
3864
3865 LINKALL=$llvm_cv_link_all_option
3866
3867 NOLINKALL=$llvm_cv_no_link_all_option
3868
3869
3870 case $llvm_cv_platform_type in
3871   Unix)
3872
3873 cat >>confdefs.h <<\_ACEOF
3874 #define LLVM_ON_UNIX 1
3875 _ACEOF
3876
3877     LLVM_ON_UNIX=1
3878
3879     LLVM_ON_WIN32=0
3880
3881     ;;
3882   Win32)
3883
3884 cat >>confdefs.h <<\_ACEOF
3885 #define LLVM_ON_WIN32 1
3886 _ACEOF
3887
3888     LLVM_ON_UNIX=0
3889
3890     LLVM_ON_WIN32=1
3891
3892     ;;
3893 esac
3894
3895 { echo "$as_me:$LINENO: checking target architecture" >&5
3896 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3897 if test "${llvm_cv_target_arch+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   case $target in
3901   i?86-*)                 llvm_cv_target_arch="x86" ;;
3902   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3903   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3904   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3905   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3906   mips-*)                 llvm_cv_target_arch="Mips" ;;
3907   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3908   xcore-*)                llvm_cv_target_arch="XCore" ;;
3909   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3910   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3911   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3912   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3913   *)                      llvm_cv_target_arch="Unknown" ;;
3914 esac
3915 fi
3916 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3917 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3918
3919 if test "$llvm_cv_target_arch" = "Unknown" ; then
3920   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3921 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3922 fi
3923
3924 case "$llvm_cv_target_arch" in
3925     x86)     LLVM_NATIVE_ARCH="X86" ;;
3926     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3927     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3928 esac
3929
3930 ARCH=$llvm_cv_target_arch
3931
3932
3933 case $host in
3934   i?86-*)                 host_arch="x86" ;;
3935   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3936   sparc*-*)               host_arch="Sparc" ;;
3937   powerpc*-*)             host_arch="PowerPC" ;;
3938   arm*-*)                 host_arch="ARM" ;;
3939   mips-*)                 host_arch="Mips" ;;
3940   mipsel-*)               host_arch="Mips" ;;
3941   xcore-*)                host_arch="XCore" ;;
3942   msp430-*)               host_arch="MSP430" ;;
3943   hexagon-*)              host_arch="Hexagon" ;;
3944   mblaze-*)               host_arch="MBlaze" ;;
3945   *)                      host_arch="Unknown" ;;
3946 esac
3947
3948 if test "$host_arch" = "Unknown" ; then
3949   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3950 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3951 fi
3952
3953 HOST_ARCH=$host_arch
3954
3955
3956
3957
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   ac_path_GREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_prog in grep ggrep; do
3977   for ac_exec_ext in '' $ac_executable_extensions; do
3978     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3980     # Check for GNU ac_path_GREP and select it if it is found.
3981   # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3983 *GNU*)
3984   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3985 *)
3986   ac_count=0
3987   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988   while :
3989   do
3990     cat "conftest.in" "conftest.in" >"conftest.tmp"
3991     mv "conftest.tmp" "conftest.in"
3992     cp "conftest.in" "conftest.nl"
3993     echo 'GREP' >> "conftest.nl"
3994     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996     ac_count=`expr $ac_count + 1`
3997     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998       # Best one so far, save it but keep looking for a better one
3999       ac_cv_path_GREP="$ac_path_GREP"
4000       ac_path_GREP_max=$ac_count
4001     fi
4002     # 10*(2^10) chars as input seems more than enough
4003     test $ac_count -gt 10 && break
4004   done
4005   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4007
4008
4009     $ac_path_GREP_found && break 3
4010   done
4011 done
4012
4013 done
4014 IFS=$as_save_IFS
4015
4016
4017 fi
4018
4019 GREP="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023    { (exit 1); exit 1; }; }
4024 fi
4025
4026 else
4027   ac_cv_path_GREP=$GREP
4028 fi
4029
4030
4031 fi
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034  GREP="$ac_cv_path_GREP"
4035
4036
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043    then ac_cv_path_EGREP="$GREP -E"
4044    else
4045      # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy egrep; ac_prog_name=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   ac_path_EGREP_found=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_prog in egrep; do
4059   for ac_exec_ext in '' $ac_executable_extensions; do
4060     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4062     # Check for GNU ac_path_EGREP and select it if it is found.
4063   # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4065 *GNU*)
4066   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067 *)
4068   ac_count=0
4069   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4070   while :
4071   do
4072     cat "conftest.in" "conftest.in" >"conftest.tmp"
4073     mv "conftest.tmp" "conftest.in"
4074     cp "conftest.in" "conftest.nl"
4075     echo 'EGREP' >> "conftest.nl"
4076     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078     ac_count=`expr $ac_count + 1`
4079     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080       # Best one so far, save it but keep looking for a better one
4081       ac_cv_path_EGREP="$ac_path_EGREP"
4082       ac_path_EGREP_max=$ac_count
4083     fi
4084     # 10*(2^10) chars as input seems more than enough
4085     test $ac_count -gt 10 && break
4086   done
4087   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088 esac
4089
4090
4091     $ac_path_EGREP_found && break 3
4092   done
4093 done
4094
4095 done
4096 IFS=$as_save_IFS
4097
4098
4099 fi
4100
4101 EGREP="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105    { (exit 1); exit 1; }; }
4106 fi
4107
4108 else
4109   ac_cv_path_EGREP=$EGREP
4110 fi
4111
4112
4113    fi
4114 fi
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117  EGREP="$ac_cv_path_EGREP"
4118
4119
4120 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4121 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4122 if test "${ac_cv_header_stdc+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 #include <stdlib.h>
4132 #include <stdarg.h>
4133 #include <string.h>
4134 #include <float.h>
4135
4136 int
4137 main ()
4138 {
4139
4140   ;
4141   return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.$ac_objext
4145 if { (ac_try="$ac_compile"
4146 case "(($ac_try" in
4147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148   *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151   (eval "$ac_compile") 2>conftest.er1
4152   ac_status=$?
4153   grep -v '^ *+' conftest.er1 >conftest.err
4154   rm -f conftest.er1
4155   cat conftest.err >&5
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); } &&
4158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159   { (case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_try") 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; } &&
4168          { ac_try='test -s conftest.$ac_objext'
4169   { (case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_try") 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; }; then
4178   ac_cv_header_stdc=yes
4179 else
4180   echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183         ac_cv_header_stdc=no
4184 fi
4185
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187
4188 if test $ac_cv_header_stdc = yes; then
4189   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190   cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196 #include <string.h>
4197
4198 _ACEOF
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200   $EGREP "memchr" >/dev/null 2>&1; then
4201   :
4202 else
4203   ac_cv_header_stdc=no
4204 fi
4205 rm -f conftest*
4206
4207 fi
4208
4209 if test $ac_cv_header_stdc = yes; then
4210   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 #include <stdlib.h>
4218
4219 _ACEOF
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221   $EGREP "free" >/dev/null 2>&1; then
4222   :
4223 else
4224   ac_cv_header_stdc=no
4225 fi
4226 rm -f conftest*
4227
4228 fi
4229
4230 if test $ac_cv_header_stdc = yes; then
4231   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4232   if test "$cross_compiling" = yes; then
4233   :
4234 else
4235   cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241 #include <ctype.h>
4242 #include <stdlib.h>
4243 #if ((' ' & 0x0FF) == 0x020)
4244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4246 #else
4247 # define ISLOWER(c) \
4248                    (('a' <= (c) && (c) <= 'i') \
4249                      || ('j' <= (c) && (c) <= 'r') \
4250                      || ('s' <= (c) && (c) <= 'z'))
4251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4252 #endif
4253
4254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4255 int
4256 main ()
4257 {
4258   int i;
4259   for (i = 0; i < 256; i++)
4260     if (XOR (islower (i), ISLOWER (i))
4261         || toupper (i) != TOUPPER (i))
4262       return 2;
4263   return 0;
4264 }
4265 _ACEOF
4266 rm -f conftest$ac_exeext
4267 if { (ac_try="$ac_link"
4268 case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273   (eval "$ac_link") 2>&5
4274   ac_status=$?
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4277   { (case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282   (eval "$ac_try") 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; }; then
4286   :
4287 else
4288   echo "$as_me: program exited with status $ac_status" >&5
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 ( exit $ac_status )
4293 ac_cv_header_stdc=no
4294 fi
4295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4296 fi
4297
4298
4299 fi
4300 fi
4301 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4303 if test $ac_cv_header_stdc = yes; then
4304
4305 cat >>confdefs.h <<\_ACEOF
4306 #define STDC_HEADERS 1
4307 _ACEOF
4308
4309 fi
4310
4311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322                   inttypes.h stdint.h unistd.h
4323 do
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 $ac_includes_default
4337
4338 #include <$ac_header>
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4342 case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347   (eval "$ac_compile") 2>conftest.er1
4348   ac_status=$?
4349   grep -v '^ *+' conftest.er1 >conftest.err
4350   rm -f conftest.er1
4351   cat conftest.err >&5
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); } &&
4354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4355   { (case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360   (eval "$ac_try") 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; } &&
4364          { ac_try='test -s conftest.$ac_objext'
4365   { (case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370   (eval "$ac_try") 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   eval "$as_ac_Header=yes"
4375 else
4376   echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379         eval "$as_ac_Header=no"
4380 fi
4381
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 fi
4384 ac_res=`eval echo '${'$as_ac_Header'}'`
4385                { echo "$as_me:$LINENO: result: $ac_res" >&5
4386 echo "${ECHO_T}$ac_res" >&6; }
4387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4388   cat >>confdefs.h <<_ACEOF
4389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4390 _ACEOF
4391
4392 fi
4393
4394 done
4395
4396
4397 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4398 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4399 if test "${ac_cv_c_bigendian+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   # See if sys/param.h defines the BYTE_ORDER macro.
4403 cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h.  */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h.  */
4409 #include <sys/types.h>
4410 #include <sys/param.h>
4411
4412 int
4413 main ()
4414 {
4415 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4416  bogus endian macros
4417 #endif
4418
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext
4424 if { (ac_try="$ac_compile"
4425 case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430   (eval "$ac_compile") 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } &&
4437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4438   { (case "(($ac_try" in
4439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440   *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443   (eval "$ac_try") 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; } &&
4447          { ac_try='test -s conftest.$ac_objext'
4448   { (case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453   (eval "$ac_try") 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; }; then
4457   # It does; now see whether it defined to BIG_ENDIAN or not.
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 #include <sys/types.h>
4465 #include <sys/param.h>
4466
4467 int
4468 main ()
4469 {
4470 #if BYTE_ORDER != BIG_ENDIAN
4471  not big endian
4472 #endif
4473
4474   ;
4475   return 0;
4476 }
4477 _ACEOF
4478 rm -f conftest.$ac_objext
4479 if { (ac_try="$ac_compile"
4480 case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485   (eval "$ac_compile") 2>conftest.er1
4486   ac_status=$?
4487   grep -v '^ *+' conftest.er1 >conftest.err
4488   rm -f conftest.er1
4489   cat conftest.err >&5
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); } &&
4492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4493   { (case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498   (eval "$ac_try") 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; } &&
4502          { ac_try='test -s conftest.$ac_objext'
4503   { (case "(($ac_try" in
4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505   *) ac_try_echo=$ac_try;;
4506 esac
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508   (eval "$ac_try") 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; }; then
4512   ac_cv_c_bigendian=yes
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517         ac_cv_c_bigendian=no
4518 fi
4519
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 else
4522   echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525         # It does not; compile a test program.
4526 if test "$cross_compiling" = yes; then
4527   # try to guess the endianness by grepping values into an object file
4528   ac_cv_c_bigendian=unknown
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4536 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4537 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4538 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4539 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4540 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4541 int
4542 main ()
4543 {
4544  _ascii (); _ebcdic ();
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4551 case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556   (eval "$ac_compile") 2>conftest.er1
4557   ac_status=$?
4558   grep -v '^ *+' conftest.er1 >conftest.err
4559   rm -f conftest.er1
4560   cat conftest.err >&5
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); } &&
4563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4564   { (case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569   (eval "$ac_try") 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; } &&
4573          { ac_try='test -s conftest.$ac_objext'
4574   { (case "(($ac_try" in
4575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576   *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579   (eval "$ac_try") 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4584   ac_cv_c_bigendian=yes
4585 fi
4586 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4587   if test "$ac_cv_c_bigendian" = unknown; then
4588     ac_cv_c_bigendian=no
4589   else
4590     # finding both strings is unlikely to happen, but who knows?
4591     ac_cv_c_bigendian=unknown
4592   fi
4593 fi
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598
4599 fi
4600
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 else
4603   cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h.  */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h.  */
4609 $ac_includes_default
4610 int
4611 main ()
4612 {
4613
4614   /* Are we little or big endian?  From Harbison&Steele.  */
4615   union
4616   {
4617     long int l;
4618     char c[sizeof (long int)];
4619   } u;
4620   u.l = 1;
4621   return u.c[sizeof (long int) - 1] == 1;
4622
4623   ;
4624   return 0;
4625 }
4626 _ACEOF
4627 rm -f conftest$ac_exeext
4628 if { (ac_try="$ac_link"
4629 case "(($ac_try" in
4630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631   *) ac_try_echo=$ac_try;;
4632 esac
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634   (eval "$ac_link") 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4638   { (case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_try") 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }; }; then
4647   ac_cv_c_bigendian=no
4648 else
4649   echo "$as_me: program exited with status $ac_status" >&5
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653 ( exit $ac_status )
4654 ac_cv_c_bigendian=yes
4655 fi
4656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4657 fi
4658
4659
4660 fi
4661
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 fi
4664 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4665 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4666 case $ac_cv_c_bigendian in
4667   yes)
4668     ENDIAN=big
4669  ;;
4670   no)
4671     ENDIAN=little
4672  ;;
4673   *)
4674     { { echo "$as_me:$LINENO: error: unknown endianness
4675 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4676 echo "$as_me: error: unknown endianness
4677 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4678    { (exit 1); exit 1; }; } ;;
4679 esac
4680
4681
4682 if test "$cross_compiling" = yes; then
4683   LLVM_CROSS_COMPILING=1
4684
4685
4686 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4687 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4688 if test "${ac_cv_build_exeext+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4692   ac_cv_build_exeext=.exe
4693 else
4694   ac_build_prefix=${build_alias}-
4695
4696   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4697 set dummy ${ac_build_prefix}gcc; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   if test -n "$BUILD_CC"; then
4704   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4713     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 BUILD_CC=$ac_cv_prog_BUILD_CC
4724 if test -n "$BUILD_CC"; then
4725   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4726 echo "${ECHO_T}$BUILD_CC" >&6; }
4727 else
4728   { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4730 fi
4731
4732
4733   if test -z "$BUILD_CC"; then
4734      # Extract the first word of "gcc", so it can be a program name with args.
4735 set dummy gcc; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   if test -n "$BUILD_CC"; then
4742   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749   for ac_exec_ext in '' $ac_executable_extensions; do
4750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4751     ac_cv_prog_BUILD_CC="gcc"
4752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 BUILD_CC=$ac_cv_prog_BUILD_CC
4762 if test -n "$BUILD_CC"; then
4763   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4764 echo "${ECHO_T}$BUILD_CC" >&6; }
4765 else
4766   { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4768 fi
4769
4770
4771      if test -z "$BUILD_CC"; then
4772        # Extract the first word of "cc", so it can be a program name with args.
4773 set dummy cc; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   if test -n "$BUILD_CC"; then
4780   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4781 else
4782   ac_prog_rejected=no
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4791        ac_prog_rejected=yes
4792        continue
4793      fi
4794     ac_cv_prog_BUILD_CC="cc"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802 if test $ac_prog_rejected = yes; then
4803   # We found a bogon in the path, so make sure we never use it.
4804   set dummy $ac_cv_prog_BUILD_CC
4805   shift
4806   if test $# != 0; then
4807     # We chose a different compiler from the bogus one.
4808     # However, it has the same basename, so the bogon will be chosen
4809     # first if we set BUILD_CC to just the basename; use the full file name.
4810     shift
4811     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4812   fi
4813 fi
4814 fi
4815 fi
4816 BUILD_CC=$ac_cv_prog_BUILD_CC
4817 if test -n "$BUILD_CC"; then
4818   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4819 echo "${ECHO_T}$BUILD_CC" >&6; }
4820 else
4821   { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4823 fi
4824
4825
4826      fi
4827   fi
4828   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4829 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4830    { (exit 1); exit 1; }; }
4831   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4832   rm -f conftest*
4833   echo 'int main () { return 0; }' > conftest.$ac_ext
4834   ac_cv_build_exeext=
4835   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4836   (eval $ac_build_link) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); }; then
4840     for file in conftest.*; do
4841       case $file in
4842       *.c | *.o | *.obj | *.dSYM) ;;
4843       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4844       esac
4845     done
4846   else
4847     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4848 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4849    { (exit 1); exit 1; }; }
4850   fi
4851   rm -f conftest*
4852   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4853 fi
4854 fi
4855
4856 BUILD_EXEEXT=""
4857 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4858 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4859 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4860 ac_build_exeext=$BUILD_EXEEXT
4861
4862   ac_build_prefix=${build_alias}-
4863   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4864 set dummy ${ac_build_prefix}g++; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4868   echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870   if test -n "$BUILD_CXX"; then
4871   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878   for ac_exec_ext in '' $ac_executable_extensions; do
4879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4880     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4891 if test -n "$BUILD_CXX"; then
4892   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4893 echo "${ECHO_T}$BUILD_CXX" >&6; }
4894 else
4895   { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4897 fi
4898
4899
4900   if test -z "$BUILD_CXX"; then
4901      # Extract the first word of "g++", so it can be a program name with args.
4902 set dummy g++; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   if test -n "$BUILD_CXX"; then
4909   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918     ac_cv_prog_BUILD_CXX="g++"
4919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 fi
4927 fi
4928 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4929 if test -n "$BUILD_CXX"; then
4930   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4931 echo "${ECHO_T}$BUILD_CXX" >&6; }
4932 else
4933   { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4935 fi
4936
4937
4938      if test -z "$BUILD_CXX"; then
4939        # Extract the first word of "c++", so it can be a program name with args.
4940 set dummy c++; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   if test -n "$BUILD_CXX"; then
4947   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4948 else
4949   ac_prog_rejected=no
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955   for ac_exec_ext in '' $ac_executable_extensions; do
4956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4957     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4958        ac_prog_rejected=yes
4959        continue
4960      fi
4961     ac_cv_prog_BUILD_CXX="c++"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969 if test $ac_prog_rejected = yes; then
4970   # We found a bogon in the path, so make sure we never use it.
4971   set dummy $ac_cv_prog_BUILD_CXX
4972   shift
4973   if test $# != 0; then
4974     # We chose a different compiler from the bogus one.
4975     # However, it has the same basename, so the bogon will be chosen
4976     # first if we set BUILD_CXX to just the basename; use the full file name.
4977     shift
4978     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4979   fi
4980 fi
4981 fi
4982 fi
4983 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4984 if test -n "$BUILD_CXX"; then
4985   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4986 echo "${ECHO_T}$BUILD_CXX" >&6; }
4987 else
4988   { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4990 fi
4991
4992
4993      fi
4994   fi
4995 else
4996   LLVM_CROSS_COMPILING=0
4997
4998 fi
4999
5000 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5001   cvsbuild="yes"
5002   optimize="no"
5003   CVSBUILD=CVSBUILD=1
5004
5005 else
5006   cvsbuild="no"
5007   optimize="yes"
5008 fi
5009
5010
5011 # Check whether --enable-libcpp was given.
5012 if test "${enable_libcpp+set}" = set; then
5013   enableval=$enable_libcpp;
5014 else
5015   enableval=default
5016 fi
5017
5018 case "$enableval" in
5019   yes) ENABLE_LIBCPP=1
5020  ;;
5021   no)  ENABLE_LIBCPP=0
5022  ;;
5023   default) ENABLE_LIBCPP=0
5024 ;;
5025   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5026 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5027    { (exit 1); exit 1; }; } ;;
5028 esac
5029
5030 # Check whether --enable-cxx11 was given.
5031 if test "${enable_cxx11+set}" = set; then
5032   enableval=$enable_cxx11;
5033 else
5034   enableval=default
5035 fi
5036
5037 case "$enableval" in
5038   yes) ENABLE_CXX11=1
5039  ;;
5040   no)  ENABLE_CXX11=0
5041  ;;
5042   default) ENABLE_CXX11=0
5043 ;;
5044   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5045 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5046    { (exit 1); exit 1; }; } ;;
5047 esac
5048
5049 # Check whether --enable-optimized was given.
5050 if test "${enable_optimized+set}" = set; then
5051   enableval=$enable_optimized;
5052 else
5053   enableval=$optimize
5054 fi
5055
5056 if test ${enableval} = "no" ; then
5057   ENABLE_OPTIMIZED=
5058
5059 else
5060   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5061
5062 fi
5063
5064 # Check whether --enable-profiling was given.
5065 if test "${enable_profiling+set}" = set; then
5066   enableval=$enable_profiling;
5067 else
5068   enableval="no"
5069 fi
5070
5071 if test ${enableval} = "no" ; then
5072   ENABLE_PROFILING=
5073
5074 else
5075   ENABLE_PROFILING=ENABLE_PROFILING=1
5076
5077 fi
5078
5079 # Check whether --enable-assertions was given.
5080 if test "${enable_assertions+set}" = set; then
5081   enableval=$enable_assertions;
5082 else
5083   enableval="yes"
5084 fi
5085
5086 if test ${enableval} = "yes" ; then
5087   DISABLE_ASSERTIONS=
5088
5089 else
5090   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5091
5092 fi
5093
5094 # Check whether --enable-werror was given.
5095 if test "${enable_werror+set}" = set; then
5096   enableval=$enable_werror;
5097 else
5098   enableval="no"
5099 fi
5100
5101 case "$enableval" in
5102   yes) ENABLE_WERROR=1
5103  ;;
5104   no)  ENABLE_WERROR=0
5105  ;;
5106   default) ENABLE_WERROR=0
5107 ;;
5108   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5109 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5110    { (exit 1); exit 1; }; } ;;
5111 esac
5112
5113 # Check whether --enable-expensive-checks was given.
5114 if test "${enable_expensive_checks+set}" = set; then
5115   enableval=$enable_expensive_checks;
5116 else
5117   enableval="no"
5118 fi
5119
5120 if test ${enableval} = "yes" ; then
5121   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5122
5123   EXPENSIVE_CHECKS=yes
5124
5125 else
5126   ENABLE_EXPENSIVE_CHECKS=
5127
5128   EXPENSIVE_CHECKS=no
5129
5130 fi
5131
5132 # Check whether --enable-debug-runtime was given.
5133 if test "${enable_debug_runtime+set}" = set; then
5134   enableval=$enable_debug_runtime;
5135 else
5136   enableval=no
5137 fi
5138
5139 if test ${enableval} = "no" ; then
5140   DEBUG_RUNTIME=
5141
5142 else
5143   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5144
5145 fi
5146
5147 # Check whether --enable-debug-symbols was given.
5148 if test "${enable_debug_symbols+set}" = set; then
5149   enableval=$enable_debug_symbols;
5150 else
5151   enableval=no
5152 fi
5153
5154 if test ${enableval} = "no" ; then
5155   DEBUG_SYMBOLS=
5156
5157 else
5158   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5159
5160 fi
5161
5162 # Check whether --enable-keep-symbols was given.
5163 if test "${enable_keep_symbols+set}" = set; then
5164   enableval=$enable_keep_symbols;
5165 else
5166   enableval=no
5167 fi
5168
5169 if test ${enableval} = "no" ; then
5170   KEEP_SYMBOLS=
5171
5172 else
5173   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5174
5175 fi
5176
5177 # Check whether --enable-jit was given.
5178 if test "${enable_jit+set}" = set; then
5179   enableval=$enable_jit;
5180 else
5181   enableval=default
5182 fi
5183
5184 if test ${enableval} = "no"
5185 then
5186   JIT=
5187
5188 else
5189   case "$llvm_cv_target_arch" in
5190     x86)         TARGET_HAS_JIT=1
5191  ;;
5192     Sparc)       TARGET_HAS_JIT=0
5193  ;;
5194     PowerPC)     TARGET_HAS_JIT=1
5195  ;;
5196     x86_64)      TARGET_HAS_JIT=1
5197  ;;
5198     ARM)         TARGET_HAS_JIT=1
5199  ;;
5200     Mips)        TARGET_HAS_JIT=1
5201  ;;
5202     XCore)       TARGET_HAS_JIT=0
5203  ;;
5204     MSP430)      TARGET_HAS_JIT=0
5205  ;;
5206     Hexagon)     TARGET_HAS_JIT=0
5207  ;;
5208     MBlaze)      TARGET_HAS_JIT=0
5209  ;;
5210     NVPTX)       TARGET_HAS_JIT=0
5211  ;;
5212     *)           TARGET_HAS_JIT=0
5213  ;;
5214   esac
5215 fi
5216
5217 # Check whether --enable-docs was given.
5218 if test "${enable_docs+set}" = set; then
5219   enableval=$enable_docs;
5220 else
5221   enableval=default
5222 fi
5223
5224 case "$enableval" in
5225   yes) ENABLE_DOCS=1
5226  ;;
5227   no)  ENABLE_DOCS=0
5228  ;;
5229   default) ENABLE_DOCS=1
5230  ;;
5231   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5233    { (exit 1); exit 1; }; } ;;
5234 esac
5235
5236 # Check whether --enable-doxygen was given.
5237 if test "${enable_doxygen+set}" = set; then
5238   enableval=$enable_doxygen;
5239 else
5240   enableval=default
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_DOXYGEN=1
5245  ;;
5246   no)  ENABLE_DOXYGEN=0
5247  ;;
5248   default) ENABLE_DOXYGEN=0
5249  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 # Check whether --enable-threads was given.
5256 if test "${enable_threads+set}" = set; then
5257   enableval=$enable_threads;
5258 else
5259   enableval=default
5260 fi
5261
5262 case "$enableval" in
5263   yes) LLVM_ENABLE_THREADS=1
5264  ;;
5265   no)  LLVM_ENABLE_THREADS=0
5266  ;;
5267   default) LLVM_ENABLE_THREADS=1
5268  ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274 cat >>confdefs.h <<_ACEOF
5275 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5276 _ACEOF
5277
5278
5279 # Check whether --enable-pthreads was given.
5280 if test "${enable_pthreads+set}" = set; then
5281   enableval=$enable_pthreads;
5282 else
5283   enableval=default
5284 fi
5285
5286 case "$enableval" in
5287   yes) ENABLE_PTHREADS=1
5288  ;;
5289   no)  ENABLE_PTHREADS=0
5290  ;;
5291   default) ENABLE_PTHREADS=1
5292  ;;
5293   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5295    { (exit 1); exit 1; }; } ;;
5296 esac
5297
5298 # Check whether --enable-pic was given.
5299 if test "${enable_pic+set}" = set; then
5300   enableval=$enable_pic;
5301 else
5302   enableval=default
5303 fi
5304
5305 case "$enableval" in
5306   yes) ENABLE_PIC=1
5307  ;;
5308   no)  ENABLE_PIC=0
5309  ;;
5310   default) ENABLE_PIC=1
5311  ;;
5312   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5313 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5314    { (exit 1); exit 1; }; } ;;
5315 esac
5316
5317 cat >>confdefs.h <<_ACEOF
5318 #define ENABLE_PIC $ENABLE_PIC
5319 _ACEOF
5320
5321
5322 # Check whether --enable-shared was given.
5323 if test "${enable_shared+set}" = set; then
5324   enableval=$enable_shared;
5325 else
5326   enableval=default
5327 fi
5328
5329 case "$enableval" in
5330   yes) ENABLE_SHARED=1
5331  ;;
5332   no)  ENABLE_SHARED=0
5333  ;;
5334   default) ENABLE_SHARED=0
5335  ;;
5336   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5337 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5338    { (exit 1); exit 1; }; } ;;
5339 esac
5340
5341 # Check whether --enable-embed-stdcxx was given.
5342 if test "${enable_embed_stdcxx+set}" = set; then
5343   enableval=$enable_embed_stdcxx;
5344 else
5345   enableval=default
5346 fi
5347
5348 case "$enableval" in
5349   yes) ENABLE_EMBED_STDCXX=1
5350  ;;
5351   no)  ENABLE_EMBED_STDCXX=0
5352  ;;
5353   default) ENABLE_EMBED_STDCXX=0
5354  ;;
5355   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5356 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5357    { (exit 1); exit 1; }; } ;;
5358 esac
5359
5360 # Check whether --enable-timestamps was given.
5361 if test "${enable_timestamps+set}" = set; then
5362   enableval=$enable_timestamps;
5363 else
5364   enableval=default
5365 fi
5366
5367 case "$enableval" in
5368   yes) ENABLE_TIMESTAMPS=1
5369  ;;
5370   no)  ENABLE_TIMESTAMPS=0
5371  ;;
5372   default) ENABLE_TIMESTAMPS=1
5373  ;;
5374   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5375 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5376    { (exit 1); exit 1; }; } ;;
5377 esac
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5381 _ACEOF
5382
5383
5384
5385 # Check whether --enable-backtraces was given.
5386 if test "${enable_backtraces+set}" = set; then
5387   enableval=$enable_backtraces;
5388 else
5389   enableval=default
5390 fi
5391
5392 case "$enableval" in
5393   yes) ENABLE_TIMESTAMPS=1
5394  ;;
5395   no)  ENABLE_TIMESTAMPS=0
5396  ;;
5397   default) ENABLE_TIMESTAMPS=1
5398  ;;
5399   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5400 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5401    { (exit 1); exit 1; }; } ;;
5402 esac
5403
5404 cat >>confdefs.h <<_ACEOF
5405 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5406 _ACEOF
5407
5408
5409 TARGETS_TO_BUILD=""
5410 # Check whether --enable-targets was given.
5411 if test "${enable_targets+set}" = set; then
5412   enableval=$enable_targets;
5413 else
5414   enableval=all
5415 fi
5416
5417 if test "$enableval" = host-only ; then
5418   enableval=host
5419 fi
5420 case "$enableval" in
5421   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5422   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5423       case "$a_target" in
5424         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5425         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5426         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5427         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5428         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5429         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5430         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5431         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5432         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5433         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5434         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5435         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5436         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5437         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5438         host) case "$llvm_cv_target_arch" in
5439             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5440             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5441             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5442             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5443             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5444             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5445             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5446             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5447             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5448             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5449             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5450             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5451             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5452 echo "$as_me: error: Can not set target to build" >&2;}
5453    { (exit 1); exit 1; }; } ;;
5454           esac ;;
5455         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5456 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5457    { (exit 1); exit 1; }; } ;;
5458       esac
5459   done
5460   ;;
5461 esac
5462
5463 # Check whether --enable-experimental-targets was given.
5464 if test "${enable_experimental_targets+set}" = set; then
5465   enableval=$enable_experimental_targets;
5466 else
5467   enableval=disable
5468 fi
5469
5470
5471 if test ${enableval} != "disable"
5472 then
5473   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5474 fi
5475
5476 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5477
5478
5479 for a_target in $TARGETS_TO_BUILD; do
5480   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5481
5482 cat >>confdefs.h <<_ACEOF
5483 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5484 _ACEOF
5485
5486     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5487     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5488     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5489     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5490     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5491       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5492     fi
5493     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5494       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5495     fi
5496
5497 cat >>confdefs.h <<_ACEOF
5498 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5499 _ACEOF
5500
5501
5502 cat >>confdefs.h <<_ACEOF
5503 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5504 _ACEOF
5505
5506
5507 cat >>confdefs.h <<_ACEOF
5508 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5509 _ACEOF
5510
5511
5512 cat >>confdefs.h <<_ACEOF
5513 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5514 _ACEOF
5515
5516     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5517
5518 cat >>confdefs.h <<_ACEOF
5519 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5520 _ACEOF
5521
5522     fi
5523     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5524
5525 cat >>confdefs.h <<_ACEOF
5526 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5527 _ACEOF
5528
5529     fi
5530   fi
5531 done
5532
5533 LLVM_ENUM_TARGETS=""
5534 LLVM_ENUM_ASM_PRINTERS=""
5535 LLVM_ENUM_ASM_PARSERS=""
5536 LLVM_ENUM_DISASSEMBLERS=""
5537 for target_to_build in $TARGETS_TO_BUILD; do
5538   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5539   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5540     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5541   fi
5542   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5543     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5544   fi
5545   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5546     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5547   fi
5548 done
5549
5550
5551
5552
5553
5554
5555 # Check whether --with-optimize-option was given.
5556 if test "${with_optimize_option+set}" = set; then
5557   withval=$with_optimize_option;
5558 else
5559   withval=default
5560 fi
5561
5562 { echo "$as_me:$LINENO: checking optimization flags" >&5
5563 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5564 case "$withval" in
5565   default)
5566     case "$llvm_cv_os_type" in
5567     FreeBSD) optimize_option=-O2 ;;
5568     MingW) optimize_option=-O2 ;;
5569     *)     optimize_option=-O3 ;;
5570     esac ;;
5571   *) optimize_option="$withval" ;;
5572 esac
5573 OPTIMIZE_OPTION=$optimize_option
5574
5575 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5576 echo "${ECHO_T}$optimize_option" >&6; }
5577
5578
5579 # Check whether --with-extra-options was given.
5580 if test "${with_extra_options+set}" = set; then
5581   withval=$with_extra_options;
5582 else
5583   withval=default
5584 fi
5585
5586 case "$withval" in
5587   default) EXTRA_OPTIONS= ;;
5588   *) EXTRA_OPTIONS=$withval ;;
5589 esac
5590 EXTRA_OPTIONS=$EXTRA_OPTIONS
5591
5592
5593
5594 # Check whether --with-extra-ld-options was given.
5595 if test "${with_extra_ld_options+set}" = set; then
5596   withval=$with_extra_ld_options;
5597 else
5598   withval=default
5599 fi
5600
5601 case "$withval" in
5602   default) EXTRA_LD_OPTIONS= ;;
5603   *) EXTRA_LD_OPTIONS=$withval ;;
5604 esac
5605 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5606
5607
5608 # Check whether --enable-bindings was given.
5609 if test "${enable_bindings+set}" = set; then
5610   enableval=$enable_bindings;
5611 else
5612   enableval=default
5613 fi
5614
5615 BINDINGS_TO_BUILD=""
5616 case "$enableval" in
5617   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5618   all ) BINDINGS_TO_BUILD="ocaml" ;;
5619   none | no) BINDINGS_TO_BUILD="" ;;
5620   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5621       case "$a_binding" in
5622         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5623         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5624 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5625    { (exit 1); exit 1; }; } ;;
5626       esac
5627   done
5628   ;;
5629 esac
5630
5631
5632 # Check whether --with-ocaml-libdir was given.
5633 if test "${with_ocaml_libdir+set}" = set; then
5634   withval=$with_ocaml_libdir;
5635 else
5636   withval=auto
5637 fi
5638
5639 case "$withval" in
5640   auto) with_ocaml_libdir="$withval" ;;
5641   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5642   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5643 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5644    { (exit 1); exit 1; }; } ;;
5645 esac
5646
5647
5648 # Check whether --with-clang-srcdir was given.
5649 if test "${with_clang_srcdir+set}" = set; then
5650   withval=$with_clang_srcdir;
5651 else
5652   withval="-"
5653 fi
5654
5655 case "$withval" in
5656   -) clang_src_root="" ;;
5657   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5658   *) clang_src_root="$ac_pwd/$withval" ;;
5659 esac
5660 CLANG_SRC_ROOT=$clang_src_root
5661
5662
5663
5664 # Check whether --with-clang-resource-dir was given.
5665 if test "${with_clang_resource_dir+set}" = set; then
5666   withval=$with_clang_resource_dir;
5667 else
5668   withval=""
5669 fi
5670
5671
5672 cat >>confdefs.h <<_ACEOF
5673 #define CLANG_RESOURCE_DIR "$withval"
5674 _ACEOF
5675
5676
5677
5678 # Check whether --with-c-include-dirs was given.
5679 if test "${with_c_include_dirs+set}" = set; then
5680   withval=$with_c_include_dirs;
5681 else
5682   withval=""
5683 fi
5684
5685
5686 cat >>confdefs.h <<_ACEOF
5687 #define C_INCLUDE_DIRS "$withval"
5688 _ACEOF
5689
5690
5691 # Clang normally uses the system c++ headers and libraries. With this option,
5692 # clang will use the ones provided by a gcc installation instead. This option should
5693 # be passed the same value that was used with --prefix when configuring gcc.
5694
5695 # Check whether --with-gcc-toolchain was given.
5696 if test "${with_gcc_toolchain+set}" = set; then
5697   withval=$with_gcc_toolchain;
5698 else
5699   withval=""
5700 fi
5701
5702
5703 cat >>confdefs.h <<_ACEOF
5704 #define GCC_INSTALL_PREFIX "$withval"
5705 _ACEOF
5706
5707
5708
5709 # Check whether --with-default-sysroot was given.
5710 if test "${with_default_sysroot+set}" = set; then
5711   withval=$with_default_sysroot;
5712 else
5713   withval=""
5714 fi
5715
5716
5717 cat >>confdefs.h <<_ACEOF
5718 #define DEFAULT_SYSROOT "$withval"
5719 _ACEOF
5720
5721
5722
5723 # Check whether --with-binutils-include was given.
5724 if test "${with_binutils_include+set}" = set; then
5725   withval=$with_binutils_include;
5726 else
5727   withval=default
5728 fi
5729
5730 case "$withval" in
5731   default) WITH_BINUTILS_INCDIR=default ;;
5732   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5733   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5734 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5735    { (exit 1); exit 1; }; } ;;
5736 esac
5737 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5738   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5739
5740   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5741      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5742      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5743 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5744    { (exit 1); exit 1; }; };
5745   fi
5746 fi
5747
5748
5749 # Check whether --with-bug-report-url was given.
5750 if test "${with_bug_report_url+set}" = set; then
5751   withval=$with_bug_report_url;
5752 else
5753   withval="http://llvm.org/bugs/"
5754 fi
5755
5756
5757 cat >>confdefs.h <<_ACEOF
5758 #define BUG_REPORT_URL "$withval"
5759 _ACEOF
5760
5761
5762 # Check whether --enable-libffi was given.
5763 if test "${enable_libffi+set}" = set; then
5764   enableval=$enable_libffi; case "$enableval" in
5765     yes) llvm_cv_enable_libffi="yes" ;;
5766     no)  llvm_cv_enable_libffi="no"  ;;
5767     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5768 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5769    { (exit 1); exit 1; }; } ;;
5770   esac
5771 else
5772   llvm_cv_enable_libffi=no
5773 fi
5774
5775
5776
5777 # Check whether --with-internal-prefix was given.
5778 if test "${with_internal_prefix+set}" = set; then
5779   withval=$with_internal_prefix;
5780 else
5781   withval=""
5782 fi
5783
5784 INTERNAL_PREFIX=$withval
5785
5786
5787
5788 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5789 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5790 if test "${lt_cv_path_NM+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   if test -n "$NM"; then
5794   # Let the user override the test.
5795   lt_cv_path_NM="$NM"
5796 else
5797   lt_nm_to_check="${ac_tool_prefix}nm"
5798   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5799     lt_nm_to_check="$lt_nm_to_check nm"
5800   fi
5801   for lt_tmp_nm in $lt_nm_to_check; do
5802     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5803     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5804       IFS="$lt_save_ifs"
5805       test -z "$ac_dir" && ac_dir=.
5806       tmp_nm="$ac_dir/$lt_tmp_nm"
5807       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5808         # Check to see if the nm accepts a BSD-compat flag.
5809         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5810         #   nm: unknown option "B" ignored
5811         # Tru64's nm complains that /dev/null is an invalid object file
5812         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5813         */dev/null* | *'Invalid file or object type'*)
5814           lt_cv_path_NM="$tmp_nm -B"
5815           break
5816           ;;
5817         *)
5818           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5819           */dev/null*)
5820             lt_cv_path_NM="$tmp_nm -p"
5821             break
5822             ;;
5823           *)
5824             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5825             continue # so that we can try to find one that supports BSD flags
5826             ;;
5827           esac
5828           ;;
5829         esac
5830       fi
5831     done
5832     IFS="$lt_save_ifs"
5833   done
5834   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5835 fi
5836 fi
5837 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5838 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5839 NM="$lt_cv_path_NM"
5840
5841
5842
5843 { echo "$as_me:$LINENO: checking for GNU make" >&5
5844 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5845 if test "${llvm_cv_gnu_make_command+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   llvm_cv_gnu_make_command=''
5849  for a in "$MAKE" make gmake gnumake ; do
5850   if test -z "$a" ; then continue ; fi ;
5851   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5852   then
5853    llvm_cv_gnu_make_command=$a ;
5854    break;
5855   fi
5856  done
5857 fi
5858 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5859 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5860  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5861    ifGNUmake='' ;
5862  else
5863    ifGNUmake='#' ;
5864    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5865 echo "${ECHO_T}\"Not found\"" >&6; };
5866  fi
5867
5868
5869 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5870 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5871 LN_S=$as_ln_s
5872 if test "$LN_S" = "ln -s"; then
5873   { echo "$as_me:$LINENO: result: yes" >&5
5874 echo "${ECHO_T}yes" >&6; }
5875 else
5876   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5877 echo "${ECHO_T}no, using $LN_S" >&6; }
5878 fi
5879
5880 # Extract the first word of "cmp", so it can be a program name with args.
5881 set dummy cmp; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_path_CMP+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   case $CMP in
5888   [\\/]* | ?:[\\/]*)
5889   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5890   ;;
5891   *)
5892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897   for ac_exec_ext in '' $ac_executable_extensions; do
5898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5899     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901     break 2
5902   fi
5903 done
5904 done
5905 IFS=$as_save_IFS
5906
5907   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5908   ;;
5909 esac
5910 fi
5911 CMP=$ac_cv_path_CMP
5912 if test -n "$CMP"; then
5913   { echo "$as_me:$LINENO: result: $CMP" >&5
5914 echo "${ECHO_T}$CMP" >&6; }
5915 else
5916   { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5918 fi
5919
5920
5921 # Extract the first word of "cp", so it can be a program name with args.
5922 set dummy cp; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_CP+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   case $CP in
5929   [\\/]* | ?:[\\/]*)
5930   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5931   ;;
5932   *)
5933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938   for ac_exec_ext in '' $ac_executable_extensions; do
5939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5940     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5949   ;;
5950 esac
5951 fi
5952 CP=$ac_cv_path_CP
5953 if test -n "$CP"; then
5954   { echo "$as_me:$LINENO: result: $CP" >&5
5955 echo "${ECHO_T}$CP" >&6; }
5956 else
5957   { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5959 fi
5960
5961
5962 # Extract the first word of "date", so it can be a program name with args.
5963 set dummy date; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_path_DATE+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   case $DATE in
5970   [\\/]* | ?:[\\/]*)
5971   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5972   ;;
5973   *)
5974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977   IFS=$as_save_IFS
5978   test -z "$as_dir" && as_dir=.
5979   for ac_exec_ext in '' $ac_executable_extensions; do
5980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983     break 2
5984   fi
5985 done
5986 done
5987 IFS=$as_save_IFS
5988
5989   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5990   ;;
5991 esac
5992 fi
5993 DATE=$ac_cv_path_DATE
5994 if test -n "$DATE"; then
5995   { echo "$as_me:$LINENO: result: $DATE" >&5
5996 echo "${ECHO_T}$DATE" >&6; }
5997 else
5998   { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6000 fi
6001
6002
6003 # Extract the first word of "find", so it can be a program name with args.
6004 set dummy find; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_path_FIND+set}" = set; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   case $FIND in
6011   [\\/]* | ?:[\\/]*)
6012   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6013   ;;
6014   *)
6015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020   for ac_exec_ext in '' $ac_executable_extensions; do
6021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6022     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024     break 2
6025   fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6031   ;;
6032 esac
6033 fi
6034 FIND=$ac_cv_path_FIND
6035 if test -n "$FIND"; then
6036   { echo "$as_me:$LINENO: result: $FIND" >&5
6037 echo "${ECHO_T}$FIND" >&6; }
6038 else
6039   { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6041 fi
6042
6043
6044 # Extract the first word of "grep", so it can be a program name with args.
6045 set dummy grep; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048 if test "${ac_cv_path_GREP+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   case $GREP in
6052   [\\/]* | ?:[\\/]*)
6053   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6054   ;;
6055   *)
6056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6072   ;;
6073 esac
6074 fi
6075 GREP=$ac_cv_path_GREP
6076 if test -n "$GREP"; then
6077   { echo "$as_me:$LINENO: result: $GREP" >&5
6078 echo "${ECHO_T}$GREP" >&6; }
6079 else
6080   { echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6; }
6082 fi
6083
6084
6085 # Extract the first word of "mkdir", so it can be a program name with args.
6086 set dummy mkdir; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_path_MKDIR+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   case $MKDIR in
6093   [\\/]* | ?:[\\/]*)
6094   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6095   ;;
6096   *)
6097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102   for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109 done
6110 IFS=$as_save_IFS
6111
6112   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6113   ;;
6114 esac
6115 fi
6116 MKDIR=$ac_cv_path_MKDIR
6117 if test -n "$MKDIR"; then
6118   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6119 echo "${ECHO_T}$MKDIR" >&6; }
6120 else
6121   { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6123 fi
6124
6125
6126 # Extract the first word of "mv", so it can be a program name with args.
6127 set dummy mv; ac_word=$2
6128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6130 if test "${ac_cv_path_MV+set}" = set; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   case $MV in
6134   [\\/]* | ?:[\\/]*)
6135   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6136   ;;
6137   *)
6138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143   for ac_exec_ext in '' $ac_executable_extensions; do
6144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6145     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6154   ;;
6155 esac
6156 fi
6157 MV=$ac_cv_path_MV
6158 if test -n "$MV"; then
6159   { echo "$as_me:$LINENO: result: $MV" >&5
6160 echo "${ECHO_T}$MV" >&6; }
6161 else
6162   { echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6; }
6164 fi
6165
6166
6167 if test -n "$ac_tool_prefix"; then
6168   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6172 if test "${ac_cv_prog_RANLIB+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175   if test -n "$RANLIB"; then
6176   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181   IFS=$as_save_IFS
6182   test -z "$as_dir" && as_dir=.
6183   for ac_exec_ext in '' $ac_executable_extensions; do
6184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187     break 2
6188   fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 RANLIB=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6198 echo "${ECHO_T}$RANLIB" >&6; }
6199 else
6200   { echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6; }
6202 fi
6203
6204
6205 fi
6206 if test -z "$ac_cv_prog_RANLIB"; then
6207   ac_ct_RANLIB=$RANLIB
6208   # Extract the first word of "ranlib", so it can be a program name with args.
6209 set dummy ranlib; ac_word=$2
6210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   if test -n "$ac_ct_RANLIB"; then
6216   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221   IFS=$as_save_IFS
6222   test -z "$as_dir" && as_dir=.
6223   for ac_exec_ext in '' $ac_executable_extensions; do
6224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6225     ac_cv_prog_ac_ct_RANLIB="ranlib"
6226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227     break 2
6228   fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6236 if test -n "$ac_ct_RANLIB"; then
6237   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6238 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6239 else
6240   { echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6; }
6242 fi
6243
6244   if test "x$ac_ct_RANLIB" = x; then
6245     RANLIB=":"
6246   else
6247     case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6250 whose name does not start with the host triplet.  If you think this
6251 configuration is useful to you, please write to autoconf@gnu.org." >&5
6252 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6253 whose name does not start with the host triplet.  If you think this
6254 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6255 ac_tool_warned=yes ;;
6256 esac
6257     RANLIB=$ac_ct_RANLIB
6258   fi
6259 else
6260   RANLIB="$ac_cv_prog_RANLIB"
6261 fi
6262
6263 if test -n "$ac_tool_prefix"; then
6264   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}ar; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_AR+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271   if test -n "$AR"; then
6272   ac_cv_prog_AR="$AR" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277   IFS=$as_save_IFS
6278   test -z "$as_dir" && as_dir=.
6279   for ac_exec_ext in '' $ac_executable_extensions; do
6280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6281     ac_cv_prog_AR="${ac_tool_prefix}ar"
6282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283     break 2
6284   fi
6285 done
6286 done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 AR=$ac_cv_prog_AR
6292 if test -n "$AR"; then
6293   { echo "$as_me:$LINENO: result: $AR" >&5
6294 echo "${ECHO_T}$AR" >&6; }
6295 else
6296   { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6298 fi
6299
6300
6301 fi
6302 if test -z "$ac_cv_prog_AR"; then
6303   ac_ct_AR=$AR
6304   # Extract the first word of "ar", so it can be a program name with args.
6305 set dummy ar; ac_word=$2
6306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6309   echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311   if test -n "$ac_ct_AR"; then
6312   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319   for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_prog_ac_ct_AR="ar"
6322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6332 if test -n "$ac_ct_AR"; then
6333   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6334 echo "${ECHO_T}$ac_ct_AR" >&6; }
6335 else
6336   { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6338 fi
6339
6340   if test "x$ac_ct_AR" = x; then
6341     AR="false"
6342   else
6343     case $cross_compiling:$ac_tool_warned in
6344 yes:)
6345 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6346 whose name does not start with the host triplet.  If you think this
6347 configuration is useful to you, please write to autoconf@gnu.org." >&5
6348 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6349 whose name does not start with the host triplet.  If you think this
6350 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6351 ac_tool_warned=yes ;;
6352 esac
6353     AR=$ac_ct_AR
6354   fi
6355 else
6356   AR="$ac_cv_prog_AR"
6357 fi
6358
6359 # Extract the first word of "rm", so it can be a program name with args.
6360 set dummy rm; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_RM+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   case $RM in
6367   [\\/]* | ?:[\\/]*)
6368   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6369   ;;
6370   *)
6371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376   for ac_exec_ext in '' $ac_executable_extensions; do
6377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6387   ;;
6388 esac
6389 fi
6390 RM=$ac_cv_path_RM
6391 if test -n "$RM"; then
6392   { echo "$as_me:$LINENO: result: $RM" >&5
6393 echo "${ECHO_T}$RM" >&6; }
6394 else
6395   { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6397 fi
6398
6399
6400 # Extract the first word of "sed", so it can be a program name with args.
6401 set dummy sed; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_path_SED+set}" = set; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   case $SED in
6408   [\\/]* | ?:[\\/]*)
6409   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6410   ;;
6411   *)
6412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415   IFS=$as_save_IFS
6416   test -z "$as_dir" && as_dir=.
6417   for ac_exec_ext in '' $ac_executable_extensions; do
6418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421     break 2
6422   fi
6423 done
6424 done
6425 IFS=$as_save_IFS
6426
6427   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6428   ;;
6429 esac
6430 fi
6431 SED=$ac_cv_path_SED
6432 if test -n "$SED"; then
6433   { echo "$as_me:$LINENO: result: $SED" >&5
6434 echo "${ECHO_T}$SED" >&6; }
6435 else
6436   { echo "$as_me:$LINENO: result: no" >&5
6437 echo "${ECHO_T}no" >&6; }
6438 fi
6439
6440
6441 # Extract the first word of "tar", so it can be a program name with args.
6442 set dummy tar; ac_word=$2
6443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445 if test "${ac_cv_path_TAR+set}" = set; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   case $TAR in
6449   [\\/]* | ?:[\\/]*)
6450   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6451   ;;
6452   *)
6453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458   for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6469   ;;
6470 esac
6471 fi
6472 TAR=$ac_cv_path_TAR
6473 if test -n "$TAR"; then
6474   { echo "$as_me:$LINENO: result: $TAR" >&5
6475 echo "${ECHO_T}$TAR" >&6; }
6476 else
6477   { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6479 fi
6480
6481
6482 # Extract the first word of "pwd", so it can be a program name with args.
6483 set dummy pwd; ac_word=$2
6484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486 if test "${ac_cv_path_BINPWD+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   case $BINPWD in
6490   [\\/]* | ?:[\\/]*)
6491   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6492   ;;
6493   *)
6494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499   for ac_exec_ext in '' $ac_executable_extensions; do
6500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6510   ;;
6511 esac
6512 fi
6513 BINPWD=$ac_cv_path_BINPWD
6514 if test -n "$BINPWD"; then
6515   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6516 echo "${ECHO_T}$BINPWD" >&6; }
6517 else
6518   { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6520 fi
6521
6522
6523
6524 # Extract the first word of "Graphviz", so it can be a program name with args.
6525 set dummy Graphviz; ac_word=$2
6526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   case $GRAPHVIZ in
6532   [\\/]* | ?:[\\/]*)
6533   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6534   ;;
6535   *)
6536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541   for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6552   ;;
6553 esac
6554 fi
6555 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6556 if test -n "$GRAPHVIZ"; then
6557   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6558 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6559 else
6560   { echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6; }
6562 fi
6563
6564
6565 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6566
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_GRAPHVIZ 1
6569 _ACEOF
6570
6571     if test "$llvm_cv_os_type" = "MingW" ; then
6572     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6573   fi
6574
6575 cat >>confdefs.h <<_ACEOF
6576 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6577 _ACEOF
6578
6579 fi
6580 # Extract the first word of "dot", so it can be a program name with args.
6581 set dummy dot; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_DOT+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   case $DOT in
6588   [\\/]* | ?:[\\/]*)
6589   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6590   ;;
6591   *)
6592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595   IFS=$as_save_IFS
6596   test -z "$as_dir" && as_dir=.
6597   for ac_exec_ext in '' $ac_executable_extensions; do
6598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601     break 2
6602   fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6608   ;;
6609 esac
6610 fi
6611 DOT=$ac_cv_path_DOT
6612 if test -n "$DOT"; then
6613   { echo "$as_me:$LINENO: result: $DOT" >&5
6614 echo "${ECHO_T}$DOT" >&6; }
6615 else
6616   { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6618 fi
6619
6620
6621 if test "$DOT" != "echo dot" ; then
6622
6623 cat >>confdefs.h <<\_ACEOF
6624 #define HAVE_DOT 1
6625 _ACEOF
6626
6627     if test "$llvm_cv_os_type" = "MingW" ; then
6628     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6629   fi
6630
6631 cat >>confdefs.h <<_ACEOF
6632 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6633 _ACEOF
6634
6635 fi
6636 # Extract the first word of "fdp", so it can be a program name with args.
6637 set dummy fdp; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_path_FDP+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   case $FDP in
6644   [\\/]* | ?:[\\/]*)
6645   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6646   ;;
6647   *)
6648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653   for ac_exec_ext in '' $ac_executable_extensions; do
6654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6664   ;;
6665 esac
6666 fi
6667 FDP=$ac_cv_path_FDP
6668 if test -n "$FDP"; then
6669   { echo "$as_me:$LINENO: result: $FDP" >&5
6670 echo "${ECHO_T}$FDP" >&6; }
6671 else
6672   { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6674 fi
6675
6676
6677 if test "$FDP" != "echo fdp" ; then
6678
6679 cat >>confdefs.h <<\_ACEOF
6680 #define HAVE_FDP 1
6681 _ACEOF
6682
6683     if test "$llvm_cv_os_type" = "MingW" ; then
6684     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6685   fi
6686
6687 cat >>confdefs.h <<_ACEOF
6688 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6689 _ACEOF
6690
6691 fi
6692 # Extract the first word of "neato", so it can be a program name with args.
6693 set dummy neato; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_NEATO+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   case $NEATO in
6700   [\\/]* | ?:[\\/]*)
6701   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6702   ;;
6703   *)
6704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709   for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6720   ;;
6721 esac
6722 fi
6723 NEATO=$ac_cv_path_NEATO
6724 if test -n "$NEATO"; then
6725   { echo "$as_me:$LINENO: result: $NEATO" >&5
6726 echo "${ECHO_T}$NEATO" >&6; }
6727 else
6728   { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6730 fi
6731
6732
6733 if test "$NEATO" != "echo neato" ; then
6734
6735 cat >>confdefs.h <<\_ACEOF
6736 #define HAVE_NEATO 1
6737 _ACEOF
6738
6739     if test "$llvm_cv_os_type" = "MingW" ; then
6740     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6741   fi
6742
6743 cat >>confdefs.h <<_ACEOF
6744 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6745 _ACEOF
6746
6747 fi
6748 # Extract the first word of "twopi", so it can be a program name with args.
6749 set dummy twopi; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_TWOPI+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   case $TWOPI in
6756   [\\/]* | ?:[\\/]*)
6757   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6758   ;;
6759   *)
6760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765   for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6776   ;;
6777 esac
6778 fi
6779 TWOPI=$ac_cv_path_TWOPI
6780 if test -n "$TWOPI"; then
6781   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6782 echo "${ECHO_T}$TWOPI" >&6; }
6783 else
6784   { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6786 fi
6787
6788
6789 if test "$TWOPI" != "echo twopi" ; then
6790
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_TWOPI 1
6793 _ACEOF
6794
6795     if test "$llvm_cv_os_type" = "MingW" ; then
6796     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797   fi
6798
6799 cat >>confdefs.h <<_ACEOF
6800 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6801 _ACEOF
6802
6803 fi
6804 # Extract the first word of "circo", so it can be a program name with args.
6805 set dummy circo; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_CIRCO+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   case $CIRCO in
6812   [\\/]* | ?:[\\/]*)
6813   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6814   ;;
6815   *)
6816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821   for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6832   ;;
6833 esac
6834 fi
6835 CIRCO=$ac_cv_path_CIRCO
6836 if test -n "$CIRCO"; then
6837   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6838 echo "${ECHO_T}$CIRCO" >&6; }
6839 else
6840   { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6842 fi
6843
6844
6845 if test "$CIRCO" != "echo circo" ; then
6846
6847 cat >>confdefs.h <<\_ACEOF
6848 #define HAVE_CIRCO 1
6849 _ACEOF
6850
6851     if test "$llvm_cv_os_type" = "MingW" ; then
6852     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853   fi
6854
6855 cat >>confdefs.h <<_ACEOF
6856 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6857 _ACEOF
6858
6859 fi
6860 for ac_prog in gv gsview32
6861 do
6862   # Extract the first word of "$ac_prog", so it can be a program name with args.
6863 set dummy $ac_prog; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_path_GV+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   case $GV in
6870   [\\/]* | ?:[\\/]*)
6871   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6872   ;;
6873   *)
6874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879   for ac_exec_ext in '' $ac_executable_extensions; do
6880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6881     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889   ;;
6890 esac
6891 fi
6892 GV=$ac_cv_path_GV
6893 if test -n "$GV"; then
6894   { echo "$as_me:$LINENO: result: $GV" >&5
6895 echo "${ECHO_T}$GV" >&6; }
6896 else
6897   { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6899 fi
6900
6901
6902   test -n "$GV" && break
6903 done
6904 test -n "$GV" || GV="echo gv"
6905
6906 if test "$GV" != "echo gv" ; then
6907
6908 cat >>confdefs.h <<\_ACEOF
6909 #define HAVE_GV 1
6910 _ACEOF
6911
6912     if test "$llvm_cv_os_type" = "MingW" ; then
6913     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6914   fi
6915
6916 cat >>confdefs.h <<_ACEOF
6917 #define LLVM_PATH_GV "$GV${EXEEXT}"
6918 _ACEOF
6919
6920 fi
6921 # Extract the first word of "dotty", so it can be a program name with args.
6922 set dummy dotty; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_DOTTY+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   case $DOTTY in
6929   [\\/]* | ?:[\\/]*)
6930   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6931   ;;
6932   *)
6933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938   for ac_exec_ext in '' $ac_executable_extensions; do
6939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6949   ;;
6950 esac
6951 fi
6952 DOTTY=$ac_cv_path_DOTTY
6953 if test -n "$DOTTY"; then
6954   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6955 echo "${ECHO_T}$DOTTY" >&6; }
6956 else
6957   { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6959 fi
6960
6961
6962 if test "$DOTTY" != "echo dotty" ; then
6963
6964 cat >>confdefs.h <<\_ACEOF
6965 #define HAVE_DOTTY 1
6966 _ACEOF
6967
6968     if test "$llvm_cv_os_type" = "MingW" ; then
6969     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6970   fi
6971
6972 cat >>confdefs.h <<_ACEOF
6973 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6974 _ACEOF
6975
6976 fi
6977 # Extract the first word of "xdot.py", so it can be a program name with args.
6978 set dummy xdot.py; ac_word=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984   case $XDOT_PY in
6985   [\\/]* | ?:[\\/]*)
6986   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6987   ;;
6988   *)
6989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992   IFS=$as_save_IFS
6993   test -z "$as_dir" && as_dir=.
6994   for ac_exec_ext in '' $ac_executable_extensions; do
6995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6996     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998     break 2
6999   fi
7000 done
7001 done
7002 IFS=$as_save_IFS
7003
7004   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7005   ;;
7006 esac
7007 fi
7008 XDOT_PY=$ac_cv_path_XDOT_PY
7009 if test -n "$XDOT_PY"; then
7010   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7011 echo "${ECHO_T}$XDOT_PY" >&6; }
7012 else
7013   { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7015 fi
7016
7017
7018 if test "$XDOT_PY" != "echo xdot.py" ; then
7019
7020 cat >>confdefs.h <<\_ACEOF
7021 #define HAVE_XDOT_PY 1
7022 _ACEOF
7023
7024     if test "$llvm_cv_os_type" = "MingW" ; then
7025     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7026   fi
7027
7028 cat >>confdefs.h <<_ACEOF
7029 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7030 _ACEOF
7031
7032 fi
7033
7034 # Find a good install program.  We prefer a C program (faster),
7035 # so one script is as good as another.  But avoid the broken or
7036 # incompatible versions:
7037 # SysV /etc/install, /usr/sbin/install
7038 # SunOS /usr/etc/install
7039 # IRIX /sbin/install
7040 # AIX /bin/install
7041 # AmigaOS /C/install, which installs bootblocks on floppy discs
7042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7045 # OS/2's system install, which has a completely different semantic
7046 # ./install, which can be erroneously created by make from ./install.sh.
7047 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7048 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7049 if test -z "$INSTALL"; then
7050 if test "${ac_cv_path_install+set}" = set; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058   # Account for people who put trailing slashes in PATH elements.
7059 case $as_dir/ in
7060   ./ | .// | /cC/* | \
7061   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7062   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7063   /usr/ucb/* ) ;;
7064   *)
7065     # OSF1 and SCO ODT 3.0 have their own names for install.
7066     # Don't use installbsd from OSF since it installs stuff as root
7067     # by default.
7068     for ac_prog in ginstall scoinst install; do
7069       for ac_exec_ext in '' $ac_executable_extensions; do
7070         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7071           if test $ac_prog = install &&
7072             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7073             # AIX install.  It has an incompatible calling convention.
7074             :
7075           elif test $ac_prog = install &&
7076             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7077             # program-specific install script used by HP pwplus--don't use.
7078             :
7079           else
7080             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7081             break 3
7082           fi
7083         fi
7084       done
7085     done
7086     ;;
7087 esac
7088 done
7089 IFS=$as_save_IFS
7090
7091
7092 fi
7093   if test "${ac_cv_path_install+set}" = set; then
7094     INSTALL=$ac_cv_path_install
7095   else
7096     # As a last resort, use the slow shell script.  Don't cache a
7097     # value for INSTALL within a source directory, because that will
7098     # break other packages using the cache if that directory is
7099     # removed, or if the value is a relative name.
7100     INSTALL=$ac_install_sh
7101   fi
7102 fi
7103 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7104 echo "${ECHO_T}$INSTALL" >&6; }
7105
7106 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7107 # It thinks the first close brace ends the variable substitution.
7108 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7109
7110 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7111
7112 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7113
7114 case "$INSTALL" in
7115  [\\/$]* | ?:[\\/]* ) ;;
7116  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7117 esac
7118
7119 # Extract the first word of "bzip2", so it can be a program name with args.
7120 set dummy bzip2; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_path_BZIP2+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   case $BZIP2 in
7127   [\\/]* | ?:[\\/]*)
7128   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7129   ;;
7130   *)
7131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136   for ac_exec_ext in '' $ac_executable_extensions; do
7137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7138     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146   ;;
7147 esac
7148 fi
7149 BZIP2=$ac_cv_path_BZIP2
7150 if test -n "$BZIP2"; then
7151   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7152 echo "${ECHO_T}$BZIP2" >&6; }
7153 else
7154   { echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6; }
7156 fi
7157
7158
7159 # Extract the first word of "cat", so it can be a program name with args.
7160 set dummy cat; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_CAT+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   case $CAT in
7167   [\\/]* | ?:[\\/]*)
7168   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7169   ;;
7170   *)
7171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176   for ac_exec_ext in '' $ac_executable_extensions; do
7177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7178     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186   ;;
7187 esac
7188 fi
7189 CAT=$ac_cv_path_CAT
7190 if test -n "$CAT"; then
7191   { echo "$as_me:$LINENO: result: $CAT" >&5
7192 echo "${ECHO_T}$CAT" >&6; }
7193 else
7194   { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7196 fi
7197
7198
7199 # Extract the first word of "doxygen", so it can be a program name with args.
7200 set dummy doxygen; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   case $DOXYGEN in
7207   [\\/]* | ?:[\\/]*)
7208   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7209   ;;
7210   *)
7211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216   for ac_exec_ext in '' $ac_executable_extensions; do
7217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7218     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226   ;;
7227 esac
7228 fi
7229 DOXYGEN=$ac_cv_path_DOXYGEN
7230 if test -n "$DOXYGEN"; then
7231   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7232 echo "${ECHO_T}$DOXYGEN" >&6; }
7233 else
7234   { echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6; }
7236 fi
7237
7238
7239 # Extract the first word of "groff", so it can be a program name with args.
7240 set dummy groff; ac_word=$2
7241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243 if test "${ac_cv_path_GROFF+set}" = set; then
7244   echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246   case $GROFF in
7247   [\\/]* | ?:[\\/]*)
7248   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7249   ;;
7250   *)
7251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256   for ac_exec_ext in '' $ac_executable_extensions; do
7257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7258     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263 done
7264 IFS=$as_save_IFS
7265
7266   ;;
7267 esac
7268 fi
7269 GROFF=$ac_cv_path_GROFF
7270 if test -n "$GROFF"; then
7271   { echo "$as_me:$LINENO: result: $GROFF" >&5
7272 echo "${ECHO_T}$GROFF" >&6; }
7273 else
7274   { echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6; }
7276 fi
7277
7278
7279 # Extract the first word of "gzip", so it can be a program name with args.
7280 set dummy gzip; ac_word=$2
7281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7284   echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286   case $GZIPBIN in
7287   [\\/]* | ?:[\\/]*)
7288   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7289   ;;
7290   *)
7291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294   IFS=$as_save_IFS
7295   test -z "$as_dir" && as_dir=.
7296   for ac_exec_ext in '' $ac_executable_extensions; do
7297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7298     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300     break 2
7301   fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306   ;;
7307 esac
7308 fi
7309 GZIPBIN=$ac_cv_path_GZIPBIN
7310 if test -n "$GZIPBIN"; then
7311   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7312 echo "${ECHO_T}$GZIPBIN" >&6; }
7313 else
7314   { echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6; }
7316 fi
7317
7318
7319 # Extract the first word of "pdfroff", so it can be a program name with args.
7320 set dummy pdfroff; ac_word=$2
7321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323 if test "${ac_cv_path_PDFROFF+set}" = set; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326   case $PDFROFF in
7327   [\\/]* | ?:[\\/]*)
7328   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7329   ;;
7330   *)
7331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336   for ac_exec_ext in '' $ac_executable_extensions; do
7337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346   ;;
7347 esac
7348 fi
7349 PDFROFF=$ac_cv_path_PDFROFF
7350 if test -n "$PDFROFF"; then
7351   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7352 echo "${ECHO_T}$PDFROFF" >&6; }
7353 else
7354   { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7356 fi
7357
7358
7359 # Extract the first word of "zip", so it can be a program name with args.
7360 set dummy zip; ac_word=$2
7361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363 if test "${ac_cv_path_ZIP+set}" = set; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366   case $ZIP in
7367   [\\/]* | ?:[\\/]*)
7368   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7369   ;;
7370   *)
7371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376   for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386   ;;
7387 esac
7388 fi
7389 ZIP=$ac_cv_path_ZIP
7390 if test -n "$ZIP"; then
7391   { echo "$as_me:$LINENO: result: $ZIP" >&5
7392 echo "${ECHO_T}$ZIP" >&6; }
7393 else
7394   { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7396 fi
7397
7398
7399 for ac_prog in ocamlc
7400 do
7401   # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_OCAMLC+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   case $OCAMLC in
7409   [\\/]* | ?:[\\/]*)
7410   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7411   ;;
7412   *)
7413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418   for ac_exec_ext in '' $ac_executable_extensions; do
7419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428   ;;
7429 esac
7430 fi
7431 OCAMLC=$ac_cv_path_OCAMLC
7432 if test -n "$OCAMLC"; then
7433   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7434 echo "${ECHO_T}$OCAMLC" >&6; }
7435 else
7436   { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7438 fi
7439
7440
7441   test -n "$OCAMLC" && break
7442 done
7443
7444 for ac_prog in ocamlopt
7445 do
7446   # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   case $OCAMLOPT in
7454   [\\/]* | ?:[\\/]*)
7455   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7456   ;;
7457   *)
7458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473   ;;
7474 esac
7475 fi
7476 OCAMLOPT=$ac_cv_path_OCAMLOPT
7477 if test -n "$OCAMLOPT"; then
7478   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7479 echo "${ECHO_T}$OCAMLOPT" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485
7486   test -n "$OCAMLOPT" && break
7487 done
7488
7489 for ac_prog in ocamldep
7490 do
7491   # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; 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_OCAMLDEP+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   case $OCAMLDEP in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_OCAMLDEP="$OCAMLDEP" # 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_OCAMLDEP="$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 OCAMLDEP=$ac_cv_path_OCAMLDEP
7522 if test -n "$OCAMLDEP"; then
7523   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7524 echo "${ECHO_T}$OCAMLDEP" >&6; }
7525 else
7526   { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7528 fi
7529
7530
7531   test -n "$OCAMLDEP" && break
7532 done
7533
7534 for ac_prog in ocamldoc
7535 do
7536   # Extract the first word of "$ac_prog", so it can be a program name with args.
7537 set dummy $ac_prog; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   case $OCAMLDOC in
7544   [\\/]* | ?:[\\/]*)
7545   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7546   ;;
7547   *)
7548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553   for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563   ;;
7564 esac
7565 fi
7566 OCAMLDOC=$ac_cv_path_OCAMLDOC
7567 if test -n "$OCAMLDOC"; then
7568   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7569 echo "${ECHO_T}$OCAMLDOC" >&6; }
7570 else
7571   { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7573 fi
7574
7575
7576   test -n "$OCAMLDOC" && break
7577 done
7578
7579 for ac_prog in gas as
7580 do
7581   # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_GAS+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   case $GAS in
7589   [\\/]* | ?:[\\/]*)
7590   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7591   ;;
7592   *)
7593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608   ;;
7609 esac
7610 fi
7611 GAS=$ac_cv_path_GAS
7612 if test -n "$GAS"; then
7613   { echo "$as_me:$LINENO: result: $GAS" >&5
7614 echo "${ECHO_T}$GAS" >&6; }
7615 else
7616   { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620
7621   test -n "$GAS" && break
7622 done
7623
7624
7625 { echo "$as_me:$LINENO: checking for linker version" >&5
7626 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7627 if test "${llvm_cv_link_version+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630
7631    version_string="$(ld -v 2>&1 | head -1)"
7632
7633    # Check for ld64.
7634    if (echo "$version_string" | grep -q "ld64"); then
7635      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7636    else
7637      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7638    fi
7639
7640 fi
7641 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7642 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7643
7644 cat >>confdefs.h <<_ACEOF
7645 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7646 _ACEOF
7647
7648
7649
7650 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7651 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7652 if test "${llvm_cv_link_use_r+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655    ac_ext=c
7656 ac_cpp='$CPP $CPPFLAGS'
7657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660
7661   oldcflags="$CFLAGS"
7662   CFLAGS="$CFLAGS -Wl,-R."
7663   cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h.  */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h.  */
7669
7670 int
7671 main ()
7672 {
7673
7674   ;
7675   return 0;
7676 }
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7680 case "(($ac_try" in
7681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682   *) ac_try_echo=$ac_try;;
7683 esac
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685   (eval "$ac_link") 2>conftest.er1
7686   ac_status=$?
7687   grep -v '^ *+' conftest.er1 >conftest.err
7688   rm -f conftest.er1
7689   cat conftest.err >&5
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); } &&
7692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7693   { (case "(($ac_try" in
7694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695   *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698   (eval "$ac_try") 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; } &&
7702          { ac_try='test -s conftest$ac_exeext'
7703   { (case "(($ac_try" in
7704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705   *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708   (eval "$ac_try") 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; }; then
7712   llvm_cv_link_use_r=yes
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717         llvm_cv_link_use_r=no
7718 fi
7719
7720 rm -f core conftest.err conftest.$ac_objext \
7721       conftest$ac_exeext conftest.$ac_ext
7722   CFLAGS="$oldcflags"
7723   ac_ext=c
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728
7729
7730 fi
7731 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7732 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7733 if test "$llvm_cv_link_use_r" = yes ; then
7734
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_LINK_R 1
7737 _ACEOF
7738
7739   fi
7740
7741
7742 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7743 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7744 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747    ac_ext=c
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752
7753   oldcflags="$CFLAGS"
7754   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7755   cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761
7762 int
7763 main ()
7764 {
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7772 case "(($ac_try" in
7773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774   *) ac_try_echo=$ac_try;;
7775 esac
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777   (eval "$ac_link") 2>conftest.er1
7778   ac_status=$?
7779   grep -v '^ *+' conftest.er1 >conftest.err
7780   rm -f conftest.er1
7781   cat conftest.err >&5
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } &&
7784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785   { (case "(($ac_try" in
7786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787   *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790   (eval "$ac_try") 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; } &&
7794          { ac_try='test -s conftest$ac_exeext'
7795   { (case "(($ac_try" in
7796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797   *) ac_try_echo=$ac_try;;
7798 esac
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800   (eval "$ac_try") 2>&5
7801   ac_status=$?
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); }; }; then
7804   llvm_cv_link_use_export_dynamic=yes
7805 else
7806   echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809         llvm_cv_link_use_export_dynamic=no
7810 fi
7811
7812 rm -f core conftest.err conftest.$ac_objext \
7813       conftest$ac_exeext conftest.$ac_ext
7814   CFLAGS="$oldcflags"
7815   ac_ext=c
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821
7822 fi
7823 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7824 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7825 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7826
7827 cat >>confdefs.h <<\_ACEOF
7828 #define HAVE_LINK_EXPORT_DYNAMIC 1
7829 _ACEOF
7830
7831   fi
7832
7833
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_version_script+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839    ac_ext=c
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845   oldcflags="$CFLAGS"
7846
7847   # The following code is from the autoconf manual,
7848   # "11.13: Limitations of Usual Tools".
7849   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7850   # Use mktemp if possible; otherwise fall back on mkdir,
7851   # with $RANDOM to make collisions less likely.
7852   : ${TMPDIR=/tmp}
7853   {
7854     tmp=`
7855       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7856     ` &&
7857     test -n "$tmp" && test -d "$tmp"
7858   } || {
7859     tmp=$TMPDIR/foo$$-$RANDOM
7860     (umask 077 && mkdir "$tmp")
7861   } || exit $?
7862
7863   echo "{" > "$tmp/export.map"
7864   echo "  global: main;" >> "$tmp/export.map"
7865   echo "  local: *;" >> "$tmp/export.map"
7866   echo "};" >> "$tmp/export.map"
7867
7868   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7869   cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h.  */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h.  */
7875
7876 int
7877 main ()
7878 {
7879
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7886 case "(($ac_try" in
7887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888   *) ac_try_echo=$ac_try;;
7889 esac
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891   (eval "$ac_link") 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } &&
7898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899   { (case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904   (eval "$ac_try") 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; } &&
7908          { ac_try='test -s conftest$ac_exeext'
7909   { (case "(($ac_try" in
7910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911   *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914   (eval "$ac_try") 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   llvm_cv_link_use_version_script=yes
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923         llvm_cv_link_use_version_script=no
7924 fi
7925
7926 rm -f core conftest.err conftest.$ac_objext \
7927       conftest$ac_exeext conftest.$ac_ext
7928   rm "$tmp/export.map"
7929   rmdir "$tmp"
7930   CFLAGS="$oldcflags"
7931   ac_ext=c
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937
7938 fi
7939 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7940 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7941 if test "$llvm_cv_link_use_version_script" = yes ; then
7942   HAVE_LINK_VERSION_SCRIPT=1
7943
7944   fi
7945
7946
7947
7948
7949 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7950 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7951 if test "${ac_cv_c_const+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960
7961 int
7962 main ()
7963 {
7964 /* FIXME: Include the comments suggested by Paul. */
7965 #ifndef __cplusplus
7966   /* Ultrix mips cc rejects this.  */
7967   typedef int charset[2];
7968   const charset x;
7969   /* SunOS 4.1.1 cc rejects this.  */
7970   char const *const *ccp;
7971   char **p;
7972   /* NEC SVR4.0.2 mips cc rejects this.  */
7973   struct point {int x, y;};
7974   static struct point const zero = {0,0};
7975   /* AIX XL C 1.02.0.0 rejects this.
7976      It does not let you subtract one const X* pointer from another in
7977      an arm of an if-expression whose if-part is not a constant
7978      expression */
7979   const char *g = "string";
7980   ccp = &g + (g ? g-g : 0);
7981   /* HPUX 7.0 cc rejects these. */
7982   ++ccp;
7983   p = (char**) ccp;
7984   ccp = (char const *const *) p;
7985   { /* SCO 3.2v4 cc rejects this.  */
7986     char *t;
7987     char const *s = 0 ? (char *) 0 : (char const *) 0;
7988
7989     *t++ = 0;
7990     if (s) return 0;
7991   }
7992   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7993     int x[] = {25, 17};
7994     const int *foo = &x[0];
7995     ++foo;
7996   }
7997   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998     typedef const int *iptr;
7999     iptr p = 0;
8000     ++p;
8001   }
8002   { /* AIX XL C 1.02.0.0 rejects this saying
8003        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004     struct s { int j; const int *ap[3]; };
8005     struct s *b; b->j = 5;
8006   }
8007   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8008     const int foo = 10;
8009     if (!foo) return 0;
8010   }
8011   return !x[0] && !zero.x;
8012 #endif
8013
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 rm -f conftest.$ac_objext
8019 if { (ac_try="$ac_compile"
8020 case "(($ac_try" in
8021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022   *) ac_try_echo=$ac_try;;
8023 esac
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025   (eval "$ac_compile") 2>conftest.er1
8026   ac_status=$?
8027   grep -v '^ *+' conftest.er1 >conftest.err
8028   rm -f conftest.er1
8029   cat conftest.err >&5
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); } &&
8032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8033   { (case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038   (eval "$ac_try") 2>&5
8039   ac_status=$?
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); }; } &&
8042          { ac_try='test -s conftest.$ac_objext'
8043   { (case "(($ac_try" in
8044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045   *) ac_try_echo=$ac_try;;
8046 esac
8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048   (eval "$ac_try") 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; }; then
8052   ac_cv_c_const=yes
8053 else
8054   echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057         ac_cv_c_const=no
8058 fi
8059
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 fi
8062 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8063 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8064 if test $ac_cv_c_const = no; then
8065
8066 cat >>confdefs.h <<\_ACEOF
8067 #define const
8068 _ACEOF
8069
8070 fi
8071
8072
8073
8074
8075
8076
8077 ac_header_dirent=no
8078 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8079   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8080 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8081 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 #include <sys/types.h>
8092 #include <$ac_hdr>
8093
8094 int
8095 main ()
8096 {
8097 if ((DIR *) 0)
8098 return 0;
8099   ;
8100   return 0;
8101 }
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8105 case "(($ac_try" in
8106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107   *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110   (eval "$ac_compile") 2>conftest.er1
8111   ac_status=$?
8112   grep -v '^ *+' conftest.er1 >conftest.err
8113   rm -f conftest.er1
8114   cat conftest.err >&5
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); } &&
8117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118   { (case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_try") 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; } &&
8127          { ac_try='test -s conftest.$ac_objext'
8128   { (case "(($ac_try" in
8129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130   *) ac_try_echo=$ac_try;;
8131 esac
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133   (eval "$ac_try") 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   eval "$as_ac_Header=yes"
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142         eval "$as_ac_Header=no"
8143 fi
8144
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 fi
8147 ac_res=`eval echo '${'$as_ac_Header'}'`
8148                { echo "$as_me:$LINENO: result: $ac_res" >&5
8149 echo "${ECHO_T}$ac_res" >&6; }
8150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8151   cat >>confdefs.h <<_ACEOF
8152 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8153 _ACEOF
8154
8155 ac_header_dirent=$ac_hdr; break
8156 fi
8157
8158 done
8159 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8160 if test $ac_header_dirent = dirent.h; then
8161   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8162 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8163 if test "${ac_cv_search_opendir+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   ac_func_search_save_LIBS=$LIBS
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173
8174 /* Override any GCC internal prototype to avoid an error.
8175    Use char because int might match the return type of a GCC
8176    builtin and then its argument prototype would still apply.  */
8177 #ifdef __cplusplus
8178 extern "C"
8179 #endif
8180 char opendir ();
8181 int
8182 main ()
8183 {
8184 return opendir ();
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 for ac_lib in '' dir; do
8190   if test -z "$ac_lib"; then
8191     ac_res="none required"
8192   else
8193     ac_res=-l$ac_lib
8194     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8195   fi
8196   rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (ac_try="$ac_link"
8198 case "(($ac_try" in
8199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200   *) ac_try_echo=$ac_try;;
8201 esac
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203   (eval "$ac_link") 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211   { (case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216   (eval "$ac_try") 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); }; } &&
8220          { ac_try='test -s conftest$ac_exeext'
8221   { (case "(($ac_try" in
8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223   *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226   (eval "$ac_try") 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; }; then
8230   ac_cv_search_opendir=$ac_res
8231 else
8232   echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8234
8235
8236 fi
8237
8238 rm -f core conftest.err conftest.$ac_objext \
8239       conftest$ac_exeext
8240   if test "${ac_cv_search_opendir+set}" = set; then
8241   break
8242 fi
8243 done
8244 if test "${ac_cv_search_opendir+set}" = set; then
8245   :
8246 else
8247   ac_cv_search_opendir=no
8248 fi
8249 rm conftest.$ac_ext
8250 LIBS=$ac_func_search_save_LIBS
8251 fi
8252 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8253 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8254 ac_res=$ac_cv_search_opendir
8255 if test "$ac_res" != no; then
8256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8257
8258 fi
8259
8260 else
8261   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8262 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8263 if test "${ac_cv_search_opendir+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   ac_func_search_save_LIBS=$LIBS
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273
8274 /* Override any GCC internal prototype to avoid an error.
8275    Use char because int might match the return type of a GCC
8276    builtin and then its argument prototype would still apply.  */
8277 #ifdef __cplusplus
8278 extern "C"
8279 #endif
8280 char opendir ();
8281 int
8282 main ()
8283 {
8284 return opendir ();
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 for ac_lib in '' x; do
8290   if test -z "$ac_lib"; then
8291     ac_res="none required"
8292   else
8293     ac_res=-l$ac_lib
8294     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8295   fi
8296   rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (ac_try="$ac_link"
8298 case "(($ac_try" in
8299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300   *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303   (eval "$ac_link") 2>conftest.er1
8304   ac_status=$?
8305   grep -v '^ *+' conftest.er1 >conftest.err
8306   rm -f conftest.er1
8307   cat conftest.err >&5
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } &&
8310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8311   { (case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_try") 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; } &&
8320          { ac_try='test -s conftest$ac_exeext'
8321   { (case "(($ac_try" in
8322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323   *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326   (eval "$ac_try") 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; }; then
8330   ac_cv_search_opendir=$ac_res
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335
8336 fi
8337
8338 rm -f core conftest.err conftest.$ac_objext \
8339       conftest$ac_exeext
8340   if test "${ac_cv_search_opendir+set}" = set; then
8341   break
8342 fi
8343 done
8344 if test "${ac_cv_search_opendir+set}" = set; then
8345   :
8346 else
8347   ac_cv_search_opendir=no
8348 fi
8349 rm conftest.$ac_ext
8350 LIBS=$ac_func_search_save_LIBS
8351 fi
8352 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8353 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8354 ac_res=$ac_cv_search_opendir
8355 if test "$ac_res" != no; then
8356   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357
8358 fi
8359
8360 fi
8361
8362
8363 for ac_header in dlfcn.h
8364 do
8365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8367   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370   echo $ECHO_N "(cached) $ECHO_C" >&6
8371 fi
8372 ac_res=`eval echo '${'$as_ac_Header'}'`
8373                { echo "$as_me:$LINENO: result: $ac_res" >&5
8374 echo "${ECHO_T}$ac_res" >&6; }
8375 else
8376   # Is the header compilable?
8377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h.  */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h.  */
8385 $ac_includes_default
8386 #include <$ac_header>
8387 _ACEOF
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8390 case "(($ac_try" in
8391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392   *) ac_try_echo=$ac_try;;
8393 esac
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395   (eval "$ac_compile") 2>conftest.er1
8396   ac_status=$?
8397   grep -v '^ *+' conftest.er1 >conftest.err
8398   rm -f conftest.er1
8399   cat conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } &&
8402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403   { (case "(($ac_try" in
8404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405   *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408   (eval "$ac_try") 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; } &&
8412          { ac_try='test -s conftest.$ac_objext'
8413   { (case "(($ac_try" in
8414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415   *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418   (eval "$ac_try") 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; }; then
8422   ac_header_compiler=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427         ac_header_compiler=no
8428 fi
8429
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8432 echo "${ECHO_T}$ac_header_compiler" >&6; }
8433
8434 # Is the header present?
8435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8437 cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443 #include <$ac_header>
8444 _ACEOF
8445 if { (ac_try="$ac_cpp conftest.$ac_ext"
8446 case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } >/dev/null; then
8458   if test -s conftest.err; then
8459     ac_cpp_err=$ac_c_preproc_warn_flag
8460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8461   else
8462     ac_cpp_err=
8463   fi
8464 else
8465   ac_cpp_err=yes
8466 fi
8467 if test -z "$ac_cpp_err"; then
8468   ac_header_preproc=yes
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473   ac_header_preproc=no
8474 fi
8475
8476 rm -f conftest.err conftest.$ac_ext
8477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8478 echo "${ECHO_T}$ac_header_preproc" >&6; }
8479
8480 # So?  What about this header?
8481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8482   yes:no: )
8483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8487     ac_header_preproc=yes
8488     ;;
8489   no:yes:* )
8490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8502     ( cat <<\_ASBOX
8503 ## ------------------------------------ ##
8504 ## Report this to http://llvm.org/bugs/ ##
8505 ## ------------------------------------ ##
8506 _ASBOX
8507      ) | sed "s/^/$as_me: WARNING:     /" >&2
8508     ;;
8509 esac
8510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   eval "$as_ac_Header=\$ac_header_preproc"
8516 fi
8517 ac_res=`eval echo '${'$as_ac_Header'}'`
8518                { echo "$as_me:$LINENO: result: $ac_res" >&5
8519 echo "${ECHO_T}$ac_res" >&6; }
8520
8521 fi
8522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8523   cat >>confdefs.h <<_ACEOF
8524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8525 _ACEOF
8526
8527 fi
8528
8529 done
8530
8531 # Check whether --enable-ltdl-install was given.
8532 if test "${enable_ltdl_install+set}" = set; then
8533   enableval=$enable_ltdl_install;
8534 fi
8535
8536
8537
8538
8539 if test x"${enable_ltdl_install-no}" != xno; then
8540   INSTALL_LTDL_TRUE=
8541   INSTALL_LTDL_FALSE='#'
8542 else
8543   INSTALL_LTDL_TRUE='#'
8544   INSTALL_LTDL_FALSE=
8545 fi
8546
8547
8548
8549 if test x"${enable_ltdl_convenience-no}" != xno; then
8550   CONVENIENCE_LTDL_TRUE=
8551   CONVENIENCE_LTDL_FALSE='#'
8552 else
8553   CONVENIENCE_LTDL_TRUE='#'
8554   CONVENIENCE_LTDL_FALSE=
8555 fi
8556
8557
8558 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8559 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8560 library_names_spec=
8561 libname_spec='lib$name'
8562 soname_spec=
8563 shrext_cmds=".so"
8564 postinstall_cmds=
8565 postuninstall_cmds=
8566 finish_cmds=
8567 finish_eval=
8568 shlibpath_var=
8569 shlibpath_overrides_runpath=unknown
8570 version_type=none
8571 dynamic_linker="$host_os ld.so"
8572 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8573 if test "$GCC" = yes; then
8574   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8575   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8576     # if the path contains ";" then we assume it to be the separator
8577     # otherwise default to the standard path separator (i.e. ":") - it is
8578     # assumed that no part of a normal pathname contains ";" but that should
8579     # okay in the real world where ";" in dirpaths is itself problematic.
8580     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8581   else
8582     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8583   fi
8584 else
8585   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8586 fi
8587 need_lib_prefix=unknown
8588 hardcode_into_libs=no
8589
8590 # when you set need_version to no, make sure it does not cause -set_version
8591 # flags to be left without arguments
8592 need_version=unknown
8593
8594 case $host_os in
8595 aix3*)
8596   version_type=linux
8597   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8598   shlibpath_var=LIBPATH
8599
8600   # AIX 3 has no versioning support, so we append a major version to the name.
8601   soname_spec='${libname}${release}${shared_ext}$major'
8602   ;;
8603
8604 aix4* | aix5*)
8605   version_type=linux
8606   need_lib_prefix=no
8607   need_version=no
8608   hardcode_into_libs=yes
8609   if test "$host_cpu" = ia64; then
8610     # AIX 5 supports IA64
8611     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8612     shlibpath_var=LD_LIBRARY_PATH
8613   else
8614     # With GCC up to 2.95.x, collect2 would create an import file
8615     # for dependence libraries.  The import file would start with
8616     # the line `#! .'.  This would cause the generated library to
8617     # depend on `.', always an invalid library.  This was fixed in
8618     # development snapshots of GCC prior to 3.0.
8619     case $host_os in
8620       aix4 | aix4.[01] | aix4.[01].*)
8621       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8622            echo ' yes '
8623            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8624         :
8625       else
8626         can_build_shared=no
8627       fi
8628       ;;
8629     esac
8630     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8631     # soname into executable. Probably we can add versioning support to
8632     # collect2, so additional links can be useful in future.
8633     if test "$aix_use_runtimelinking" = yes; then
8634       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8635       # instead of lib<name>.a to let people know that these are not
8636       # typical AIX shared libraries.
8637       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8638     else
8639       # We preserve .a as extension for shared libraries through AIX4.2
8640       # and later when we are not doing run time linking.
8641       library_names_spec='${libname}${release}.a $libname.a'
8642       soname_spec='${libname}${release}${shared_ext}$major'
8643     fi
8644     shlibpath_var=LIBPATH
8645   fi
8646   ;;
8647
8648 amigaos*)
8649   library_names_spec='$libname.ixlibrary $libname.a'
8650   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8651   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'
8652   ;;
8653
8654 beos*)
8655   library_names_spec='${libname}${shared_ext}'
8656   dynamic_linker="$host_os ld.so"
8657   shlibpath_var=LIBRARY_PATH
8658   ;;
8659
8660 bsdi[45]*)
8661   version_type=linux
8662   need_version=no
8663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664   soname_spec='${libname}${release}${shared_ext}$major'
8665   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8666   shlibpath_var=LD_LIBRARY_PATH
8667   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8668   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8669   # the default ld.so.conf also contains /usr/contrib/lib and
8670   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8671   # libtool to hard-code these into programs
8672   ;;
8673
8674 cygwin* | mingw* | pw32*)
8675   version_type=windows
8676   shrext_cmds=".dll"
8677   need_version=no
8678   need_lib_prefix=no
8679
8680   case $GCC,$host_os in
8681   yes,cygwin* | yes,mingw* | yes,pw32*)
8682     library_names_spec='$libname.dll.a'
8683     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8684     postinstall_cmds='base_file=`basename \${file}`~
8685       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8686       dldir=$destdir/`dirname \$dlpath`~
8687       test -d \$dldir || mkdir -p \$dldir~
8688       $install_prog $dir/$dlname \$dldir/$dlname~
8689       chmod a+x \$dldir/$dlname'
8690     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8691       dlpath=$dir/\$dldll~
8692        $rm \$dlpath'
8693     shlibpath_overrides_runpath=yes
8694
8695     case $host_os in
8696     cygwin*)
8697       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8698       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8699       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8700       ;;
8701     mingw*)
8702       # MinGW DLLs use traditional 'lib' prefix
8703       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8705       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8706         # It is most probably a Windows format PATH printed by
8707         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8708         # path with ; separators, and with drive letters. We can handle the
8709         # drive letters (cygwin fileutils understands them), so leave them,
8710         # especially as we might pass files found there to a mingw objdump,
8711         # which wouldn't understand a cygwinified path. Ahh.
8712         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8713       else
8714         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8715       fi
8716       ;;
8717     pw32*)
8718       # pw32 DLLs use 'pw' prefix rather than 'lib'
8719       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8720       ;;
8721     esac
8722     ;;
8723
8724   *)
8725     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8726     ;;
8727   esac
8728   dynamic_linker='Win32 ld.exe'
8729   # FIXME: first we should search . and the directory the executable is in
8730   shlibpath_var=PATH
8731   ;;
8732
8733 darwin* | rhapsody*)
8734   dynamic_linker="$host_os dyld"
8735   version_type=darwin
8736   need_lib_prefix=no
8737   need_version=no
8738   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8739   soname_spec='${libname}${release}${major}$shared_ext'
8740   shlibpath_overrides_runpath=yes
8741   shlibpath_var=DYLD_LIBRARY_PATH
8742   shrext_cmds='.dylib'
8743   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8744   if test "$GCC" = yes; then
8745     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"`
8746   else
8747     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8748   fi
8749   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8750   ;;
8751
8752 dgux*)
8753   version_type=linux
8754   need_lib_prefix=no
8755   need_version=no
8756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8757   soname_spec='${libname}${release}${shared_ext}$major'
8758   shlibpath_var=LD_LIBRARY_PATH
8759   ;;
8760
8761 freebsd1.*)
8762   dynamic_linker=no
8763   ;;
8764
8765 kfreebsd*-gnu)
8766   version_type=linux
8767   need_lib_prefix=no
8768   need_version=no
8769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8770   soname_spec='${libname}${release}${shared_ext}$major'
8771   shlibpath_var=LD_LIBRARY_PATH
8772   shlibpath_overrides_runpath=no
8773   hardcode_into_libs=yes
8774   dynamic_linker='GNU ld.so'
8775   ;;
8776
8777 freebsd* | dragonfly*)
8778   # DragonFly does not have aout.  When/if they implement a new
8779   # versioning mechanism, adjust this.
8780   if test -x /usr/bin/objformat; then
8781     objformat=`/usr/bin/objformat`
8782   else
8783     case $host_os in
8784     freebsd[123].*) objformat=aout ;;
8785     *) objformat=elf ;;
8786     esac
8787   fi
8788   version_type=freebsd-$objformat
8789   case $version_type in
8790     freebsd-elf*)
8791       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8792       need_version=no
8793       need_lib_prefix=no
8794       ;;
8795     freebsd-*)
8796       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8797       need_version=yes
8798       ;;
8799   esac
8800   shlibpath_var=LD_LIBRARY_PATH
8801   case $host_os in
8802   freebsd2.*)
8803     shlibpath_overrides_runpath=yes
8804     ;;
8805   freebsd3.[01]* | freebsdelf3.[01]*)
8806     shlibpath_overrides_runpath=yes
8807     hardcode_into_libs=yes
8808     ;;
8809   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8810   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8811     shlibpath_overrides_runpath=no
8812     hardcode_into_libs=yes
8813     ;;
8814   freebsd*) # from 4.6 on
8815     shlibpath_overrides_runpath=yes
8816     hardcode_into_libs=yes
8817     ;;
8818   esac
8819   ;;
8820
8821 gnu*)
8822   version_type=linux
8823   need_lib_prefix=no
8824   need_version=no
8825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8826   soname_spec='${libname}${release}${shared_ext}$major'
8827   shlibpath_var=LD_LIBRARY_PATH
8828   hardcode_into_libs=yes
8829   ;;
8830
8831 hpux9* | hpux10* | hpux11*)
8832   # Give a soname corresponding to the major version so that dld.sl refuses to
8833   # link against other versions.
8834   version_type=sunos
8835   need_lib_prefix=no
8836   need_version=no
8837   case $host_cpu in
8838   ia64*)
8839     shrext_cmds='.so'
8840     hardcode_into_libs=yes
8841     dynamic_linker="$host_os dld.so"
8842     shlibpath_var=LD_LIBRARY_PATH
8843     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845     soname_spec='${libname}${release}${shared_ext}$major'
8846     if test "X$HPUX_IA64_MODE" = X32; then
8847       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8848     else
8849       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8850     fi
8851     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8852     ;;
8853    hppa*64*)
8854      shrext_cmds='.sl'
8855      hardcode_into_libs=yes
8856      dynamic_linker="$host_os dld.sl"
8857      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8858      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8859      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860      soname_spec='${libname}${release}${shared_ext}$major'
8861      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8862      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8863      ;;
8864    *)
8865     shrext_cmds='.sl'
8866     dynamic_linker="$host_os dld.sl"
8867     shlibpath_var=SHLIB_PATH
8868     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870     soname_spec='${libname}${release}${shared_ext}$major'
8871     ;;
8872   esac
8873   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8874   postinstall_cmds='chmod 555 $lib'
8875   ;;
8876
8877 interix3*)
8878   version_type=linux
8879   need_lib_prefix=no
8880   need_version=no
8881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8882   soname_spec='${libname}${release}${shared_ext}$major'
8883   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8884   shlibpath_var=LD_LIBRARY_PATH
8885   shlibpath_overrides_runpath=no
8886   hardcode_into_libs=yes
8887   ;;
8888
8889 irix5* | irix6* | nonstopux*)
8890   case $host_os in
8891     nonstopux*) version_type=nonstopux ;;
8892     *)
8893         if test "$lt_cv_prog_gnu_ld" = yes; then
8894                 version_type=linux
8895         else
8896                 version_type=irix
8897         fi ;;
8898   esac
8899   need_lib_prefix=no
8900   need_version=no
8901   soname_spec='${libname}${release}${shared_ext}$major'
8902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8903   case $host_os in
8904   irix5* | nonstopux*)
8905     libsuff= shlibsuff=
8906     ;;
8907   *)
8908     case $LD in # libtool.m4 will add one of these switches to LD
8909     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8910       libsuff= shlibsuff= libmagic=32-bit;;
8911     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8912       libsuff=32 shlibsuff=N32 libmagic=N32;;
8913     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8914       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8915     *) libsuff= shlibsuff= libmagic=never-match;;
8916     esac
8917     ;;
8918   esac
8919   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8920   shlibpath_overrides_runpath=no
8921   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8922   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8923   hardcode_into_libs=yes
8924   ;;
8925
8926 # No shared lib support for Linux oldld, aout, or coff.
8927 linux*oldld* | linux*aout* | linux*coff*)
8928   dynamic_linker=no
8929   ;;
8930
8931 # This must be Linux ELF.
8932 linux*)
8933   version_type=linux
8934   need_lib_prefix=no
8935   need_version=no
8936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937   soname_spec='${libname}${release}${shared_ext}$major'
8938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8939   shlibpath_var=LD_LIBRARY_PATH
8940   shlibpath_overrides_runpath=no
8941   # This implies no fast_install, which is unacceptable.
8942   # Some rework will be needed to allow for fast_install
8943   # before this can be enabled.
8944   hardcode_into_libs=yes
8945
8946   # Append ld.so.conf contents to the search path
8947   if test -f /etc/ld.so.conf; then
8948     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' ' '`
8949     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8950   fi
8951
8952   # We used to test for /lib/ld.so.1 and disable shared libraries on
8953   # powerpc, because MkLinux only supported shared libraries with the
8954   # GNU dynamic linker.  Since this was broken with cross compilers,
8955   # most powerpc-linux boxes support dynamic linking these days and
8956   # people can always --disable-shared, the test was removed, and we
8957   # assume the GNU/Linux dynamic linker is in use.
8958   dynamic_linker='GNU/Linux ld.so'
8959   ;;
8960
8961 knetbsd*-gnu)
8962   version_type=linux
8963   need_lib_prefix=no
8964   need_version=no
8965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966   soname_spec='${libname}${release}${shared_ext}$major'
8967   shlibpath_var=LD_LIBRARY_PATH
8968   shlibpath_overrides_runpath=no
8969   hardcode_into_libs=yes
8970   dynamic_linker='GNU ld.so'
8971   ;;
8972
8973 netbsd*)
8974   version_type=sunos
8975   need_lib_prefix=no
8976   need_version=no
8977   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8979     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8980     dynamic_linker='NetBSD (a.out) ld.so'
8981   else
8982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983     soname_spec='${libname}${release}${shared_ext}$major'
8984     dynamic_linker='NetBSD ld.elf_so'
8985   fi
8986   shlibpath_var=LD_LIBRARY_PATH
8987   shlibpath_overrides_runpath=yes
8988   hardcode_into_libs=yes
8989   ;;
8990
8991 newsos6)
8992   version_type=linux
8993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8994   shlibpath_var=LD_LIBRARY_PATH
8995   shlibpath_overrides_runpath=yes
8996   ;;
8997
8998 nto-qnx*)
8999   version_type=linux
9000   need_lib_prefix=no
9001   need_version=no
9002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   shlibpath_var=LD_LIBRARY_PATH
9005   shlibpath_overrides_runpath=yes
9006   ;;
9007
9008 openbsd* | bitrig*)
9009   version_type=sunos
9010   sys_lib_dlsearch_path_spec="/usr/lib"
9011   need_lib_prefix=no
9012   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9013   case $host_os in
9014     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9015     *)                         need_version=no  ;;
9016   esac
9017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9018   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9019   shlibpath_var=LD_LIBRARY_PATH
9020   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9021     case $host_os in
9022       openbsd2.[89] | openbsd2.[89].*)
9023         shlibpath_overrides_runpath=no
9024         ;;
9025       *)
9026         shlibpath_overrides_runpath=yes
9027         ;;
9028       esac
9029   else
9030     shlibpath_overrides_runpath=yes
9031   fi
9032   ;;
9033
9034 os2*)
9035   libname_spec='$name'
9036   shrext_cmds=".dll"
9037   need_lib_prefix=no
9038   library_names_spec='$libname${shared_ext} $libname.a'
9039   dynamic_linker='OS/2 ld.exe'
9040   shlibpath_var=LIBPATH
9041   ;;
9042
9043 osf3* | osf4* | osf5*)
9044   version_type=osf
9045   need_lib_prefix=no
9046   need_version=no
9047   soname_spec='${libname}${release}${shared_ext}$major'
9048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9051   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9052   ;;
9053
9054 solaris*)
9055   version_type=linux
9056   need_lib_prefix=no
9057   need_version=no
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   shlibpath_overrides_runpath=yes
9062   hardcode_into_libs=yes
9063   # ldd complains unless libraries are executable
9064   postinstall_cmds='chmod +x $lib'
9065   ;;
9066
9067 sunos4*)
9068   version_type=sunos
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   shlibpath_overrides_runpath=yes
9073   if test "$with_gnu_ld" = yes; then
9074     need_lib_prefix=no
9075   fi
9076   need_version=yes
9077   ;;
9078
9079 sysv4 | sysv4.3*)
9080   version_type=linux
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   case $host_vendor in
9085     sni)
9086       shlibpath_overrides_runpath=no
9087       need_lib_prefix=no
9088       export_dynamic_flag_spec='${wl}-Blargedynsym'
9089       runpath_var=LD_RUN_PATH
9090       ;;
9091     siemens)
9092       need_lib_prefix=no
9093       ;;
9094     motorola)
9095       need_lib_prefix=no
9096       need_version=no
9097       shlibpath_overrides_runpath=no
9098       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9099       ;;
9100   esac
9101   ;;
9102
9103 sysv4*MP*)
9104   if test -d /usr/nec ;then
9105     version_type=linux
9106     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9107     soname_spec='$libname${shared_ext}.$major'
9108     shlibpath_var=LD_LIBRARY_PATH
9109   fi
9110   ;;
9111
9112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9113   version_type=freebsd-elf
9114   need_lib_prefix=no
9115   need_version=no
9116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9117   soname_spec='${libname}${release}${shared_ext}$major'
9118   shlibpath_var=LD_LIBRARY_PATH
9119   hardcode_into_libs=yes
9120   if test "$with_gnu_ld" = yes; then
9121     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9122     shlibpath_overrides_runpath=no
9123   else
9124     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9125     shlibpath_overrides_runpath=yes
9126     case $host_os in
9127       sco3.2v5*)
9128         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9129         ;;
9130     esac
9131   fi
9132   sys_lib_dlsearch_path_spec='/usr/lib'
9133   ;;
9134
9135 uts4*)
9136   version_type=linux
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   ;;
9141
9142 *)
9143   dynamic_linker=no
9144   ;;
9145 esac
9146 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9147 echo "${ECHO_T}$dynamic_linker" >&6; }
9148 test "$dynamic_linker" = no && can_build_shared=no
9149
9150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9151 if test "$GCC" = yes; then
9152   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9153 fi
9154
9155
9156 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9157 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9158 if test "${libltdl_cv_shlibext+set}" = set; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161
9162 module=yes
9163 eval libltdl_cv_shlibext=$shrext_cmds
9164
9165 fi
9166 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9167 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9168 if test -n "$libltdl_cv_shlibext"; then
9169
9170 cat >>confdefs.h <<_ACEOF
9171 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9172 _ACEOF
9173
9174 fi
9175
9176
9177 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9178 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9179 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   libltdl_cv_shlibpath_var="$shlibpath_var"
9183 fi
9184 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9185 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9186 if test -n "$libltdl_cv_shlibpath_var"; then
9187
9188 cat >>confdefs.h <<_ACEOF
9189 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9190 _ACEOF
9191
9192 fi
9193
9194
9195 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9196 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9197 if test "${libltdl_cv_sys_search_path+set}" = set; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9201 fi
9202 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9203 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9204 if test -n "$libltdl_cv_sys_search_path"; then
9205   sys_search_path=
9206   for dir in $libltdl_cv_sys_search_path; do
9207     if test -z "$sys_search_path"; then
9208       sys_search_path="$dir"
9209     else
9210       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9211     fi
9212   done
9213
9214 cat >>confdefs.h <<_ACEOF
9215 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9216 _ACEOF
9217
9218 fi
9219
9220 { echo "$as_me:$LINENO: checking for objdir" >&5
9221 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9222 if test "${libltdl_cv_objdir+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   libltdl_cv_objdir="$objdir"
9226   if test -n "$objdir"; then
9227     :
9228   else
9229     rm -f .libs 2>/dev/null
9230     mkdir .libs 2>/dev/null
9231     if test -d .libs; then
9232       libltdl_cv_objdir=.libs
9233     else
9234       # MS-DOS does not allow filenames that begin with a dot.
9235       libltdl_cv_objdir=_libs
9236     fi
9237   rmdir .libs 2>/dev/null
9238   fi
9239
9240 fi
9241 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9242 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9243
9244 cat >>confdefs.h <<_ACEOF
9245 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9246 _ACEOF
9247
9248
9249
9250
9251
9252
9253 # Check for command to grab the raw symbol name followed by C symbol from nm.
9254 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9256 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259
9260 # These are sane defaults that work on at least a few old systems.
9261 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9262
9263 # Character class describing NM global symbol codes.
9264 symcode='[BCDEGRST]'
9265
9266 # Regexp to match symbols that can be accessed directly from C.
9267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9268
9269 # Transform an extracted symbol line into a proper C declaration
9270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9271
9272 # Transform an extracted symbol line into symbol name and symbol address
9273 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'"
9274
9275 # Define system-specific variables.
9276 case $host_os in
9277 aix*)
9278   symcode='[BCDT]'
9279   ;;
9280 cygwin* | mingw* | pw32*)
9281   symcode='[ABCDGISTW]'
9282   ;;
9283 hpux*) # Its linker distinguishes data from code symbols
9284   if test "$host_cpu" = ia64; then
9285     symcode='[ABCDEGRST]'
9286   fi
9287   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9288   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'"
9289   ;;
9290 linux*)
9291   if test "$host_cpu" = ia64; then
9292     symcode='[ABCDGIRSTW]'
9293     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9294     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'"
9295   fi
9296   ;;
9297 irix* | nonstopux*)
9298   symcode='[BCDEGRST]'
9299   ;;
9300 osf*)
9301   symcode='[BCDEGQRST]'
9302   ;;
9303 solaris*)
9304   symcode='[BDRT]'
9305   ;;
9306 sco3.2v5*)
9307   symcode='[DT]'
9308   ;;
9309 sysv4.2uw2*)
9310   symcode='[DT]'
9311   ;;
9312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9313   symcode='[ABDT]'
9314   ;;
9315 sysv4)
9316   symcode='[DFNSTU]'
9317   ;;
9318 esac
9319
9320 # Handle CRLF in mingw tool chain
9321 opt_cr=
9322 case $build_os in
9323 mingw*)
9324   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9325   ;;
9326 esac
9327
9328 # If we're using GNU nm, then use its standard symbol codes.
9329 case `$NM -V 2>&1` in
9330 *GNU* | *'with BFD'*)
9331   symcode='[ABCDGIRSTW]' ;;
9332 esac
9333
9334 # Try without a prefix undercore, then with it.
9335 for ac_symprfx in "" "_"; do
9336
9337   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9338   symxfrm="\\1 $ac_symprfx\\2 \\2"
9339
9340   # Write the raw and C identifiers.
9341   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9342
9343   # Check to see that the pipe works correctly.
9344   pipe_works=no
9345
9346   rm -f conftest*
9347   cat > conftest.$ac_ext <<EOF
9348 #ifdef __cplusplus
9349 extern "C" {
9350 #endif
9351 char nm_test_var;
9352 void nm_test_func(){}
9353 #ifdef __cplusplus
9354 }
9355 #endif
9356 int main(){nm_test_var='a';nm_test_func();return(0);}
9357 EOF
9358
9359   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360   (eval $ac_compile) 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); }; then
9364     # Now try to grab the symbols.
9365     nlist=conftest.nm
9366     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9367   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } && test -s "$nlist"; then
9371       # Try sorting and uniquifying the output.
9372       if sort "$nlist" | uniq > "$nlist"T; then
9373         mv -f "$nlist"T "$nlist"
9374       else
9375         rm -f "$nlist"T
9376       fi
9377
9378       # Make sure that we snagged all the symbols we need.
9379       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9380         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9381           cat <<EOF > conftest.$ac_ext
9382 #ifdef __cplusplus
9383 extern "C" {
9384 #endif
9385
9386 EOF
9387           # Now generate the symbol file.
9388           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9389
9390           cat <<EOF >> conftest.$ac_ext
9391 #if defined (__STDC__) && __STDC__
9392 # define lt_ptr_t void *
9393 #else
9394 # define lt_ptr_t char *
9395 # define const
9396 #endif
9397
9398 /* The mapping between symbol names and symbols. */
9399 const struct {
9400   const char *name;
9401   lt_ptr_t address;
9402 }
9403 lt_preloaded_symbols[] =
9404 {
9405 EOF
9406           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9407           cat <<\EOF >> conftest.$ac_ext
9408   {0, (lt_ptr_t) 0}
9409 };
9410
9411 #ifdef __cplusplus
9412 }
9413 #endif
9414 EOF
9415           # Now try linking the two files.
9416           mv conftest.$ac_objext conftstm.$ac_objext
9417           lt_save_LIBS="$LIBS"
9418           lt_save_CFLAGS="$CFLAGS"
9419           LIBS="conftstm.$ac_objext"
9420           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9421           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422   (eval $ac_link) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9426             pipe_works=yes
9427           fi
9428           LIBS="$lt_save_LIBS"
9429           CFLAGS="$lt_save_CFLAGS"
9430         else
9431           echo "cannot find nm_test_func in $nlist" >&5
9432         fi
9433       else
9434         echo "cannot find nm_test_var in $nlist" >&5
9435       fi
9436     else
9437       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9438     fi
9439   else
9440     echo "$progname: failed program was:" >&5
9441     cat conftest.$ac_ext >&5
9442   fi
9443   rm -f conftest* conftst*
9444
9445   # Do not use the global_symbol_pipe unless it works.
9446   if test "$pipe_works" = yes; then
9447     break
9448   else
9449     lt_cv_sys_global_symbol_pipe=
9450   fi
9451 done
9452
9453 fi
9454
9455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9456   lt_cv_sys_global_symbol_to_cdecl=
9457 fi
9458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9459   { echo "$as_me:$LINENO: result: failed" >&5
9460 echo "${ECHO_T}failed" >&6; }
9461 else
9462   { echo "$as_me:$LINENO: result: ok" >&5
9463 echo "${ECHO_T}ok" >&6; }
9464 fi
9465
9466
9467 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9468 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9469 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9473     libltdl_cv_preloaded_symbols=yes
9474   else
9475     libltdl_cv_preloaded_symbols=no
9476   fi
9477
9478 fi
9479 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9480 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9481 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9482
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_PRELOADED_SYMBOLS 1
9485 _ACEOF
9486
9487 fi
9488
9489 LIBADD_DL=
9490
9491 ac_ext=c
9492 ac_cpp='$CPP $CPPFLAGS'
9493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9496
9497
9498 { echo "$as_me:$LINENO: checking for shl_load" >&5
9499 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9500 if test "${ac_cv_func_shl_load+set}" = set; then
9501   echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503   cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h.  */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h.  */
9509 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9511 #define shl_load innocuous_shl_load
9512
9513 /* System header to define __stub macros and hopefully few prototypes,
9514     which can conflict with char shl_load (); below.
9515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516     <limits.h> exists even on freestanding compilers.  */
9517
9518 #ifdef __STDC__
9519 # include <limits.h>
9520 #else
9521 # include <assert.h>
9522 #endif
9523
9524 #undef shl_load
9525
9526 /* Override any GCC internal prototype to avoid an error.
9527    Use char because int might match the return type of a GCC
9528    builtin and then its argument prototype would still apply.  */
9529 #ifdef __cplusplus
9530 extern "C"
9531 #endif
9532 char shl_load ();
9533 /* The GNU C library defines this for functions which it implements
9534     to always fail with ENOSYS.  Some functions are actually named
9535     something starting with __ and the normal name is an alias.  */
9536 #if defined __stub_shl_load || defined __stub___shl_load
9537 choke me
9538 #endif
9539
9540 int
9541 main ()
9542 {
9543 return shl_load ();
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (ac_try="$ac_link"
9550 case "(($ac_try" in
9551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552   *) ac_try_echo=$ac_try;;
9553 esac
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555   (eval "$ac_link") 2>conftest.er1
9556   ac_status=$?
9557   grep -v '^ *+' conftest.er1 >conftest.err
9558   rm -f conftest.er1
9559   cat conftest.err >&5
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9563   { (case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568   (eval "$ac_try") 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; } &&
9572          { ac_try='test -s conftest$ac_exeext'
9573   { (case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578   (eval "$ac_try") 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; }; then
9582   ac_cv_func_shl_load=yes
9583 else
9584   echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587         ac_cv_func_shl_load=no
9588 fi
9589
9590 rm -f core conftest.err conftest.$ac_objext \
9591       conftest$ac_exeext conftest.$ac_ext
9592 fi
9593 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9594 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9595 if test $ac_cv_func_shl_load = yes; then
9596
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_SHL_LOAD 1
9599 _ACEOF
9600
9601 else
9602   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9603 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9605   echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607   ac_check_lib_save_LIBS=$LIBS
9608 LIBS="-ldld  $LIBS"
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h.  */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h.  */
9615
9616 /* Override any GCC internal prototype to avoid an error.
9617    Use char because int might match the return type of a GCC
9618    builtin and then its argument prototype would still apply.  */
9619 #ifdef __cplusplus
9620 extern "C"
9621 #endif
9622 char shl_load ();
9623 int
9624 main ()
9625 {
9626 return shl_load ();
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (ac_try="$ac_link"
9633 case "(($ac_try" in
9634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635   *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638   (eval "$ac_link") 2>conftest.er1
9639   ac_status=$?
9640   grep -v '^ *+' conftest.er1 >conftest.err
9641   rm -f conftest.er1
9642   cat conftest.err >&5
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); } &&
9645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9646   { (case "(($ac_try" in
9647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648   *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651   (eval "$ac_try") 2>&5
9652   ac_status=$?
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); }; } &&
9655          { ac_try='test -s conftest$ac_exeext'
9656   { (case "(($ac_try" in
9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658   *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661   (eval "$ac_try") 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; }; then
9665   ac_cv_lib_dld_shl_load=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670         ac_cv_lib_dld_shl_load=no
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext \
9674       conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9676 fi
9677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9679 if test $ac_cv_lib_dld_shl_load = yes; then
9680
9681 cat >>confdefs.h <<\_ACEOF
9682 #define HAVE_SHL_LOAD 1
9683 _ACEOF
9684
9685         LIBADD_DL="$LIBADD_DL -ldld"
9686 else
9687   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9688 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9689 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9690   echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692   ac_check_lib_save_LIBS=$LIBS
9693 LIBS="-ldl  $LIBS"
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700
9701 /* Override any GCC internal prototype to avoid an error.
9702    Use char because int might match the return type of a GCC
9703    builtin and then its argument prototype would still apply.  */
9704 #ifdef __cplusplus
9705 extern "C"
9706 #endif
9707 char dlopen ();
9708 int
9709 main ()
9710 {
9711 return dlopen ();
9712   ;
9713   return 0;
9714 }
9715 _ACEOF
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9718 case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723   (eval "$ac_link") 2>conftest.er1
9724   ac_status=$?
9725   grep -v '^ *+' conftest.er1 >conftest.err
9726   rm -f conftest.er1
9727   cat conftest.err >&5
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } &&
9730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9731   { (case "(($ac_try" in
9732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733   *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736   (eval "$ac_try") 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; } &&
9740          { ac_try='test -s conftest$ac_exeext'
9741   { (case "(($ac_try" in
9742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743   *) ac_try_echo=$ac_try;;
9744 esac
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746   (eval "$ac_try") 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   ac_cv_lib_dl_dlopen=yes
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755         ac_cv_lib_dl_dlopen=no
9756 fi
9757
9758 rm -f core conftest.err conftest.$ac_objext \
9759       conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9761 fi
9762 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9763 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9764 if test $ac_cv_lib_dl_dlopen = yes; then
9765
9766 cat >>confdefs.h <<\_ACEOF
9767 #define HAVE_LIBDL 1
9768 _ACEOF
9769
9770                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9771 else
9772   cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778 #if HAVE_DLFCN_H
9779 #  include <dlfcn.h>
9780 #endif
9781
9782 int
9783 main ()
9784 {
9785 dlopen(0, 0);
9786   ;
9787   return 0;
9788 }
9789 _ACEOF
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (ac_try="$ac_link"
9792 case "(($ac_try" in
9793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794   *) ac_try_echo=$ac_try;;
9795 esac
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797   (eval "$ac_link") 2>conftest.er1
9798   ac_status=$?
9799   grep -v '^ *+' conftest.er1 >conftest.err
9800   rm -f conftest.er1
9801   cat conftest.err >&5
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); } &&
9804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; } &&
9814          { ac_try='test -s conftest$ac_exeext'
9815   { (case "(($ac_try" in
9816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817   *) ac_try_echo=$ac_try;;
9818 esac
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820   (eval "$ac_try") 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); }; }; then
9824
9825 cat >>confdefs.h <<\_ACEOF
9826 #define HAVE_LIBDL 1
9827 _ACEOF
9828  libltdl_cv_func_dlopen="yes"
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   ac_check_lib_save_LIBS=$LIBS
9839 LIBS="-lsvld  $LIBS"
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h.  */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h.  */
9846
9847 /* Override any GCC internal prototype to avoid an error.
9848    Use char because int might match the return type of a GCC
9849    builtin and then its argument prototype would still apply.  */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 char dlopen ();
9854 int
9855 main ()
9856 {
9857 return dlopen ();
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869   (eval "$ac_link") 2>conftest.er1
9870   ac_status=$?
9871   grep -v '^ *+' conftest.er1 >conftest.err
9872   rm -f conftest.er1
9873   cat conftest.err >&5
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } &&
9876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877   { (case "(($ac_try" in
9878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879   *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882   (eval "$ac_try") 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; } &&
9886          { ac_try='test -s conftest$ac_exeext'
9887   { (case "(($ac_try" in
9888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889   *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892   (eval "$ac_try") 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; }; then
9896   ac_cv_lib_svld_dlopen=yes
9897 else
9898   echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901         ac_cv_lib_svld_dlopen=no
9902 fi
9903
9904 rm -f core conftest.err conftest.$ac_objext \
9905       conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9907 fi
9908 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9909 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9910 if test $ac_cv_lib_svld_dlopen = yes; then
9911
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_LIBDL 1
9914 _ACEOF
9915
9916                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9917 else
9918   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9919 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9920 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   ac_check_lib_save_LIBS=$LIBS
9924 LIBS="-ldld  $LIBS"
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h.  */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h.  */
9931
9932 /* Override any GCC internal prototype to avoid an error.
9933    Use char because int might match the return type of a GCC
9934    builtin and then its argument prototype would still apply.  */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 char dld_link ();
9939 int
9940 main ()
9941 {
9942 return dld_link ();
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9949 case "(($ac_try" in
9950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951   *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954   (eval "$ac_link") 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962   { (case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_try") 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; } &&
9971          { ac_try='test -s conftest$ac_exeext'
9972   { (case "(($ac_try" in
9973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974   *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977   (eval "$ac_try") 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }; }; then
9981   ac_cv_lib_dld_dld_link=yes
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986         ac_cv_lib_dld_dld_link=no
9987 fi
9988
9989 rm -f core conftest.err conftest.$ac_objext \
9990       conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9992 fi
9993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9994 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9995 if test $ac_cv_lib_dld_dld_link = yes; then
9996
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_DLD 1
9999 _ACEOF
10000
10001                 LIBADD_DL="$LIBADD_DL -ldld"
10002 else
10003   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10004 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10005 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h.  */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h.  */
10014 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10016 #define _dyld_func_lookup innocuous__dyld_func_lookup
10017
10018 /* System header to define __stub macros and hopefully few prototypes,
10019     which can conflict with char _dyld_func_lookup (); below.
10020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021     <limits.h> exists even on freestanding compilers.  */
10022
10023 #ifdef __STDC__
10024 # include <limits.h>
10025 #else
10026 # include <assert.h>
10027 #endif
10028
10029 #undef _dyld_func_lookup
10030
10031 /* Override any GCC internal prototype to avoid an error.
10032    Use char because int might match the return type of a GCC
10033    builtin and then its argument prototype would still apply.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char _dyld_func_lookup ();
10038 /* The GNU C library defines this for functions which it implements
10039     to always fail with ENOSYS.  Some functions are actually named
10040     something starting with __ and the normal name is an alias.  */
10041 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10042 choke me
10043 #endif
10044
10045 int
10046 main ()
10047 {
10048 return _dyld_func_lookup ();
10049   ;
10050   return 0;
10051 }
10052 _ACEOF
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_link") 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } &&
10067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068   { (case "(($ac_try" in
10069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070   *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073   (eval "$ac_try") 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (case "(($ac_try" in
10079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080   *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083   (eval "$ac_try") 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ac_cv_func__dyld_func_lookup=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092         ac_cv_func__dyld_func_lookup=no
10093 fi
10094
10095 rm -f core conftest.err conftest.$ac_objext \
10096       conftest$ac_exeext conftest.$ac_ext
10097 fi
10098 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10099 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10100 if test $ac_cv_func__dyld_func_lookup = yes; then
10101
10102 cat >>confdefs.h <<\_ACEOF
10103 #define HAVE_DYLD 1
10104 _ACEOF
10105
10106 fi
10107
10108
10109 fi
10110
10111
10112 fi
10113
10114
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext \
10118       conftest$ac_exeext conftest.$ac_ext
10119
10120 fi
10121
10122
10123 fi
10124
10125
10126 fi
10127
10128
10129 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10130 then
10131   lt_save_LIBS="$LIBS"
10132   LIBS="$LIBS $LIBADD_DL"
10133
10134 for ac_func in dlerror
10135 do
10136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10140   echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142   cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h.  */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h.  */
10148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10150 #define $ac_func innocuous_$ac_func
10151
10152 /* System header to define __stub macros and hopefully few prototypes,
10153     which can conflict with char $ac_func (); below.
10154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10155     <limits.h> exists even on freestanding compilers.  */
10156
10157 #ifdef __STDC__
10158 # include <limits.h>
10159 #else
10160 # include <assert.h>
10161 #endif
10162
10163 #undef $ac_func
10164
10165 /* Override any GCC internal prototype to avoid an error.
10166    Use char because int might match the return type of a GCC
10167    builtin and then its argument prototype would still apply.  */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char $ac_func ();
10172 /* The GNU C library defines this for functions which it implements
10173     to always fail with ENOSYS.  Some functions are actually named
10174     something starting with __ and the normal name is an alias.  */
10175 #if defined __stub_$ac_func || defined __stub___$ac_func
10176 choke me
10177 #endif
10178
10179 int
10180 main ()
10181 {
10182 return $ac_func ();
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191   *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194   (eval "$ac_link") 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } &&
10201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202   { (case "(($ac_try" in
10203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204   *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207   (eval "$ac_try") 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; } &&
10211          { ac_try='test -s conftest$ac_exeext'
10212   { (case "(($ac_try" in
10213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214   *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217   (eval "$ac_try") 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; }; then
10221   eval "$as_ac_var=yes"
10222 else
10223   echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226         eval "$as_ac_var=no"
10227 fi
10228
10229 rm -f core conftest.err conftest.$ac_objext \
10230       conftest$ac_exeext conftest.$ac_ext
10231 fi
10232 ac_res=`eval echo '${'$as_ac_var'}'`
10233                { echo "$as_me:$LINENO: result: $ac_res" >&5
10234 echo "${ECHO_T}$ac_res" >&6; }
10235 if test `eval echo '${'$as_ac_var'}'` = yes; then
10236   cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10238 _ACEOF
10239
10240 fi
10241 done
10242
10243   LIBS="$lt_save_LIBS"
10244 fi
10245 ac_ext=c
10246 ac_cpp='$CPP $CPPFLAGS'
10247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10250
10251
10252
10253 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10254 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10255 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10256   echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258   ac_cv_sys_symbol_underscore=no
10259   cat > conftest.$ac_ext <<EOF
10260 void nm_test_func(){}
10261 int main(){nm_test_func;return 0;}
10262 EOF
10263   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264   (eval $ac_compile) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; then
10268     # Now try to grab the symbols.
10269     ac_nlist=conftest.nm
10270     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10271   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } && test -s "$ac_nlist"; then
10275       # See whether the symbols have a leading underscore.
10276       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10277         ac_cv_sys_symbol_underscore=yes
10278       else
10279         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10280           :
10281         else
10282           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10283         fi
10284       fi
10285     else
10286       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10287     fi
10288   else
10289     echo "configure: failed program was:" >&5
10290     cat conftest.c >&5
10291   fi
10292   rm -rf conftest*
10293
10294 fi
10295 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10296 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10297
10298
10299 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10300   if test x"$libltdl_cv_func_dlopen" = xyes ||
10301      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10302         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10303 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10304 if test "${libltdl_cv_need_uscore+set}" = set; then
10305   echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307   libltdl_cv_need_uscore=unknown
10308           save_LIBS="$LIBS"
10309           LIBS="$LIBS $LIBADD_DL"
10310           if test "$cross_compiling" = yes; then :
10311   libltdl_cv_need_uscore=cross
10312 else
10313   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10314   lt_status=$lt_dlunknown
10315   cat > conftest.$ac_ext <<EOF
10316 #line 10316 "configure"
10317 #include "confdefs.h"
10318
10319 #if HAVE_DLFCN_H
10320 #include <dlfcn.h>
10321 #endif
10322
10323 #include <stdio.h>
10324
10325 #ifdef RTLD_GLOBAL
10326 #  define LT_DLGLOBAL           RTLD_GLOBAL
10327 #else
10328 #  ifdef DL_GLOBAL
10329 #    define LT_DLGLOBAL         DL_GLOBAL
10330 #  else
10331 #    define LT_DLGLOBAL         0
10332 #  endif
10333 #endif
10334
10335 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10336    find out it does not work in some platform. */
10337 #ifndef LT_DLLAZY_OR_NOW
10338 #  ifdef RTLD_LAZY
10339 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10340 #  else
10341 #    ifdef DL_LAZY
10342 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10343 #    else
10344 #      ifdef RTLD_NOW
10345 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10346 #      else
10347 #        ifdef DL_NOW
10348 #          define LT_DLLAZY_OR_NOW      DL_NOW
10349 #        else
10350 #          define LT_DLLAZY_OR_NOW      0
10351 #        endif
10352 #      endif
10353 #    endif
10354 #  endif
10355 #endif
10356
10357 #ifdef __cplusplus
10358 extern "C" void exit (int);
10359 #endif
10360
10361 void fnord() { int i=42;}
10362 int main ()
10363 {
10364   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10365   int status = $lt_dlunknown;
10366
10367   if (self)
10368     {
10369       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10370       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10371       /* dlclose (self); */
10372     }
10373   else
10374     puts (dlerror ());
10375
10376     exit (status);
10377 }
10378 EOF
10379   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380   (eval $ac_link) 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10384     (./conftest; exit; ) >&5 2>/dev/null
10385     lt_status=$?
10386     case x$lt_status in
10387       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10388       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10389       x$lt_dlunknown|x*)  ;;
10390     esac
10391   else :
10392     # compilation failed
10393
10394   fi
10395 fi
10396 rm -fr conftest*
10397
10398           LIBS="$save_LIBS"
10399
10400 fi
10401 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10402 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10403   fi
10404 fi
10405
10406 if test x"$libltdl_cv_need_uscore" = xyes; then
10407
10408 cat >>confdefs.h <<\_ACEOF
10409 #define NEED_USCORE 1
10410 _ACEOF
10411
10412 fi
10413
10414
10415 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10416 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10417 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10418   echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420   # PORTME does your system automatically load deplibs for dlopen?
10421   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10422   # For now, we just catch OSes we know something about -- in the
10423   # future, we'll try test this programmatically.
10424   libltdl_cv_sys_dlopen_deplibs=unknown
10425   case "$host_os" in
10426   aix3*|aix4.1.*|aix4.2.*)
10427     # Unknown whether this is true for these versions of AIX, but
10428     # we want this `case' here to explicitly catch those versions.
10429     libltdl_cv_sys_dlopen_deplibs=unknown
10430     ;;
10431   aix[45]*)
10432     libltdl_cv_sys_dlopen_deplibs=yes
10433     ;;
10434   darwin*)
10435     # Assuming the user has installed a libdl from somewhere, this is true
10436     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10437     libltdl_cv_sys_dlopen_deplibs=yes
10438     ;;
10439   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10440     # GNU and its variants, using gnu ld.so (Glibc)
10441     libltdl_cv_sys_dlopen_deplibs=yes
10442     ;;
10443   hpux10*|hpux11*)
10444     libltdl_cv_sys_dlopen_deplibs=yes
10445     ;;
10446   interix*)
10447     libltdl_cv_sys_dlopen_deplibs=yes
10448     ;;
10449   irix[12345]*|irix6.[01]*)
10450     # Catch all versions of IRIX before 6.2, and indicate that we don't
10451     # know how it worked for any of those versions.
10452     libltdl_cv_sys_dlopen_deplibs=unknown
10453     ;;
10454   irix*)
10455     # The case above catches anything before 6.2, and it's known that
10456     # at 6.2 and later dlopen does load deplibs.
10457     libltdl_cv_sys_dlopen_deplibs=yes
10458     ;;
10459   netbsd*)
10460     libltdl_cv_sys_dlopen_deplibs=yes
10461     ;;
10462   openbsd*)
10463     libltdl_cv_sys_dlopen_deplibs=yes
10464     ;;
10465   osf[1234]*)
10466     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10467     # it did *not* use an RPATH in a shared library to find objects the
10468     # library depends on, so we explicitly say `no'.
10469     libltdl_cv_sys_dlopen_deplibs=no
10470     ;;
10471   osf5.0|osf5.0a|osf5.1)
10472     # dlopen *does* load deplibs and with the right loader patch applied
10473     # it even uses RPATH in a shared library to search for shared objects
10474     # that the library depends on, but there's no easy way to know if that
10475     # patch is installed.  Since this is the case, all we can really
10476     # say is unknown -- it depends on the patch being installed.  If
10477     # it is, this changes to `yes'.  Without it, it would be `no'.
10478     libltdl_cv_sys_dlopen_deplibs=unknown
10479     ;;
10480   osf*)
10481     # the two cases above should catch all versions of osf <= 5.1.  Read
10482     # the comments above for what we know about them.
10483     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10484     # is used to find them so we can finally say `yes'.
10485     libltdl_cv_sys_dlopen_deplibs=yes
10486     ;;
10487   solaris*)
10488     libltdl_cv_sys_dlopen_deplibs=yes
10489     ;;
10490   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491     libltdl_cv_sys_dlopen_deplibs=yes
10492     ;;
10493   esac
10494
10495 fi
10496 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10497 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10498 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10499
10500 cat >>confdefs.h <<\_ACEOF
10501 #define LTDL_DLOPEN_DEPLIBS 1
10502 _ACEOF
10503
10504 fi
10505
10506
10507 for ac_header in argz.h
10508 do
10509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514   echo $ECHO_N "(cached) $ECHO_C" >&6
10515 fi
10516 ac_res=`eval echo '${'$as_ac_Header'}'`
10517                { echo "$as_me:$LINENO: result: $ac_res" >&5
10518 echo "${ECHO_T}$ac_res" >&6; }
10519 else
10520   # Is the header compilable?
10521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h.  */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h.  */
10529 $ac_includes_default
10530 #include <$ac_header>
10531 _ACEOF
10532 rm -f conftest.$ac_objext
10533 if { (ac_try="$ac_compile"
10534 case "(($ac_try" in
10535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536   *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539   (eval "$ac_compile") 2>conftest.er1
10540   ac_status=$?
10541   grep -v '^ *+' conftest.er1 >conftest.err
10542   rm -f conftest.er1
10543   cat conftest.err >&5
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); } &&
10546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10547   { (case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_try") 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; } &&
10556          { ac_try='test -s conftest.$ac_objext'
10557   { (case "(($ac_try" in
10558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559   *) ac_try_echo=$ac_try;;
10560 esac
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562   (eval "$ac_try") 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; }; then
10566   ac_header_compiler=yes
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571         ac_header_compiler=no
10572 fi
10573
10574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576 echo "${ECHO_T}$ac_header_compiler" >&6; }
10577
10578 # Is the header present?
10579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587 #include <$ac_header>
10588 _ACEOF
10589 if { (ac_try="$ac_cpp conftest.$ac_ext"
10590 case "(($ac_try" in
10591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592   *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } >/dev/null; then
10602   if test -s conftest.err; then
10603     ac_cpp_err=$ac_c_preproc_warn_flag
10604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10605   else
10606     ac_cpp_err=
10607   fi
10608 else
10609   ac_cpp_err=yes
10610 fi
10611 if test -z "$ac_cpp_err"; then
10612   ac_header_preproc=yes
10613 else
10614   echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10616
10617   ac_header_preproc=no
10618 fi
10619
10620 rm -f conftest.err conftest.$ac_ext
10621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622 echo "${ECHO_T}$ac_header_preproc" >&6; }
10623
10624 # So?  What about this header?
10625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10626   yes:no: )
10627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10631     ac_header_preproc=yes
10632     ;;
10633   no:yes:* )
10634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10646     ( cat <<\_ASBOX
10647 ## ------------------------------------ ##
10648 ## Report this to http://llvm.org/bugs/ ##
10649 ## ------------------------------------ ##
10650 _ASBOX
10651      ) | sed "s/^/$as_me: WARNING:     /" >&2
10652     ;;
10653 esac
10654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10657   echo $ECHO_N "(cached) $ECHO_C" >&6
10658 else
10659   eval "$as_ac_Header=\$ac_header_preproc"
10660 fi
10661 ac_res=`eval echo '${'$as_ac_Header'}'`
10662                { echo "$as_me:$LINENO: result: $ac_res" >&5
10663 echo "${ECHO_T}$ac_res" >&6; }
10664
10665 fi
10666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10667   cat >>confdefs.h <<_ACEOF
10668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10669 _ACEOF
10670
10671 fi
10672
10673 done
10674
10675
10676 { echo "$as_me:$LINENO: checking for error_t" >&5
10677 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10678 if test "${ac_cv_type_error_t+set}" = set; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h.  */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h.  */
10687 #if HAVE_ARGZ_H
10688 #  include <argz.h>
10689 #endif
10690
10691 typedef error_t ac__type_new_;
10692 int
10693 main ()
10694 {
10695 if ((ac__type_new_ *) 0)
10696   return 0;
10697 if (sizeof (ac__type_new_))
10698   return 0;
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710   (eval "$ac_compile") 2>conftest.er1
10711   ac_status=$?
10712   grep -v '^ *+' conftest.er1 >conftest.err
10713   rm -f conftest.er1
10714   cat conftest.err >&5
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); } &&
10717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10718   { (case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_try") 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }; } &&
10727          { ac_try='test -s conftest.$ac_objext'
10728   { (case "(($ac_try" in
10729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730   *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733   (eval "$ac_try") 2>&5
10734   ac_status=$?
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); }; }; then
10737   ac_cv_type_error_t=yes
10738 else
10739   echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10741
10742         ac_cv_type_error_t=no
10743 fi
10744
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 fi
10747 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10748 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10749 if test $ac_cv_type_error_t = yes; then
10750
10751 cat >>confdefs.h <<_ACEOF
10752 #define HAVE_ERROR_T 1
10753 _ACEOF
10754
10755
10756 else
10757
10758 cat >>confdefs.h <<\_ACEOF
10759 #define error_t int
10760 _ACEOF
10761
10762 fi
10763
10764
10765
10766
10767
10768
10769
10770 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10771 do
10772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10773 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h.  */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h.  */
10784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10786 #define $ac_func innocuous_$ac_func
10787
10788 /* System header to define __stub macros and hopefully few prototypes,
10789     which can conflict with char $ac_func (); below.
10790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791     <limits.h> exists even on freestanding compilers.  */
10792
10793 #ifdef __STDC__
10794 # include <limits.h>
10795 #else
10796 # include <assert.h>
10797 #endif
10798
10799 #undef $ac_func
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802    Use char because int might match the return type of a GCC
10803    builtin and then its argument prototype would still apply.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char $ac_func ();
10808 /* The GNU C library defines this for functions which it implements
10809     to always fail with ENOSYS.  Some functions are actually named
10810     something starting with __ and the normal name is an alias.  */
10811 #if defined __stub_$ac_func || defined __stub___$ac_func
10812 choke me
10813 #endif
10814
10815 int
10816 main ()
10817 {
10818 return $ac_func ();
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_link") 2>conftest.er1
10831   ac_status=$?
10832   grep -v '^ *+' conftest.er1 >conftest.err
10833   rm -f conftest.er1
10834   cat conftest.err >&5
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); } &&
10837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838   { (case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_try") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; } &&
10847          { ac_try='test -s conftest$ac_exeext'
10848   { (case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853   (eval "$ac_try") 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   eval "$as_ac_var=yes"
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862         eval "$as_ac_var=no"
10863 fi
10864
10865 rm -f core conftest.err conftest.$ac_objext \
10866       conftest$ac_exeext conftest.$ac_ext
10867 fi
10868 ac_res=`eval echo '${'$as_ac_var'}'`
10869                { echo "$as_me:$LINENO: result: $ac_res" >&5
10870 echo "${ECHO_T}$ac_res" >&6; }
10871 if test `eval echo '${'$as_ac_var'}'` = yes; then
10872   cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10874 _ACEOF
10875
10876 fi
10877 done
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10907                   stdio.h unistd.h
10908 do
10909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 fi
10916 ac_res=`eval echo '${'$as_ac_Header'}'`
10917                { echo "$as_me:$LINENO: result: $ac_res" >&5
10918 echo "${ECHO_T}$ac_res" >&6; }
10919 else
10920   # Is the header compilable?
10921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 $ac_includes_default
10930 #include <$ac_header>
10931 _ACEOF
10932 rm -f conftest.$ac_objext
10933 if { (ac_try="$ac_compile"
10934 case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939   (eval "$ac_compile") 2>conftest.er1
10940   ac_status=$?
10941   grep -v '^ *+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } &&
10946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947   { (case "(($ac_try" in
10948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949   *) ac_try_echo=$ac_try;;
10950 esac
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952   (eval "$ac_try") 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); }; } &&
10956          { ac_try='test -s conftest.$ac_objext'
10957   { (case "(($ac_try" in
10958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959   *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962   (eval "$ac_try") 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   ac_header_compiler=yes
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971         ac_header_compiler=no
10972 fi
10973
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10976 echo "${ECHO_T}$ac_header_compiler" >&6; }
10977
10978 # Is the header present?
10979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h.  */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h.  */
10987 #include <$ac_header>
10988 _ACEOF
10989 if { (ac_try="$ac_cpp conftest.$ac_ext"
10990 case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10996   ac_status=$?
10997   grep -v '^ *+' conftest.er1 >conftest.err
10998   rm -f conftest.er1
10999   cat conftest.err >&5
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); } >/dev/null; then
11002   if test -s conftest.err; then
11003     ac_cpp_err=$ac_c_preproc_warn_flag
11004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11005   else
11006     ac_cpp_err=
11007   fi
11008 else
11009   ac_cpp_err=yes
11010 fi
11011 if test -z "$ac_cpp_err"; then
11012   ac_header_preproc=yes
11013 else
11014   echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11016
11017   ac_header_preproc=no
11018 fi
11019
11020 rm -f conftest.err conftest.$ac_ext
11021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11022 echo "${ECHO_T}$ac_header_preproc" >&6; }
11023
11024 # So?  What about this header?
11025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11026   yes:no: )
11027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11031     ac_header_preproc=yes
11032     ;;
11033   no:yes:* )
11034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11046     ( cat <<\_ASBOX
11047 ## ------------------------------------ ##
11048 ## Report this to http://llvm.org/bugs/ ##
11049 ## ------------------------------------ ##
11050 _ASBOX
11051      ) | sed "s/^/$as_me: WARNING:     /" >&2
11052     ;;
11053 esac
11054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057   echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059   eval "$as_ac_Header=\$ac_header_preproc"
11060 fi
11061 ac_res=`eval echo '${'$as_ac_Header'}'`
11062                { echo "$as_me:$LINENO: result: $ac_res" >&5
11063 echo "${ECHO_T}$ac_res" >&6; }
11064
11065 fi
11066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11067   cat >>confdefs.h <<_ACEOF
11068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11069 _ACEOF
11070
11071 fi
11072
11073 done
11074
11075
11076
11077
11078
11079 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.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 for ac_header in string.h strings.h
11250 do
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 fi
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259                { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11261 else
11262   # Is the header compilable?
11263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h.  */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h.  */
11271 $ac_includes_default
11272 #include <$ac_header>
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_compile") 2>conftest.er1
11282   ac_status=$?
11283   grep -v '^ *+' conftest.er1 >conftest.err
11284   rm -f conftest.er1
11285   cat conftest.err >&5
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } &&
11288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11289   { (case "(($ac_try" in
11290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291   *) ac_try_echo=$ac_try;;
11292 esac
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294   (eval "$ac_try") 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; } &&
11298          { ac_try='test -s conftest.$ac_objext'
11299   { (case "(($ac_try" in
11300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301   *) ac_try_echo=$ac_try;;
11302 esac
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304   (eval "$ac_try") 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }; }; then
11308   ac_header_compiler=yes
11309 else
11310   echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11312
11313         ac_header_compiler=no
11314 fi
11315
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11318 echo "${ECHO_T}$ac_header_compiler" >&6; }
11319
11320 # Is the header present?
11321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11323 cat >conftest.$ac_ext <<_ACEOF
11324 /* confdefs.h.  */
11325 _ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h.  */
11329 #include <$ac_header>
11330 _ACEOF
11331 if { (ac_try="$ac_cpp conftest.$ac_ext"
11332 case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338   ac_status=$?
11339   grep -v '^ *+' conftest.er1 >conftest.err
11340   rm -f conftest.er1
11341   cat conftest.err >&5
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } >/dev/null; then
11344   if test -s conftest.err; then
11345     ac_cpp_err=$ac_c_preproc_warn_flag
11346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11347   else
11348     ac_cpp_err=
11349   fi
11350 else
11351   ac_cpp_err=yes
11352 fi
11353 if test -z "$ac_cpp_err"; then
11354   ac_header_preproc=yes
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359   ac_header_preproc=no
11360 fi
11361
11362 rm -f conftest.err conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 echo "${ECHO_T}$ac_header_preproc" >&6; }
11365
11366 # So?  What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368   yes:no: )
11369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373     ac_header_preproc=yes
11374     ;;
11375   no:yes:* )
11376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388     ( cat <<\_ASBOX
11389 ## ------------------------------------ ##
11390 ## Report this to http://llvm.org/bugs/ ##
11391 ## ------------------------------------ ##
11392 _ASBOX
11393      ) | sed "s/^/$as_me: WARNING:     /" >&2
11394     ;;
11395 esac
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401   eval "$as_ac_Header=\$ac_header_preproc"
11402 fi
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404                { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406
11407 fi
11408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409   cat >>confdefs.h <<_ACEOF
11410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411 _ACEOF
11412  break
11413 fi
11414
11415 done
11416
11417
11418
11419
11420 for ac_func in strchr index
11421 do
11422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11436 #define $ac_func innocuous_$ac_func
11437
11438 /* System header to define __stub macros and hopefully few prototypes,
11439     which can conflict with char $ac_func (); below.
11440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441     <limits.h> exists even on freestanding compilers.  */
11442
11443 #ifdef __STDC__
11444 # include <limits.h>
11445 #else
11446 # include <assert.h>
11447 #endif
11448
11449 #undef $ac_func
11450
11451 /* Override any GCC internal prototype to avoid an error.
11452    Use char because int might match the return type of a GCC
11453    builtin and then its argument prototype would still apply.  */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char $ac_func ();
11458 /* The GNU C library defines this for functions which it implements
11459     to always fail with ENOSYS.  Some functions are actually named
11460     something starting with __ and the normal name is an alias.  */
11461 #if defined __stub_$ac_func || defined __stub___$ac_func
11462 choke me
11463 #endif
11464
11465 int
11466 main ()
11467 {
11468 return $ac_func ();
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 rm -f conftest.$ac_objext conftest$ac_exeext
11474 if { (ac_try="$ac_link"
11475 case "(($ac_try" in
11476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477   *) ac_try_echo=$ac_try;;
11478 esac
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480   (eval "$ac_link") 2>conftest.er1
11481   ac_status=$?
11482   grep -v '^ *+' conftest.er1 >conftest.err
11483   rm -f conftest.er1
11484   cat conftest.err >&5
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); } &&
11487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488   { (case "(($ac_try" in
11489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490   *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493   (eval "$ac_try") 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; } &&
11497          { ac_try='test -s conftest$ac_exeext'
11498   { (case "(($ac_try" in
11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500   *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503   (eval "$ac_try") 2>&5
11504   ac_status=$?
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); }; }; then
11507   eval "$as_ac_var=yes"
11508 else
11509   echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512         eval "$as_ac_var=no"
11513 fi
11514
11515 rm -f core conftest.err conftest.$ac_objext \
11516       conftest$ac_exeext conftest.$ac_ext
11517 fi
11518 ac_res=`eval echo '${'$as_ac_var'}'`
11519                { echo "$as_me:$LINENO: result: $ac_res" >&5
11520 echo "${ECHO_T}$ac_res" >&6; }
11521 if test `eval echo '${'$as_ac_var'}'` = yes; then
11522   cat >>confdefs.h <<_ACEOF
11523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11524 _ACEOF
11525  break
11526 fi
11527 done
11528
11529
11530
11531 for ac_func in strrchr rindex
11532 do
11533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11537   echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539   cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h.  */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h.  */
11545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11547 #define $ac_func innocuous_$ac_func
11548
11549 /* System header to define __stub macros and hopefully few prototypes,
11550     which can conflict with char $ac_func (); below.
11551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11552     <limits.h> exists even on freestanding compilers.  */
11553
11554 #ifdef __STDC__
11555 # include <limits.h>
11556 #else
11557 # include <assert.h>
11558 #endif
11559
11560 #undef $ac_func
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563    Use char because int might match the return type of a GCC
11564    builtin and then its argument prototype would still apply.  */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char $ac_func ();
11569 /* The GNU C library defines this for functions which it implements
11570     to always fail with ENOSYS.  Some functions are actually named
11571     something starting with __ and the normal name is an alias.  */
11572 #if defined __stub_$ac_func || defined __stub___$ac_func
11573 choke me
11574 #endif
11575
11576 int
11577 main ()
11578 {
11579 return $ac_func ();
11580   ;
11581   return 0;
11582 }
11583 _ACEOF
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (ac_try="$ac_link"
11586 case "(($ac_try" in
11587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588   *) ac_try_echo=$ac_try;;
11589 esac
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591   (eval "$ac_link") 2>conftest.er1
11592   ac_status=$?
11593   grep -v '^ *+' conftest.er1 >conftest.err
11594   rm -f conftest.er1
11595   cat conftest.err >&5
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11599   { (case "(($ac_try" in
11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601   *) ac_try_echo=$ac_try;;
11602 esac
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604   (eval "$ac_try") 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); }; } &&
11608          { ac_try='test -s conftest$ac_exeext'
11609   { (case "(($ac_try" in
11610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611   *) ac_try_echo=$ac_try;;
11612 esac
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614   (eval "$ac_try") 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; }; then
11618   eval "$as_ac_var=yes"
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623         eval "$as_ac_var=no"
11624 fi
11625
11626 rm -f core conftest.err conftest.$ac_objext \
11627       conftest$ac_exeext conftest.$ac_ext
11628 fi
11629 ac_res=`eval echo '${'$as_ac_var'}'`
11630                { echo "$as_me:$LINENO: result: $ac_res" >&5
11631 echo "${ECHO_T}$ac_res" >&6; }
11632 if test `eval echo '${'$as_ac_var'}'` = yes; then
11633   cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11635 _ACEOF
11636  break
11637 fi
11638 done
11639
11640
11641
11642 for ac_func in memcpy bcopy
11643 do
11644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h.  */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h.  */
11656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11658 #define $ac_func innocuous_$ac_func
11659
11660 /* System header to define __stub macros and hopefully few prototypes,
11661     which can conflict with char $ac_func (); below.
11662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663     <limits.h> exists even on freestanding compilers.  */
11664
11665 #ifdef __STDC__
11666 # include <limits.h>
11667 #else
11668 # include <assert.h>
11669 #endif
11670
11671 #undef $ac_func
11672
11673 /* Override any GCC internal prototype to avoid an error.
11674    Use char because int might match the return type of a GCC
11675    builtin and then its argument prototype would still apply.  */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char $ac_func ();
11680 /* The GNU C library defines this for functions which it implements
11681     to always fail with ENOSYS.  Some functions are actually named
11682     something starting with __ and the normal name is an alias.  */
11683 #if defined __stub_$ac_func || defined __stub___$ac_func
11684 choke me
11685 #endif
11686
11687 int
11688 main ()
11689 {
11690 return $ac_func ();
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699   *) ac_try_echo=$ac_try;;
11700 esac
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702   (eval "$ac_link") 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
11706   cat conftest.err >&5
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } &&
11709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11710   { (case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_try") 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); }; } &&
11719          { ac_try='test -s conftest$ac_exeext'
11720   { (case "(($ac_try" in
11721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722   *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725   (eval "$ac_try") 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; }; then
11729   eval "$as_ac_var=yes"
11730 else
11731   echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734         eval "$as_ac_var=no"
11735 fi
11736
11737 rm -f core conftest.err conftest.$ac_objext \
11738       conftest$ac_exeext conftest.$ac_ext
11739 fi
11740 ac_res=`eval echo '${'$as_ac_var'}'`
11741                { echo "$as_me:$LINENO: result: $ac_res" >&5
11742 echo "${ECHO_T}$ac_res" >&6; }
11743 if test `eval echo '${'$as_ac_var'}'` = yes; then
11744   cat >>confdefs.h <<_ACEOF
11745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746 _ACEOF
11747  break
11748 fi
11749 done
11750
11751
11752
11753 for ac_func in memmove strcmp
11754 do
11755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11759   echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761   cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11769 #define $ac_func innocuous_$ac_func
11770
11771 /* System header to define __stub macros and hopefully few prototypes,
11772     which can conflict with char $ac_func (); below.
11773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774     <limits.h> exists even on freestanding compilers.  */
11775
11776 #ifdef __STDC__
11777 # include <limits.h>
11778 #else
11779 # include <assert.h>
11780 #endif
11781
11782 #undef $ac_func
11783
11784 /* Override any GCC internal prototype to avoid an error.
11785    Use char because int might match the return type of a GCC
11786    builtin and then its argument prototype would still apply.  */
11787 #ifdef __cplusplus
11788 extern "C"
11789 #endif
11790 char $ac_func ();
11791 /* The GNU C library defines this for functions which it implements
11792     to always fail with ENOSYS.  Some functions are actually named
11793     something starting with __ and the normal name is an alias.  */
11794 #if defined __stub_$ac_func || defined __stub___$ac_func
11795 choke me
11796 #endif
11797
11798 int
11799 main ()
11800 {
11801 return $ac_func ();
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (ac_try="$ac_link"
11808 case "(($ac_try" in
11809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810   *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813   (eval "$ac_link") 2>conftest.er1
11814   ac_status=$?
11815   grep -v '^ *+' conftest.er1 >conftest.err
11816   rm -f conftest.er1
11817   cat conftest.err >&5
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); } &&
11820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821   { (case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_try") 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }; } &&
11830          { ac_try='test -s conftest$ac_exeext'
11831   { (case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836   (eval "$ac_try") 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; }; then
11840   eval "$as_ac_var=yes"
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845         eval "$as_ac_var=no"
11846 fi
11847
11848 rm -f core conftest.err conftest.$ac_objext \
11849       conftest$ac_exeext conftest.$ac_ext
11850 fi
11851 ac_res=`eval echo '${'$as_ac_var'}'`
11852                { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_var'}'` = yes; then
11855   cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857 _ACEOF
11858
11859 fi
11860 done
11861
11862
11863
11864
11865 for ac_func in closedir opendir readdir
11866 do
11867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871   echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873   cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11881 #define $ac_func innocuous_$ac_func
11882
11883 /* System header to define __stub macros and hopefully few prototypes,
11884     which can conflict with char $ac_func (); below.
11885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886     <limits.h> exists even on freestanding compilers.  */
11887
11888 #ifdef __STDC__
11889 # include <limits.h>
11890 #else
11891 # include <assert.h>
11892 #endif
11893
11894 #undef $ac_func
11895
11896 /* Override any GCC internal prototype to avoid an error.
11897    Use char because int might match the return type of a GCC
11898    builtin and then its argument prototype would still apply.  */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char $ac_func ();
11903 /* The GNU C library defines this for functions which it implements
11904     to always fail with ENOSYS.  Some functions are actually named
11905     something starting with __ and the normal name is an alias.  */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11907 choke me
11908 #endif
11909
11910 int
11911 main ()
11912 {
11913 return $ac_func ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922   *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925   (eval "$ac_link") 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest$ac_exeext'
11943   { (case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_try") 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   eval "$as_ac_var=yes"
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957         eval "$as_ac_var=no"
11958 fi
11959
11960 rm -f core conftest.err conftest.$ac_objext \
11961       conftest$ac_exeext conftest.$ac_ext
11962 fi
11963 ac_res=`eval echo '${'$as_ac_var'}'`
11964                { echo "$as_me:$LINENO: result: $ac_res" >&5
11965 echo "${ECHO_T}$ac_res" >&6; }
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967   cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969 _ACEOF
11970
11971 fi
11972 done
11973
11974
11975
11976 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11977 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11978
11979 ICC=no
11980 IXX=no
11981 case $CC in
11982   icc*|icpc*)
11983     ICC=yes
11984     IXX=yes
11985     ;;
11986    *)
11987     ;;
11988 esac
11989
11990 if test "$GCC" != "yes" && test "$ICC" != "yes"
11991 then
11992   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11993 echo "$as_me: error: gcc|icc required but not found" >&2;}
11994    { (exit 1); exit 1; }; }
11995 fi
11996
11997 if test "$GXX" != "yes" && test "$IXX" != "yes"
11998 then
11999   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12000 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12001    { (exit 1); exit 1; }; }
12002 fi
12003
12004 if test "$GCC" = "yes"
12005 then
12006   cat >conftest.$ac_ext <<_ACEOF
12007 #if !defined(__GNUC__) || __GNUC__ < 3
12008 #error Unsupported GCC version
12009 #endif
12010
12011 _ACEOF
12012 rm -f conftest.$ac_objext
12013 if { (ac_try="$ac_compile"
12014 case "(($ac_try" in
12015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016   *) ac_try_echo=$ac_try;;
12017 esac
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019   (eval "$ac_compile") 2>conftest.er1
12020   ac_status=$?
12021   grep -v '^ *+' conftest.er1 >conftest.err
12022   rm -f conftest.er1
12023   cat conftest.err >&5
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } &&
12026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027   { (case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032   (eval "$ac_try") 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; } &&
12036          { ac_try='test -s conftest.$ac_objext'
12037   { (case "(($ac_try" in
12038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039   *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042   (eval "$ac_try") 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; }; then
12046   :
12047 else
12048   echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12052 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12053    { (exit 1); exit 1; }; }
12054 fi
12055
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 fi
12058
12059 if test -z "$llvm_cv_gnu_make_command"
12060 then
12061   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12062 echo "$as_me: error: GNU Make required but not found" >&2;}
12063    { (exit 1); exit 1; }; }
12064 fi
12065
12066 { echo "$as_me:$LINENO: result: ok" >&5
12067 echo "${ECHO_T}ok" >&6; }
12068
12069 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12070 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12071 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12072
12073 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12074
12075 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12076
12077 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12078 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12079
12080
12081
12082 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12083 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12084 if test "${ac_cv_lib_m_sin+set}" = set; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   ac_check_lib_save_LIBS=$LIBS
12088 LIBS="-lm  $LIBS"
12089 cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095
12096 /* Override any GCC internal prototype to avoid an error.
12097    Use char because int might match the return type of a GCC
12098    builtin and then its argument prototype would still apply.  */
12099 #ifdef __cplusplus
12100 extern "C"
12101 #endif
12102 char sin ();
12103 int
12104 main ()
12105 {
12106 return sin ();
12107   ;
12108   return 0;
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118   (eval "$ac_link") 2>conftest.er1
12119   ac_status=$?
12120   grep -v '^ *+' conftest.er1 >conftest.err
12121   rm -f conftest.er1
12122   cat conftest.err >&5
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } &&
12125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126   { (case "(($ac_try" in
12127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128   *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131   (eval "$ac_try") 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; } &&
12135          { ac_try='test -s conftest$ac_exeext'
12136   { (case "(($ac_try" in
12137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138   *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141   (eval "$ac_try") 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   ac_cv_lib_m_sin=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150         ac_cv_lib_m_sin=no
12151 fi
12152
12153 rm -f core conftest.err conftest.$ac_objext \
12154       conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12156 fi
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12158 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12159 if test $ac_cv_lib_m_sin = yes; then
12160   cat >>confdefs.h <<_ACEOF
12161 #define HAVE_LIBM 1
12162 _ACEOF
12163
12164   LIBS="-lm $LIBS"
12165
12166 fi
12167
12168 if test "$llvm_cv_os_type" = "MingW" ; then
12169
12170 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12171 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12172 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-limagehlp  $LIBS"
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183
12184
12185 int
12186 main ()
12187 {
12188 return main ();
12189   ;
12190   return 0;
12191 }
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_link") 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208   { (case "(($ac_try" in
12209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210   *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213   (eval "$ac_try") 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; } &&
12217          { ac_try='test -s conftest$ac_exeext'
12218   { (case "(($ac_try" in
12219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220   *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223   (eval "$ac_try") 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; }; then
12227   ac_cv_lib_imagehlp_main=yes
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232         ac_cv_lib_imagehlp_main=no
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext \
12236       conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12240 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12241 if test $ac_cv_lib_imagehlp_main = yes; then
12242   cat >>confdefs.h <<_ACEOF
12243 #define HAVE_LIBIMAGEHLP 1
12244 _ACEOF
12245
12246   LIBS="-limagehlp $LIBS"
12247
12248 fi
12249
12250
12251 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12252 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12253 if test "${ac_cv_lib_psapi_main+set}" = set; then
12254   echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256   ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-lpsapi  $LIBS"
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h.  */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h.  */
12264
12265
12266 int
12267 main ()
12268 {
12269 return main ();
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_link") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } &&
12288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289   { (case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294   (eval "$ac_try") 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; } &&
12298          { ac_try='test -s conftest$ac_exeext'
12299   { (case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304   (eval "$ac_try") 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   ac_cv_lib_psapi_main=yes
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313         ac_cv_lib_psapi_main=no
12314 fi
12315
12316 rm -f core conftest.err conftest.$ac_objext \
12317       conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12319 fi
12320 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12321 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12322 if test $ac_cv_lib_psapi_main = yes; then
12323   cat >>confdefs.h <<_ACEOF
12324 #define HAVE_LIBPSAPI 1
12325 _ACEOF
12326
12327   LIBS="-lpsapi $LIBS"
12328
12329 fi
12330
12331 fi
12332
12333 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12334 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12335 if test "${ac_cv_search_dlopen+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   ac_func_search_save_LIBS=$LIBS
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h.  */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h.  */
12345
12346 /* Override any GCC internal prototype to avoid an error.
12347    Use char because int might match the return type of a GCC
12348    builtin and then its argument prototype would still apply.  */
12349 #ifdef __cplusplus
12350 extern "C"
12351 #endif
12352 char dlopen ();
12353 int
12354 main ()
12355 {
12356 return dlopen ();
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 for ac_lib in '' dl; do
12362   if test -z "$ac_lib"; then
12363     ac_res="none required"
12364   else
12365     ac_res=-l$ac_lib
12366     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12367   fi
12368   rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (ac_try="$ac_link"
12370 case "(($ac_try" in
12371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372   *) ac_try_echo=$ac_try;;
12373 esac
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375   (eval "$ac_link") 2>conftest.er1
12376   ac_status=$?
12377   grep -v '^ *+' conftest.er1 >conftest.err
12378   rm -f conftest.er1
12379   cat conftest.err >&5
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); } &&
12382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383   { (case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388   (eval "$ac_try") 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; } &&
12392          { ac_try='test -s conftest$ac_exeext'
12393   { (case "(($ac_try" in
12394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395   *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398   (eval "$ac_try") 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; }; then
12402   ac_cv_search_dlopen=$ac_res
12403 else
12404   echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12406
12407
12408 fi
12409
12410 rm -f core conftest.err conftest.$ac_objext \
12411       conftest$ac_exeext
12412   if test "${ac_cv_search_dlopen+set}" = set; then
12413   break
12414 fi
12415 done
12416 if test "${ac_cv_search_dlopen+set}" = set; then
12417   :
12418 else
12419   ac_cv_search_dlopen=no
12420 fi
12421 rm conftest.$ac_ext
12422 LIBS=$ac_func_search_save_LIBS
12423 fi
12424 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12425 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12426 ac_res=$ac_cv_search_dlopen
12427 if test "$ac_res" != no; then
12428   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12429
12430 cat >>confdefs.h <<\_ACEOF
12431 #define HAVE_DLOPEN 1
12432 _ACEOF
12433
12434 else
12435   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12436 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12437 fi
12438
12439
12440 if test "$llvm_cv_enable_libffi" = "yes" ; then
12441   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12442 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12443 if test "${ac_cv_search_ffi_call+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446   ac_func_search_save_LIBS=$LIBS
12447 cat >conftest.$ac_ext <<_ACEOF
12448 /* confdefs.h.  */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h.  */
12453
12454 /* Override any GCC internal prototype to avoid an error.
12455    Use char because int might match the return type of a GCC
12456    builtin and then its argument prototype would still apply.  */
12457 #ifdef __cplusplus
12458 extern "C"
12459 #endif
12460 char ffi_call ();
12461 int
12462 main ()
12463 {
12464 return ffi_call ();
12465   ;
12466   return 0;
12467 }
12468 _ACEOF
12469 for ac_lib in '' ffi; do
12470   if test -z "$ac_lib"; then
12471     ac_res="none required"
12472   else
12473     ac_res=-l$ac_lib
12474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12475   fi
12476   rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480   *) ac_try_echo=$ac_try;;
12481 esac
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483   (eval "$ac_link") 2>conftest.er1
12484   ac_status=$?
12485   grep -v '^ *+' conftest.er1 >conftest.err
12486   rm -f conftest.er1
12487   cat conftest.err >&5
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } &&
12490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12491   { (case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_try") 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; } &&
12500          { ac_try='test -s conftest$ac_exeext'
12501   { (case "(($ac_try" in
12502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503   *) ac_try_echo=$ac_try;;
12504 esac
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506   (eval "$ac_try") 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; }; then
12510   ac_cv_search_ffi_call=$ac_res
12511 else
12512   echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515
12516 fi
12517
12518 rm -f core conftest.err conftest.$ac_objext \
12519       conftest$ac_exeext
12520   if test "${ac_cv_search_ffi_call+set}" = set; then
12521   break
12522 fi
12523 done
12524 if test "${ac_cv_search_ffi_call+set}" = set; then
12525   :
12526 else
12527   ac_cv_search_ffi_call=no
12528 fi
12529 rm conftest.$ac_ext
12530 LIBS=$ac_func_search_save_LIBS
12531 fi
12532 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12533 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12534 ac_res=$ac_cv_search_ffi_call
12535 if test "$ac_res" != no; then
12536   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12537
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_FFI_CALL 1
12540 _ACEOF
12541
12542 else
12543   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12544 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12545    { (exit 1); exit 1; }; }
12546 fi
12547
12548 fi
12549
12550 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12551 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12552 if test "${ac_cv_search_mallinfo+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   ac_func_search_save_LIBS=$LIBS
12556 cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h.  */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h.  */
12562
12563 /* Override any GCC internal prototype to avoid an error.
12564    Use char because int might match the return type of a GCC
12565    builtin and then its argument prototype would still apply.  */
12566 #ifdef __cplusplus
12567 extern "C"
12568 #endif
12569 char mallinfo ();
12570 int
12571 main ()
12572 {
12573 return mallinfo ();
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 for ac_lib in '' malloc; do
12579   if test -z "$ac_lib"; then
12580     ac_res="none required"
12581   else
12582     ac_res=-l$ac_lib
12583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12584   fi
12585   rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592   (eval "$ac_link") 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600   { (case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_try") 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; } &&
12609          { ac_try='test -s conftest$ac_exeext'
12610   { (case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_try") 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619   ac_cv_search_mallinfo=$ac_res
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext \
12628       conftest$ac_exeext
12629   if test "${ac_cv_search_mallinfo+set}" = set; then
12630   break
12631 fi
12632 done
12633 if test "${ac_cv_search_mallinfo+set}" = set; then
12634   :
12635 else
12636   ac_cv_search_mallinfo=no
12637 fi
12638 rm conftest.$ac_ext
12639 LIBS=$ac_func_search_save_LIBS
12640 fi
12641 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12642 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12643 ac_res=$ac_cv_search_mallinfo
12644 if test "$ac_res" != no; then
12645   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12646
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_MALLINFO 1
12649 _ACEOF
12650
12651 fi
12652
12653
12654 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12655
12656 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12657 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12658 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12659   echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661   ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-lpthread  $LIBS"
12663 cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h.  */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h.  */
12669
12670 /* Override any GCC internal prototype to avoid an error.
12671    Use char because int might match the return type of a GCC
12672    builtin and then its argument prototype would still apply.  */
12673 #ifdef __cplusplus
12674 extern "C"
12675 #endif
12676 char pthread_mutex_init ();
12677 int
12678 main ()
12679 {
12680 return pthread_mutex_init ();
12681   ;
12682   return 0;
12683 }
12684 _ACEOF
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689   *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692   (eval "$ac_link") 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } &&
12699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700   { (case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_try") 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; } &&
12709          { ac_try='test -s conftest$ac_exeext'
12710   { (case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_try") 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; }; then
12719   ac_cv_lib_pthread_pthread_mutex_init=yes
12720 else
12721   echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724         ac_cv_lib_pthread_pthread_mutex_init=no
12725 fi
12726
12727 rm -f core conftest.err conftest.$ac_objext \
12728       conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS
12730 fi
12731 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12732 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12733 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12734   cat >>confdefs.h <<_ACEOF
12735 #define HAVE_LIBPTHREAD 1
12736 _ACEOF
12737
12738   LIBS="-lpthread $LIBS"
12739
12740 fi
12741
12742   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12743 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12744 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   ac_func_search_save_LIBS=$LIBS
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754
12755 /* Override any GCC internal prototype to avoid an error.
12756    Use char because int might match the return type of a GCC
12757    builtin and then its argument prototype would still apply.  */
12758 #ifdef __cplusplus
12759 extern "C"
12760 #endif
12761 char pthread_mutex_lock ();
12762 int
12763 main ()
12764 {
12765 return pthread_mutex_lock ();
12766   ;
12767   return 0;
12768 }
12769 _ACEOF
12770 for ac_lib in '' pthread; do
12771   if test -z "$ac_lib"; then
12772     ac_res="none required"
12773   else
12774     ac_res=-l$ac_lib
12775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12776   fi
12777   rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (ac_try="$ac_link"
12779 case "(($ac_try" in
12780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781   *) ac_try_echo=$ac_try;;
12782 esac
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784   (eval "$ac_link") 2>conftest.er1
12785   ac_status=$?
12786   grep -v '^ *+' conftest.er1 >conftest.err
12787   rm -f conftest.er1
12788   cat conftest.err >&5
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } &&
12791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792   { (case "(($ac_try" in
12793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794   *) ac_try_echo=$ac_try;;
12795 esac
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797   (eval "$ac_try") 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; } &&
12801          { ac_try='test -s conftest$ac_exeext'
12802   { (case "(($ac_try" in
12803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804   *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807   (eval "$ac_try") 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; }; then
12811   ac_cv_search_pthread_mutex_lock=$ac_res
12812 else
12813   echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12815
12816
12817 fi
12818
12819 rm -f core conftest.err conftest.$ac_objext \
12820       conftest$ac_exeext
12821   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12822   break
12823 fi
12824 done
12825 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12826   :
12827 else
12828   ac_cv_search_pthread_mutex_lock=no
12829 fi
12830 rm conftest.$ac_ext
12831 LIBS=$ac_func_search_save_LIBS
12832 fi
12833 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12834 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12835 ac_res=$ac_cv_search_pthread_mutex_lock
12836 if test "$ac_res" != no; then
12837   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12838
12839 cat >>confdefs.h <<\_ACEOF
12840 #define HAVE_PTHREAD_MUTEX_LOCK 1
12841 _ACEOF
12842
12843 fi
12844
12845   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12846 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12847 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   ac_func_search_save_LIBS=$LIBS
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857
12858 /* Override any GCC internal prototype to avoid an error.
12859    Use char because int might match the return type of a GCC
12860    builtin and then its argument prototype would still apply.  */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 char pthread_rwlock_init ();
12865 int
12866 main ()
12867 {
12868 return pthread_rwlock_init ();
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 for ac_lib in '' pthread; do
12874   if test -z "$ac_lib"; then
12875     ac_res="none required"
12876   else
12877     ac_res=-l$ac_lib
12878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12879   fi
12880   rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } &&
12894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895   { (case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_try") 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (case "(($ac_try" in
12906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907   *) ac_try_echo=$ac_try;;
12908 esac
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910   (eval "$ac_try") 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   ac_cv_search_pthread_rwlock_init=$ac_res
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919
12920 fi
12921
12922 rm -f core conftest.err conftest.$ac_objext \
12923       conftest$ac_exeext
12924   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12925   break
12926 fi
12927 done
12928 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12929   :
12930 else
12931   ac_cv_search_pthread_rwlock_init=no
12932 fi
12933 rm conftest.$ac_ext
12934 LIBS=$ac_func_search_save_LIBS
12935 fi
12936 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12937 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12938 ac_res=$ac_cv_search_pthread_rwlock_init
12939 if test "$ac_res" != no; then
12940   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12941
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_PTHREAD_RWLOCK_INIT 1
12944 _ACEOF
12945
12946 fi
12947
12948   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12949 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12950 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953   ac_func_search_save_LIBS=$LIBS
12954 cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960
12961 /* Override any GCC internal prototype to avoid an error.
12962    Use char because int might match the return type of a GCC
12963    builtin and then its argument prototype would still apply.  */
12964 #ifdef __cplusplus
12965 extern "C"
12966 #endif
12967 char pthread_getspecific ();
12968 int
12969 main ()
12970 {
12971 return pthread_getspecific ();
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 for ac_lib in '' pthread; do
12977   if test -z "$ac_lib"; then
12978     ac_res="none required"
12979   else
12980     ac_res=-l$ac_lib
12981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12982   fi
12983   rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987   *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990   (eval "$ac_link") 2>conftest.er1
12991   ac_status=$?
12992   grep -v '^ *+' conftest.er1 >conftest.err
12993   rm -f conftest.er1
12994   cat conftest.err >&5
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); } &&
12997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998   { (case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_try") 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; } &&
13007          { ac_try='test -s conftest$ac_exeext'
13008   { (case "(($ac_try" in
13009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010   *) ac_try_echo=$ac_try;;
13011 esac
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013   (eval "$ac_try") 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); }; }; then
13017   ac_cv_search_pthread_getspecific=$ac_res
13018 else
13019   echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13021
13022
13023 fi
13024
13025 rm -f core conftest.err conftest.$ac_objext \
13026       conftest$ac_exeext
13027   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13028   break
13029 fi
13030 done
13031 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13032   :
13033 else
13034   ac_cv_search_pthread_getspecific=no
13035 fi
13036 rm conftest.$ac_ext
13037 LIBS=$ac_func_search_save_LIBS
13038 fi
13039 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13040 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13041 ac_res=$ac_cv_search_pthread_getspecific
13042 if test "$ac_res" != no; then
13043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13044
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_PTHREAD_GETSPECIFIC 1
13047 _ACEOF
13048
13049 fi
13050
13051 fi
13052
13053
13054 # Check whether --with-udis86 was given.
13055 if test "${with_udis86+set}" = set; then
13056   withval=$with_udis86;
13057       USE_UDIS86=1
13058
13059       case "$withval" in
13060         /usr/lib|yes) ;;
13061         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13062       esac
13063
13064 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13065 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13066 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-ludis86  $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h.  */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h.  */
13077
13078 /* Override any GCC internal prototype to avoid an error.
13079    Use char because int might match the return type of a GCC
13080    builtin and then its argument prototype would still apply.  */
13081 #ifdef __cplusplus
13082 extern "C"
13083 #endif
13084 char ud_init ();
13085 int
13086 main ()
13087 {
13088 return ud_init ();
13089   ;
13090   return 0;
13091 }
13092 _ACEOF
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (ac_try="$ac_link"
13095 case "(($ac_try" in
13096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097   *) ac_try_echo=$ac_try;;
13098 esac
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100   (eval "$ac_link") 2>conftest.er1
13101   ac_status=$?
13102   grep -v '^ *+' conftest.er1 >conftest.err
13103   rm -f conftest.er1
13104   cat conftest.err >&5
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); } &&
13107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13108   { (case "(($ac_try" in
13109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110   *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113   (eval "$ac_try") 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; } &&
13117          { ac_try='test -s conftest$ac_exeext'
13118   { (case "(($ac_try" in
13119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120   *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123   (eval "$ac_try") 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; }; then
13127   ac_cv_lib_udis86_ud_init=yes
13128 else
13129   echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13131
13132         ac_cv_lib_udis86_ud_init=no
13133 fi
13134
13135 rm -f core conftest.err conftest.$ac_objext \
13136       conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13138 fi
13139 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13140 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13141 if test $ac_cv_lib_udis86_ud_init = yes; then
13142   cat >>confdefs.h <<_ACEOF
13143 #define HAVE_LIBUDIS86 1
13144 _ACEOF
13145
13146   LIBS="-ludis86 $LIBS"
13147
13148 else
13149
13150         echo "Error! You need to have libudis86 around."
13151         exit -1
13152
13153 fi
13154
13155
13156 else
13157   USE_UDIS86=0
13158
13159 fi
13160
13161
13162 cat >>confdefs.h <<_ACEOF
13163 #define USE_UDIS86 $USE_UDIS86
13164 _ACEOF
13165
13166
13167
13168 # Check whether --with-oprofile was given.
13169 if test "${with_oprofile+set}" = set; then
13170   withval=$with_oprofile;
13171       USE_OPROFILE=1
13172
13173       case "$withval" in
13174         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13175         no) llvm_cv_oppath=
13176             USE_OPROFILE=0
13177  ;;
13178         *) llvm_cv_oppath="${withval}/lib/oprofile"
13179            CPPFLAGS="-I${withval}/include";;
13180       esac
13181       case $llvm_cv_os_type in
13182         Linux)
13183           if test -n "$llvm_cv_oppath" ; then
13184             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13185                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13186 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13187 if test "${ac_cv_search_bfd_init+set}" = set; then
13188   echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190   ac_func_search_save_LIBS=$LIBS
13191 cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197
13198 /* Override any GCC internal prototype to avoid an error.
13199    Use char because int might match the return type of a GCC
13200    builtin and then its argument prototype would still apply.  */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 char bfd_init ();
13205 int
13206 main ()
13207 {
13208 return bfd_init ();
13209   ;
13210   return 0;
13211 }
13212 _ACEOF
13213 for ac_lib in '' bfd; do
13214   if test -z "$ac_lib"; then
13215     ac_res="none required"
13216   else
13217     ac_res=-l$ac_lib
13218     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13219   fi
13220   rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224   *) ac_try_echo=$ac_try;;
13225 esac
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227   (eval "$ac_link") 2>conftest.er1
13228   ac_status=$?
13229   grep -v '^ *+' conftest.er1 >conftest.err
13230   rm -f conftest.er1
13231   cat conftest.err >&5
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13235   { (case "(($ac_try" in
13236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237   *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240   (eval "$ac_try") 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; } &&
13244          { ac_try='test -s conftest$ac_exeext'
13245   { (case "(($ac_try" in
13246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247   *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250   (eval "$ac_try") 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; }; then
13254   ac_cv_search_bfd_init=$ac_res
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259
13260 fi
13261
13262 rm -f core conftest.err conftest.$ac_objext \
13263       conftest$ac_exeext
13264   if test "${ac_cv_search_bfd_init+set}" = set; then
13265   break
13266 fi
13267 done
13268 if test "${ac_cv_search_bfd_init+set}" = set; then
13269   :
13270 else
13271   ac_cv_search_bfd_init=no
13272 fi
13273 rm conftest.$ac_ext
13274 LIBS=$ac_func_search_save_LIBS
13275 fi
13276 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13277 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13278 ac_res=$ac_cv_search_bfd_init
13279 if test "$ac_res" != no; then
13280   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13281
13282 fi
13283
13284             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13285 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13286 if test "${ac_cv_search_op_open_agent+set}" = set; then
13287   echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289   ac_func_search_save_LIBS=$LIBS
13290 cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h.  */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h.  */
13296
13297 /* Override any GCC internal prototype to avoid an error.
13298    Use char because int might match the return type of a GCC
13299    builtin and then its argument prototype would still apply.  */
13300 #ifdef __cplusplus
13301 extern "C"
13302 #endif
13303 char op_open_agent ();
13304 int
13305 main ()
13306 {
13307 return op_open_agent ();
13308   ;
13309   return 0;
13310 }
13311 _ACEOF
13312 for ac_lib in '' opagent; do
13313   if test -z "$ac_lib"; then
13314     ac_res="none required"
13315   else
13316     ac_res=-l$ac_lib
13317     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13318   fi
13319   rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (ac_try="$ac_link"
13321 case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326   (eval "$ac_link") 2>conftest.er1
13327   ac_status=$?
13328   grep -v '^ *+' conftest.er1 >conftest.err
13329   rm -f conftest.er1
13330   cat conftest.err >&5
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); } &&
13333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13334   { (case "(($ac_try" in
13335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336   *) ac_try_echo=$ac_try;;
13337 esac
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339   (eval "$ac_try") 2>&5
13340   ac_status=$?
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); }; } &&
13343          { ac_try='test -s conftest$ac_exeext'
13344   { (case "(($ac_try" in
13345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346   *) ac_try_echo=$ac_try;;
13347 esac
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349   (eval "$ac_try") 2>&5
13350   ac_status=$?
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); }; }; then
13353   ac_cv_search_op_open_agent=$ac_res
13354 else
13355   echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13357
13358
13359 fi
13360
13361 rm -f core conftest.err conftest.$ac_objext \
13362       conftest$ac_exeext
13363   if test "${ac_cv_search_op_open_agent+set}" = set; then
13364   break
13365 fi
13366 done
13367 if test "${ac_cv_search_op_open_agent+set}" = set; then
13368   :
13369 else
13370   ac_cv_search_op_open_agent=no
13371 fi
13372 rm conftest.$ac_ext
13373 LIBS=$ac_func_search_save_LIBS
13374 fi
13375 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13376 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13377 ac_res=$ac_cv_search_op_open_agent
13378 if test "$ac_res" != no; then
13379   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13380
13381 else
13382
13383               echo "Error! You need to have libopagent around."
13384               exit -1
13385
13386 fi
13387
13388             if test "${ac_cv_header_opagent_h+set}" = set; then
13389   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13390 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13391 if test "${ac_cv_header_opagent_h+set}" = set; then
13392   echo $ECHO_N "(cached) $ECHO_C" >&6
13393 fi
13394 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13395 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13396 else
13397   # Is the header compilable?
13398 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13399 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13400 cat >conftest.$ac_ext <<_ACEOF
13401 /* confdefs.h.  */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h.  */
13406 $ac_includes_default
13407 #include <opagent.h>
13408 _ACEOF
13409 rm -f conftest.$ac_objext
13410 if { (ac_try="$ac_compile"
13411 case "(($ac_try" in
13412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413   *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416   (eval "$ac_compile") 2>conftest.er1
13417   ac_status=$?
13418   grep -v '^ *+' conftest.er1 >conftest.err
13419   rm -f conftest.er1
13420   cat conftest.err >&5
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); } &&
13423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13424   { (case "(($ac_try" in
13425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426   *) ac_try_echo=$ac_try;;
13427 esac
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429   (eval "$ac_try") 2>&5
13430   ac_status=$?
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); }; } &&
13433          { ac_try='test -s conftest.$ac_objext'
13434   { (case "(($ac_try" in
13435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436   *) ac_try_echo=$ac_try;;
13437 esac
13438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439   (eval "$ac_try") 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); }; }; then
13443   ac_header_compiler=yes
13444 else
13445   echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448         ac_header_compiler=no
13449 fi
13450
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6; }
13454
13455 # Is the header present?
13456 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13457 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h.  */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h.  */
13464 #include <opagent.h>
13465 _ACEOF
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } >/dev/null; then
13479   if test -s conftest.err; then
13480     ac_cpp_err=$ac_c_preproc_warn_flag
13481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13482   else
13483     ac_cpp_err=
13484   fi
13485 else
13486   ac_cpp_err=yes
13487 fi
13488 if test -z "$ac_cpp_err"; then
13489   ac_header_preproc=yes
13490 else
13491   echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13493
13494   ac_header_preproc=no
13495 fi
13496
13497 rm -f conftest.err conftest.$ac_ext
13498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13499 echo "${ECHO_T}$ac_header_preproc" >&6; }
13500
13501 # So?  What about this header?
13502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13503   yes:no: )
13504     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13505 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13506     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13507 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13508     ac_header_preproc=yes
13509     ;;
13510   no:yes:* )
13511     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13512 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13513     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13514 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13515     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13516 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13517     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13518 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13519     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13520 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13521     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13522 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13523     ( cat <<\_ASBOX
13524 ## ------------------------------------ ##
13525 ## Report this to http://llvm.org/bugs/ ##
13526 ## ------------------------------------ ##
13527 _ASBOX
13528      ) | sed "s/^/$as_me: WARNING:     /" >&2
13529     ;;
13530 esac
13531 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13532 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13533 if test "${ac_cv_header_opagent_h+set}" = set; then
13534   echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536   ac_cv_header_opagent_h=$ac_header_preproc
13537 fi
13538 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13539 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13540
13541 fi
13542 if test $ac_cv_header_opagent_h = yes; then
13543   :
13544 else
13545
13546               echo "Error! You need to have opagent.h around."
13547               exit -1
13548
13549 fi
13550
13551
13552           fi ;;
13553         *)
13554           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13555 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13556    { (exit 1); exit 1; }; } ;;
13557       esac
13558
13559 else
13560
13561       USE_OPROFILE=0
13562
13563
13564 fi
13565
13566
13567 cat >>confdefs.h <<_ACEOF
13568 #define LLVM_USE_OPROFILE $USE_OPROFILE
13569 _ACEOF
13570
13571
13572
13573 # Check whether --with-intel-jitevents was given.
13574 if test "${with_intel_jitevents+set}" = set; then
13575   withval=$with_intel_jitevents;
13576        case "$withval" in
13577           yes) USE_INTEL_JITEVENTS=1
13578 ;;
13579           no)  USE_INTEL_JITEVENTS=0
13580 ;;
13581           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13582 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13583    { (exit 1); exit 1; }; };;
13584        esac
13585
13586       case $llvm_cv_os_type in
13587         Linux|Win32|Cygwin|MingW) ;;
13588         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13589 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13590    { (exit 1); exit 1; }; };;
13591       esac
13592
13593       case "$llvm_cv_target_arch" in
13594         x86|x86_64) ;;
13595         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13596 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13597    { (exit 1); exit 1; }; };;
13598       esac
13599
13600 else
13601
13602       USE_INTEL_JITEVENTS=0
13603
13604
13605 fi
13606
13607
13608 cat >>confdefs.h <<_ACEOF
13609 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13610 _ACEOF
13611
13612
13613 for ac_prog in xml2-config
13614 do
13615   # Extract the first word of "$ac_prog", so it can be a program name with args.
13616 set dummy $ac_prog; ac_word=$2
13617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13619 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13620   echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622   if test -n "$XML2CONFIG"; then
13623   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13624 else
13625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626 for as_dir in $PATH
13627 do
13628   IFS=$as_save_IFS
13629   test -z "$as_dir" && as_dir=.
13630   for ac_exec_ext in '' $ac_executable_extensions; do
13631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13632     ac_cv_prog_XML2CONFIG="$ac_prog"
13633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13634     break 2
13635   fi
13636 done
13637 done
13638 IFS=$as_save_IFS
13639
13640 fi
13641 fi
13642 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13643 if test -n "$XML2CONFIG"; then
13644   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13645 echo "${ECHO_T}$XML2CONFIG" >&6; }
13646 else
13647   { echo "$as_me:$LINENO: result: no" >&5
13648 echo "${ECHO_T}no" >&6; }
13649 fi
13650
13651
13652   test -n "$XML2CONFIG" && break
13653 done
13654
13655
13656 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13657 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13658 if test "x$XML2CONFIG" = "x"; then
13659  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13660 echo "${ECHO_T}xml2-config not found" >&6; }
13661 else
13662  LIBXML2_INC=`$XML2CONFIG --cflags`
13663  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13664 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13665  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13666 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13667 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13668   echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670   ac_check_lib_save_LIBS=$LIBS
13671 LIBS="-lxml2  $LIBS"
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
13679 /* Override any GCC internal prototype to avoid an error.
13680    Use char because int might match the return type of a GCC
13681    builtin and then its argument prototype would still apply.  */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 char xmlReadFile ();
13686 int
13687 main ()
13688 {
13689 return xmlReadFile ();
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13702   ac_status=$?
13703   grep -v '^ *+' conftest.er1 >conftest.err
13704   rm -f conftest.er1
13705   cat conftest.err >&5
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); } &&
13708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13709   { (case "(($ac_try" in
13710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711   *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714   (eval "$ac_try") 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; } &&
13718          { ac_try='test -s conftest$ac_exeext'
13719   { (case "(($ac_try" in
13720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721   *) ac_try_echo=$ac_try;;
13722 esac
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724   (eval "$ac_try") 2>&5
13725   ac_status=$?
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); }; }; then
13728   ac_cv_lib_xml2_xmlReadFile=yes
13729 else
13730   echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733         ac_cv_lib_xml2_xmlReadFile=no
13734 fi
13735
13736 rm -f core conftest.err conftest.$ac_objext \
13737       conftest$ac_exeext conftest.$ac_ext
13738 LIBS=$ac_check_lib_save_LIBS
13739 fi
13740 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13741 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13742 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13743
13744 cat >>confdefs.h <<\_ACEOF
13745 #define CLANG_HAVE_LIBXML 1
13746 _ACEOF
13747
13748                                 LIBXML2_LIBS="-lxml2"
13749 fi
13750
13751 fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761 ac_header_dirent=no
13762 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13763   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13764 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13765 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775 #include <sys/types.h>
13776 #include <$ac_hdr>
13777
13778 int
13779 main ()
13780 {
13781 if ((DIR *) 0)
13782 return 0;
13783   ;
13784   return 0;
13785 }
13786 _ACEOF
13787 rm -f conftest.$ac_objext
13788 if { (ac_try="$ac_compile"
13789 case "(($ac_try" in
13790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791   *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794   (eval "$ac_compile") 2>conftest.er1
13795   ac_status=$?
13796   grep -v '^ *+' conftest.er1 >conftest.err
13797   rm -f conftest.er1
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13802   { (case "(($ac_try" in
13803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804   *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807   (eval "$ac_try") 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; } &&
13811          { ac_try='test -s conftest.$ac_objext'
13812   { (case "(($ac_try" in
13813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814   *) ac_try_echo=$ac_try;;
13815 esac
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817   (eval "$ac_try") 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; }; then
13821   eval "$as_ac_Header=yes"
13822 else
13823   echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826         eval "$as_ac_Header=no"
13827 fi
13828
13829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830 fi
13831 ac_res=`eval echo '${'$as_ac_Header'}'`
13832                { echo "$as_me:$LINENO: result: $ac_res" >&5
13833 echo "${ECHO_T}$ac_res" >&6; }
13834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835   cat >>confdefs.h <<_ACEOF
13836 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13837 _ACEOF
13838
13839 ac_header_dirent=$ac_hdr; break
13840 fi
13841
13842 done
13843 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13844 if test $ac_header_dirent = dirent.h; then
13845   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13846 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13847 if test "${ac_cv_search_opendir+set}" = set; then
13848   echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850   ac_func_search_save_LIBS=$LIBS
13851 cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h.  */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h.  */
13857
13858 /* Override any GCC internal prototype to avoid an error.
13859    Use char because int might match the return type of a GCC
13860    builtin and then its argument prototype would still apply.  */
13861 #ifdef __cplusplus
13862 extern "C"
13863 #endif
13864 char opendir ();
13865 int
13866 main ()
13867 {
13868 return opendir ();
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 for ac_lib in '' dir; do
13874   if test -z "$ac_lib"; then
13875     ac_res="none required"
13876   else
13877     ac_res=-l$ac_lib
13878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13879   fi
13880   rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (ac_try="$ac_link"
13882 case "(($ac_try" in
13883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884   *) ac_try_echo=$ac_try;;
13885 esac
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887   (eval "$ac_link") 2>conftest.er1
13888   ac_status=$?
13889   grep -v '^ *+' conftest.er1 >conftest.err
13890   rm -f conftest.er1
13891   cat conftest.err >&5
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13895   { (case "(($ac_try" in
13896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897   *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900   (eval "$ac_try") 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; } &&
13904          { ac_try='test -s conftest$ac_exeext'
13905   { (case "(($ac_try" in
13906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907   *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910   (eval "$ac_try") 2>&5
13911   ac_status=$?
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); }; }; then
13914   ac_cv_search_opendir=$ac_res
13915 else
13916   echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13918
13919
13920 fi
13921
13922 rm -f core conftest.err conftest.$ac_objext \
13923       conftest$ac_exeext
13924   if test "${ac_cv_search_opendir+set}" = set; then
13925   break
13926 fi
13927 done
13928 if test "${ac_cv_search_opendir+set}" = set; then
13929   :
13930 else
13931   ac_cv_search_opendir=no
13932 fi
13933 rm conftest.$ac_ext
13934 LIBS=$ac_func_search_save_LIBS
13935 fi
13936 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13937 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13938 ac_res=$ac_cv_search_opendir
13939 if test "$ac_res" != no; then
13940   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13941
13942 fi
13943
13944 else
13945   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13946 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13947 if test "${ac_cv_search_opendir+set}" = set; then
13948   echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950   ac_func_search_save_LIBS=$LIBS
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h.  */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h.  */
13957
13958 /* Override any GCC internal prototype to avoid an error.
13959    Use char because int might match the return type of a GCC
13960    builtin and then its argument prototype would still apply.  */
13961 #ifdef __cplusplus
13962 extern "C"
13963 #endif
13964 char opendir ();
13965 int
13966 main ()
13967 {
13968 return opendir ();
13969   ;
13970   return 0;
13971 }
13972 _ACEOF
13973 for ac_lib in '' x; do
13974   if test -z "$ac_lib"; then
13975     ac_res="none required"
13976   else
13977     ac_res=-l$ac_lib
13978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13979   fi
13980   rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (ac_try="$ac_link"
13982 case "(($ac_try" in
13983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984   *) ac_try_echo=$ac_try;;
13985 esac
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987   (eval "$ac_link") 2>conftest.er1
13988   ac_status=$?
13989   grep -v '^ *+' conftest.er1 >conftest.err
13990   rm -f conftest.er1
13991   cat conftest.err >&5
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995   { (case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000   (eval "$ac_try") 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; } &&
14004          { ac_try='test -s conftest$ac_exeext'
14005   { (case "(($ac_try" in
14006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007   *) ac_try_echo=$ac_try;;
14008 esac
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010   (eval "$ac_try") 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   ac_cv_search_opendir=$ac_res
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019
14020 fi
14021
14022 rm -f core conftest.err conftest.$ac_objext \
14023       conftest$ac_exeext
14024   if test "${ac_cv_search_opendir+set}" = set; then
14025   break
14026 fi
14027 done
14028 if test "${ac_cv_search_opendir+set}" = set; then
14029   :
14030 else
14031   ac_cv_search_opendir=no
14032 fi
14033 rm conftest.$ac_ext
14034 LIBS=$ac_func_search_save_LIBS
14035 fi
14036 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14037 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14038 ac_res=$ac_cv_search_opendir
14039 if test "$ac_res" != no; then
14040   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14041
14042 fi
14043
14044 fi
14045
14046 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14047 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14048 if test "${ac_cv_header_mmap_anon+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051    ac_ext=c
14052 ac_cpp='$CPP $CPPFLAGS'
14053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14056
14057   cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 #include <sys/mman.h>
14064 #include <unistd.h>
14065 #include <fcntl.h>
14066 int
14067 main ()
14068 {
14069 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14070   ;
14071   return 0;
14072 }
14073 _ACEOF
14074 rm -f conftest.$ac_objext
14075 if { (ac_try="$ac_compile"
14076 case "(($ac_try" in
14077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078   *) ac_try_echo=$ac_try;;
14079 esac
14080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081   (eval "$ac_compile") 2>conftest.er1
14082   ac_status=$?
14083   grep -v '^ *+' conftest.er1 >conftest.err
14084   rm -f conftest.er1
14085   cat conftest.err >&5
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); } &&
14088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14089   { (case "(($ac_try" in
14090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091   *) ac_try_echo=$ac_try;;
14092 esac
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094   (eval "$ac_try") 2>&5
14095   ac_status=$?
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); }; } &&
14098          { ac_try='test -s conftest.$ac_objext'
14099   { (case "(($ac_try" in
14100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101   *) ac_try_echo=$ac_try;;
14102 esac
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104   (eval "$ac_try") 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108   ac_cv_header_mmap_anon=yes
14109 else
14110   echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113         ac_cv_header_mmap_anon=no
14114 fi
14115
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117   ac_ext=c
14118 ac_cpp='$CPP $CPPFLAGS'
14119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14122
14123
14124 fi
14125 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14126 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14127 if test "$ac_cv_header_mmap_anon" = yes; then
14128
14129 cat >>confdefs.h <<\_ACEOF
14130 #define HAVE_MMAP_ANONYMOUS 1
14131 _ACEOF
14132
14133 fi
14134
14135 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14136 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14137 if test "${ac_cv_header_stat_broken+set}" = set; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140   cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146 #include <sys/types.h>
14147 #include <sys/stat.h>
14148
14149 #if defined S_ISBLK && defined S_IFDIR
14150 # if S_ISBLK (S_IFDIR)
14151 You lose.
14152 # endif
14153 #endif
14154
14155 #if defined S_ISBLK && defined S_IFCHR
14156 # if S_ISBLK (S_IFCHR)
14157 You lose.
14158 # endif
14159 #endif
14160
14161 #if defined S_ISLNK && defined S_IFREG
14162 # if S_ISLNK (S_IFREG)
14163 You lose.
14164 # endif
14165 #endif
14166
14167 #if defined S_ISSOCK && defined S_IFREG
14168 # if S_ISSOCK (S_IFREG)
14169 You lose.
14170 # endif
14171 #endif
14172
14173 _ACEOF
14174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14175   $EGREP "You lose" >/dev/null 2>&1; then
14176   ac_cv_header_stat_broken=yes
14177 else
14178   ac_cv_header_stat_broken=no
14179 fi
14180 rm -f conftest*
14181
14182 fi
14183 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14184 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14185 if test $ac_cv_header_stat_broken = yes; then
14186
14187 cat >>confdefs.h <<\_ACEOF
14188 #define STAT_MACROS_BROKEN 1
14189 _ACEOF
14190
14191 fi
14192
14193 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14194 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14195 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198   cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204 #include <sys/types.h>
14205 #include <sys/wait.h>
14206 #ifndef WEXITSTATUS
14207 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14208 #endif
14209 #ifndef WIFEXITED
14210 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14211 #endif
14212
14213 int
14214 main ()
14215 {
14216   int s;
14217   wait (&s);
14218   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14219   ;
14220   return 0;
14221 }
14222 _ACEOF
14223 rm -f conftest.$ac_objext
14224 if { (ac_try="$ac_compile"
14225 case "(($ac_try" in
14226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227   *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230   (eval "$ac_compile") 2>conftest.er1
14231   ac_status=$?
14232   grep -v '^ *+' conftest.er1 >conftest.err
14233   rm -f conftest.er1
14234   cat conftest.err >&5
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); } &&
14237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14238   { (case "(($ac_try" in
14239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240   *) ac_try_echo=$ac_try;;
14241 esac
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243   (eval "$ac_try") 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; } &&
14247          { ac_try='test -s conftest.$ac_objext'
14248   { (case "(($ac_try" in
14249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250   *) ac_try_echo=$ac_try;;
14251 esac
14252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253   (eval "$ac_try") 2>&5
14254   ac_status=$?
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); }; }; then
14257   ac_cv_header_sys_wait_h=yes
14258 else
14259   echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262         ac_cv_header_sys_wait_h=no
14263 fi
14264
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 fi
14267 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14268 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14269 if test $ac_cv_header_sys_wait_h = yes; then
14270
14271 cat >>confdefs.h <<\_ACEOF
14272 #define HAVE_SYS_WAIT_H 1
14273 _ACEOF
14274
14275 fi
14276
14277 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14278 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14279 if test "${ac_cv_header_time+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   cat >conftest.$ac_ext <<_ACEOF
14283 /* confdefs.h.  */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h.  */
14288 #include <sys/types.h>
14289 #include <sys/time.h>
14290 #include <time.h>
14291
14292 int
14293 main ()
14294 {
14295 if ((struct tm *) 0)
14296 return 0;
14297   ;
14298   return 0;
14299 }
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (ac_try="$ac_compile"
14303 case "(($ac_try" in
14304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305   *) ac_try_echo=$ac_try;;
14306 esac
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308   (eval "$ac_compile") 2>conftest.er1
14309   ac_status=$?
14310   grep -v '^ *+' conftest.er1 >conftest.err
14311   rm -f conftest.er1
14312   cat conftest.err >&5
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } &&
14315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14316   { (case "(($ac_try" in
14317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318   *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321   (eval "$ac_try") 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; } &&
14325          { ac_try='test -s conftest.$ac_objext'
14326   { (case "(($ac_try" in
14327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328   *) ac_try_echo=$ac_try;;
14329 esac
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331   (eval "$ac_try") 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; }; then
14335   ac_cv_header_time=yes
14336 else
14337   echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340         ac_cv_header_time=no
14341 fi
14342
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14346 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14347 if test $ac_cv_header_time = yes; then
14348
14349 cat >>confdefs.h <<\_ACEOF
14350 #define TIME_WITH_SYS_TIME 1
14351 _ACEOF
14352
14353 fi
14354
14355
14356
14357
14358
14359
14360
14361
14362 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14363 do
14364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14369   echo $ECHO_N "(cached) $ECHO_C" >&6
14370 fi
14371 ac_res=`eval echo '${'$as_ac_Header'}'`
14372                { echo "$as_me:$LINENO: result: $ac_res" >&5
14373 echo "${ECHO_T}$ac_res" >&6; }
14374 else
14375   # Is the header compilable?
14376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h.  */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h.  */
14384 $ac_includes_default
14385 #include <$ac_header>
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (ac_try="$ac_compile"
14389 case "(($ac_try" in
14390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391   *) ac_try_echo=$ac_try;;
14392 esac
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394   (eval "$ac_compile") 2>conftest.er1
14395   ac_status=$?
14396   grep -v '^ *+' conftest.er1 >conftest.err
14397   rm -f conftest.er1
14398   cat conftest.err >&5
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); } &&
14401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14402   { (case "(($ac_try" in
14403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404   *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407   (eval "$ac_try") 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); }; } &&
14411          { ac_try='test -s conftest.$ac_objext'
14412   { (case "(($ac_try" in
14413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414   *) ac_try_echo=$ac_try;;
14415 esac
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417   (eval "$ac_try") 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   ac_header_compiler=yes
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426         ac_header_compiler=no
14427 fi
14428
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14431 echo "${ECHO_T}$ac_header_compiler" >&6; }
14432
14433 # Is the header present?
14434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14436 cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442 #include <$ac_header>
14443 _ACEOF
14444 if { (ac_try="$ac_cpp conftest.$ac_ext"
14445 case "(($ac_try" in
14446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447   *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14451   ac_status=$?
14452   grep -v '^ *+' conftest.er1 >conftest.err
14453   rm -f conftest.er1
14454   cat conftest.err >&5
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); } >/dev/null; then
14457   if test -s conftest.err; then
14458     ac_cpp_err=$ac_c_preproc_warn_flag
14459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14460   else
14461     ac_cpp_err=
14462   fi
14463 else
14464   ac_cpp_err=yes
14465 fi
14466 if test -z "$ac_cpp_err"; then
14467   ac_header_preproc=yes
14468 else
14469   echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472   ac_header_preproc=no
14473 fi
14474
14475 rm -f conftest.err conftest.$ac_ext
14476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14477 echo "${ECHO_T}$ac_header_preproc" >&6; }
14478
14479 # So?  What about this header?
14480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14481   yes:no: )
14482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14486     ac_header_preproc=yes
14487     ;;
14488   no:yes:* )
14489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14501     ( cat <<\_ASBOX
14502 ## ------------------------------------ ##
14503 ## Report this to http://llvm.org/bugs/ ##
14504 ## ------------------------------------ ##
14505 _ASBOX
14506      ) | sed "s/^/$as_me: WARNING:     /" >&2
14507     ;;
14508 esac
14509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14512   echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514   eval "$as_ac_Header=\$ac_header_preproc"
14515 fi
14516 ac_res=`eval echo '${'$as_ac_Header'}'`
14517                { echo "$as_me:$LINENO: result: $ac_res" >&5
14518 echo "${ECHO_T}$ac_res" >&6; }
14519
14520 fi
14521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14522   cat >>confdefs.h <<_ACEOF
14523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14524 _ACEOF
14525
14526 fi
14527
14528 done
14529
14530
14531
14532
14533
14534
14535
14536 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14537 do
14538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14540   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14543   echo $ECHO_N "(cached) $ECHO_C" >&6
14544 fi
14545 ac_res=`eval echo '${'$as_ac_Header'}'`
14546                { echo "$as_me:$LINENO: result: $ac_res" >&5
14547 echo "${ECHO_T}$ac_res" >&6; }
14548 else
14549   # Is the header compilable?
14550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14552 cat >conftest.$ac_ext <<_ACEOF
14553 /* confdefs.h.  */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h.  */
14558 $ac_includes_default
14559 #include <$ac_header>
14560 _ACEOF
14561 rm -f conftest.$ac_objext
14562 if { (ac_try="$ac_compile"
14563 case "(($ac_try" in
14564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565   *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568   (eval "$ac_compile") 2>conftest.er1
14569   ac_status=$?
14570   grep -v '^ *+' conftest.er1 >conftest.err
14571   rm -f conftest.er1
14572   cat conftest.err >&5
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } &&
14575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14576   { (case "(($ac_try" in
14577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578   *) ac_try_echo=$ac_try;;
14579 esac
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581   (eval "$ac_try") 2>&5
14582   ac_status=$?
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); }; } &&
14585          { ac_try='test -s conftest.$ac_objext'
14586   { (case "(($ac_try" in
14587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588   *) ac_try_echo=$ac_try;;
14589 esac
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591   (eval "$ac_try") 2>&5
14592   ac_status=$?
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); }; }; then
14595   ac_header_compiler=yes
14596 else
14597   echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14599
14600         ac_header_compiler=no
14601 fi
14602
14603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14605 echo "${ECHO_T}$ac_header_compiler" >&6; }
14606
14607 # Is the header present?
14608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14610 cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h.  */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h.  */
14616 #include <$ac_header>
14617 _ACEOF
14618 if { (ac_try="$ac_cpp conftest.$ac_ext"
14619 case "(($ac_try" in
14620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621   *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14625   ac_status=$?
14626   grep -v '^ *+' conftest.er1 >conftest.err
14627   rm -f conftest.er1
14628   cat conftest.err >&5
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); } >/dev/null; then
14631   if test -s conftest.err; then
14632     ac_cpp_err=$ac_c_preproc_warn_flag
14633     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14634   else
14635     ac_cpp_err=
14636   fi
14637 else
14638   ac_cpp_err=yes
14639 fi
14640 if test -z "$ac_cpp_err"; then
14641   ac_header_preproc=yes
14642 else
14643   echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14645
14646   ac_header_preproc=no
14647 fi
14648
14649 rm -f conftest.err conftest.$ac_ext
14650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14651 echo "${ECHO_T}$ac_header_preproc" >&6; }
14652
14653 # So?  What about this header?
14654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14655   yes:no: )
14656     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14660     ac_header_preproc=yes
14661     ;;
14662   no:yes:* )
14663     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14665     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14666 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14667     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14669     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14670 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14673     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14675     ( cat <<\_ASBOX
14676 ## ------------------------------------ ##
14677 ## Report this to http://llvm.org/bugs/ ##
14678 ## ------------------------------------ ##
14679 _ASBOX
14680      ) | sed "s/^/$as_me: WARNING:     /" >&2
14681     ;;
14682 esac
14683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14686   echo $ECHO_N "(cached) $ECHO_C" >&6
14687 else
14688   eval "$as_ac_Header=\$ac_header_preproc"
14689 fi
14690 ac_res=`eval echo '${'$as_ac_Header'}'`
14691                { echo "$as_me:$LINENO: result: $ac_res" >&5
14692 echo "${ECHO_T}$ac_res" >&6; }
14693
14694 fi
14695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14696   cat >>confdefs.h <<_ACEOF
14697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14698 _ACEOF
14699
14700 fi
14701
14702 done
14703
14704
14705
14706 for ac_header in utime.h windows.h
14707 do
14708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14713   echo $ECHO_N "(cached) $ECHO_C" >&6
14714 fi
14715 ac_res=`eval echo '${'$as_ac_Header'}'`
14716                { echo "$as_me:$LINENO: result: $ac_res" >&5
14717 echo "${ECHO_T}$ac_res" >&6; }
14718 else
14719   # Is the header compilable?
14720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h.  */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h.  */
14728 $ac_includes_default
14729 #include <$ac_header>
14730 _ACEOF
14731 rm -f conftest.$ac_objext
14732 if { (ac_try="$ac_compile"
14733 case "(($ac_try" in
14734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735   *) ac_try_echo=$ac_try;;
14736 esac
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738   (eval "$ac_compile") 2>conftest.er1
14739   ac_status=$?
14740   grep -v '^ *+' conftest.er1 >conftest.err
14741   rm -f conftest.er1
14742   cat conftest.err >&5
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } &&
14745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14746   { (case "(($ac_try" in
14747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748   *) ac_try_echo=$ac_try;;
14749 esac
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751   (eval "$ac_try") 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; } &&
14755          { ac_try='test -s conftest.$ac_objext'
14756   { (case "(($ac_try" in
14757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758   *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761   (eval "$ac_try") 2>&5
14762   ac_status=$?
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); }; }; then
14765   ac_header_compiler=yes
14766 else
14767   echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14769
14770         ac_header_compiler=no
14771 fi
14772
14773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14775 echo "${ECHO_T}$ac_header_compiler" >&6; }
14776
14777 # Is the header present?
14778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14780 cat >conftest.$ac_ext <<_ACEOF
14781 /* confdefs.h.  */
14782 _ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h.  */
14786 #include <$ac_header>
14787 _ACEOF
14788 if { (ac_try="$ac_cpp conftest.$ac_ext"
14789 case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14795   ac_status=$?
14796   grep -v '^ *+' conftest.er1 >conftest.err
14797   rm -f conftest.er1
14798   cat conftest.err >&5
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } >/dev/null; then
14801   if test -s conftest.err; then
14802     ac_cpp_err=$ac_c_preproc_warn_flag
14803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14804   else
14805     ac_cpp_err=
14806   fi
14807 else
14808   ac_cpp_err=yes
14809 fi
14810 if test -z "$ac_cpp_err"; then
14811   ac_header_preproc=yes
14812 else
14813   echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815
14816   ac_header_preproc=no
14817 fi
14818
14819 rm -f conftest.err conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14821 echo "${ECHO_T}$ac_header_preproc" >&6; }
14822
14823 # So?  What about this header?
14824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14825   yes:no: )
14826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14830     ac_header_preproc=yes
14831     ;;
14832   no:yes:* )
14833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14845     ( cat <<\_ASBOX
14846 ## ------------------------------------ ##
14847 ## Report this to http://llvm.org/bugs/ ##
14848 ## ------------------------------------ ##
14849 _ASBOX
14850      ) | sed "s/^/$as_me: WARNING:     /" >&2
14851     ;;
14852 esac
14853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14856   echo $ECHO_N "(cached) $ECHO_C" >&6
14857 else
14858   eval "$as_ac_Header=\$ac_header_preproc"
14859 fi
14860 ac_res=`eval echo '${'$as_ac_Header'}'`
14861                { echo "$as_me:$LINENO: result: $ac_res" >&5
14862 echo "${ECHO_T}$ac_res" >&6; }
14863
14864 fi
14865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14866   cat >>confdefs.h <<_ACEOF
14867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14868 _ACEOF
14869
14870 fi
14871
14872 done
14873
14874
14875
14876
14877
14878
14879 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14880 do
14881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14883   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14886   echo $ECHO_N "(cached) $ECHO_C" >&6
14887 fi
14888 ac_res=`eval echo '${'$as_ac_Header'}'`
14889                { echo "$as_me:$LINENO: result: $ac_res" >&5
14890 echo "${ECHO_T}$ac_res" >&6; }
14891 else
14892   # Is the header compilable?
14893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h.  */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h.  */
14901 $ac_includes_default
14902 #include <$ac_header>
14903 _ACEOF
14904 rm -f conftest.$ac_objext
14905 if { (ac_try="$ac_compile"
14906 case "(($ac_try" in
14907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908   *) ac_try_echo=$ac_try;;
14909 esac
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911   (eval "$ac_compile") 2>conftest.er1
14912   ac_status=$?
14913   grep -v '^ *+' conftest.er1 >conftest.err
14914   rm -f conftest.er1
14915   cat conftest.err >&5
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); } &&
14918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14919   { (case "(($ac_try" in
14920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921   *) ac_try_echo=$ac_try;;
14922 esac
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924   (eval "$ac_try") 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; } &&
14928          { ac_try='test -s conftest.$ac_objext'
14929   { (case "(($ac_try" in
14930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931   *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934   (eval "$ac_try") 2>&5
14935   ac_status=$?
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); }; }; then
14938   ac_header_compiler=yes
14939 else
14940   echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14942
14943         ac_header_compiler=no
14944 fi
14945
14946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14948 echo "${ECHO_T}$ac_header_compiler" >&6; }
14949
14950 # Is the header present?
14951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14953 cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h.  */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h.  */
14959 #include <$ac_header>
14960 _ACEOF
14961 if { (ac_try="$ac_cpp conftest.$ac_ext"
14962 case "(($ac_try" in
14963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964   *) ac_try_echo=$ac_try;;
14965 esac
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14968   ac_status=$?
14969   grep -v '^ *+' conftest.er1 >conftest.err
14970   rm -f conftest.er1
14971   cat conftest.err >&5
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); } >/dev/null; then
14974   if test -s conftest.err; then
14975     ac_cpp_err=$ac_c_preproc_warn_flag
14976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14977   else
14978     ac_cpp_err=
14979   fi
14980 else
14981   ac_cpp_err=yes
14982 fi
14983 if test -z "$ac_cpp_err"; then
14984   ac_header_preproc=yes
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989   ac_header_preproc=no
14990 fi
14991
14992 rm -f conftest.err conftest.$ac_ext
14993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14994 echo "${ECHO_T}$ac_header_preproc" >&6; }
14995
14996 # So?  What about this header?
14997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14998   yes:no: )
14999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15003     ac_header_preproc=yes
15004     ;;
15005   no:yes:* )
15006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15018     ( cat <<\_ASBOX
15019 ## ------------------------------------ ##
15020 ## Report this to http://llvm.org/bugs/ ##
15021 ## ------------------------------------ ##
15022 _ASBOX
15023      ) | sed "s/^/$as_me: WARNING:     /" >&2
15024     ;;
15025 esac
15026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029   echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031   eval "$as_ac_Header=\$ac_header_preproc"
15032 fi
15033 ac_res=`eval echo '${'$as_ac_Header'}'`
15034                { echo "$as_me:$LINENO: result: $ac_res" >&5
15035 echo "${ECHO_T}$ac_res" >&6; }
15036
15037 fi
15038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15039   cat >>confdefs.h <<_ACEOF
15040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15041 _ACEOF
15042
15043 fi
15044
15045 done
15046
15047
15048
15049
15050
15051 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15052 do
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 fi
15060 ac_res=`eval echo '${'$as_ac_Header'}'`
15061                { echo "$as_me:$LINENO: result: $ac_res" >&5
15062 echo "${ECHO_T}$ac_res" >&6; }
15063 else
15064   # Is the header compilable?
15065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h.  */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h.  */
15073 $ac_includes_default
15074 #include <$ac_header>
15075 _ACEOF
15076 rm -f conftest.$ac_objext
15077 if { (ac_try="$ac_compile"
15078 case "(($ac_try" in
15079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080   *) ac_try_echo=$ac_try;;
15081 esac
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083   (eval "$ac_compile") 2>conftest.er1
15084   ac_status=$?
15085   grep -v '^ *+' conftest.er1 >conftest.err
15086   rm -f conftest.er1
15087   cat conftest.err >&5
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); } &&
15090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091   { (case "(($ac_try" in
15092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093   *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096   (eval "$ac_try") 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; } &&
15100          { ac_try='test -s conftest.$ac_objext'
15101   { (case "(($ac_try" in
15102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103   *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106   (eval "$ac_try") 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; }; then
15110   ac_header_compiler=yes
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115         ac_header_compiler=no
15116 fi
15117
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15120 echo "${ECHO_T}$ac_header_compiler" >&6; }
15121
15122 # Is the header present?
15123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h.  */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h.  */
15131 #include <$ac_header>
15132 _ACEOF
15133 if { (ac_try="$ac_cpp conftest.$ac_ext"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } >/dev/null; then
15146   if test -s conftest.err; then
15147     ac_cpp_err=$ac_c_preproc_warn_flag
15148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15149   else
15150     ac_cpp_err=
15151   fi
15152 else
15153   ac_cpp_err=yes
15154 fi
15155 if test -z "$ac_cpp_err"; then
15156   ac_header_preproc=yes
15157 else
15158   echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161   ac_header_preproc=no
15162 fi
15163
15164 rm -f conftest.err conftest.$ac_ext
15165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15166 echo "${ECHO_T}$ac_header_preproc" >&6; }
15167
15168 # So?  What about this header?
15169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15170   yes:no: )
15171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15175     ac_header_preproc=yes
15176     ;;
15177   no:yes:* )
15178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15190     ( cat <<\_ASBOX
15191 ## ------------------------------------ ##
15192 ## Report this to http://llvm.org/bugs/ ##
15193 ## ------------------------------------ ##
15194 _ASBOX
15195      ) | sed "s/^/$as_me: WARNING:     /" >&2
15196     ;;
15197 esac
15198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201   echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203   eval "$as_ac_Header=\$ac_header_preproc"
15204 fi
15205 ac_res=`eval echo '${'$as_ac_Header'}'`
15206                { echo "$as_me:$LINENO: result: $ac_res" >&5
15207 echo "${ECHO_T}$ac_res" >&6; }
15208
15209 fi
15210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15211   cat >>confdefs.h <<_ACEOF
15212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15213 _ACEOF
15214
15215 fi
15216
15217 done
15218
15219
15220 for ac_header in valgrind/valgrind.h
15221 do
15222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15224   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15227   echo $ECHO_N "(cached) $ECHO_C" >&6
15228 fi
15229 ac_res=`eval echo '${'$as_ac_Header'}'`
15230                { echo "$as_me:$LINENO: result: $ac_res" >&5
15231 echo "${ECHO_T}$ac_res" >&6; }
15232 else
15233   # Is the header compilable?
15234 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15236 cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h.  */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h.  */
15242 $ac_includes_default
15243 #include <$ac_header>
15244 _ACEOF
15245 rm -f conftest.$ac_objext
15246 if { (ac_try="$ac_compile"
15247 case "(($ac_try" in
15248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249   *) ac_try_echo=$ac_try;;
15250 esac
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252   (eval "$ac_compile") 2>conftest.er1
15253   ac_status=$?
15254   grep -v '^ *+' conftest.er1 >conftest.err
15255   rm -f conftest.er1
15256   cat conftest.err >&5
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); } &&
15259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15260   { (case "(($ac_try" in
15261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262   *) ac_try_echo=$ac_try;;
15263 esac
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265   (eval "$ac_try") 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); }; } &&
15269          { ac_try='test -s conftest.$ac_objext'
15270   { (case "(($ac_try" in
15271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272   *) ac_try_echo=$ac_try;;
15273 esac
15274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15275   (eval "$ac_try") 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; }; then
15279   ac_header_compiler=yes
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284         ac_header_compiler=no
15285 fi
15286
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289 echo "${ECHO_T}$ac_header_compiler" >&6; }
15290
15291 # Is the header present?
15292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300 #include <$ac_header>
15301 _ACEOF
15302 if { (ac_try="$ac_cpp conftest.$ac_ext"
15303 case "(($ac_try" in
15304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305   *) ac_try_echo=$ac_try;;
15306 esac
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15309   ac_status=$?
15310   grep -v '^ *+' conftest.er1 >conftest.err
15311   rm -f conftest.er1
15312   cat conftest.err >&5
15313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314   (exit $ac_status); } >/dev/null; then
15315   if test -s conftest.err; then
15316     ac_cpp_err=$ac_c_preproc_warn_flag
15317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15318   else
15319     ac_cpp_err=
15320   fi
15321 else
15322   ac_cpp_err=yes
15323 fi
15324 if test -z "$ac_cpp_err"; then
15325   ac_header_preproc=yes
15326 else
15327   echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330   ac_header_preproc=no
15331 fi
15332
15333 rm -f conftest.err conftest.$ac_ext
15334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15335 echo "${ECHO_T}$ac_header_preproc" >&6; }
15336
15337 # So?  What about this header?
15338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15339   yes:no: )
15340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15344     ac_header_preproc=yes
15345     ;;
15346   no:yes:* )
15347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15349     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15350 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15351     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15353     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15354 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15357     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15359     ( cat <<\_ASBOX
15360 ## ------------------------------------ ##
15361 ## Report this to http://llvm.org/bugs/ ##
15362 ## ------------------------------------ ##
15363 _ASBOX
15364      ) | sed "s/^/$as_me: WARNING:     /" >&2
15365     ;;
15366 esac
15367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370   echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372   eval "$as_ac_Header=\$ac_header_preproc"
15373 fi
15374 ac_res=`eval echo '${'$as_ac_Header'}'`
15375                { echo "$as_me:$LINENO: result: $ac_res" >&5
15376 echo "${ECHO_T}$ac_res" >&6; }
15377
15378 fi
15379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15380   cat >>confdefs.h <<_ACEOF
15381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15382 _ACEOF
15383
15384 fi
15385
15386 done
15387
15388
15389 for ac_header in fenv.h
15390 do
15391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396   echo $ECHO_N "(cached) $ECHO_C" >&6
15397 fi
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399                { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15401 else
15402   # Is the header compilable?
15403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411 $ac_includes_default
15412 #include <$ac_header>
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_compile") 2>conftest.er1
15422   ac_status=$?
15423   grep -v '^ *+' conftest.er1 >conftest.err
15424   rm -f conftest.er1
15425   cat conftest.err >&5
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); } &&
15428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429   { (case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_try") 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; } &&
15438          { ac_try='test -s conftest.$ac_objext'
15439   { (case "(($ac_try" in
15440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441   *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444   (eval "$ac_try") 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; }; then
15448   ac_header_compiler=yes
15449 else
15450   echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453         ac_header_compiler=no
15454 fi
15455
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15459
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h.  */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h.  */
15469 #include <$ac_header>
15470 _ACEOF
15471 if { (ac_try="$ac_cpp conftest.$ac_ext"
15472 case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } >/dev/null; then
15484   if test -s conftest.err; then
15485     ac_cpp_err=$ac_c_preproc_warn_flag
15486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15487   else
15488     ac_cpp_err=
15489   fi
15490 else
15491   ac_cpp_err=yes
15492 fi
15493 if test -z "$ac_cpp_err"; then
15494   ac_header_preproc=yes
15495 else
15496   echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499   ac_header_preproc=no
15500 fi
15501
15502 rm -f conftest.err conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504 echo "${ECHO_T}$ac_header_preproc" >&6; }
15505
15506 # So?  What about this header?
15507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508   yes:no: )
15509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513     ac_header_preproc=yes
15514     ;;
15515   no:yes:* )
15516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15528     ( cat <<\_ASBOX
15529 ## ------------------------------------ ##
15530 ## Report this to http://llvm.org/bugs/ ##
15531 ## ------------------------------------ ##
15532 _ASBOX
15533      ) | sed "s/^/$as_me: WARNING:     /" >&2
15534     ;;
15535 esac
15536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   eval "$as_ac_Header=\$ac_header_preproc"
15542 fi
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544                { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15546
15547 fi
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549   cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15551 _ACEOF
15552
15553 fi
15554
15555 done
15556
15557 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15558
15559 for ac_header in pthread.h
15560 do
15561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15563   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15566   echo $ECHO_N "(cached) $ECHO_C" >&6
15567 fi
15568 ac_res=`eval echo '${'$as_ac_Header'}'`
15569                { echo "$as_me:$LINENO: result: $ac_res" >&5
15570 echo "${ECHO_T}$ac_res" >&6; }
15571 else
15572   # Is the header compilable?
15573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h.  */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h.  */
15581 $ac_includes_default
15582 #include <$ac_header>
15583 _ACEOF
15584 rm -f conftest.$ac_objext
15585 if { (ac_try="$ac_compile"
15586 case "(($ac_try" in
15587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588   *) ac_try_echo=$ac_try;;
15589 esac
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591   (eval "$ac_compile") 2>conftest.er1
15592   ac_status=$?
15593   grep -v '^ *+' conftest.er1 >conftest.err
15594   rm -f conftest.er1
15595   cat conftest.err >&5
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); } &&
15598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15599   { (case "(($ac_try" in
15600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601   *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604   (eval "$ac_try") 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; } &&
15608          { ac_try='test -s conftest.$ac_objext'
15609   { (case "(($ac_try" in
15610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611   *) ac_try_echo=$ac_try;;
15612 esac
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614   (eval "$ac_try") 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; }; then
15618   ac_header_compiler=yes
15619 else
15620   echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15622
15623         ac_header_compiler=no
15624 fi
15625
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15628 echo "${ECHO_T}$ac_header_compiler" >&6; }
15629
15630 # Is the header present?
15631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15633 cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h.  */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h.  */
15639 #include <$ac_header>
15640 _ACEOF
15641 if { (ac_try="$ac_cpp conftest.$ac_ext"
15642 case "(($ac_try" in
15643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644   *) ac_try_echo=$ac_try;;
15645 esac
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } >/dev/null; then
15654   if test -s conftest.err; then
15655     ac_cpp_err=$ac_c_preproc_warn_flag
15656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15657   else
15658     ac_cpp_err=
15659   fi
15660 else
15661   ac_cpp_err=yes
15662 fi
15663 if test -z "$ac_cpp_err"; then
15664   ac_header_preproc=yes
15665 else
15666   echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15668
15669   ac_header_preproc=no
15670 fi
15671
15672 rm -f conftest.err conftest.$ac_ext
15673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15674 echo "${ECHO_T}$ac_header_preproc" >&6; }
15675
15676 # So?  What about this header?
15677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15678   yes:no: )
15679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15683     ac_header_preproc=yes
15684     ;;
15685   no:yes:* )
15686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15698     ( cat <<\_ASBOX
15699 ## ------------------------------------ ##
15700 ## Report this to http://llvm.org/bugs/ ##
15701 ## ------------------------------------ ##
15702 _ASBOX
15703      ) | sed "s/^/$as_me: WARNING:     /" >&2
15704     ;;
15705 esac
15706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   eval "$as_ac_Header=\$ac_header_preproc"
15712 fi
15713 ac_res=`eval echo '${'$as_ac_Header'}'`
15714                { echo "$as_me:$LINENO: result: $ac_res" >&5
15715 echo "${ECHO_T}$ac_res" >&6; }
15716
15717 fi
15718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15719   cat >>confdefs.h <<_ACEOF
15720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15721 _ACEOF
15722  HAVE_PTHREAD=1
15723
15724 else
15725   HAVE_PTHREAD=0
15726
15727 fi
15728
15729 done
15730
15731 else
15732   HAVE_PTHREAD=0
15733
15734 fi
15735
15736 if test "$llvm_cv_enable_libffi" = "yes" ; then
15737
15738
15739 for ac_header in ffi.h ffi/ffi.h
15740 do
15741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 fi
15748 ac_res=`eval echo '${'$as_ac_Header'}'`
15749                { echo "$as_me:$LINENO: result: $ac_res" >&5
15750 echo "${ECHO_T}$ac_res" >&6; }
15751 else
15752   # Is the header compilable?
15753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h.  */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h.  */
15761 $ac_includes_default
15762 #include <$ac_header>
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (ac_try="$ac_compile"
15766 case "(($ac_try" in
15767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768   *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771   (eval "$ac_compile") 2>conftest.er1
15772   ac_status=$?
15773   grep -v '^ *+' conftest.er1 >conftest.err
15774   rm -f conftest.er1
15775   cat conftest.err >&5
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } &&
15778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15779   { (case "(($ac_try" in
15780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781   *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784   (eval "$ac_try") 2>&5
15785   ac_status=$?
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); }; } &&
15788          { ac_try='test -s conftest.$ac_objext'
15789   { (case "(($ac_try" in
15790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791   *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794   (eval "$ac_try") 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; }; then
15798   ac_header_compiler=yes
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803         ac_header_compiler=no
15804 fi
15805
15806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15808 echo "${ECHO_T}$ac_header_compiler" >&6; }
15809
15810 # Is the header present?
15811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15813 cat >conftest.$ac_ext <<_ACEOF
15814 /* confdefs.h.  */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h.  */
15819 #include <$ac_header>
15820 _ACEOF
15821 if { (ac_try="$ac_cpp conftest.$ac_ext"
15822 case "(($ac_try" in
15823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824   *) ac_try_echo=$ac_try;;
15825 esac
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15828   ac_status=$?
15829   grep -v '^ *+' conftest.er1 >conftest.err
15830   rm -f conftest.er1
15831   cat conftest.err >&5
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); } >/dev/null; then
15834   if test -s conftest.err; then
15835     ac_cpp_err=$ac_c_preproc_warn_flag
15836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15837   else
15838     ac_cpp_err=
15839   fi
15840 else
15841   ac_cpp_err=yes
15842 fi
15843 if test -z "$ac_cpp_err"; then
15844   ac_header_preproc=yes
15845 else
15846   echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849   ac_header_preproc=no
15850 fi
15851
15852 rm -f conftest.err conftest.$ac_ext
15853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15854 echo "${ECHO_T}$ac_header_preproc" >&6; }
15855
15856 # So?  What about this header?
15857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15858   yes:no: )
15859     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15863     ac_header_preproc=yes
15864     ;;
15865   no:yes:* )
15866     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15868     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15869 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15870     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15872     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15873 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15876     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15878     ( cat <<\_ASBOX
15879 ## ------------------------------------ ##
15880 ## Report this to http://llvm.org/bugs/ ##
15881 ## ------------------------------------ ##
15882 _ASBOX
15883      ) | sed "s/^/$as_me: WARNING:     /" >&2
15884     ;;
15885 esac
15886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891   eval "$as_ac_Header=\$ac_header_preproc"
15892 fi
15893 ac_res=`eval echo '${'$as_ac_Header'}'`
15894                { echo "$as_me:$LINENO: result: $ac_res" >&5
15895 echo "${ECHO_T}$ac_res" >&6; }
15896
15897 fi
15898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899   cat >>confdefs.h <<_ACEOF
15900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901 _ACEOF
15902
15903 fi
15904
15905 done
15906
15907 fi
15908
15909
15910 for ac_header in CrashReporterClient.h
15911 do
15912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917   echo $ECHO_N "(cached) $ECHO_C" >&6
15918 fi
15919 ac_res=`eval echo '${'$as_ac_Header'}'`
15920                { echo "$as_me:$LINENO: result: $ac_res" >&5
15921 echo "${ECHO_T}$ac_res" >&6; }
15922 else
15923   # Is the header compilable?
15924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15926 cat >conftest.$ac_ext <<_ACEOF
15927 /* confdefs.h.  */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h.  */
15932 $ac_includes_default
15933 #include <$ac_header>
15934 _ACEOF
15935 rm -f conftest.$ac_objext
15936 if { (ac_try="$ac_compile"
15937 case "(($ac_try" in
15938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939   *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942   (eval "$ac_compile") 2>conftest.er1
15943   ac_status=$?
15944   grep -v '^ *+' conftest.er1 >conftest.err
15945   rm -f conftest.er1
15946   cat conftest.err >&5
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } &&
15949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950   { (case "(($ac_try" in
15951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952   *) ac_try_echo=$ac_try;;
15953 esac
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955   (eval "$ac_try") 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; } &&
15959          { ac_try='test -s conftest.$ac_objext'
15960   { (case "(($ac_try" in
15961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962   *) ac_try_echo=$ac_try;;
15963 esac
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965   (eval "$ac_try") 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; }; then
15969   ac_header_compiler=yes
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974         ac_header_compiler=no
15975 fi
15976
15977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979 echo "${ECHO_T}$ac_header_compiler" >&6; }
15980
15981 # Is the header present?
15982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990 #include <$ac_header>
15991 _ACEOF
15992 if { (ac_try="$ac_cpp conftest.$ac_ext"
15993 case "(($ac_try" in
15994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995   *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15999   ac_status=$?
16000   grep -v '^ *+' conftest.er1 >conftest.err
16001   rm -f conftest.er1
16002   cat conftest.err >&5
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); } >/dev/null; then
16005   if test -s conftest.err; then
16006     ac_cpp_err=$ac_c_preproc_warn_flag
16007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16008   else
16009     ac_cpp_err=
16010   fi
16011 else
16012   ac_cpp_err=yes
16013 fi
16014 if test -z "$ac_cpp_err"; then
16015   ac_header_preproc=yes
16016 else
16017   echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020   ac_header_preproc=no
16021 fi
16022
16023 rm -f conftest.err conftest.$ac_ext
16024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025 echo "${ECHO_T}$ac_header_preproc" >&6; }
16026
16027 # So?  What about this header?
16028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16029   yes:no: )
16030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034     ac_header_preproc=yes
16035     ;;
16036   no:yes:* )
16037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16049     ( cat <<\_ASBOX
16050 ## ------------------------------------ ##
16051 ## Report this to http://llvm.org/bugs/ ##
16052 ## ------------------------------------ ##
16053 _ASBOX
16054      ) | sed "s/^/$as_me: WARNING:     /" >&2
16055     ;;
16056 esac
16057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16060   echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062   eval "$as_ac_Header=\$ac_header_preproc"
16063 fi
16064 ac_res=`eval echo '${'$as_ac_Header'}'`
16065                { echo "$as_me:$LINENO: result: $ac_res" >&5
16066 echo "${ECHO_T}$ac_res" >&6; }
16067
16068 fi
16069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16070   cat >>confdefs.h <<_ACEOF
16071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16072 _ACEOF
16073
16074 fi
16075
16076 done
16077
16078
16079 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16080 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h.  */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h.  */
16087 extern const char *__crashreporter_info__;
16088       int main() {
16089         __crashreporter_info__ = "test";
16090         return 0;
16091       }
16092
16093 _ACEOF
16094 rm -f conftest.$ac_objext conftest$ac_exeext
16095 if { (ac_try="$ac_link"
16096 case "(($ac_try" in
16097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098   *) ac_try_echo=$ac_try;;
16099 esac
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101   (eval "$ac_link") 2>conftest.er1
16102   ac_status=$?
16103   grep -v '^ *+' conftest.er1 >conftest.err
16104   rm -f conftest.er1
16105   cat conftest.err >&5
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } &&
16108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16109   { (case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_try") 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; } &&
16118          { ac_try='test -s conftest$ac_exeext'
16119   { (case "(($ac_try" in
16120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121   *) ac_try_echo=$ac_try;;
16122 esac
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124   (eval "$ac_try") 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); }; }; then
16128   { echo "$as_me:$LINENO: result: yes" >&5
16129 echo "${ECHO_T}yes" >&6; }
16130
16131 cat >>confdefs.h <<\_ACEOF
16132 #define HAVE_CRASHREPORTER_INFO 1
16133 _ACEOF
16134
16135 else
16136   echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139         { echo "$as_me:$LINENO: result: no" >&5
16140 echo "${ECHO_T}no" >&6; }
16141
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_CRASHREPORTER_INFO 0
16144 _ACEOF
16145
16146 fi
16147
16148 rm -f core conftest.err conftest.$ac_objext \
16149       conftest$ac_exeext conftest.$ac_ext
16150
16151
16152
16153
16154   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16155 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16156 if test "${ac_cv_huge_val_sanity+set}" = set; then
16157   echo $ECHO_N "(cached) $ECHO_C" >&6
16158 else
16159
16160     ac_ext=cpp
16161 ac_cpp='$CXXCPP $CPPFLAGS'
16162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16165
16166     ac_save_CXXFLAGS=$CXXFLAGS
16167     CXXFLAGS="$CXXFLAGS -pedantic"
16168     if test "$cross_compiling" = yes; then
16169   ac_cv_huge_val_sanity=yes
16170 else
16171   cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h.  */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h.  */
16177 #include <math.h>
16178 int
16179 main ()
16180 {
16181 double x = HUGE_VAL; return x != x;
16182   ;
16183   return 0;
16184 }
16185 _ACEOF
16186 rm -f conftest$ac_exeext
16187 if { (ac_try="$ac_link"
16188 case "(($ac_try" in
16189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190   *) ac_try_echo=$ac_try;;
16191 esac
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193   (eval "$ac_link") 2>&5
16194   ac_status=$?
16195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16197   { (case "(($ac_try" in
16198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199   *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202   (eval "$ac_try") 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; }; then
16206   ac_cv_huge_val_sanity=yes
16207 else
16208   echo "$as_me: program exited with status $ac_status" >&5
16209 echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16211
16212 ( exit $ac_status )
16213 ac_cv_huge_val_sanity=no
16214 fi
16215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16216 fi
16217
16218
16219     CXXFLAGS=$ac_save_CXXFLAGS
16220     ac_ext=c
16221 ac_cpp='$CPP $CPPFLAGS'
16222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16225
16226
16227 fi
16228 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16229 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16230   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16231
16232
16233 { echo "$as_me:$LINENO: checking for pid_t" >&5
16234 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16235 if test "${ac_cv_type_pid_t+set}" = set; then
16236   echo $ECHO_N "(cached) $ECHO_C" >&6
16237 else
16238   cat >conftest.$ac_ext <<_ACEOF
16239 /* confdefs.h.  */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h.  */
16244 $ac_includes_default
16245 typedef pid_t ac__type_new_;
16246 int
16247 main ()
16248 {
16249 if ((ac__type_new_ *) 0)
16250   return 0;
16251 if (sizeof (ac__type_new_))
16252   return 0;
16253   ;
16254   return 0;
16255 }
16256 _ACEOF
16257 rm -f conftest.$ac_objext
16258 if { (ac_try="$ac_compile"
16259 case "(($ac_try" in
16260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261   *) ac_try_echo=$ac_try;;
16262 esac
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264   (eval "$ac_compile") 2>conftest.er1
16265   ac_status=$?
16266   grep -v '^ *+' conftest.er1 >conftest.err
16267   rm -f conftest.er1
16268   cat conftest.err >&5
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); } &&
16271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16272   { (case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277   (eval "$ac_try") 2>&5
16278   ac_status=$?
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); }; } &&
16281          { ac_try='test -s conftest.$ac_objext'
16282   { (case "(($ac_try" in
16283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284   *) ac_try_echo=$ac_try;;
16285 esac
16286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287   (eval "$ac_try") 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; }; then
16291   ac_cv_type_pid_t=yes
16292 else
16293   echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16295
16296         ac_cv_type_pid_t=no
16297 fi
16298
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 fi
16301 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16302 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16303 if test $ac_cv_type_pid_t = yes; then
16304   :
16305 else
16306
16307 cat >>confdefs.h <<_ACEOF
16308 #define pid_t int
16309 _ACEOF
16310
16311 fi
16312
16313 { echo "$as_me:$LINENO: checking for size_t" >&5
16314 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16315 if test "${ac_cv_type_size_t+set}" = set; then
16316   echo $ECHO_N "(cached) $ECHO_C" >&6
16317 else
16318   cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16324 $ac_includes_default
16325 typedef size_t ac__type_new_;
16326 int
16327 main ()
16328 {
16329 if ((ac__type_new_ *) 0)
16330   return 0;
16331 if (sizeof (ac__type_new_))
16332   return 0;
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext
16338 if { (ac_try="$ac_compile"
16339 case "(($ac_try" in
16340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341   *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344   (eval "$ac_compile") 2>conftest.er1
16345   ac_status=$?
16346   grep -v '^ *+' conftest.er1 >conftest.err
16347   rm -f conftest.er1
16348   cat conftest.err >&5
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); } &&
16351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16352   { (case "(($ac_try" in
16353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354   *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357   (eval "$ac_try") 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); }; } &&
16361          { ac_try='test -s conftest.$ac_objext'
16362   { (case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367   (eval "$ac_try") 2>&5
16368   ac_status=$?
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); }; }; then
16371   ac_cv_type_size_t=yes
16372 else
16373   echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16375
16376         ac_cv_type_size_t=no
16377 fi
16378
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380 fi
16381 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16382 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16383 if test $ac_cv_type_size_t = yes; then
16384   :
16385 else
16386
16387 cat >>confdefs.h <<_ACEOF
16388 #define size_t unsigned int
16389 _ACEOF
16390
16391 fi
16392
16393
16394 cat >>confdefs.h <<_ACEOF
16395 #define RETSIGTYPE void
16396 _ACEOF
16397
16398 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16400 if test "${ac_cv_struct_tm+set}" = set; then
16401   echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403   cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h.  */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h.  */
16409 #include <sys/types.h>
16410 #include <time.h>
16411
16412 int
16413 main ()
16414 {
16415 struct tm *tp; tp->tm_sec;
16416   ;
16417   return 0;
16418 }
16419 _ACEOF
16420 rm -f conftest.$ac_objext
16421 if { (ac_try="$ac_compile"
16422 case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_compile") 2>conftest.er1
16428   ac_status=$?
16429   grep -v '^ *+' conftest.er1 >conftest.err
16430   rm -f conftest.er1
16431   cat conftest.err >&5
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } &&
16434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435   { (case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440   (eval "$ac_try") 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; } &&
16444          { ac_try='test -s conftest.$ac_objext'
16445   { (case "(($ac_try" in
16446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447   *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450   (eval "$ac_try") 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; }; then
16454   ac_cv_struct_tm=time.h
16455 else
16456   echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16458
16459         ac_cv_struct_tm=sys/time.h
16460 fi
16461
16462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463 fi
16464 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16465 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16466 if test $ac_cv_struct_tm = sys/time.h; then
16467
16468 cat >>confdefs.h <<\_ACEOF
16469 #define TM_IN_SYS_TIME 1
16470 _ACEOF
16471
16472 fi
16473
16474 { echo "$as_me:$LINENO: checking for int64_t" >&5
16475 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16476 if test "${ac_cv_type_int64_t+set}" = set; then
16477   echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479   cat >conftest.$ac_ext <<_ACEOF
16480 /* confdefs.h.  */
16481 _ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h.  */
16485 $ac_includes_default
16486 typedef int64_t ac__type_new_;
16487 int
16488 main ()
16489 {
16490 if ((ac__type_new_ *) 0)
16491   return 0;
16492 if (sizeof (ac__type_new_))
16493   return 0;
16494   ;
16495   return 0;
16496 }
16497 _ACEOF
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502   *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505   (eval "$ac_compile") 2>conftest.er1
16506   ac_status=$?
16507   grep -v '^ *+' conftest.er1 >conftest.err
16508   rm -f conftest.er1
16509   cat conftest.err >&5
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } &&
16512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513   { (case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_try") 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; } &&
16522          { ac_try='test -s conftest.$ac_objext'
16523   { (case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_try") 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; }; then
16532   ac_cv_type_int64_t=yes
16533 else
16534   echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537         ac_cv_type_int64_t=no
16538 fi
16539
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 fi
16542 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16544 if test $ac_cv_type_int64_t = yes; then
16545
16546 cat >>confdefs.h <<_ACEOF
16547 #define HAVE_INT64_T 1
16548 _ACEOF
16549
16550
16551 else
16552   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16553 echo "$as_me: error: Type int64_t required but not found" >&2;}
16554    { (exit 1); exit 1; }; }
16555 fi
16556
16557 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16558 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16559 if test "${ac_cv_type_uint64_t+set}" = set; then
16560   echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562   cat >conftest.$ac_ext <<_ACEOF
16563 /* confdefs.h.  */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h.  */
16568 $ac_includes_default
16569 typedef uint64_t ac__type_new_;
16570 int
16571 main ()
16572 {
16573 if ((ac__type_new_ *) 0)
16574   return 0;
16575 if (sizeof (ac__type_new_))
16576   return 0;
16577   ;
16578   return 0;
16579 }
16580 _ACEOF
16581 rm -f conftest.$ac_objext
16582 if { (ac_try="$ac_compile"
16583 case "(($ac_try" in
16584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585   *) ac_try_echo=$ac_try;;
16586 esac
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588   (eval "$ac_compile") 2>conftest.er1
16589   ac_status=$?
16590   grep -v '^ *+' conftest.er1 >conftest.err
16591   rm -f conftest.er1
16592   cat conftest.err >&5
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } &&
16595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16596   { (case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601   (eval "$ac_try") 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; } &&
16605          { ac_try='test -s conftest.$ac_objext'
16606   { (case "(($ac_try" in
16607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608   *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611   (eval "$ac_try") 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; }; then
16615   ac_cv_type_uint64_t=yes
16616 else
16617   echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620         ac_cv_type_uint64_t=no
16621 fi
16622
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 fi
16625 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16626 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16627 if test $ac_cv_type_uint64_t = yes; then
16628
16629 cat >>confdefs.h <<_ACEOF
16630 #define HAVE_UINT64_T 1
16631 _ACEOF
16632
16633
16634 else
16635   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16636 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16637 if test "${ac_cv_type_u_int64_t+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646 $ac_includes_default
16647 typedef u_int64_t ac__type_new_;
16648 int
16649 main ()
16650 {
16651 if ((ac__type_new_ *) 0)
16652   return 0;
16653 if (sizeof (ac__type_new_))
16654   return 0;
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 rm -f conftest.$ac_objext
16660 if { (ac_try="$ac_compile"
16661 case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_compile") 2>conftest.er1
16667   ac_status=$?
16668   grep -v '^ *+' conftest.er1 >conftest.err
16669   rm -f conftest.er1
16670   cat conftest.err >&5
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } &&
16673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; } &&
16683          { ac_try='test -s conftest.$ac_objext'
16684   { (case "(($ac_try" in
16685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686   *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689   (eval "$ac_try") 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); }; }; then
16693   ac_cv_type_u_int64_t=yes
16694 else
16695   echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16697
16698         ac_cv_type_u_int64_t=no
16699 fi
16700
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 fi
16703 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16704 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16705 if test $ac_cv_type_u_int64_t = yes; then
16706
16707 cat >>confdefs.h <<_ACEOF
16708 #define HAVE_U_INT64_T 1
16709 _ACEOF
16710
16711
16712 else
16713   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16714 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16715    { (exit 1); exit 1; }; }
16716 fi
16717
16718 fi
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16730 do
16731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16735   echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737   cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h.  */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h.  */
16743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16745 #define $ac_func innocuous_$ac_func
16746
16747 /* System header to define __stub macros and hopefully few prototypes,
16748     which can conflict with char $ac_func (); below.
16749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16750     <limits.h> exists even on freestanding compilers.  */
16751
16752 #ifdef __STDC__
16753 # include <limits.h>
16754 #else
16755 # include <assert.h>
16756 #endif
16757
16758 #undef $ac_func
16759
16760 /* Override any GCC internal prototype to avoid an error.
16761    Use char because int might match the return type of a GCC
16762    builtin and then its argument prototype would still apply.  */
16763 #ifdef __cplusplus
16764 extern "C"
16765 #endif
16766 char $ac_func ();
16767 /* The GNU C library defines this for functions which it implements
16768     to always fail with ENOSYS.  Some functions are actually named
16769     something starting with __ and the normal name is an alias.  */
16770 #if defined __stub_$ac_func || defined __stub___$ac_func
16771 choke me
16772 #endif
16773
16774 int
16775 main ()
16776 {
16777 return $ac_func ();
16778   ;
16779   return 0;
16780 }
16781 _ACEOF
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16790   ac_status=$?
16791   grep -v '^ *+' conftest.er1 >conftest.err
16792   rm -f conftest.er1
16793   cat conftest.err >&5
16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795   (exit $ac_status); } &&
16796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16797   { (case "(($ac_try" in
16798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799   *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802   (eval "$ac_try") 2>&5
16803   ac_status=$?
16804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805   (exit $ac_status); }; } &&
16806          { ac_try='test -s conftest$ac_exeext'
16807   { (case "(($ac_try" in
16808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809   *) ac_try_echo=$ac_try;;
16810 esac
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812   (eval "$ac_try") 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); }; }; then
16816   eval "$as_ac_var=yes"
16817 else
16818   echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16820
16821         eval "$as_ac_var=no"
16822 fi
16823
16824 rm -f core conftest.err conftest.$ac_objext \
16825       conftest$ac_exeext conftest.$ac_ext
16826 fi
16827 ac_res=`eval echo '${'$as_ac_var'}'`
16828                { echo "$as_me:$LINENO: result: $ac_res" >&5
16829 echo "${ECHO_T}$ac_res" >&6; }
16830 if test `eval echo '${'$as_ac_var'}'` = yes; then
16831   cat >>confdefs.h <<_ACEOF
16832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16833 _ACEOF
16834
16835 fi
16836 done
16837
16838
16839
16840
16841
16842 for ac_func in powf fmodf strtof round
16843 do
16844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16848   echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850   cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16858 #define $ac_func innocuous_$ac_func
16859
16860 /* System header to define __stub macros and hopefully few prototypes,
16861     which can conflict with char $ac_func (); below.
16862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863     <limits.h> exists even on freestanding compilers.  */
16864
16865 #ifdef __STDC__
16866 # include <limits.h>
16867 #else
16868 # include <assert.h>
16869 #endif
16870
16871 #undef $ac_func
16872
16873 /* Override any GCC internal prototype to avoid an error.
16874    Use char because int might match the return type of a GCC
16875    builtin and then its argument prototype would still apply.  */
16876 #ifdef __cplusplus
16877 extern "C"
16878 #endif
16879 char $ac_func ();
16880 /* The GNU C library defines this for functions which it implements
16881     to always fail with ENOSYS.  Some functions are actually named
16882     something starting with __ and the normal name is an alias.  */
16883 #if defined __stub_$ac_func || defined __stub___$ac_func
16884 choke me
16885 #endif
16886
16887 int
16888 main ()
16889 {
16890 return $ac_func ();
16891   ;
16892   return 0;
16893 }
16894 _ACEOF
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899   *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902   (eval "$ac_link") 2>conftest.er1
16903   ac_status=$?
16904   grep -v '^ *+' conftest.er1 >conftest.err
16905   rm -f conftest.er1
16906   cat conftest.err >&5
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); } &&
16909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16910   { (case "(($ac_try" in
16911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912   *) ac_try_echo=$ac_try;;
16913 esac
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915   (eval "$ac_try") 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); }; } &&
16919          { ac_try='test -s conftest$ac_exeext'
16920   { (case "(($ac_try" in
16921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922   *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925   (eval "$ac_try") 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; }; then
16929   eval "$as_ac_var=yes"
16930 else
16931   echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16933
16934         eval "$as_ac_var=no"
16935 fi
16936
16937 rm -f core conftest.err conftest.$ac_objext \
16938       conftest$ac_exeext conftest.$ac_ext
16939 fi
16940 ac_res=`eval echo '${'$as_ac_var'}'`
16941                { echo "$as_me:$LINENO: result: $ac_res" >&5
16942 echo "${ECHO_T}$ac_res" >&6; }
16943 if test `eval echo '${'$as_ac_var'}'` = yes; then
16944   cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16946 _ACEOF
16947
16948 fi
16949 done
16950
16951
16952
16953
16954
16955
16956 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16957 do
16958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16962   echo $ECHO_N "(cached) $ECHO_C" >&6
16963 else
16964   cat >conftest.$ac_ext <<_ACEOF
16965 /* confdefs.h.  */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h.  */
16970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16972 #define $ac_func innocuous_$ac_func
16973
16974 /* System header to define __stub macros and hopefully few prototypes,
16975     which can conflict with char $ac_func (); below.
16976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16977     <limits.h> exists even on freestanding compilers.  */
16978
16979 #ifdef __STDC__
16980 # include <limits.h>
16981 #else
16982 # include <assert.h>
16983 #endif
16984
16985 #undef $ac_func
16986
16987 /* Override any GCC internal prototype to avoid an error.
16988    Use char because int might match the return type of a GCC
16989    builtin and then its argument prototype would still apply.  */
16990 #ifdef __cplusplus
16991 extern "C"
16992 #endif
16993 char $ac_func ();
16994 /* The GNU C library defines this for functions which it implements
16995     to always fail with ENOSYS.  Some functions are actually named
16996     something starting with __ and the normal name is an alias.  */
16997 #if defined __stub_$ac_func || defined __stub___$ac_func
16998 choke me
16999 #endif
17000
17001 int
17002 main ()
17003 {
17004 return $ac_func ();
17005   ;
17006   return 0;
17007 }
17008 _ACEOF
17009 rm -f conftest.$ac_objext conftest$ac_exeext
17010 if { (ac_try="$ac_link"
17011 case "(($ac_try" in
17012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013   *) ac_try_echo=$ac_try;;
17014 esac
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016   (eval "$ac_link") 2>conftest.er1
17017   ac_status=$?
17018   grep -v '^ *+' conftest.er1 >conftest.err
17019   rm -f conftest.er1
17020   cat conftest.err >&5
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); } &&
17023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17024   { (case "(($ac_try" in
17025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026   *) ac_try_echo=$ac_try;;
17027 esac
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029   (eval "$ac_try") 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; } &&
17033          { ac_try='test -s conftest$ac_exeext'
17034   { (case "(($ac_try" in
17035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036   *) ac_try_echo=$ac_try;;
17037 esac
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039   (eval "$ac_try") 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); }; }; then
17043   eval "$as_ac_var=yes"
17044 else
17045   echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17047
17048         eval "$as_ac_var=no"
17049 fi
17050
17051 rm -f core conftest.err conftest.$ac_objext \
17052       conftest$ac_exeext conftest.$ac_ext
17053 fi
17054 ac_res=`eval echo '${'$as_ac_var'}'`
17055                { echo "$as_me:$LINENO: result: $ac_res" >&5
17056 echo "${ECHO_T}$ac_res" >&6; }
17057 if test `eval echo '${'$as_ac_var'}'` = yes; then
17058   cat >>confdefs.h <<_ACEOF
17059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17060 _ACEOF
17061
17062 fi
17063 done
17064
17065
17066
17067
17068 for ac_func in isatty mkdtemp mkstemp
17069 do
17070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17074   echo $ECHO_N "(cached) $ECHO_C" >&6
17075 else
17076   cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17084 #define $ac_func innocuous_$ac_func
17085
17086 /* System header to define __stub macros and hopefully few prototypes,
17087     which can conflict with char $ac_func (); below.
17088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17089     <limits.h> exists even on freestanding compilers.  */
17090
17091 #ifdef __STDC__
17092 # include <limits.h>
17093 #else
17094 # include <assert.h>
17095 #endif
17096
17097 #undef $ac_func
17098
17099 /* Override any GCC internal prototype to avoid an error.
17100    Use char because int might match the return type of a GCC
17101    builtin and then its argument prototype would still apply.  */
17102 #ifdef __cplusplus
17103 extern "C"
17104 #endif
17105 char $ac_func ();
17106 /* The GNU C library defines this for functions which it implements
17107     to always fail with ENOSYS.  Some functions are actually named
17108     something starting with __ and the normal name is an alias.  */
17109 #if defined __stub_$ac_func || defined __stub___$ac_func
17110 choke me
17111 #endif
17112
17113 int
17114 main ()
17115 {
17116 return $ac_func ();
17117   ;
17118   return 0;
17119 }
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125   *) ac_try_echo=$ac_try;;
17126 esac
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128   (eval "$ac_link") 2>conftest.er1
17129   ac_status=$?
17130   grep -v '^ *+' conftest.er1 >conftest.err
17131   rm -f conftest.er1
17132   cat conftest.err >&5
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); } &&
17135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17136   { (case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141   (eval "$ac_try") 2>&5
17142   ac_status=$?
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); }; } &&
17145          { ac_try='test -s conftest$ac_exeext'
17146   { (case "(($ac_try" in
17147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148   *) ac_try_echo=$ac_try;;
17149 esac
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151   (eval "$ac_try") 2>&5
17152   ac_status=$?
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); }; }; then
17155   eval "$as_ac_var=yes"
17156 else
17157   echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17159
17160         eval "$as_ac_var=no"
17161 fi
17162
17163 rm -f core conftest.err conftest.$ac_objext \
17164       conftest$ac_exeext conftest.$ac_ext
17165 fi
17166 ac_res=`eval echo '${'$as_ac_var'}'`
17167                { echo "$as_me:$LINENO: result: $ac_res" >&5
17168 echo "${ECHO_T}$ac_res" >&6; }
17169 if test `eval echo '${'$as_ac_var'}'` = yes; then
17170   cat >>confdefs.h <<_ACEOF
17171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17172 _ACEOF
17173
17174 fi
17175 done
17176
17177
17178
17179
17180
17181
17182
17183
17184 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17185 do
17186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17190   echo $ECHO_N "(cached) $ECHO_C" >&6
17191 else
17192   cat >conftest.$ac_ext <<_ACEOF
17193 /* confdefs.h.  */
17194 _ACEOF
17195 cat confdefs.h >>conftest.$ac_ext
17196 cat >>conftest.$ac_ext <<_ACEOF
17197 /* end confdefs.h.  */
17198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17200 #define $ac_func innocuous_$ac_func
17201
17202 /* System header to define __stub macros and hopefully few prototypes,
17203     which can conflict with char $ac_func (); below.
17204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17205     <limits.h> exists even on freestanding compilers.  */
17206
17207 #ifdef __STDC__
17208 # include <limits.h>
17209 #else
17210 # include <assert.h>
17211 #endif
17212
17213 #undef $ac_func
17214
17215 /* Override any GCC internal prototype to avoid an error.
17216    Use char because int might match the return type of a GCC
17217    builtin and then its argument prototype would still apply.  */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 char $ac_func ();
17222 /* The GNU C library defines this for functions which it implements
17223     to always fail with ENOSYS.  Some functions are actually named
17224     something starting with __ and the normal name is an alias.  */
17225 #if defined __stub_$ac_func || defined __stub___$ac_func
17226 choke me
17227 #endif
17228
17229 int
17230 main ()
17231 {
17232 return $ac_func ();
17233   ;
17234   return 0;
17235 }
17236 _ACEOF
17237 rm -f conftest.$ac_objext conftest$ac_exeext
17238 if { (ac_try="$ac_link"
17239 case "(($ac_try" in
17240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241   *) ac_try_echo=$ac_try;;
17242 esac
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244   (eval "$ac_link") 2>conftest.er1
17245   ac_status=$?
17246   grep -v '^ *+' conftest.er1 >conftest.err
17247   rm -f conftest.er1
17248   cat conftest.err >&5
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); } &&
17251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17252   { (case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_try") 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; } &&
17261          { ac_try='test -s conftest$ac_exeext'
17262   { (case "(($ac_try" in
17263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264   *) ac_try_echo=$ac_try;;
17265 esac
17266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267   (eval "$ac_try") 2>&5
17268   ac_status=$?
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); }; }; then
17271   eval "$as_ac_var=yes"
17272 else
17273   echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276         eval "$as_ac_var=no"
17277 fi
17278
17279 rm -f core conftest.err conftest.$ac_objext \
17280       conftest$ac_exeext conftest.$ac_ext
17281 fi
17282 ac_res=`eval echo '${'$as_ac_var'}'`
17283                { echo "$as_me:$LINENO: result: $ac_res" >&5
17284 echo "${ECHO_T}$ac_res" >&6; }
17285 if test `eval echo '${'$as_ac_var'}'` = yes; then
17286   cat >>confdefs.h <<_ACEOF
17287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17288 _ACEOF
17289
17290 fi
17291 done
17292
17293
17294
17295
17296
17297 for ac_func in strerror strerror_r setenv arc4random
17298 do
17299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303   echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305   cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17313 #define $ac_func innocuous_$ac_func
17314
17315 /* System header to define __stub macros and hopefully few prototypes,
17316     which can conflict with char $ac_func (); below.
17317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318     <limits.h> exists even on freestanding compilers.  */
17319
17320 #ifdef __STDC__
17321 # include <limits.h>
17322 #else
17323 # include <assert.h>
17324 #endif
17325
17326 #undef $ac_func
17327
17328 /* Override any GCC internal prototype to avoid an error.
17329    Use char because int might match the return type of a GCC
17330    builtin and then its argument prototype would still apply.  */
17331 #ifdef __cplusplus
17332 extern "C"
17333 #endif
17334 char $ac_func ();
17335 /* The GNU C library defines this for functions which it implements
17336     to always fail with ENOSYS.  Some functions are actually named
17337     something starting with __ and the normal name is an alias.  */
17338 #if defined __stub_$ac_func || defined __stub___$ac_func
17339 choke me
17340 #endif
17341
17342 int
17343 main ()
17344 {
17345 return $ac_func ();
17346   ;
17347   return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (ac_try="$ac_link"
17352 case "(($ac_try" in
17353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354   *) ac_try_echo=$ac_try;;
17355 esac
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357   (eval "$ac_link") 2>conftest.er1
17358   ac_status=$?
17359   grep -v '^ *+' conftest.er1 >conftest.err
17360   rm -f conftest.er1
17361   cat conftest.err >&5
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } &&
17364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365   { (case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_try") 2>&5
17371   ac_status=$?
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); }; } &&
17374          { ac_try='test -s conftest$ac_exeext'
17375   { (case "(($ac_try" in
17376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377   *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380   (eval "$ac_try") 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; }; then
17384   eval "$as_ac_var=yes"
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389         eval "$as_ac_var=no"
17390 fi
17391
17392 rm -f core conftest.err conftest.$ac_objext \
17393       conftest$ac_exeext conftest.$ac_ext
17394 fi
17395 ac_res=`eval echo '${'$as_ac_var'}'`
17396                { echo "$as_me:$LINENO: result: $ac_res" >&5
17397 echo "${ECHO_T}$ac_res" >&6; }
17398 if test `eval echo '${'$as_ac_var'}'` = yes; then
17399   cat >>confdefs.h <<_ACEOF
17400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17401 _ACEOF
17402
17403 fi
17404 done
17405
17406
17407
17408
17409
17410 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17411 do
17412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h.  */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h.  */
17424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17426 #define $ac_func innocuous_$ac_func
17427
17428 /* System header to define __stub macros and hopefully few prototypes,
17429     which can conflict with char $ac_func (); below.
17430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431     <limits.h> exists even on freestanding compilers.  */
17432
17433 #ifdef __STDC__
17434 # include <limits.h>
17435 #else
17436 # include <assert.h>
17437 #endif
17438
17439 #undef $ac_func
17440
17441 /* Override any GCC internal prototype to avoid an error.
17442    Use char because int might match the return type of a GCC
17443    builtin and then its argument prototype would still apply.  */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 char $ac_func ();
17448 /* The GNU C library defines this for functions which it implements
17449     to always fail with ENOSYS.  Some functions are actually named
17450     something starting with __ and the normal name is an alias.  */
17451 #if defined __stub_$ac_func || defined __stub___$ac_func
17452 choke me
17453 #endif
17454
17455 int
17456 main ()
17457 {
17458 return $ac_func ();
17459   ;
17460   return 0;
17461 }
17462 _ACEOF
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (ac_try="$ac_link"
17465 case "(($ac_try" in
17466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467   *) ac_try_echo=$ac_try;;
17468 esac
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470   (eval "$ac_link") 2>conftest.er1
17471   ac_status=$?
17472   grep -v '^ *+' conftest.er1 >conftest.err
17473   rm -f conftest.er1
17474   cat conftest.err >&5
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); } &&
17477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478   { (case "(($ac_try" in
17479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480   *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483   (eval "$ac_try") 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; } &&
17487          { ac_try='test -s conftest$ac_exeext'
17488   { (case "(($ac_try" in
17489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490   *) ac_try_echo=$ac_try;;
17491 esac
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493   (eval "$ac_try") 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; }; then
17497   eval "$as_ac_var=yes"
17498 else
17499   echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17501
17502         eval "$as_ac_var=no"
17503 fi
17504
17505 rm -f core conftest.err conftest.$ac_objext \
17506       conftest$ac_exeext conftest.$ac_ext
17507 fi
17508 ac_res=`eval echo '${'$as_ac_var'}'`
17509                { echo "$as_me:$LINENO: result: $ac_res" >&5
17510 echo "${ECHO_T}$ac_res" >&6; }
17511 if test `eval echo '${'$as_ac_var'}'` = yes; then
17512   cat >>confdefs.h <<_ACEOF
17513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17514 _ACEOF
17515
17516 fi
17517 done
17518
17519
17520
17521
17522
17523
17524 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17525 do
17526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17530   echo $ECHO_N "(cached) $ECHO_C" >&6
17531 else
17532   cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17540 #define $ac_func innocuous_$ac_func
17541
17542 /* System header to define __stub macros and hopefully few prototypes,
17543     which can conflict with char $ac_func (); below.
17544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17545     <limits.h> exists even on freestanding compilers.  */
17546
17547 #ifdef __STDC__
17548 # include <limits.h>
17549 #else
17550 # include <assert.h>
17551 #endif
17552
17553 #undef $ac_func
17554
17555 /* Override any GCC internal prototype to avoid an error.
17556    Use char because int might match the return type of a GCC
17557    builtin and then its argument prototype would still apply.  */
17558 #ifdef __cplusplus
17559 extern "C"
17560 #endif
17561 char $ac_func ();
17562 /* The GNU C library defines this for functions which it implements
17563     to always fail with ENOSYS.  Some functions are actually named
17564     something starting with __ and the normal name is an alias.  */
17565 #if defined __stub_$ac_func || defined __stub___$ac_func
17566 choke me
17567 #endif
17568
17569 int
17570 main ()
17571 {
17572 return $ac_func ();
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (ac_try="$ac_link"
17579 case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_link") 2>conftest.er1
17585   ac_status=$?
17586   grep -v '^ *+' conftest.er1 >conftest.err
17587   rm -f conftest.er1
17588   cat conftest.err >&5
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } &&
17591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17592   { (case "(($ac_try" in
17593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594   *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597   (eval "$ac_try") 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; } &&
17601          { ac_try='test -s conftest$ac_exeext'
17602   { (case "(($ac_try" in
17603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604   *) ac_try_echo=$ac_try;;
17605 esac
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607   (eval "$ac_try") 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; }; then
17611   eval "$as_ac_var=yes"
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616         eval "$as_ac_var=no"
17617 fi
17618
17619 rm -f core conftest.err conftest.$ac_objext \
17620       conftest$ac_exeext conftest.$ac_ext
17621 fi
17622 ac_res=`eval echo '${'$as_ac_var'}'`
17623                { echo "$as_me:$LINENO: result: $ac_res" >&5
17624 echo "${ECHO_T}$ac_res" >&6; }
17625 if test `eval echo '${'$as_ac_var'}'` = yes; then
17626   cat >>confdefs.h <<_ACEOF
17627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17628 _ACEOF
17629
17630 fi
17631 done
17632
17633 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17634 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17635 if test "${llvm_cv_c_printf_a+set}" = set; then
17636   echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638   ac_ext=c
17639 ac_cpp='$CPP $CPPFLAGS'
17640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17643
17644  if test "$cross_compiling" = yes; then
17645   llvmac_cv_c_printf_a=no
17646 else
17647   cat >conftest.$ac_ext <<_ACEOF
17648
17649   /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654
17655 #include <stdio.h>
17656 #include <stdlib.h>
17657
17658 int
17659 main ()
17660 {
17661
17662 volatile double A, B;
17663 char Buffer[100];
17664 A = 1;
17665 A /= 10.0;
17666 sprintf(Buffer, "%a", A);
17667 B = atof(Buffer);
17668 if (A != B)
17669   return (1);
17670 if (A != 0x1.999999999999ap-4)
17671   return (1);
17672 return (0);
17673   ;
17674   return 0;
17675 }
17676 _ACEOF
17677 rm -f conftest$ac_exeext
17678 if { (ac_try="$ac_link"
17679 case "(($ac_try" in
17680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681   *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684   (eval "$ac_link") 2>&5
17685   ac_status=$?
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17688   { (case "(($ac_try" in
17689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690   *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693   (eval "$ac_try") 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }; }; then
17697   llvm_cv_c_printf_a=yes
17698 else
17699   echo "$as_me: program exited with status $ac_status" >&5
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703 ( exit $ac_status )
17704 llvmac_cv_c_printf_a=no
17705 fi
17706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17707 fi
17708
17709
17710  ac_ext=c
17711 ac_cpp='$CPP $CPPFLAGS'
17712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17715
17716 fi
17717 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17718 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17719  if test "$llvm_cv_c_printf_a" = "yes"; then
17720
17721 cat >>confdefs.h <<\_ACEOF
17722 #define HAVE_PRINTF_A 1
17723 _ACEOF
17724
17725  fi
17726
17727
17728 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17729 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17730 if test "${ac_cv_func_rand48+set}" = set; then
17731   echo $ECHO_N "(cached) $ECHO_C" >&6
17732 else
17733   ac_ext=cpp
17734 ac_cpp='$CXXCPP $CPPFLAGS'
17735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17738
17739    cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h.  */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h.  */
17745 #include <stdlib.h>
17746 int
17747 main ()
17748 {
17749 srand48(0);lrand48();drand48();
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext
17755 if { (ac_try="$ac_compile"
17756 case "(($ac_try" in
17757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758   *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761   (eval "$ac_compile") 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } &&
17768          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17769   { (case "(($ac_try" in
17770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771   *) ac_try_echo=$ac_try;;
17772 esac
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774   (eval "$ac_try") 2>&5
17775   ac_status=$?
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); }; } &&
17778          { ac_try='test -s conftest.$ac_objext'
17779   { (case "(($ac_try" in
17780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781   *) ac_try_echo=$ac_try;;
17782 esac
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784   (eval "$ac_try") 2>&5
17785   ac_status=$?
17786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787   (exit $ac_status); }; }; then
17788   ac_cv_func_rand48=yes
17789 else
17790   echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17792
17793         ac_cv_func_rand48=no
17794 fi
17795
17796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17797   ac_ext=c
17798 ac_cpp='$CPP $CPPFLAGS'
17799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17802
17803 fi
17804 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17805 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17806
17807 if test "$ac_cv_func_rand48" = "yes" ; then
17808
17809 cat >>confdefs.h <<\_ACEOF
17810 #define HAVE_RAND48 1
17811 _ACEOF
17812
17813 fi
17814
17815
17816 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17817 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17818 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17819   echo $ECHO_N "(cached) $ECHO_C" >&6
17820 else
17821   cat >conftest.$ac_ext <<_ACEOF
17822 /* confdefs.h.  */
17823 _ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h.  */
17827 $ac_includes_default
17828 int
17829 main ()
17830 {
17831 #ifndef strerror_s
17832   char *p = (char *) strerror_s;
17833   return !p;
17834 #endif
17835
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 rm -f conftest.$ac_objext
17841 if { (ac_try="$ac_compile"
17842 case "(($ac_try" in
17843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844   *) ac_try_echo=$ac_try;;
17845 esac
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847   (eval "$ac_compile") 2>conftest.er1
17848   ac_status=$?
17849   grep -v '^ *+' conftest.er1 >conftest.err
17850   rm -f conftest.er1
17851   cat conftest.err >&5
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } &&
17854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17855   { (case "(($ac_try" in
17856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857   *) ac_try_echo=$ac_try;;
17858 esac
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860   (eval "$ac_try") 2>&5
17861   ac_status=$?
17862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863   (exit $ac_status); }; } &&
17864          { ac_try='test -s conftest.$ac_objext'
17865   { (case "(($ac_try" in
17866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867   *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870   (eval "$ac_try") 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); }; }; then
17874   ac_cv_have_decl_strerror_s=yes
17875 else
17876   echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17878
17879         ac_cv_have_decl_strerror_s=no
17880 fi
17881
17882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883 fi
17884 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17885 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17886 if test $ac_cv_have_decl_strerror_s = yes; then
17887
17888 cat >>confdefs.h <<_ACEOF
17889 #define HAVE_DECL_STRERROR_S 1
17890 _ACEOF
17891
17892
17893 else
17894   cat >>confdefs.h <<_ACEOF
17895 #define HAVE_DECL_STRERROR_S 0
17896 _ACEOF
17897
17898
17899 fi
17900
17901
17902
17903 if test "$llvm_cv_os_type" = "MingW" ; then
17904   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17905 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17906 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17907   echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909   ac_check_lib_save_LIBS=$LIBS
17910 LIBS="-lgcc  $LIBS"
17911 cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917
17918 /* Override any GCC internal prototype to avoid an error.
17919    Use char because int might match the return type of a GCC
17920    builtin and then its argument prototype would still apply.  */
17921 #ifdef __cplusplus
17922 extern "C"
17923 #endif
17924 char _alloca ();
17925 int
17926 main ()
17927 {
17928 return _alloca ();
17929   ;
17930   return 0;
17931 }
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_link") 2>conftest.er1
17941   ac_status=$?
17942   grep -v '^ *+' conftest.er1 >conftest.err
17943   rm -f conftest.er1
17944   cat conftest.err >&5
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); } &&
17947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17948   { (case "(($ac_try" in
17949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950   *) ac_try_echo=$ac_try;;
17951 esac
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953   (eval "$ac_try") 2>&5
17954   ac_status=$?
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); }; } &&
17957          { ac_try='test -s conftest$ac_exeext'
17958   { (case "(($ac_try" in
17959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960   *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963   (eval "$ac_try") 2>&5
17964   ac_status=$?
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); }; }; then
17967   ac_cv_lib_gcc__alloca=yes
17968 else
17969   echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17971
17972         ac_cv_lib_gcc__alloca=no
17973 fi
17974
17975 rm -f core conftest.err conftest.$ac_objext \
17976       conftest$ac_exeext conftest.$ac_ext
17977 LIBS=$ac_check_lib_save_LIBS
17978 fi
17979 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17980 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17981 if test $ac_cv_lib_gcc__alloca = yes; then
17982
17983 cat >>confdefs.h <<\_ACEOF
17984 #define HAVE__ALLOCA 1
17985 _ACEOF
17986
17987 fi
17988
17989   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17990 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17991 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17992   echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994   ac_check_lib_save_LIBS=$LIBS
17995 LIBS="-lgcc  $LIBS"
17996 cat >conftest.$ac_ext <<_ACEOF
17997 /* confdefs.h.  */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h.  */
18002
18003 /* Override any GCC internal prototype to avoid an error.
18004    Use char because int might match the return type of a GCC
18005    builtin and then its argument prototype would still apply.  */
18006 #ifdef __cplusplus
18007 extern "C"
18008 #endif
18009 char __alloca ();
18010 int
18011 main ()
18012 {
18013 return __alloca ();
18014   ;
18015   return 0;
18016 }
18017 _ACEOF
18018 rm -f conftest.$ac_objext conftest$ac_exeext
18019 if { (ac_try="$ac_link"
18020 case "(($ac_try" in
18021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022   *) ac_try_echo=$ac_try;;
18023 esac
18024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025   (eval "$ac_link") 2>conftest.er1
18026   ac_status=$?
18027   grep -v '^ *+' conftest.er1 >conftest.err
18028   rm -f conftest.er1
18029   cat conftest.err >&5
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); } &&
18032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18033   { (case "(($ac_try" in
18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035   *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038   (eval "$ac_try") 2>&5
18039   ac_status=$?
18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041   (exit $ac_status); }; } &&
18042          { ac_try='test -s conftest$ac_exeext'
18043   { (case "(($ac_try" in
18044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045   *) ac_try_echo=$ac_try;;
18046 esac
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048   (eval "$ac_try") 2>&5
18049   ac_status=$?
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); }; }; then
18052   ac_cv_lib_gcc___alloca=yes
18053 else
18054   echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18056
18057         ac_cv_lib_gcc___alloca=no
18058 fi
18059
18060 rm -f core conftest.err conftest.$ac_objext \
18061       conftest$ac_exeext conftest.$ac_ext
18062 LIBS=$ac_check_lib_save_LIBS
18063 fi
18064 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18065 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18066 if test $ac_cv_lib_gcc___alloca = yes; then
18067
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE___ALLOCA 1
18070 _ACEOF
18071
18072 fi
18073
18074   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18075 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18076 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18077   echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079   ac_check_lib_save_LIBS=$LIBS
18080 LIBS="-lgcc  $LIBS"
18081 cat >conftest.$ac_ext <<_ACEOF
18082 /* confdefs.h.  */
18083 _ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h.  */
18087
18088 /* Override any GCC internal prototype to avoid an error.
18089    Use char because int might match the return type of a GCC
18090    builtin and then its argument prototype would still apply.  */
18091 #ifdef __cplusplus
18092 extern "C"
18093 #endif
18094 char __chkstk ();
18095 int
18096 main ()
18097 {
18098 return __chkstk ();
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest.$ac_objext conftest$ac_exeext
18104 if { (ac_try="$ac_link"
18105 case "(($ac_try" in
18106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107   *) ac_try_echo=$ac_try;;
18108 esac
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110   (eval "$ac_link") 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } &&
18117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18118   { (case "(($ac_try" in
18119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120   *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123   (eval "$ac_try") 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; } &&
18127          { ac_try='test -s conftest$ac_exeext'
18128   { (case "(($ac_try" in
18129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130   *) ac_try_echo=$ac_try;;
18131 esac
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133   (eval "$ac_try") 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }; }; then
18137   ac_cv_lib_gcc___chkstk=yes
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142         ac_cv_lib_gcc___chkstk=no
18143 fi
18144
18145 rm -f core conftest.err conftest.$ac_objext \
18146       conftest$ac_exeext conftest.$ac_ext
18147 LIBS=$ac_check_lib_save_LIBS
18148 fi
18149 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18150 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18151 if test $ac_cv_lib_gcc___chkstk = yes; then
18152
18153 cat >>confdefs.h <<\_ACEOF
18154 #define HAVE___CHKSTK 1
18155 _ACEOF
18156
18157 fi
18158
18159   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18160 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18161 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18162   echo $ECHO_N "(cached) $ECHO_C" >&6
18163 else
18164   ac_check_lib_save_LIBS=$LIBS
18165 LIBS="-lgcc  $LIBS"
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h.  */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h.  */
18172
18173 /* Override any GCC internal prototype to avoid an error.
18174    Use char because int might match the return type of a GCC
18175    builtin and then its argument prototype would still apply.  */
18176 #ifdef __cplusplus
18177 extern "C"
18178 #endif
18179 char ___chkstk ();
18180 int
18181 main ()
18182 {
18183 return ___chkstk ();
18184   ;
18185   return 0;
18186 }
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (ac_try="$ac_link"
18190 case "(($ac_try" in
18191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192   *) ac_try_echo=$ac_try;;
18193 esac
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195   (eval "$ac_link") 2>conftest.er1
18196   ac_status=$?
18197   grep -v '^ *+' conftest.er1 >conftest.err
18198   rm -f conftest.er1
18199   cat conftest.err >&5
18200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201   (exit $ac_status); } &&
18202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18203   { (case "(($ac_try" in
18204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205   *) ac_try_echo=$ac_try;;
18206 esac
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208   (eval "$ac_try") 2>&5
18209   ac_status=$?
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); }; } &&
18212          { ac_try='test -s conftest$ac_exeext'
18213   { (case "(($ac_try" in
18214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215   *) ac_try_echo=$ac_try;;
18216 esac
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218   (eval "$ac_try") 2>&5
18219   ac_status=$?
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); }; }; then
18222   ac_cv_lib_gcc____chkstk=yes
18223 else
18224   echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18226
18227         ac_cv_lib_gcc____chkstk=no
18228 fi
18229
18230 rm -f core conftest.err conftest.$ac_objext \
18231       conftest$ac_exeext conftest.$ac_ext
18232 LIBS=$ac_check_lib_save_LIBS
18233 fi
18234 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18235 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18236 if test $ac_cv_lib_gcc____chkstk = yes; then
18237
18238 cat >>confdefs.h <<\_ACEOF
18239 #define HAVE____CHKSTK 1
18240 _ACEOF
18241
18242 fi
18243
18244
18245   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18246 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18247 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18248   echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250   ac_check_lib_save_LIBS=$LIBS
18251 LIBS="-lgcc  $LIBS"
18252 cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h.  */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h.  */
18258
18259 /* Override any GCC internal prototype to avoid an error.
18260    Use char because int might match the return type of a GCC
18261    builtin and then its argument prototype would still apply.  */
18262 #ifdef __cplusplus
18263 extern "C"
18264 #endif
18265 char __ashldi3 ();
18266 int
18267 main ()
18268 {
18269 return __ashldi3 ();
18270   ;
18271   return 0;
18272 }
18273 _ACEOF
18274 rm -f conftest.$ac_objext conftest$ac_exeext
18275 if { (ac_try="$ac_link"
18276 case "(($ac_try" in
18277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278   *) ac_try_echo=$ac_try;;
18279 esac
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281   (eval "$ac_link") 2>conftest.er1
18282   ac_status=$?
18283   grep -v '^ *+' conftest.er1 >conftest.err
18284   rm -f conftest.er1
18285   cat conftest.err >&5
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); } &&
18288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18289   { (case "(($ac_try" in
18290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291   *) ac_try_echo=$ac_try;;
18292 esac
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294   (eval "$ac_try") 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; } &&
18298          { ac_try='test -s conftest$ac_exeext'
18299   { (case "(($ac_try" in
18300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301   *) ac_try_echo=$ac_try;;
18302 esac
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304   (eval "$ac_try") 2>&5
18305   ac_status=$?
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); }; }; then
18308   ac_cv_lib_gcc___ashldi3=yes
18309 else
18310   echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18312
18313         ac_cv_lib_gcc___ashldi3=no
18314 fi
18315
18316 rm -f core conftest.err conftest.$ac_objext \
18317       conftest$ac_exeext conftest.$ac_ext
18318 LIBS=$ac_check_lib_save_LIBS
18319 fi
18320 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18321 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18322 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18323
18324 cat >>confdefs.h <<\_ACEOF
18325 #define HAVE___ASHLDI3 1
18326 _ACEOF
18327
18328 fi
18329
18330   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18331 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18332 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18333   echo $ECHO_N "(cached) $ECHO_C" >&6
18334 else
18335   ac_check_lib_save_LIBS=$LIBS
18336 LIBS="-lgcc  $LIBS"
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343
18344 /* Override any GCC internal prototype to avoid an error.
18345    Use char because int might match the return type of a GCC
18346    builtin and then its argument prototype would still apply.  */
18347 #ifdef __cplusplus
18348 extern "C"
18349 #endif
18350 char __ashrdi3 ();
18351 int
18352 main ()
18353 {
18354 return __ashrdi3 ();
18355   ;
18356   return 0;
18357 }
18358 _ACEOF
18359 rm -f conftest.$ac_objext conftest$ac_exeext
18360 if { (ac_try="$ac_link"
18361 case "(($ac_try" in
18362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363   *) ac_try_echo=$ac_try;;
18364 esac
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366   (eval "$ac_link") 2>conftest.er1
18367   ac_status=$?
18368   grep -v '^ *+' conftest.er1 >conftest.err
18369   rm -f conftest.er1
18370   cat conftest.err >&5
18371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); } &&
18373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18374   { (case "(($ac_try" in
18375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376   *) ac_try_echo=$ac_try;;
18377 esac
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379   (eval "$ac_try") 2>&5
18380   ac_status=$?
18381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382   (exit $ac_status); }; } &&
18383          { ac_try='test -s conftest$ac_exeext'
18384   { (case "(($ac_try" in
18385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386   *) ac_try_echo=$ac_try;;
18387 esac
18388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18389   (eval "$ac_try") 2>&5
18390   ac_status=$?
18391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); }; }; then
18393   ac_cv_lib_gcc___ashrdi3=yes
18394 else
18395   echo "$as_me: failed program was:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18397
18398         ac_cv_lib_gcc___ashrdi3=no
18399 fi
18400
18401 rm -f core conftest.err conftest.$ac_objext \
18402       conftest$ac_exeext conftest.$ac_ext
18403 LIBS=$ac_check_lib_save_LIBS
18404 fi
18405 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18406 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18407 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18408
18409 cat >>confdefs.h <<\_ACEOF
18410 #define HAVE___ASHRDI3 1
18411 _ACEOF
18412
18413 fi
18414
18415   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18416 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18417 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18418   echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420   ac_check_lib_save_LIBS=$LIBS
18421 LIBS="-lgcc  $LIBS"
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h.  */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h.  */
18428
18429 /* Override any GCC internal prototype to avoid an error.
18430    Use char because int might match the return type of a GCC
18431    builtin and then its argument prototype would still apply.  */
18432 #ifdef __cplusplus
18433 extern "C"
18434 #endif
18435 char __divdi3 ();
18436 int
18437 main ()
18438 {
18439 return __divdi3 ();
18440   ;
18441   return 0;
18442 }
18443 _ACEOF
18444 rm -f conftest.$ac_objext conftest$ac_exeext
18445 if { (ac_try="$ac_link"
18446 case "(($ac_try" in
18447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448   *) ac_try_echo=$ac_try;;
18449 esac
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451   (eval "$ac_link") 2>conftest.er1
18452   ac_status=$?
18453   grep -v '^ *+' conftest.er1 >conftest.err
18454   rm -f conftest.er1
18455   cat conftest.err >&5
18456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457   (exit $ac_status); } &&
18458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18459   { (case "(($ac_try" in
18460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461   *) ac_try_echo=$ac_try;;
18462 esac
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464   (eval "$ac_try") 2>&5
18465   ac_status=$?
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); }; } &&
18468          { ac_try='test -s conftest$ac_exeext'
18469   { (case "(($ac_try" in
18470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471   *) ac_try_echo=$ac_try;;
18472 esac
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474   (eval "$ac_try") 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; }; then
18478   ac_cv_lib_gcc___divdi3=yes
18479 else
18480   echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18482
18483         ac_cv_lib_gcc___divdi3=no
18484 fi
18485
18486 rm -f core conftest.err conftest.$ac_objext \
18487       conftest$ac_exeext conftest.$ac_ext
18488 LIBS=$ac_check_lib_save_LIBS
18489 fi
18490 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18491 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18492 if test $ac_cv_lib_gcc___divdi3 = yes; then
18493
18494 cat >>confdefs.h <<\_ACEOF
18495 #define HAVE___DIVDI3 1
18496 _ACEOF
18497
18498 fi
18499
18500   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18501 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18502 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18503   echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505   ac_check_lib_save_LIBS=$LIBS
18506 LIBS="-lgcc  $LIBS"
18507 cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513
18514 /* Override any GCC internal prototype to avoid an error.
18515    Use char because int might match the return type of a GCC
18516    builtin and then its argument prototype would still apply.  */
18517 #ifdef __cplusplus
18518 extern "C"
18519 #endif
18520 char __fixdfdi ();
18521 int
18522 main ()
18523 {
18524 return __fixdfdi ();
18525   ;
18526   return 0;
18527 }
18528 _ACEOF
18529 rm -f conftest.$ac_objext conftest$ac_exeext
18530 if { (ac_try="$ac_link"
18531 case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536   (eval "$ac_link") 2>conftest.er1
18537   ac_status=$?
18538   grep -v '^ *+' conftest.er1 >conftest.err
18539   rm -f conftest.er1
18540   cat conftest.err >&5
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); } &&
18543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18544   { (case "(($ac_try" in
18545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546   *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549   (eval "$ac_try") 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); }; } &&
18553          { ac_try='test -s conftest$ac_exeext'
18554   { (case "(($ac_try" in
18555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556   *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559   (eval "$ac_try") 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }; }; then
18563   ac_cv_lib_gcc___fixdfdi=yes
18564 else
18565   echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568         ac_cv_lib_gcc___fixdfdi=no
18569 fi
18570
18571 rm -f core conftest.err conftest.$ac_objext \
18572       conftest$ac_exeext conftest.$ac_ext
18573 LIBS=$ac_check_lib_save_LIBS
18574 fi
18575 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18576 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18577 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18578
18579 cat >>confdefs.h <<\_ACEOF
18580 #define HAVE___FIXDFDI 1
18581 _ACEOF
18582
18583 fi
18584
18585   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18586 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18587 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18588   echo $ECHO_N "(cached) $ECHO_C" >&6
18589 else
18590   ac_check_lib_save_LIBS=$LIBS
18591 LIBS="-lgcc  $LIBS"
18592 cat >conftest.$ac_ext <<_ACEOF
18593 /* confdefs.h.  */
18594 _ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h.  */
18598
18599 /* Override any GCC internal prototype to avoid an error.
18600    Use char because int might match the return type of a GCC
18601    builtin and then its argument prototype would still apply.  */
18602 #ifdef __cplusplus
18603 extern "C"
18604 #endif
18605 char __fixsfdi ();
18606 int
18607 main ()
18608 {
18609 return __fixsfdi ();
18610   ;
18611   return 0;
18612 }
18613 _ACEOF
18614 rm -f conftest.$ac_objext conftest$ac_exeext
18615 if { (ac_try="$ac_link"
18616 case "(($ac_try" in
18617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618   *) ac_try_echo=$ac_try;;
18619 esac
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621   (eval "$ac_link") 2>conftest.er1
18622   ac_status=$?
18623   grep -v '^ *+' conftest.er1 >conftest.err
18624   rm -f conftest.er1
18625   cat conftest.err >&5
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); } &&
18628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18629   { (case "(($ac_try" in
18630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631   *) ac_try_echo=$ac_try;;
18632 esac
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634   (eval "$ac_try") 2>&5
18635   ac_status=$?
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); }; } &&
18638          { ac_try='test -s conftest$ac_exeext'
18639   { (case "(($ac_try" in
18640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641   *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644   (eval "$ac_try") 2>&5
18645   ac_status=$?
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); }; }; then
18648   ac_cv_lib_gcc___fixsfdi=yes
18649 else
18650   echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18652
18653         ac_cv_lib_gcc___fixsfdi=no
18654 fi
18655
18656 rm -f core conftest.err conftest.$ac_objext \
18657       conftest$ac_exeext conftest.$ac_ext
18658 LIBS=$ac_check_lib_save_LIBS
18659 fi
18660 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18661 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18662 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18663
18664 cat >>confdefs.h <<\_ACEOF
18665 #define HAVE___FIXSFDI 1
18666 _ACEOF
18667
18668 fi
18669
18670   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18671 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18672 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18673   echo $ECHO_N "(cached) $ECHO_C" >&6
18674 else
18675   ac_check_lib_save_LIBS=$LIBS
18676 LIBS="-lgcc  $LIBS"
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h.  */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h.  */
18683
18684 /* Override any GCC internal prototype to avoid an error.
18685    Use char because int might match the return type of a GCC
18686    builtin and then its argument prototype would still apply.  */
18687 #ifdef __cplusplus
18688 extern "C"
18689 #endif
18690 char __floatdidf ();
18691 int
18692 main ()
18693 {
18694 return __floatdidf ();
18695   ;
18696   return 0;
18697 }
18698 _ACEOF
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (ac_try="$ac_link"
18701 case "(($ac_try" in
18702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703   *) ac_try_echo=$ac_try;;
18704 esac
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706   (eval "$ac_link") 2>conftest.er1
18707   ac_status=$?
18708   grep -v '^ *+' conftest.er1 >conftest.err
18709   rm -f conftest.er1
18710   cat conftest.err >&5
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); } &&
18713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18714   { (case "(($ac_try" in
18715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716   *) ac_try_echo=$ac_try;;
18717 esac
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719   (eval "$ac_try") 2>&5
18720   ac_status=$?
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); }; } &&
18723          { ac_try='test -s conftest$ac_exeext'
18724   { (case "(($ac_try" in
18725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726   *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729   (eval "$ac_try") 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); }; }; then
18733   ac_cv_lib_gcc___floatdidf=yes
18734 else
18735   echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18737
18738         ac_cv_lib_gcc___floatdidf=no
18739 fi
18740
18741 rm -f core conftest.err conftest.$ac_objext \
18742       conftest$ac_exeext conftest.$ac_ext
18743 LIBS=$ac_check_lib_save_LIBS
18744 fi
18745 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18746 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18747 if test $ac_cv_lib_gcc___floatdidf = yes; then
18748
18749 cat >>confdefs.h <<\_ACEOF
18750 #define HAVE___FLOATDIDF 1
18751 _ACEOF
18752
18753 fi
18754
18755   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18756 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18757 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18758   echo $ECHO_N "(cached) $ECHO_C" >&6
18759 else
18760   ac_check_lib_save_LIBS=$LIBS
18761 LIBS="-lgcc  $LIBS"
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h.  */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h.  */
18768
18769 /* Override any GCC internal prototype to avoid an error.
18770    Use char because int might match the return type of a GCC
18771    builtin and then its argument prototype would still apply.  */
18772 #ifdef __cplusplus
18773 extern "C"
18774 #endif
18775 char __lshrdi3 ();
18776 int
18777 main ()
18778 {
18779 return __lshrdi3 ();
18780   ;
18781   return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (ac_try="$ac_link"
18786 case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791   (eval "$ac_link") 2>conftest.er1
18792   ac_status=$?
18793   grep -v '^ *+' conftest.er1 >conftest.err
18794   rm -f conftest.er1
18795   cat conftest.err >&5
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); } &&
18798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18799   { (case "(($ac_try" in
18800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801   *) ac_try_echo=$ac_try;;
18802 esac
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804   (eval "$ac_try") 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; } &&
18808          { ac_try='test -s conftest$ac_exeext'
18809   { (case "(($ac_try" in
18810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811   *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814   (eval "$ac_try") 2>&5
18815   ac_status=$?
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); }; }; then
18818   ac_cv_lib_gcc___lshrdi3=yes
18819 else
18820   echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18822
18823         ac_cv_lib_gcc___lshrdi3=no
18824 fi
18825
18826 rm -f core conftest.err conftest.$ac_objext \
18827       conftest$ac_exeext conftest.$ac_ext
18828 LIBS=$ac_check_lib_save_LIBS
18829 fi
18830 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18831 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18832 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18833
18834 cat >>confdefs.h <<\_ACEOF
18835 #define HAVE___LSHRDI3 1
18836 _ACEOF
18837
18838 fi
18839
18840   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18841 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18842 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18843   echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845   ac_check_lib_save_LIBS=$LIBS
18846 LIBS="-lgcc  $LIBS"
18847 cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853
18854 /* Override any GCC internal prototype to avoid an error.
18855    Use char because int might match the return type of a GCC
18856    builtin and then its argument prototype would still apply.  */
18857 #ifdef __cplusplus
18858 extern "C"
18859 #endif
18860 char __moddi3 ();
18861 int
18862 main ()
18863 {
18864 return __moddi3 ();
18865   ;
18866   return 0;
18867 }
18868 _ACEOF
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873   *) ac_try_echo=$ac_try;;
18874 esac
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876   (eval "$ac_link") 2>conftest.er1
18877   ac_status=$?
18878   grep -v '^ *+' conftest.er1 >conftest.err
18879   rm -f conftest.er1
18880   cat conftest.err >&5
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); } &&
18883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18884   { (case "(($ac_try" in
18885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886   *) ac_try_echo=$ac_try;;
18887 esac
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889   (eval "$ac_try") 2>&5
18890   ac_status=$?
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); }; } &&
18893          { ac_try='test -s conftest$ac_exeext'
18894   { (case "(($ac_try" in
18895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896   *) ac_try_echo=$ac_try;;
18897 esac
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899   (eval "$ac_try") 2>&5
18900   ac_status=$?
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); }; }; then
18903   ac_cv_lib_gcc___moddi3=yes
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908         ac_cv_lib_gcc___moddi3=no
18909 fi
18910
18911 rm -f core conftest.err conftest.$ac_objext \
18912       conftest$ac_exeext conftest.$ac_ext
18913 LIBS=$ac_check_lib_save_LIBS
18914 fi
18915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18916 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18917 if test $ac_cv_lib_gcc___moddi3 = yes; then
18918
18919 cat >>confdefs.h <<\_ACEOF
18920 #define HAVE___MODDI3 1
18921 _ACEOF
18922
18923 fi
18924
18925   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18926 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18927 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18928   echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930   ac_check_lib_save_LIBS=$LIBS
18931 LIBS="-lgcc  $LIBS"
18932 cat >conftest.$ac_ext <<_ACEOF
18933 /* confdefs.h.  */
18934 _ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h.  */
18938
18939 /* Override any GCC internal prototype to avoid an error.
18940    Use char because int might match the return type of a GCC
18941    builtin and then its argument prototype would still apply.  */
18942 #ifdef __cplusplus
18943 extern "C"
18944 #endif
18945 char __udivdi3 ();
18946 int
18947 main ()
18948 {
18949 return __udivdi3 ();
18950   ;
18951   return 0;
18952 }
18953 _ACEOF
18954 rm -f conftest.$ac_objext conftest$ac_exeext
18955 if { (ac_try="$ac_link"
18956 case "(($ac_try" in
18957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958   *) ac_try_echo=$ac_try;;
18959 esac
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961   (eval "$ac_link") 2>conftest.er1
18962   ac_status=$?
18963   grep -v '^ *+' conftest.er1 >conftest.err
18964   rm -f conftest.er1
18965   cat conftest.err >&5
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); } &&
18968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18969   { (case "(($ac_try" in
18970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971   *) ac_try_echo=$ac_try;;
18972 esac
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974   (eval "$ac_try") 2>&5
18975   ac_status=$?
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); }; } &&
18978          { ac_try='test -s conftest$ac_exeext'
18979   { (case "(($ac_try" in
18980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981   *) ac_try_echo=$ac_try;;
18982 esac
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984   (eval "$ac_try") 2>&5
18985   ac_status=$?
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); }; }; then
18988   ac_cv_lib_gcc___udivdi3=yes
18989 else
18990   echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18992
18993         ac_cv_lib_gcc___udivdi3=no
18994 fi
18995
18996 rm -f core conftest.err conftest.$ac_objext \
18997       conftest$ac_exeext conftest.$ac_ext
18998 LIBS=$ac_check_lib_save_LIBS
18999 fi
19000 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19001 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19002 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19003
19004 cat >>confdefs.h <<\_ACEOF
19005 #define HAVE___UDIVDI3 1
19006 _ACEOF
19007
19008 fi
19009
19010   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19011 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19012 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015   ac_check_lib_save_LIBS=$LIBS
19016 LIBS="-lgcc  $LIBS"
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023
19024 /* Override any GCC internal prototype to avoid an error.
19025    Use char because int might match the return type of a GCC
19026    builtin and then its argument prototype would still apply.  */
19027 #ifdef __cplusplus
19028 extern "C"
19029 #endif
19030 char __umoddi3 ();
19031 int
19032 main ()
19033 {
19034 return __umoddi3 ();
19035   ;
19036   return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043   *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046   (eval "$ac_link") 2>conftest.er1
19047   ac_status=$?
19048   grep -v '^ *+' conftest.er1 >conftest.err
19049   rm -f conftest.er1
19050   cat conftest.err >&5
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); } &&
19053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19054   { (case "(($ac_try" in
19055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056   *) ac_try_echo=$ac_try;;
19057 esac
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059   (eval "$ac_try") 2>&5
19060   ac_status=$?
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); }; } &&
19063          { ac_try='test -s conftest$ac_exeext'
19064   { (case "(($ac_try" in
19065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066   *) ac_try_echo=$ac_try;;
19067 esac
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069   (eval "$ac_try") 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; }; then
19073   ac_cv_lib_gcc___umoddi3=yes
19074 else
19075   echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078         ac_cv_lib_gcc___umoddi3=no
19079 fi
19080
19081 rm -f core conftest.err conftest.$ac_objext \
19082       conftest$ac_exeext conftest.$ac_ext
19083 LIBS=$ac_check_lib_save_LIBS
19084 fi
19085 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19086 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19087 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19088
19089 cat >>confdefs.h <<\_ACEOF
19090 #define HAVE___UMODDI3 1
19091 _ACEOF
19092
19093 fi
19094
19095
19096   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19097 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19098 if test "${ac_cv_lib_gcc___main+set}" = set; then
19099   echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101   ac_check_lib_save_LIBS=$LIBS
19102 LIBS="-lgcc  $LIBS"
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h.  */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h.  */
19109
19110 /* Override any GCC internal prototype to avoid an error.
19111    Use char because int might match the return type of a GCC
19112    builtin and then its argument prototype would still apply.  */
19113 #ifdef __cplusplus
19114 extern "C"
19115 #endif
19116 char __main ();
19117 int
19118 main ()
19119 {
19120 return __main ();
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (ac_try="$ac_link"
19127 case "(($ac_try" in
19128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129   *) ac_try_echo=$ac_try;;
19130 esac
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132   (eval "$ac_link") 2>conftest.er1
19133   ac_status=$?
19134   grep -v '^ *+' conftest.er1 >conftest.err
19135   rm -f conftest.er1
19136   cat conftest.err >&5
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); } &&
19139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140   { (case "(($ac_try" in
19141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142   *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145   (eval "$ac_try") 2>&5
19146   ac_status=$?
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); }; } &&
19149          { ac_try='test -s conftest$ac_exeext'
19150   { (case "(($ac_try" in
19151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152   *) ac_try_echo=$ac_try;;
19153 esac
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155   (eval "$ac_try") 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); }; }; then
19159   ac_cv_lib_gcc___main=yes
19160 else
19161   echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164         ac_cv_lib_gcc___main=no
19165 fi
19166
19167 rm -f core conftest.err conftest.$ac_objext \
19168       conftest$ac_exeext conftest.$ac_ext
19169 LIBS=$ac_check_lib_save_LIBS
19170 fi
19171 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19172 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19173 if test $ac_cv_lib_gcc___main = yes; then
19174
19175 cat >>confdefs.h <<\_ACEOF
19176 #define HAVE___MAIN 1
19177 _ACEOF
19178
19179 fi
19180
19181   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19182 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19183 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19184   echo $ECHO_N "(cached) $ECHO_C" >&6
19185 else
19186   ac_check_lib_save_LIBS=$LIBS
19187 LIBS="-lgcc  $LIBS"
19188 cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h.  */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h.  */
19194
19195 /* Override any GCC internal prototype to avoid an error.
19196    Use char because int might match the return type of a GCC
19197    builtin and then its argument prototype would still apply.  */
19198 #ifdef __cplusplus
19199 extern "C"
19200 #endif
19201 char __cmpdi2 ();
19202 int
19203 main ()
19204 {
19205 return __cmpdi2 ();
19206   ;
19207   return 0;
19208 }
19209 _ACEOF
19210 rm -f conftest.$ac_objext conftest$ac_exeext
19211 if { (ac_try="$ac_link"
19212 case "(($ac_try" in
19213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214   *) ac_try_echo=$ac_try;;
19215 esac
19216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217   (eval "$ac_link") 2>conftest.er1
19218   ac_status=$?
19219   grep -v '^ *+' conftest.er1 >conftest.err
19220   rm -f conftest.er1
19221   cat conftest.err >&5
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); } &&
19224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19225   { (case "(($ac_try" in
19226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227   *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230   (eval "$ac_try") 2>&5
19231   ac_status=$?
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); }; } &&
19234          { ac_try='test -s conftest$ac_exeext'
19235   { (case "(($ac_try" in
19236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237   *) ac_try_echo=$ac_try;;
19238 esac
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240   (eval "$ac_try") 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; }; then
19244   ac_cv_lib_gcc___cmpdi2=yes
19245 else
19246   echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19248
19249         ac_cv_lib_gcc___cmpdi2=no
19250 fi
19251
19252 rm -f core conftest.err conftest.$ac_objext \
19253       conftest$ac_exeext conftest.$ac_ext
19254 LIBS=$ac_check_lib_save_LIBS
19255 fi
19256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19257 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19258 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19259
19260 cat >>confdefs.h <<\_ACEOF
19261 #define HAVE___CMPDI2 1
19262 _ACEOF
19263
19264 fi
19265
19266 fi
19267
19268 if test "$llvm_cv_os_type" = "MingW" ; then
19269   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19270 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19271   cat >conftest.$ac_ext <<_ACEOF
19272 #include <windows.h>
19273 #include <imagehlp.h>
19274 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19275 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19276 _ACEOF
19277 rm -f conftest.$ac_objext
19278 if { (ac_try="$ac_compile"
19279 case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_compile") 2>conftest.er1
19285   ac_status=$?
19286   grep -v '^ *+' conftest.er1 >conftest.err
19287   rm -f conftest.er1
19288   cat conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } &&
19291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19292   { (case "(($ac_try" in
19293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294   *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297   (eval "$ac_try") 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; } &&
19301          { ac_try='test -s conftest.$ac_objext'
19302   { (case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_try") 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; }; then
19311
19312   { echo "$as_me:$LINENO: result: yes" >&5
19313 echo "${ECHO_T}yes" >&6; }
19314   llvm_cv_win32_elmcb_pcstr="PCSTR"
19315
19316 else
19317   echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19319
19320
19321   { echo "$as_me:$LINENO: result: no" >&5
19322 echo "${ECHO_T}no" >&6; }
19323   llvm_cv_win32_elmcb_pcstr="PSTR"
19324
19325 fi
19326
19327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19328
19329 cat >>confdefs.h <<_ACEOF
19330 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19331 _ACEOF
19332
19333 fi
19334
19335
19336 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19337 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19338 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19339   echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341   ac_ext=cpp
19342 ac_cpp='$CXXCPP $CPPFLAGS'
19343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19346
19347    cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353 #include <math.h>
19354 int
19355 main ()
19356 {
19357 float f; isnan(f);
19358   ;
19359   return 0;
19360 }
19361 _ACEOF
19362 rm -f conftest.$ac_objext
19363 if { (ac_try="$ac_compile"
19364 case "(($ac_try" in
19365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366   *) ac_try_echo=$ac_try;;
19367 esac
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369   (eval "$ac_compile") 2>conftest.er1
19370   ac_status=$?
19371   grep -v '^ *+' conftest.er1 >conftest.err
19372   rm -f conftest.er1
19373   cat conftest.err >&5
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } &&
19376          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19377   { (case "(($ac_try" in
19378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379   *) ac_try_echo=$ac_try;;
19380 esac
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382   (eval "$ac_try") 2>&5
19383   ac_status=$?
19384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); }; } &&
19386          { ac_try='test -s conftest.$ac_objext'
19387   { (case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392   (eval "$ac_try") 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; }; then
19396   ac_cv_func_isnan_in_math_h=yes
19397 else
19398   echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401         ac_cv_func_isnan_in_math_h=no
19402 fi
19403
19404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19405   ac_ext=c
19406 ac_cpp='$CPP $CPPFLAGS'
19407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19410
19411 fi
19412 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19413 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19414
19415
19416 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19417
19418 cat >>confdefs.h <<\_ACEOF
19419 #define HAVE_ISNAN_IN_MATH_H 1
19420 _ACEOF
19421
19422 fi
19423
19424 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19425 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19426 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19427   echo $ECHO_N "(cached) $ECHO_C" >&6
19428 else
19429   ac_ext=cpp
19430 ac_cpp='$CXXCPP $CPPFLAGS'
19431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19434
19435    cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h.  */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h.  */
19441 #include <cmath>
19442 int
19443 main ()
19444 {
19445 float f; isnan(f);
19446   ;
19447   return 0;
19448 }
19449 _ACEOF
19450 rm -f conftest.$ac_objext
19451 if { (ac_try="$ac_compile"
19452 case "(($ac_try" in
19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454   *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457   (eval "$ac_compile") 2>conftest.er1
19458   ac_status=$?
19459   grep -v '^ *+' conftest.er1 >conftest.err
19460   rm -f conftest.er1
19461   cat conftest.err >&5
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } &&
19464          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19465   { (case "(($ac_try" in
19466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467   *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470   (eval "$ac_try") 2>&5
19471   ac_status=$?
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); }; } &&
19474          { ac_try='test -s conftest.$ac_objext'
19475   { (case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480   (eval "$ac_try") 2>&5
19481   ac_status=$?
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); }; }; then
19484   ac_cv_func_isnan_in_cmath=yes
19485 else
19486   echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489         ac_cv_func_isnan_in_cmath=no
19490 fi
19491
19492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19493   ac_ext=c
19494 ac_cpp='$CPP $CPPFLAGS'
19495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19498
19499 fi
19500 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19501 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19502
19503 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19504
19505 cat >>confdefs.h <<\_ACEOF
19506 #define HAVE_ISNAN_IN_CMATH 1
19507 _ACEOF
19508
19509 fi
19510
19511 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19512 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19513 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19514   echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516   ac_ext=cpp
19517 ac_cpp='$CXXCPP $CPPFLAGS'
19518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19521
19522    cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h.  */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h.  */
19528 #include <cmath>
19529 int
19530 main ()
19531 {
19532 float f; std::isnan(f);
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext
19538 if { (ac_try="$ac_compile"
19539 case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544   (eval "$ac_compile") 2>conftest.er1
19545   ac_status=$?
19546   grep -v '^ *+' conftest.er1 >conftest.err
19547   rm -f conftest.er1
19548   cat conftest.err >&5
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } &&
19551          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19552   { (case "(($ac_try" in
19553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554   *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557   (eval "$ac_try") 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; } &&
19561          { ac_try='test -s conftest.$ac_objext'
19562   { (case "(($ac_try" in
19563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564   *) ac_try_echo=$ac_try;;
19565 esac
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567   (eval "$ac_try") 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   ac_cv_func_std_isnan_in_cmath=yes
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576         ac_cv_func_std_isnan_in_cmath=no
19577 fi
19578
19579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580   ac_ext=c
19581 ac_cpp='$CPP $CPPFLAGS'
19582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19585
19586 fi
19587 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19588 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19589
19590 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19591
19592 cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_STD_ISNAN_IN_CMATH 1
19594 _ACEOF
19595
19596 fi
19597
19598
19599 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19600 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19601 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19602   echo $ECHO_N "(cached) $ECHO_C" >&6
19603 else
19604   ac_ext=cpp
19605 ac_cpp='$CXXCPP $CPPFLAGS'
19606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19609
19610    cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h.  */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h.  */
19616 #include <math.h>
19617 int
19618 main ()
19619 {
19620 float f; isinf(f);
19621   ;
19622   return 0;
19623 }
19624 _ACEOF
19625 rm -f conftest.$ac_objext
19626 if { (ac_try="$ac_compile"
19627 case "(($ac_try" in
19628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629   *) ac_try_echo=$ac_try;;
19630 esac
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632   (eval "$ac_compile") 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } &&
19639          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19640   { (case "(($ac_try" in
19641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642   *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645   (eval "$ac_try") 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; } &&
19649          { ac_try='test -s conftest.$ac_objext'
19650   { (case "(($ac_try" in
19651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652   *) ac_try_echo=$ac_try;;
19653 esac
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655   (eval "$ac_try") 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); }; }; then
19659   ac_cv_func_isinf_in_math_h=yes
19660 else
19661   echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664         ac_cv_func_isinf_in_math_h=no
19665 fi
19666
19667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668   ac_ext=c
19669 ac_cpp='$CPP $CPPFLAGS'
19670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19673
19674 fi
19675 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19676 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19677
19678 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19679
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_ISINF_IN_MATH_H 1
19682 _ACEOF
19683
19684 fi
19685
19686 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19687 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19688 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19689   echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691   ac_ext=cpp
19692 ac_cpp='$CXXCPP $CPPFLAGS'
19693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19696
19697    cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h.  */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h.  */
19703 #include <cmath>
19704 int
19705 main ()
19706 {
19707 float f; isinf(f);
19708   ;
19709   return 0;
19710 }
19711 _ACEOF
19712 rm -f conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716   *) ac_try_echo=$ac_try;;
19717 esac
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719   (eval "$ac_compile") 2>conftest.er1
19720   ac_status=$?
19721   grep -v '^ *+' conftest.er1 >conftest.err
19722   rm -f conftest.er1
19723   cat conftest.err >&5
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); } &&
19726          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19727   { (case "(($ac_try" in
19728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729   *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732   (eval "$ac_try") 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; } &&
19736          { ac_try='test -s conftest.$ac_objext'
19737   { (case "(($ac_try" in
19738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739   *) ac_try_echo=$ac_try;;
19740 esac
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742   (eval "$ac_try") 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; }; then
19746   ac_cv_func_isinf_in_cmath=yes
19747 else
19748   echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751         ac_cv_func_isinf_in_cmath=no
19752 fi
19753
19754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19755   ac_ext=c
19756 ac_cpp='$CPP $CPPFLAGS'
19757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19760
19761 fi
19762 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19763 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19764
19765 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19766
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_ISINF_IN_CMATH 1
19769 _ACEOF
19770
19771 fi
19772
19773 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19774 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19775 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778   ac_ext=cpp
19779 ac_cpp='$CXXCPP $CPPFLAGS'
19780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19783
19784    cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h.  */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h.  */
19790 #include <cmath>
19791 int
19792 main ()
19793 {
19794 float f; std::isinf(f);
19795   ;
19796   return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext
19800 if { (ac_try="$ac_compile"
19801 case "(($ac_try" in
19802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803   *) ac_try_echo=$ac_try;;
19804 esac
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806   (eval "$ac_compile") 2>conftest.er1
19807   ac_status=$?
19808   grep -v '^ *+' conftest.er1 >conftest.err
19809   rm -f conftest.er1
19810   cat conftest.err >&5
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); } &&
19813          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19814   { (case "(($ac_try" in
19815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816   *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819   (eval "$ac_try") 2>&5
19820   ac_status=$?
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); }; } &&
19823          { ac_try='test -s conftest.$ac_objext'
19824   { (case "(($ac_try" in
19825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826   *) ac_try_echo=$ac_try;;
19827 esac
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829   (eval "$ac_try") 2>&5
19830   ac_status=$?
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); }; }; then
19833   ac_cv_func_std_isinf_in_cmath=yes
19834 else
19835   echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838         ac_cv_func_std_isinf_in_cmath=no
19839 fi
19840
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842   ac_ext=c
19843 ac_cpp='$CPP $CPPFLAGS'
19844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19847
19848 fi
19849 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19850 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19851
19852 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19853
19854 cat >>confdefs.h <<\_ACEOF
19855 #define HAVE_STD_ISINF_IN_CMATH 1
19856 _ACEOF
19857
19858 fi
19859
19860 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19861 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19862 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19863   echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865   ac_ext=cpp
19866 ac_cpp='$CXXCPP $CPPFLAGS'
19867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19870
19871    cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 #include <ieeefp.h>
19878 int
19879 main ()
19880 {
19881 float f; finite(f);
19882   ;
19883   return 0;
19884 }
19885 _ACEOF
19886 rm -f conftest.$ac_objext
19887 if { (ac_try="$ac_compile"
19888 case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_compile") 2>conftest.er1
19894   ac_status=$?
19895   grep -v '^ *+' conftest.er1 >conftest.err
19896   rm -f conftest.er1
19897   cat conftest.err >&5
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); } &&
19900          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19901   { (case "(($ac_try" in
19902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903   *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906   (eval "$ac_try") 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); }; } &&
19910          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19920   ac_cv_func_finite_in_ieeefp_h=yes
19921 else
19922   echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19924
19925         ac_cv_func_finite_in_ieeefp_h=no
19926 fi
19927
19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929   ac_ext=c
19930 ac_cpp='$CPP $CPPFLAGS'
19931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19934
19935 fi
19936 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19937 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19938
19939 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19940
19941 cat >>confdefs.h <<\_ACEOF
19942 #define HAVE_FINITE_IN_IEEEFP_H 1
19943 _ACEOF
19944
19945 fi
19946
19947
19948
19949 if test "$llvm_cv_platform_type" = "Unix" ; then
19950
19951
19952 for ac_header in stdlib.h unistd.h
19953 do
19954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19956   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19959   echo $ECHO_N "(cached) $ECHO_C" >&6
19960 fi
19961 ac_res=`eval echo '${'$as_ac_Header'}'`
19962                { echo "$as_me:$LINENO: result: $ac_res" >&5
19963 echo "${ECHO_T}$ac_res" >&6; }
19964 else
19965   # Is the header compilable?
19966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
19975 #include <$ac_header>
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981   *) ac_try_echo=$ac_try;;
19982 esac
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984   (eval "$ac_compile") 2>conftest.er1
19985   ac_status=$?
19986   grep -v '^ *+' conftest.er1 >conftest.err
19987   rm -f conftest.er1
19988   cat conftest.err >&5
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); } &&
19991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19992   { (case "(($ac_try" in
19993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994   *) ac_try_echo=$ac_try;;
19995 esac
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997   (eval "$ac_try") 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); }; } &&
20001          { ac_try='test -s conftest.$ac_objext'
20002   { (case "(($ac_try" in
20003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004   *) ac_try_echo=$ac_try;;
20005 esac
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007   (eval "$ac_try") 2>&5
20008   ac_status=$?
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); }; }; then
20011   ac_header_compiler=yes
20012 else
20013   echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016         ac_header_compiler=no
20017 fi
20018
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6; }
20022
20023 # Is the header present?
20024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h.  */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h.  */
20032 #include <$ac_header>
20033 _ACEOF
20034 if { (ac_try="$ac_cpp conftest.$ac_ext"
20035 case "(($ac_try" in
20036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037   *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20041   ac_status=$?
20042   grep -v '^ *+' conftest.er1 >conftest.err
20043   rm -f conftest.er1
20044   cat conftest.err >&5
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); } >/dev/null; then
20047   if test -s conftest.err; then
20048     ac_cpp_err=$ac_c_preproc_warn_flag
20049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20050   else
20051     ac_cpp_err=
20052   fi
20053 else
20054   ac_cpp_err=yes
20055 fi
20056 if test -z "$ac_cpp_err"; then
20057   ac_header_preproc=yes
20058 else
20059   echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062   ac_header_preproc=no
20063 fi
20064
20065 rm -f conftest.err conftest.$ac_ext
20066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20067 echo "${ECHO_T}$ac_header_preproc" >&6; }
20068
20069 # So?  What about this header?
20070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20071   yes:no: )
20072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20076     ac_header_preproc=yes
20077     ;;
20078   no:yes:* )
20079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20091     ( cat <<\_ASBOX
20092 ## ------------------------------------ ##
20093 ## Report this to http://llvm.org/bugs/ ##
20094 ## ------------------------------------ ##
20095 _ASBOX
20096      ) | sed "s/^/$as_me: WARNING:     /" >&2
20097     ;;
20098 esac
20099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20102   echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104   eval "$as_ac_Header=\$ac_header_preproc"
20105 fi
20106 ac_res=`eval echo '${'$as_ac_Header'}'`
20107                { echo "$as_me:$LINENO: result: $ac_res" >&5
20108 echo "${ECHO_T}$ac_res" >&6; }
20109
20110 fi
20111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20112   cat >>confdefs.h <<_ACEOF
20113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20114 _ACEOF
20115
20116 fi
20117
20118 done
20119
20120
20121 for ac_func in getpagesize
20122 do
20123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20137 #define $ac_func innocuous_$ac_func
20138
20139 /* System header to define __stub macros and hopefully few prototypes,
20140     which can conflict with char $ac_func (); below.
20141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20142     <limits.h> exists even on freestanding compilers.  */
20143
20144 #ifdef __STDC__
20145 # include <limits.h>
20146 #else
20147 # include <assert.h>
20148 #endif
20149
20150 #undef $ac_func
20151
20152 /* Override any GCC internal prototype to avoid an error.
20153    Use char because int might match the return type of a GCC
20154    builtin and then its argument prototype would still apply.  */
20155 #ifdef __cplusplus
20156 extern "C"
20157 #endif
20158 char $ac_func ();
20159 /* The GNU C library defines this for functions which it implements
20160     to always fail with ENOSYS.  Some functions are actually named
20161     something starting with __ and the normal name is an alias.  */
20162 #if defined __stub_$ac_func || defined __stub___$ac_func
20163 choke me
20164 #endif
20165
20166 int
20167 main ()
20168 {
20169 return $ac_func ();
20170   ;
20171   return 0;
20172 }
20173 _ACEOF
20174 rm -f conftest.$ac_objext conftest$ac_exeext
20175 if { (ac_try="$ac_link"
20176 case "(($ac_try" in
20177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178   *) ac_try_echo=$ac_try;;
20179 esac
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181   (eval "$ac_link") 2>conftest.er1
20182   ac_status=$?
20183   grep -v '^ *+' conftest.er1 >conftest.err
20184   rm -f conftest.er1
20185   cat conftest.err >&5
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); } &&
20188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20189   { (case "(($ac_try" in
20190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191   *) ac_try_echo=$ac_try;;
20192 esac
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194   (eval "$ac_try") 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; } &&
20198          { ac_try='test -s conftest$ac_exeext'
20199   { (case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_try") 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208   eval "$as_ac_var=yes"
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213         eval "$as_ac_var=no"
20214 fi
20215
20216 rm -f core conftest.err conftest.$ac_objext \
20217       conftest$ac_exeext conftest.$ac_ext
20218 fi
20219 ac_res=`eval echo '${'$as_ac_var'}'`
20220                { echo "$as_me:$LINENO: result: $ac_res" >&5
20221 echo "${ECHO_T}$ac_res" >&6; }
20222 if test `eval echo '${'$as_ac_var'}'` = yes; then
20223   cat >>confdefs.h <<_ACEOF
20224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20225 _ACEOF
20226
20227 fi
20228 done
20229
20230 { echo "$as_me:$LINENO: checking for working mmap" >&5
20231 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20232 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20233   echo $ECHO_N "(cached) $ECHO_C" >&6
20234 else
20235   if test "$cross_compiling" = yes; then
20236   ac_cv_func_mmap_fixed_mapped=no
20237 else
20238   cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244 $ac_includes_default
20245 /* malloc might have been renamed as rpl_malloc. */
20246 #undef malloc
20247
20248 /* Thanks to Mike Haertel and Jim Avera for this test.
20249    Here is a matrix of mmap possibilities:
20250         mmap private not fixed
20251         mmap private fixed at somewhere currently unmapped
20252         mmap private fixed at somewhere already mapped
20253         mmap shared not fixed
20254         mmap shared fixed at somewhere currently unmapped
20255         mmap shared fixed at somewhere already mapped
20256    For private mappings, we should verify that changes cannot be read()
20257    back from the file, nor mmap's back from the file at a different
20258    address.  (There have been systems where private was not correctly
20259    implemented like the infamous i386 svr4.0, and systems where the
20260    VM page cache was not coherent with the file system buffer cache
20261    like early versions of FreeBSD and possibly contemporary NetBSD.)
20262    For shared mappings, we should conversely verify that changes get
20263    propagated back to all the places they're supposed to be.
20264
20265    Grep wants private fixed already mapped.
20266    The main things grep needs to know about mmap are:
20267    * does it exist and is it safe to write into the mmap'd area
20268    * how to use it (BSD variants)  */
20269
20270 #include <fcntl.h>
20271 #include <sys/mman.h>
20272
20273 #if !STDC_HEADERS && !HAVE_STDLIB_H
20274 char *malloc ();
20275 #endif
20276
20277 /* This mess was copied from the GNU getpagesize.h.  */
20278 #if !HAVE_GETPAGESIZE
20279 /* Assume that all systems that can run configure have sys/param.h.  */
20280 # if !HAVE_SYS_PARAM_H
20281 #  define HAVE_SYS_PARAM_H 1
20282 # endif
20283
20284 # ifdef _SC_PAGESIZE
20285 #  define getpagesize() sysconf(_SC_PAGESIZE)
20286 # else /* no _SC_PAGESIZE */
20287 #  if HAVE_SYS_PARAM_H
20288 #   include <sys/param.h>
20289 #   ifdef EXEC_PAGESIZE
20290 #    define getpagesize() EXEC_PAGESIZE
20291 #   else /* no EXEC_PAGESIZE */
20292 #    ifdef NBPG
20293 #     define getpagesize() NBPG * CLSIZE
20294 #     ifndef CLSIZE
20295 #      define CLSIZE 1
20296 #     endif /* no CLSIZE */
20297 #    else /* no NBPG */
20298 #     ifdef NBPC
20299 #      define getpagesize() NBPC
20300 #     else /* no NBPC */
20301 #      ifdef PAGESIZE
20302 #       define getpagesize() PAGESIZE
20303 #      endif /* PAGESIZE */
20304 #     endif /* no NBPC */
20305 #    endif /* no NBPG */
20306 #   endif /* no EXEC_PAGESIZE */
20307 #  else /* no HAVE_SYS_PARAM_H */
20308 #   define getpagesize() 8192   /* punt totally */
20309 #  endif /* no HAVE_SYS_PARAM_H */
20310 # endif /* no _SC_PAGESIZE */
20311
20312 #endif /* no HAVE_GETPAGESIZE */
20313
20314 int
20315 main ()
20316 {
20317   char *data, *data2, *data3;
20318   int i, pagesize;
20319   int fd;
20320
20321   pagesize = getpagesize ();
20322
20323   /* First, make a file with some known garbage in it. */
20324   data = (char *) malloc (pagesize);
20325   if (!data)
20326     return 1;
20327   for (i = 0; i < pagesize; ++i)
20328     *(data + i) = rand ();
20329   umask (0);
20330   fd = creat ("conftest.mmap", 0600);
20331   if (fd < 0)
20332     return 1;
20333   if (write (fd, data, pagesize) != pagesize)
20334     return 1;
20335   close (fd);
20336
20337   /* Next, try to mmap the file at a fixed address which already has
20338      something else allocated at it.  If we can, also make sure that
20339      we see the same garbage.  */
20340   fd = open ("conftest.mmap", O_RDWR);
20341   if (fd < 0)
20342     return 1;
20343   data2 = (char *) malloc (2 * pagesize);
20344   if (!data2)
20345     return 1;
20346   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20347   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20348                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20349     return 1;
20350   for (i = 0; i < pagesize; ++i)
20351     if (*(data + i) != *(data2 + i))
20352       return 1;
20353
20354   /* Finally, make sure that changes to the mapped area do not
20355      percolate back to the file as seen by read().  (This is a bug on
20356      some variants of i386 svr4.0.)  */
20357   for (i = 0; i < pagesize; ++i)
20358     *(data2 + i) = *(data2 + i) + 1;
20359   data3 = (char *) malloc (pagesize);
20360   if (!data3)
20361     return 1;
20362   if (read (fd, data3, pagesize) != pagesize)
20363     return 1;
20364   for (i = 0; i < pagesize; ++i)
20365     if (*(data + i) != *(data3 + i))
20366       return 1;
20367   close (fd);
20368   return 0;
20369 }
20370 _ACEOF
20371 rm -f conftest$ac_exeext
20372 if { (ac_try="$ac_link"
20373 case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_link") 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20382   { (case "(($ac_try" in
20383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384   *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387   (eval "$ac_try") 2>&5
20388   ac_status=$?
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); }; }; then
20391   ac_cv_func_mmap_fixed_mapped=yes
20392 else
20393   echo "$as_me: program exited with status $ac_status" >&5
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 ( exit $ac_status )
20398 ac_cv_func_mmap_fixed_mapped=no
20399 fi
20400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20401 fi
20402
20403
20404 fi
20405 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20406 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20407 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20408
20409 cat >>confdefs.h <<\_ACEOF
20410 #define HAVE_MMAP 1
20411 _ACEOF
20412
20413 fi
20414 rm -f conftest.mmap
20415
20416   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20417 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20418 if test "${ac_cv_func_mmap_file+set}" = set; then
20419   echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421    ac_ext=c
20422 ac_cpp='$CPP $CPPFLAGS'
20423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20426
20427   if test "$cross_compiling" = yes; then
20428   ac_cv_func_mmap_file=no
20429 else
20430   cat >conftest.$ac_ext <<_ACEOF
20431
20432     /* confdefs.h.  */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h.  */
20437
20438 #include <sys/types.h>
20439 #include <sys/mman.h>
20440 #include <fcntl.h>
20441
20442 int
20443 main ()
20444 {
20445
20446   int fd;
20447   fd = creat ("foo",0777);
20448   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20449   unlink ("foo");
20450   return (fd != (int) MAP_FAILED);
20451   ;
20452   return 0;
20453 }
20454 _ACEOF
20455 rm -f conftest$ac_exeext
20456 if { (ac_try="$ac_link"
20457 case "(($ac_try" in
20458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459   *) ac_try_echo=$ac_try;;
20460 esac
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462   (eval "$ac_link") 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20466   { (case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471   (eval "$ac_try") 2>&5
20472   ac_status=$?
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); }; }; then
20475   ac_cv_func_mmap_file=yes
20476 else
20477   echo "$as_me: program exited with status $ac_status" >&5
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20480
20481 ( exit $ac_status )
20482 ac_cv_func_mmap_file=no
20483 fi
20484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20485 fi
20486
20487
20488   ac_ext=c
20489 ac_cpp='$CPP $CPPFLAGS'
20490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20493
20494
20495 fi
20496 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20497 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20498 if test "$ac_cv_func_mmap_file" = yes; then
20499
20500 cat >>confdefs.h <<\_ACEOF
20501 #define HAVE_MMAP_FILE
20502 _ACEOF
20503
20504    MMAP_FILE=yes
20505
20506 fi
20507
20508   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20509 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20510 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20511   echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513   if test "$llvm_cv_os_type" = "Interix" ; then
20514    ac_cv_need_dev_zero_for_mmap=yes
20515  else
20516    ac_cv_need_dev_zero_for_mmap=no
20517  fi
20518
20519 fi
20520 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20521 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20522 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20523
20524 cat >>confdefs.h <<\_ACEOF
20525 #define NEED_DEV_ZERO_FOR_MMAP 1
20526 _ACEOF
20527
20528 fi
20529
20530   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20531   then
20532     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20533 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20534   fi
20535   if test "$ac_cv_func_mmap_file" = "no"
20536   then
20537     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20538 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20539   fi
20540 fi
20541
20542 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20543 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20544 ac_ext=cpp
20545 ac_cpp='$CXXCPP $CPPFLAGS'
20546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20549
20550 cat >conftest.$ac_ext <<_ACEOF
20551 /* confdefs.h.  */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h.  */
20556 int main() {
20557         volatile unsigned long val = 1;
20558         __sync_synchronize();
20559         __sync_val_compare_and_swap(&val, 1, 0);
20560         __sync_add_and_fetch(&val, 1);
20561         __sync_sub_and_fetch(&val, 1);
20562         return 0;
20563       }
20564
20565 _ACEOF
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (ac_try="$ac_link"
20568 case "(($ac_try" in
20569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570   *) ac_try_echo=$ac_try;;
20571 esac
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573   (eval "$ac_link") 2>conftest.er1
20574   ac_status=$?
20575   grep -v '^ *+' conftest.er1 >conftest.err
20576   rm -f conftest.er1
20577   cat conftest.err >&5
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); } &&
20580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20581   { (case "(($ac_try" in
20582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583   *) ac_try_echo=$ac_try;;
20584 esac
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586   (eval "$ac_try") 2>&5
20587   ac_status=$?
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); }; } &&
20590          { ac_try='test -s conftest$ac_exeext'
20591   { (case "(($ac_try" in
20592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20593   *) ac_try_echo=$ac_try;;
20594 esac
20595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20596   (eval "$ac_try") 2>&5
20597   ac_status=$?
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); }; }; then
20600   ac_ext=c
20601 ac_cpp='$CPP $CPPFLAGS'
20602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20605
20606   { echo "$as_me:$LINENO: result: yes" >&5
20607 echo "${ECHO_T}yes" >&6; }
20608
20609 cat >>confdefs.h <<\_ACEOF
20610 #define LLVM_HAS_ATOMICS 1
20611 _ACEOF
20612
20613 else
20614   echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617         { echo "$as_me:$LINENO: result: no" >&5
20618 echo "${ECHO_T}no" >&6; }
20619
20620 cat >>confdefs.h <<\_ACEOF
20621 #define LLVM_HAS_ATOMICS 0
20622 _ACEOF
20623
20624   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20625 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20626 fi
20627
20628 rm -f core conftest.err conftest.$ac_objext \
20629       conftest$ac_exeext conftest.$ac_ext
20630
20631
20632 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20633   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20634 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20635 if test "${llvm_cv_linux_mixed+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638    ac_ext=c
20639 ac_cpp='$CPP $CPPFLAGS'
20640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643
20644   cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 #ifndef __x86_64__
20651        error: Not x86-64 even if uname says so!
20652       #endif
20653
20654 int
20655 main ()
20656 {
20657
20658   ;
20659   return 0;
20660 }
20661 _ACEOF
20662 rm -f conftest.$ac_objext
20663 if { (ac_try="$ac_compile"
20664 case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669   (eval "$ac_compile") 2>conftest.er1
20670   ac_status=$?
20671   grep -v '^ *+' conftest.er1 >conftest.err
20672   rm -f conftest.er1
20673   cat conftest.err >&5
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); } &&
20676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20677   { (case "(($ac_try" in
20678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679   *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682   (eval "$ac_try") 2>&5
20683   ac_status=$?
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); }; } &&
20686          { ac_try='test -s conftest.$ac_objext'
20687   { (case "(($ac_try" in
20688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689   *) ac_try_echo=$ac_try;;
20690 esac
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692   (eval "$ac_try") 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; }; then
20696   llvm_cv_linux_mixed=no
20697 else
20698   echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701         llvm_cv_linux_mixed=yes
20702 fi
20703
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705   ac_ext=c
20706 ac_cpp='$CPP $CPPFLAGS'
20707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20710
20711
20712 fi
20713 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20714 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20715
20716   if test "$llvm_cv_linux_mixed" = "yes"; then
20717     llvm_cv_target_arch="x86"
20718     ARCH="x86"
20719   fi
20720 fi
20721
20722
20723 for ac_func in __dso_handle
20724 do
20725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20729   echo $ECHO_N "(cached) $ECHO_C" >&6
20730 else
20731   cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h.  */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h.  */
20737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20739 #define $ac_func innocuous_$ac_func
20740
20741 /* System header to define __stub macros and hopefully few prototypes,
20742     which can conflict with char $ac_func (); below.
20743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20744     <limits.h> exists even on freestanding compilers.  */
20745
20746 #ifdef __STDC__
20747 # include <limits.h>
20748 #else
20749 # include <assert.h>
20750 #endif
20751
20752 #undef $ac_func
20753
20754 /* Override any GCC internal prototype to avoid an error.
20755    Use char because int might match the return type of a GCC
20756    builtin and then its argument prototype would still apply.  */
20757 #ifdef __cplusplus
20758 extern "C"
20759 #endif
20760 char $ac_func ();
20761 /* The GNU C library defines this for functions which it implements
20762     to always fail with ENOSYS.  Some functions are actually named
20763     something starting with __ and the normal name is an alias.  */
20764 #if defined __stub_$ac_func || defined __stub___$ac_func
20765 choke me
20766 #endif
20767
20768 int
20769 main ()
20770 {
20771 return $ac_func ();
20772   ;
20773   return 0;
20774 }
20775 _ACEOF
20776 rm -f conftest.$ac_objext conftest$ac_exeext
20777 if { (ac_try="$ac_link"
20778 case "(($ac_try" in
20779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780   *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783   (eval "$ac_link") 2>conftest.er1
20784   ac_status=$?
20785   grep -v '^ *+' conftest.er1 >conftest.err
20786   rm -f conftest.er1
20787   cat conftest.err >&5
20788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789   (exit $ac_status); } &&
20790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20791   { (case "(($ac_try" in
20792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793   *) ac_try_echo=$ac_try;;
20794 esac
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796   (eval "$ac_try") 2>&5
20797   ac_status=$?
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); }; } &&
20800          { ac_try='test -s conftest$ac_exeext'
20801   { (case "(($ac_try" in
20802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803   *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806   (eval "$ac_try") 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; }; then
20810   eval "$as_ac_var=yes"
20811 else
20812   echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20814
20815         eval "$as_ac_var=no"
20816 fi
20817
20818 rm -f core conftest.err conftest.$ac_objext \
20819       conftest$ac_exeext conftest.$ac_ext
20820 fi
20821 ac_res=`eval echo '${'$as_ac_var'}'`
20822                { echo "$as_me:$LINENO: result: $ac_res" >&5
20823 echo "${ECHO_T}$ac_res" >&6; }
20824 if test `eval echo '${'$as_ac_var'}'` = yes; then
20825   cat >>confdefs.h <<_ACEOF
20826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20827 _ACEOF
20828
20829 fi
20830 done
20831
20832
20833 SHLIBEXT=$libltdl_cv_shlibext
20834
20835
20836 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20837
20838
20839 if test "${prefix}" = "NONE" ; then
20840   prefix="/usr/local"
20841 fi
20842 eval LLVM_PREFIX="${prefix}";
20843 eval LLVM_BINDIR="${prefix}/bin";
20844 eval LLVM_LIBDIR="${prefix}/lib";
20845 eval LLVM_DATADIR="${prefix}/share/llvm";
20846 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20847 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20848 eval LLVM_INCLUDEDIR="${prefix}/include";
20849 eval LLVM_INFODIR="${prefix}/info";
20850 eval LLVM_MANDIR="${prefix}/man";
20851 LLVM_CONFIGTIME=`date`
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20864   LLVM_CONFIGTIME="(timestamp not enabled)"
20865 fi
20866
20867
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_PREFIX "$LLVM_PREFIX"
20870 _ACEOF
20871
20872
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_BINDIR "$LLVM_BINDIR"
20875 _ACEOF
20876
20877
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20880 _ACEOF
20881
20882
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_DATADIR "$LLVM_DATADIR"
20885 _ACEOF
20886
20887
20888 cat >>confdefs.h <<_ACEOF
20889 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20890 _ACEOF
20891
20892
20893 cat >>confdefs.h <<_ACEOF
20894 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20895 _ACEOF
20896
20897
20898 cat >>confdefs.h <<_ACEOF
20899 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20900 _ACEOF
20901
20902
20903 cat >>confdefs.h <<_ACEOF
20904 #define LLVM_INFODIR "$LLVM_INFODIR"
20905 _ACEOF
20906
20907
20908 cat >>confdefs.h <<_ACEOF
20909 #define LLVM_MANDIR "$LLVM_MANDIR"
20910 _ACEOF
20911
20912
20913 cat >>confdefs.h <<_ACEOF
20914 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20915 _ACEOF
20916
20917
20918 cat >>confdefs.h <<_ACEOF
20919 #define LLVM_HOSTTRIPLE "$host"
20920 _ACEOF
20921
20922
20923 cat >>confdefs.h <<_ACEOF
20924 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20925 _ACEOF
20926
20927
20928 if test "$BINDINGS_TO_BUILD" = auto ; then
20929   BINDINGS_TO_BUILD=""
20930   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20931     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20932   fi
20933 fi
20934 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20935
20936
20937 ALL_BINDINGS=ocaml
20938
20939
20940 binding_prereqs_failed=0
20941 for a_binding in $BINDINGS_TO_BUILD ; do
20942   case "$a_binding" in
20943   ocaml)
20944     if test "x$OCAMLC" = x ; then
20945       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20946 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20947       binding_prereqs_failed=1
20948     fi
20949     if test "x$OCAMLDEP" = x ; then
20950       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20951 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20952       binding_prereqs_failed=1
20953     fi
20954     if test "x$OCAMLOPT" = x ; then
20955       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20956 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20957           fi
20958     if test "x$with_ocaml_libdir" != xauto ; then
20959       OCAML_LIBDIR=$with_ocaml_libdir
20960
20961     else
20962       ocaml_stdlib="`"$OCAMLC" -where`"
20963       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20964       then
20965         # ocaml stdlib is beneath our prefix; use stdlib
20966         OCAML_LIBDIR=$ocaml_stdlib
20967
20968       else
20969         # ocaml stdlib is outside our prefix; use libdir/ocaml
20970         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20971
20972       fi
20973     fi
20974     ;;
20975   esac
20976 done
20977 if test "$binding_prereqs_failed" = 1 ; then
20978   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20979 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20980    { (exit 1); exit 1; }; }
20981 fi
20982
20983 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20984 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20985 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20986   echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988    ac_ext=cpp
20989 ac_cpp='$CXXCPP $CPPFLAGS'
20990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20993
20994   oldcxxflags="$CXXFLAGS"
20995   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20996   cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21003 int
21004 main ()
21005 {
21006 X<int>().f();
21007   ;
21008   return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015   *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018   (eval "$ac_compile") 2>conftest.er1
21019   ac_status=$?
21020   grep -v '^ *+' conftest.er1 >conftest.err
21021   rm -f conftest.er1
21022   cat conftest.err >&5
21023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); } &&
21025          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21026   { (case "(($ac_try" in
21027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028   *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031   (eval "$ac_try") 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; } &&
21035          { ac_try='test -s conftest.$ac_objext'
21036   { (case "(($ac_try" in
21037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038   *) ac_try_echo=$ac_try;;
21039 esac
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041   (eval "$ac_try") 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; }; then
21045   llvm_cv_cxx_visibility_inlines_hidden=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050         llvm_cv_cxx_visibility_inlines_hidden=no
21051 fi
21052
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054   CXXFLAGS="$oldcxxflags"
21055   ac_ext=c
21056 ac_cpp='$CPP $CPPFLAGS'
21057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21060
21061
21062 fi
21063 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21064 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21065 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21066   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21067
21068 else
21069   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21070
21071 fi
21072
21073
21074 if test "$llvm_cv_link_use_r" = "yes" ; then
21075   RPATH="-Wl,-R"
21076 else
21077   RPATH="-Wl,-rpath"
21078 fi
21079
21080
21081 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21082   RDYNAMIC="-Wl,-export-dynamic"
21083 else
21084   RDYNAMIC=""
21085 fi
21086
21087
21088
21089 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21090
21091
21092
21093
21094
21095
21096 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21097
21098 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21099
21100 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21101
21102 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21103
21104 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21105
21106
21107 ac_config_files="$ac_config_files Makefile.config"
21108
21109
21110 ac_config_files="$ac_config_files llvm.spec"
21111
21112
21113 ac_config_files="$ac_config_files docs/doxygen.cfg"
21114
21115
21116 if test "${clang_src_root}" = ""; then
21117   clang_src_root="$srcdir/tools/clang"
21118 fi
21119 if test -f ${clang_src_root}/README.txt; then
21120     configh="include/clang/Config/config.h"
21121   doxy="docs/doxygen.cfg"
21122   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21123
21124   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21125
21126 fi
21127
21128 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21129
21130
21131 test "x$program_prefix" = "xNONE" && program_prefix=""
21132
21133
21134
21135 ac_config_commands="$ac_config_commands setup"
21136
21137 ac_config_commands="$ac_config_commands Makefile"
21138
21139
21140 ac_config_commands="$ac_config_commands Makefile.common"
21141
21142
21143 ac_config_commands="$ac_config_commands examples/Makefile"
21144
21145
21146 ac_config_commands="$ac_config_commands lib/Makefile"
21147
21148
21149 ac_config_commands="$ac_config_commands runtime/Makefile"
21150
21151
21152 ac_config_commands="$ac_config_commands test/Makefile"
21153
21154
21155 ac_config_commands="$ac_config_commands test/Makefile.tests"
21156
21157
21158 ac_config_commands="$ac_config_commands unittests/Makefile"
21159
21160
21161 ac_config_commands="$ac_config_commands tools/Makefile"
21162
21163
21164 ac_config_commands="$ac_config_commands utils/Makefile"
21165
21166
21167 ac_config_commands="$ac_config_commands projects/Makefile"
21168
21169
21170 ac_config_commands="$ac_config_commands bindings/Makefile"
21171
21172
21173 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21174
21175
21176
21177 cat >confcache <<\_ACEOF
21178 # This file is a shell script that caches the results of configure
21179 # tests run on this system so they can be shared between configure
21180 # scripts and configure runs, see configure's option --config-cache.
21181 # It is not useful on other systems.  If it contains results you don't
21182 # want to keep, you may remove or edit it.
21183 #
21184 # config.status only pays attention to the cache file if you give it
21185 # the --recheck option to rerun configure.
21186 #
21187 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21188 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21189 # following values.
21190
21191 _ACEOF
21192
21193 # The following way of writing the cache mishandles newlines in values,
21194 # but we know of no workaround that is simple, portable, and efficient.
21195 # So, we kill variables containing newlines.
21196 # Ultrix sh set writes to stderr and can't be redirected directly,
21197 # and sets the high bit in the cache file unless we assign to the vars.
21198 (
21199   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21200     eval ac_val=\$$ac_var
21201     case $ac_val in #(
21202     *${as_nl}*)
21203       case $ac_var in #(
21204       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21205 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21206       esac
21207       case $ac_var in #(
21208       _ | IFS | as_nl) ;; #(
21209       *) $as_unset $ac_var ;;
21210       esac ;;
21211     esac
21212   done
21213
21214   (set) 2>&1 |
21215     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21216     *${as_nl}ac_space=\ *)
21217       # `set' does not quote correctly, so add quotes (double-quote
21218       # substitution turns \\\\ into \\, and sed turns \\ into \).
21219       sed -n \
21220         "s/'/'\\\\''/g;
21221           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21222       ;; #(
21223     *)
21224       # `set' quotes correctly as required by POSIX, so do not add quotes.
21225       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21226       ;;
21227     esac |
21228     sort
21229 ) |
21230   sed '
21231      /^ac_cv_env_/b end
21232      t clear
21233      :clear
21234      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21235      t end
21236      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21237      :end' >>confcache
21238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21239   if test -w "$cache_file"; then
21240     test "x$cache_file" != "x/dev/null" &&
21241       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21242 echo "$as_me: updating cache $cache_file" >&6;}
21243     cat confcache >$cache_file
21244   else
21245     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21246 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21247   fi
21248 fi
21249 rm -f confcache
21250
21251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21252 # Let make expand exec_prefix.
21253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21254
21255 DEFS=-DHAVE_CONFIG_H
21256
21257 ac_libobjs=
21258 ac_ltlibobjs=
21259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21260   # 1. Remove the extension, and $U if already installed.
21261   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21262   ac_i=`echo "$ac_i" | sed "$ac_script"`
21263   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21264   #    will be set to the directory where LIBOBJS objects are built.
21265   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21266   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21267 done
21268 LIBOBJS=$ac_libobjs
21269
21270 LTLIBOBJS=$ac_ltlibobjs
21271
21272
21273 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21274   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21275 Usually this means the macro was only invoked conditionally." >&5
21276 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21277 Usually this means the macro was only invoked conditionally." >&2;}
21278    { (exit 1); exit 1; }; }
21279 fi
21280 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21281   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21282 Usually this means the macro was only invoked conditionally." >&5
21283 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21284 Usually this means the macro was only invoked conditionally." >&2;}
21285    { (exit 1); exit 1; }; }
21286 fi
21287
21288 : ${CONFIG_STATUS=./config.status}
21289 ac_clean_files_save=$ac_clean_files
21290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21291 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21292 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21293 cat >$CONFIG_STATUS <<_ACEOF
21294 #! $SHELL
21295 # Generated by $as_me.
21296 # Run this file to recreate the current configuration.
21297 # Compiler output produced by configure, useful for debugging
21298 # configure, is in config.log if it exists.
21299
21300 debug=false
21301 ac_cs_recheck=false
21302 ac_cs_silent=false
21303 SHELL=\${CONFIG_SHELL-$SHELL}
21304 _ACEOF
21305
21306 cat >>$CONFIG_STATUS <<\_ACEOF
21307 ## --------------------- ##
21308 ## M4sh Initialization.  ##
21309 ## --------------------- ##
21310
21311 # Be Bourne compatible
21312 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21313   emulate sh
21314   NULLCMD=:
21315   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21316   # is contrary to our usage.  Disable this feature.
21317   alias -g '${1+"$@"}'='"$@"'
21318   setopt NO_GLOB_SUBST
21319 else
21320   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21321 fi
21322 BIN_SH=xpg4; export BIN_SH # for Tru64
21323 DUALCASE=1; export DUALCASE # for MKS sh
21324
21325
21326 # PATH needs CR
21327 # Avoid depending upon Character Ranges.
21328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21331 as_cr_digits='0123456789'
21332 as_cr_alnum=$as_cr_Letters$as_cr_digits
21333
21334 # The user is always right.
21335 if test "${PATH_SEPARATOR+set}" != set; then
21336   echo "#! /bin/sh" >conf$$.sh
21337   echo  "exit 0"   >>conf$$.sh
21338   chmod +x conf$$.sh
21339   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21340     PATH_SEPARATOR=';'
21341   else
21342     PATH_SEPARATOR=:
21343   fi
21344   rm -f conf$$.sh
21345 fi
21346
21347 # Support unset when possible.
21348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21349   as_unset=unset
21350 else
21351   as_unset=false
21352 fi
21353
21354
21355 # IFS
21356 # We need space, tab and new line, in precisely that order.  Quoting is
21357 # there to prevent editors from complaining about space-tab.
21358 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21359 # splitting by setting IFS to empty value.)
21360 as_nl='
21361 '
21362 IFS=" ""        $as_nl"
21363
21364 # Find who we are.  Look in the path if we contain no directory separator.
21365 case $0 in
21366   *[\\/]* ) as_myself=$0 ;;
21367   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21368 for as_dir in $PATH
21369 do
21370   IFS=$as_save_IFS
21371   test -z "$as_dir" && as_dir=.
21372   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21373 done
21374 IFS=$as_save_IFS
21375
21376      ;;
21377 esac
21378 # We did not find ourselves, most probably we were run as `sh COMMAND'
21379 # in which case we are not to be found in the path.
21380 if test "x$as_myself" = x; then
21381   as_myself=$0
21382 fi
21383 if test ! -f "$as_myself"; then
21384   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21385   { (exit 1); exit 1; }
21386 fi
21387
21388 # Work around bugs in pre-3.0 UWIN ksh.
21389 for as_var in ENV MAIL MAILPATH
21390 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21391 done
21392 PS1='$ '
21393 PS2='> '
21394 PS4='+ '
21395
21396 # NLS nuisances.
21397 for as_var in \
21398   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21399   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21400   LC_TELEPHONE LC_TIME
21401 do
21402   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21403     eval $as_var=C; export $as_var
21404   else
21405     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21406   fi
21407 done
21408
21409 # Required to use basename.
21410 if expr a : '\(a\)' >/dev/null 2>&1 &&
21411    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21412   as_expr=expr
21413 else
21414   as_expr=false
21415 fi
21416
21417 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21418   as_basename=basename
21419 else
21420   as_basename=false
21421 fi
21422
21423
21424 # Name of the executable.
21425 as_me=`$as_basename -- "$0" ||
21426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21427          X"$0" : 'X\(//\)$' \| \
21428          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21429 echo X/"$0" |
21430     sed '/^.*\/\([^/][^/]*\)\/*$/{
21431             s//\1/
21432             q
21433           }
21434           /^X\/\(\/\/\)$/{
21435             s//\1/
21436             q
21437           }
21438           /^X\/\(\/\).*/{
21439             s//\1/
21440             q
21441           }
21442           s/.*/./; q'`
21443
21444 # CDPATH.
21445 $as_unset CDPATH
21446
21447
21448
21449   as_lineno_1=$LINENO
21450   as_lineno_2=$LINENO
21451   test "x$as_lineno_1" != "x$as_lineno_2" &&
21452   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21453
21454   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21455   # uniformly replaced by the line number.  The first 'sed' inserts a
21456   # line-number line after each line using $LINENO; the second 'sed'
21457   # does the real work.  The second script uses 'N' to pair each
21458   # line-number line with the line containing $LINENO, and appends
21459   # trailing '-' during substitution so that $LINENO is not a special
21460   # case at line end.
21461   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21462   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21463   # E. McMahon (1931-1989) for sed's syntax.  :-)
21464   sed -n '
21465     p
21466     /[$]LINENO/=
21467   ' <$as_myself |
21468     sed '
21469       s/[$]LINENO.*/&-/
21470       t lineno
21471       b
21472       :lineno
21473       N
21474       :loop
21475       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21476       t loop
21477       s/-\n.*//
21478     ' >$as_me.lineno &&
21479   chmod +x "$as_me.lineno" ||
21480     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21481    { (exit 1); exit 1; }; }
21482
21483   # Don't try to exec as it changes $[0], causing all sort of problems
21484   # (the dirname of $[0] is not the place where we might find the
21485   # original and so on.  Autoconf is especially sensitive to this).
21486   . "./$as_me.lineno"
21487   # Exit status is that of the last command.
21488   exit
21489 }
21490
21491
21492 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21493   as_dirname=dirname
21494 else
21495   as_dirname=false
21496 fi
21497
21498 ECHO_C= ECHO_N= ECHO_T=
21499 case `echo -n x` in
21500 -n*)
21501   case `echo 'x\c'` in
21502   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21503   *)   ECHO_C='\c';;
21504   esac;;
21505 *)
21506   ECHO_N='-n';;
21507 esac
21508
21509 if expr a : '\(a\)' >/dev/null 2>&1 &&
21510    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21511   as_expr=expr
21512 else
21513   as_expr=false
21514 fi
21515
21516 rm -f conf$$ conf$$.exe conf$$.file
21517 if test -d conf$$.dir; then
21518   rm -f conf$$.dir/conf$$.file
21519 else
21520   rm -f conf$$.dir
21521   mkdir conf$$.dir
21522 fi
21523 echo >conf$$.file
21524 if ln -s conf$$.file conf$$ 2>/dev/null; then
21525   as_ln_s='ln -s'
21526   # ... but there are two gotchas:
21527   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21528   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21529   # In both cases, we have to default to `cp -p'.
21530   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21531     as_ln_s='cp -p'
21532 elif ln conf$$.file conf$$ 2>/dev/null; then
21533   as_ln_s=ln
21534 else
21535   as_ln_s='cp -p'
21536 fi
21537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21538 rmdir conf$$.dir 2>/dev/null
21539
21540 if mkdir -p . 2>/dev/null; then
21541   as_mkdir_p=:
21542 else
21543   test -d ./-p && rmdir ./-p
21544   as_mkdir_p=false
21545 fi
21546
21547 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21548 # systems may use methods other than mode bits to determine executability.
21549 cat >conf$$.file <<_ASEOF
21550 #! /bin/sh
21551 exit 0
21552 _ASEOF
21553 chmod +x conf$$.file
21554 if test -x conf$$.file >/dev/null 2>&1; then
21555   as_executable_p="test -x"
21556 else
21557   as_executable_p=:
21558 fi
21559 rm -f conf$$.file
21560
21561 # Sed expression to map a string onto a valid CPP name.
21562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21563
21564 # Sed expression to map a string onto a valid variable name.
21565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21566
21567
21568 exec 6>&1
21569
21570 # Save the log message, to keep $[0] and so on meaningful, and to
21571 # report actual input values of CONFIG_FILES etc. instead of their
21572 # values after options handling.
21573 ac_log="
21574 This file was extended by LLVM $as_me 3.2svn, which was
21575 generated by GNU Autoconf 2.60.  Invocation command line was
21576
21577   CONFIG_FILES    = $CONFIG_FILES
21578   CONFIG_HEADERS  = $CONFIG_HEADERS
21579   CONFIG_LINKS    = $CONFIG_LINKS
21580   CONFIG_COMMANDS = $CONFIG_COMMANDS
21581   $ $0 $@
21582
21583 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21584 "
21585
21586 _ACEOF
21587
21588 cat >>$CONFIG_STATUS <<_ACEOF
21589 # Files that config.status was made for.
21590 config_files="$ac_config_files"
21591 config_headers="$ac_config_headers"
21592 config_commands="$ac_config_commands"
21593
21594 _ACEOF
21595
21596 cat >>$CONFIG_STATUS <<\_ACEOF
21597 ac_cs_usage="\
21598 \`$as_me' instantiates files from templates according to the
21599 current configuration.
21600
21601 Usage: $0 [OPTIONS] [FILE]...
21602
21603   -h, --help       print this help, then exit
21604   -V, --version    print version number, then exit
21605   -q, --quiet      do not print progress messages
21606   -d, --debug      don't remove temporary files
21607       --recheck    update $as_me by reconfiguring in the same conditions
21608   --file=FILE[:TEMPLATE]
21609                    instantiate the configuration file FILE
21610   --header=FILE[:TEMPLATE]
21611                    instantiate the configuration header FILE
21612
21613 Configuration files:
21614 $config_files
21615
21616 Configuration headers:
21617 $config_headers
21618
21619 Configuration commands:
21620 $config_commands
21621
21622 Report bugs to <bug-autoconf@gnu.org>."
21623
21624 _ACEOF
21625 cat >>$CONFIG_STATUS <<_ACEOF
21626 ac_cs_version="\\
21627 LLVM config.status 3.2svn
21628 configured by $0, generated by GNU Autoconf 2.60,
21629   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21630
21631 Copyright (C) 2006 Free Software Foundation, Inc.
21632 This config.status script is free software; the Free Software Foundation
21633 gives unlimited permission to copy, distribute and modify it."
21634
21635 ac_pwd='$ac_pwd'
21636 srcdir='$srcdir'
21637 INSTALL='$INSTALL'
21638 _ACEOF
21639
21640 cat >>$CONFIG_STATUS <<\_ACEOF
21641 # If no file are specified by the user, then we need to provide default
21642 # value.  By we need to know if files were specified by the user.
21643 ac_need_defaults=:
21644 while test $# != 0
21645 do
21646   case $1 in
21647   --*=*)
21648     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21649     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21650     ac_shift=:
21651     ;;
21652   *)
21653     ac_option=$1
21654     ac_optarg=$2
21655     ac_shift=shift
21656     ;;
21657   esac
21658
21659   case $ac_option in
21660   # Handling of the options.
21661   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21662     ac_cs_recheck=: ;;
21663   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21664     echo "$ac_cs_version"; exit ;;
21665   --debug | --debu | --deb | --de | --d | -d )
21666     debug=: ;;
21667   --file | --fil | --fi | --f )
21668     $ac_shift
21669     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21670     ac_need_defaults=false;;
21671   --header | --heade | --head | --hea )
21672     $ac_shift
21673     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21674     ac_need_defaults=false;;
21675   --he | --h)
21676     # Conflict between --help and --header
21677     { echo "$as_me: error: ambiguous option: $1
21678 Try \`$0 --help' for more information." >&2
21679    { (exit 1); exit 1; }; };;
21680   --help | --hel | -h )
21681     echo "$ac_cs_usage"; exit ;;
21682   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21683   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21684     ac_cs_silent=: ;;
21685
21686   # This is an error.
21687   -*) { echo "$as_me: error: unrecognized option: $1
21688 Try \`$0 --help' for more information." >&2
21689    { (exit 1); exit 1; }; } ;;
21690
21691   *) ac_config_targets="$ac_config_targets $1"
21692      ac_need_defaults=false ;;
21693
21694   esac
21695   shift
21696 done
21697
21698 ac_configure_extra_args=
21699
21700 if $ac_cs_silent; then
21701   exec 6>/dev/null
21702   ac_configure_extra_args="$ac_configure_extra_args --silent"
21703 fi
21704
21705 _ACEOF
21706 cat >>$CONFIG_STATUS <<_ACEOF
21707 if \$ac_cs_recheck; then
21708   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21709   CONFIG_SHELL=$SHELL
21710   export CONFIG_SHELL
21711   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21712 fi
21713
21714 _ACEOF
21715 cat >>$CONFIG_STATUS <<\_ACEOF
21716 exec 5>>config.log
21717 {
21718   echo
21719   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21720 ## Running $as_me. ##
21721 _ASBOX
21722   echo "$ac_log"
21723 } >&5
21724
21725 _ACEOF
21726 cat >>$CONFIG_STATUS <<_ACEOF
21727 #
21728 # INIT-COMMANDS
21729 #
21730 llvm_src="${srcdir}"
21731
21732 _ACEOF
21733
21734 cat >>$CONFIG_STATUS <<\_ACEOF
21735
21736 # Handling of arguments.
21737 for ac_config_target in $ac_config_targets
21738 do
21739   case $ac_config_target in
21740     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21741     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21742     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21743     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21744     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21745     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21746     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21747     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21748     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21749     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21750     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21751     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21752     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21753     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21754     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21755     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21756     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21757     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21758     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21759     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21760     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21761     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21762     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21763     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21764     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21765     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21766     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21767
21768   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21770    { (exit 1); exit 1; }; };;
21771   esac
21772 done
21773
21774
21775 # If the user did not use the arguments to specify the items to instantiate,
21776 # then the envvar interface is used.  Set only those that are not.
21777 # We use the long form for the default assignment because of an extremely
21778 # bizarre bug on SunOS 4.1.3.
21779 if $ac_need_defaults; then
21780   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21781   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21782   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21783 fi
21784
21785 # Have a temporary directory for convenience.  Make it in the build tree
21786 # simply because there is no reason against having it here, and in addition,
21787 # creating and moving files from /tmp can sometimes cause problems.
21788 # Hook for its removal unless debugging.
21789 # Note that there is a small window in which the directory will not be cleaned:
21790 # after its creation but before its name has been assigned to `$tmp'.
21791 $debug ||
21792 {
21793   tmp=
21794   trap 'exit_status=$?
21795   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21796 ' 0
21797   trap '{ (exit 1); exit 1; }' 1 2 13 15
21798 }
21799 # Create a (secure) tmp directory for tmp files.
21800
21801 {
21802   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21803   test -n "$tmp" && test -d "$tmp"
21804 }  ||
21805 {
21806   tmp=./conf$$-$RANDOM
21807   (umask 077 && mkdir "$tmp")
21808 } ||
21809 {
21810    echo "$me: cannot create a temporary directory in ." >&2
21811    { (exit 1); exit 1; }
21812 }
21813
21814 #
21815 # Set up the sed scripts for CONFIG_FILES section.
21816 #
21817
21818 # No need to generate the scripts if there are no CONFIG_FILES.
21819 # This happens for instance when ./config.status config.h
21820 if test -n "$CONFIG_FILES"; then
21821
21822 _ACEOF
21823
21824
21825
21826 ac_delim='%!_!# '
21827 for ac_last_try in false false false false false :; do
21828   cat >conf$$subs.sed <<_ACEOF
21829 SHELL!$SHELL$ac_delim
21830 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21831 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21832 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21833 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21834 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21835 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21836 exec_prefix!$exec_prefix$ac_delim
21837 prefix!$prefix$ac_delim
21838 program_transform_name!$program_transform_name$ac_delim
21839 bindir!$bindir$ac_delim
21840 sbindir!$sbindir$ac_delim
21841 libexecdir!$libexecdir$ac_delim
21842 datarootdir!$datarootdir$ac_delim
21843 datadir!$datadir$ac_delim
21844 sysconfdir!$sysconfdir$ac_delim
21845 sharedstatedir!$sharedstatedir$ac_delim
21846 localstatedir!$localstatedir$ac_delim
21847 includedir!$includedir$ac_delim
21848 oldincludedir!$oldincludedir$ac_delim
21849 docdir!$docdir$ac_delim
21850 infodir!$infodir$ac_delim
21851 htmldir!$htmldir$ac_delim
21852 dvidir!$dvidir$ac_delim
21853 pdfdir!$pdfdir$ac_delim
21854 psdir!$psdir$ac_delim
21855 libdir!$libdir$ac_delim
21856 localedir!$localedir$ac_delim
21857 mandir!$mandir$ac_delim
21858 DEFS!$DEFS$ac_delim
21859 ECHO_C!$ECHO_C$ac_delim
21860 ECHO_N!$ECHO_N$ac_delim
21861 ECHO_T!$ECHO_T$ac_delim
21862 LIBS!$LIBS$ac_delim
21863 build_alias!$build_alias$ac_delim
21864 host_alias!$host_alias$ac_delim
21865 target_alias!$target_alias$ac_delim
21866 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21867 CC!$CC$ac_delim
21868 CFLAGS!$CFLAGS$ac_delim
21869 LDFLAGS!$LDFLAGS$ac_delim
21870 CPPFLAGS!$CPPFLAGS$ac_delim
21871 ac_ct_CC!$ac_ct_CC$ac_delim
21872 EXEEXT!$EXEEXT$ac_delim
21873 OBJEXT!$OBJEXT$ac_delim
21874 CXX!$CXX$ac_delim
21875 CXXFLAGS!$CXXFLAGS$ac_delim
21876 ac_ct_CXX!$ac_ct_CXX$ac_delim
21877 CPP!$CPP$ac_delim
21878 subdirs!$subdirs$ac_delim
21879 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21880 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21881 build!$build$ac_delim
21882 build_cpu!$build_cpu$ac_delim
21883 build_vendor!$build_vendor$ac_delim
21884 build_os!$build_os$ac_delim
21885 host!$host$ac_delim
21886 host_cpu!$host_cpu$ac_delim
21887 host_vendor!$host_vendor$ac_delim
21888 host_os!$host_os$ac_delim
21889 target!$target$ac_delim
21890 target_cpu!$target_cpu$ac_delim
21891 target_vendor!$target_vendor$ac_delim
21892 target_os!$target_os$ac_delim
21893 OS!$OS$ac_delim
21894 HOST_OS!$HOST_OS$ac_delim
21895 TARGET_OS!$TARGET_OS$ac_delim
21896 LINKALL!$LINKALL$ac_delim
21897 NOLINKALL!$NOLINKALL$ac_delim
21898 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21899 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21900 ARCH!$ARCH$ac_delim
21901 HOST_ARCH!$HOST_ARCH$ac_delim
21902 ENDIAN!$ENDIAN$ac_delim
21903 GREP!$GREP$ac_delim
21904 EGREP!$EGREP$ac_delim
21905 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21906 BUILD_CC!$BUILD_CC$ac_delim
21907 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21908 BUILD_CXX!$BUILD_CXX$ac_delim
21909 CVSBUILD!$CVSBUILD$ac_delim
21910 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21911 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21912 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21913 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21914 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21915 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21916 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21917 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21918 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21919 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21920 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
21921 JIT!$JIT$ac_delim
21922 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21923 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21924 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21925 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21926 _ACEOF
21927
21928   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21929     break
21930   elif $ac_last_try; then
21931     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21932 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21933    { (exit 1); exit 1; }; }
21934   else
21935     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21936   fi
21937 done
21938
21939 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21940 if test -n "$ac_eof"; then
21941   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21942   ac_eof=`expr $ac_eof + 1`
21943 fi
21944
21945 cat >>$CONFIG_STATUS <<_ACEOF
21946 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21948 _ACEOF
21949 sed '
21950 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21951 s/^/s,@/; s/!/@,|#_!!_#|/
21952 :n
21953 t n
21954 s/'"$ac_delim"'$/,g/; t
21955 s/$/\\/; p
21956 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21957 ' >>$CONFIG_STATUS <conf$$subs.sed
21958 rm -f conf$$subs.sed
21959 cat >>$CONFIG_STATUS <<_ACEOF
21960 CEOF$ac_eof
21961 _ACEOF
21962
21963
21964 ac_delim='%!_!# '
21965 for ac_last_try in false false false false false :; do
21966   cat >conf$$subs.sed <<_ACEOF
21967 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21968 ENABLE_PIC!$ENABLE_PIC$ac_delim
21969 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21970 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21971 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21972 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21973 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21974 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21975 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21976 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21977 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21978 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21979 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21980 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21981 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21982 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21983 NM!$NM$ac_delim
21984 ifGNUmake!$ifGNUmake$ac_delim
21985 LN_S!$LN_S$ac_delim
21986 CMP!$CMP$ac_delim
21987 CP!$CP$ac_delim
21988 DATE!$DATE$ac_delim
21989 FIND!$FIND$ac_delim
21990 MKDIR!$MKDIR$ac_delim
21991 MV!$MV$ac_delim
21992 RANLIB!$RANLIB$ac_delim
21993 AR!$AR$ac_delim
21994 RM!$RM$ac_delim
21995 SED!$SED$ac_delim
21996 TAR!$TAR$ac_delim
21997 BINPWD!$BINPWD$ac_delim
21998 GRAPHVIZ!$GRAPHVIZ$ac_delim
21999 DOT!$DOT$ac_delim
22000 FDP!$FDP$ac_delim
22001 NEATO!$NEATO$ac_delim
22002 TWOPI!$TWOPI$ac_delim
22003 CIRCO!$CIRCO$ac_delim
22004 GV!$GV$ac_delim
22005 DOTTY!$DOTTY$ac_delim
22006 XDOT_PY!$XDOT_PY$ac_delim
22007 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22008 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22009 INSTALL_DATA!$INSTALL_DATA$ac_delim
22010 BZIP2!$BZIP2$ac_delim
22011 CAT!$CAT$ac_delim
22012 DOXYGEN!$DOXYGEN$ac_delim
22013 GROFF!$GROFF$ac_delim
22014 GZIPBIN!$GZIPBIN$ac_delim
22015 PDFROFF!$PDFROFF$ac_delim
22016 ZIP!$ZIP$ac_delim
22017 OCAMLC!$OCAMLC$ac_delim
22018 OCAMLOPT!$OCAMLOPT$ac_delim
22019 OCAMLDEP!$OCAMLDEP$ac_delim
22020 OCAMLDOC!$OCAMLDOC$ac_delim
22021 GAS!$GAS$ac_delim
22022 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22023 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22024 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22025 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22026 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22027 LIBADD_DL!$LIBADD_DL$ac_delim
22028 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22029 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22030 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22031 USE_UDIS86!$USE_UDIS86$ac_delim
22032 USE_OPROFILE!$USE_OPROFILE$ac_delim
22033 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22034 XML2CONFIG!$XML2CONFIG$ac_delim
22035 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22036 LIBXML2_INC!$LIBXML2_INC$ac_delim
22037 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22038 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22039 MMAP_FILE!$MMAP_FILE$ac_delim
22040 SHLIBEXT!$SHLIBEXT$ac_delim
22041 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22042 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22043 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22044 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22045 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22046 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22047 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22048 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22049 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22050 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22051 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22052 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22053 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22054 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22055 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22056 RPATH!$RPATH$ac_delim
22057 RDYNAMIC!$RDYNAMIC$ac_delim
22058 program_prefix!$program_prefix$ac_delim
22059 LIBOBJS!$LIBOBJS$ac_delim
22060 LTLIBOBJS!$LTLIBOBJS$ac_delim
22061 _ACEOF
22062
22063   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
22064     break
22065   elif $ac_last_try; then
22066     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22067 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22068    { (exit 1); exit 1; }; }
22069   else
22070     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22071   fi
22072 done
22073
22074 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22075 if test -n "$ac_eof"; then
22076   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22077   ac_eof=`expr $ac_eof + 1`
22078 fi
22079
22080 cat >>$CONFIG_STATUS <<_ACEOF
22081 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22083 _ACEOF
22084 sed '
22085 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22086 s/^/s,@/; s/!/@,|#_!!_#|/
22087 :n
22088 t n
22089 s/'"$ac_delim"'$/,g/; t
22090 s/$/\\/; p
22091 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22092 ' >>$CONFIG_STATUS <conf$$subs.sed
22093 rm -f conf$$subs.sed
22094 cat >>$CONFIG_STATUS <<_ACEOF
22095 :end
22096 s/|#_!!_#|//g
22097 CEOF$ac_eof
22098 _ACEOF
22099
22100
22101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22103 # trailing colons and then remove the whole line if VPATH becomes empty
22104 # (actually we leave an empty line to preserve line numbers).
22105 if test "x$srcdir" = x.; then
22106   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22107 s/:*\$(srcdir):*/:/
22108 s/:*\${srcdir}:*/:/
22109 s/:*@srcdir@:*/:/
22110 s/^\([^=]*=[     ]*\):*/\1/
22111 s/:*$//
22112 s/^[^=]*=[       ]*$//
22113 }'
22114 fi
22115
22116 cat >>$CONFIG_STATUS <<\_ACEOF
22117 fi # test -n "$CONFIG_FILES"
22118
22119
22120 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22121 do
22122   case $ac_tag in
22123   :[FHLC]) ac_mode=$ac_tag; continue;;
22124   esac
22125   case $ac_mode$ac_tag in
22126   :[FHL]*:*);;
22127   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22128 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22129    { (exit 1); exit 1; }; };;
22130   :[FH]-) ac_tag=-:-;;
22131   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22132   esac
22133   ac_save_IFS=$IFS
22134   IFS=:
22135   set x $ac_tag
22136   IFS=$ac_save_IFS
22137   shift
22138   ac_file=$1
22139   shift
22140
22141   case $ac_mode in
22142   :L) ac_source=$1;;
22143   :[FH])
22144     ac_file_inputs=
22145     for ac_f
22146     do
22147       case $ac_f in
22148       -) ac_f="$tmp/stdin";;
22149       *) # Look for the file first in the build tree, then in the source tree
22150          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22151          # because $ac_f cannot contain `:'.
22152          test -f "$ac_f" ||
22153            case $ac_f in
22154            [\\/$]*) false;;
22155            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22156            esac ||
22157            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22158 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22159    { (exit 1); exit 1; }; };;
22160       esac
22161       ac_file_inputs="$ac_file_inputs $ac_f"
22162     done
22163
22164     # Let's still pretend it is `configure' which instantiates (i.e., don't
22165     # use $as_me), people would be surprised to read:
22166     #    /* config.h.  Generated by config.status.  */
22167     configure_input="Generated from "`IFS=:
22168           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22169     if test x"$ac_file" != x-; then
22170       configure_input="$ac_file.  $configure_input"
22171       { echo "$as_me:$LINENO: creating $ac_file" >&5
22172 echo "$as_me: creating $ac_file" >&6;}
22173     fi
22174
22175     case $ac_tag in
22176     *:-:* | *:-) cat >"$tmp/stdin";;
22177     esac
22178     ;;
22179   esac
22180
22181   ac_dir=`$as_dirname -- "$ac_file" ||
22182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22183          X"$ac_file" : 'X\(//\)[^/]' \| \
22184          X"$ac_file" : 'X\(//\)$' \| \
22185          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22186 echo X"$ac_file" |
22187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22188             s//\1/
22189             q
22190           }
22191           /^X\(\/\/\)[^/].*/{
22192             s//\1/
22193             q
22194           }
22195           /^X\(\/\/\)$/{
22196             s//\1/
22197             q
22198           }
22199           /^X\(\/\).*/{
22200             s//\1/
22201             q
22202           }
22203           s/.*/./; q'`
22204   { as_dir="$ac_dir"
22205   case $as_dir in #(
22206   -*) as_dir=./$as_dir;;
22207   esac
22208   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22209     as_dirs=
22210     while :; do
22211       case $as_dir in #(
22212       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22213       *) as_qdir=$as_dir;;
22214       esac
22215       as_dirs="'$as_qdir' $as_dirs"
22216       as_dir=`$as_dirname -- "$as_dir" ||
22217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22218          X"$as_dir" : 'X\(//\)[^/]' \| \
22219          X"$as_dir" : 'X\(//\)$' \| \
22220          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22221 echo X"$as_dir" |
22222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22223             s//\1/
22224             q
22225           }
22226           /^X\(\/\/\)[^/].*/{
22227             s//\1/
22228             q
22229           }
22230           /^X\(\/\/\)$/{
22231             s//\1/
22232             q
22233           }
22234           /^X\(\/\).*/{
22235             s//\1/
22236             q
22237           }
22238           s/.*/./; q'`
22239       test -d "$as_dir" && break
22240     done
22241     test -z "$as_dirs" || eval "mkdir $as_dirs"
22242   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22243 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22244    { (exit 1); exit 1; }; }; }
22245   ac_builddir=.
22246
22247 case "$ac_dir" in
22248 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22249 *)
22250   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22251   # A ".." for each directory in $ac_dir_suffix.
22252   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22253   case $ac_top_builddir_sub in
22254   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22255   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22256   esac ;;
22257 esac
22258 ac_abs_top_builddir=$ac_pwd
22259 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22260 # for backward compatibility:
22261 ac_top_builddir=$ac_top_build_prefix
22262
22263 case $srcdir in
22264   .)  # We are building in place.
22265     ac_srcdir=.
22266     ac_top_srcdir=$ac_top_builddir_sub
22267     ac_abs_top_srcdir=$ac_pwd ;;
22268   [\\/]* | ?:[\\/]* )  # Absolute name.
22269     ac_srcdir=$srcdir$ac_dir_suffix;
22270     ac_top_srcdir=$srcdir
22271     ac_abs_top_srcdir=$srcdir ;;
22272   *) # Relative name.
22273     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22274     ac_top_srcdir=$ac_top_build_prefix$srcdir
22275     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22276 esac
22277 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22278
22279
22280   case $ac_mode in
22281   :F)
22282   #
22283   # CONFIG_FILE
22284   #
22285
22286   case $INSTALL in
22287   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22288   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22289   esac
22290 _ACEOF
22291
22292 cat >>$CONFIG_STATUS <<\_ACEOF
22293 # If the template does not know about datarootdir, expand it.
22294 # FIXME: This hack should be removed a few years after 2.60.
22295 ac_datarootdir_hack=; ac_datarootdir_seen=
22296
22297 case `sed -n '/datarootdir/ {
22298   p
22299   q
22300 }
22301 /@datadir@/p
22302 /@docdir@/p
22303 /@infodir@/p
22304 /@localedir@/p
22305 /@mandir@/p
22306 ' $ac_file_inputs` in
22307 *datarootdir*) ac_datarootdir_seen=yes;;
22308 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22309   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22310 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22311 _ACEOF
22312 cat >>$CONFIG_STATUS <<_ACEOF
22313   ac_datarootdir_hack='
22314   s&@datadir@&$datadir&g
22315   s&@docdir@&$docdir&g
22316   s&@infodir@&$infodir&g
22317   s&@localedir@&$localedir&g
22318   s&@mandir@&$mandir&g
22319     s&\\\${datarootdir}&$datarootdir&g' ;;
22320 esac
22321 _ACEOF
22322
22323 # Neutralize VPATH when `$srcdir' = `.'.
22324 # Shell code in configure.ac might set extrasub.
22325 # FIXME: do we really want to maintain this feature?
22326 cat >>$CONFIG_STATUS <<_ACEOF
22327   sed "$ac_vpsub
22328 $extrasub
22329 _ACEOF
22330 cat >>$CONFIG_STATUS <<\_ACEOF
22331 :t
22332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22333 s&@configure_input@&$configure_input&;t t
22334 s&@top_builddir@&$ac_top_builddir_sub&;t t
22335 s&@srcdir@&$ac_srcdir&;t t
22336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22337 s&@top_srcdir@&$ac_top_srcdir&;t t
22338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22339 s&@builddir@&$ac_builddir&;t t
22340 s&@abs_builddir@&$ac_abs_builddir&;t t
22341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22342 s&@INSTALL@&$ac_INSTALL&;t t
22343 $ac_datarootdir_hack
22344 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22345
22346 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22347   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22348   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22349   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22350 which seems to be undefined.  Please make sure it is defined." >&5
22351 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352 which seems to be undefined.  Please make sure it is defined." >&2;}
22353
22354   rm -f "$tmp/stdin"
22355   case $ac_file in
22356   -) cat "$tmp/out"; rm -f "$tmp/out";;
22357   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22358   esac
22359  ;;
22360   :H)
22361   #
22362   # CONFIG_HEADER
22363   #
22364 _ACEOF
22365
22366 # Transform confdefs.h into a sed script `conftest.defines', that
22367 # substitutes the proper values into config.h.in to produce config.h.
22368 rm -f conftest.defines conftest.tail
22369 # First, append a space to every undef/define line, to ease matching.
22370 echo 's/$/ /' >conftest.defines
22371 # Then, protect against being on the right side of a sed subst, or in
22372 # an unquoted here document, in config.status.  If some macros were
22373 # called several times there might be several #defines for the same
22374 # symbol, which is useless.  But do not sort them, since the last
22375 # AC_DEFINE must be honored.
22376 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22377 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22378 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22379 # PARAMS is the parameter list in the macro definition--in most cases, it's
22380 # just an empty string.
22381 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22382 ac_dB='\\)[      (].*,\\1define\\2'
22383 ac_dC=' '
22384 ac_dD=' ,'
22385
22386 uniq confdefs.h |
22387   sed -n '
22388         t rset
22389         :rset
22390         s/^[     ]*#[    ]*define[       ][      ]*//
22391         t ok
22392         d
22393         :ok
22394         s/[\\&,]/\\&/g
22395         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22396         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22397   ' >>conftest.defines
22398
22399 # Remove the space that was appended to ease matching.
22400 # Then replace #undef with comments.  This is necessary, for
22401 # example, in the case of _POSIX_SOURCE, which is predefined and required
22402 # on some systems where configure will not decide to define it.
22403 # (The regexp can be short, since the line contains either #define or #undef.)
22404 echo 's/ $//
22405 s,^[     #]*u.*,/* & */,' >>conftest.defines
22406
22407 # Break up conftest.defines:
22408 ac_max_sed_lines=50
22409
22410 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22411 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22412 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22413 # et cetera.
22414 ac_in='$ac_file_inputs'
22415 ac_out='"$tmp/out1"'
22416 ac_nxt='"$tmp/out2"'
22417
22418 while :
22419 do
22420   # Write a here document:
22421     cat >>$CONFIG_STATUS <<_ACEOF
22422     # First, check the format of the line:
22423     cat >"\$tmp/defines.sed" <<\\CEOF
22424 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22425 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22426 b
22427 :def
22428 _ACEOF
22429   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22430   echo 'CEOF
22431     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22432   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22433   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22434   grep . conftest.tail >/dev/null || break
22435   rm -f conftest.defines
22436   mv conftest.tail conftest.defines
22437 done
22438 rm -f conftest.defines conftest.tail
22439
22440 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22441 cat >>$CONFIG_STATUS <<\_ACEOF
22442   if test x"$ac_file" != x-; then
22443     echo "/* $configure_input  */" >"$tmp/config.h"
22444     cat "$ac_result" >>"$tmp/config.h"
22445     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22446       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22447 echo "$as_me: $ac_file is unchanged" >&6;}
22448     else
22449       rm -f $ac_file
22450       mv "$tmp/config.h" $ac_file
22451     fi
22452   else
22453     echo "/* $configure_input  */"
22454     cat "$ac_result"
22455   fi
22456   rm -f "$tmp/out12"
22457  ;;
22458
22459   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22460 echo "$as_me: executing $ac_file commands" >&6;}
22461  ;;
22462   esac
22463
22464
22465   case $ac_file$ac_mode in
22466     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22467    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22468     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22469    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22470     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22471    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22472     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22473    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22474     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22475    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22476     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22477    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22478     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22479    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22480     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22481    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22482     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22483    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22484     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22485    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22486     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22487    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22488     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22489    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22490     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22491    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22492
22493   esac
22494 done # for ac_tag
22495
22496
22497 { (exit 0); exit 0; }
22498 _ACEOF
22499 chmod +x $CONFIG_STATUS
22500 ac_clean_files=$ac_clean_files_save
22501
22502
22503 # configure is writing to config.log, and then calls config.status.
22504 # config.status does its own redirection, appending to config.log.
22505 # Unfortunately, on DOS this fails, as config.log is still kept open
22506 # by configure, so config.status won't be able to write to it; its
22507 # output is simply discarded.  So we exec the FD to /dev/null,
22508 # effectively closing config.log, so it can be properly (re)opened and
22509 # appended to by config.status.  When coming back to configure, we
22510 # need to make the FD available again.
22511 if test "$no_create" != yes; then
22512   ac_cs_success=:
22513   ac_config_status_args=
22514   test "$silent" = yes &&
22515     ac_config_status_args="$ac_config_status_args --quiet"
22516   exec 5>/dev/null
22517   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22518   exec 5>>config.log
22519   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22520   # would make configure fail if this is the last instruction.
22521   $ac_cs_success || { (exit 1); exit 1; }
22522 fi
22523
22524 #
22525 # CONFIG_SUBDIRS section.
22526 #
22527 if test "$no_recursion" != yes; then
22528
22529   # Remove --cache-file and --srcdir arguments so they do not pile up.
22530   ac_sub_configure_args=
22531   ac_prev=
22532   eval "set x $ac_configure_args"
22533   shift
22534   for ac_arg
22535   do
22536     if test -n "$ac_prev"; then
22537       ac_prev=
22538       continue
22539     fi
22540     case $ac_arg in
22541     -cache-file | --cache-file | --cache-fil | --cache-fi \
22542     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22543       ac_prev=cache_file ;;
22544     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22545     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22546     | --c=*)
22547       ;;
22548     --config-cache | -C)
22549       ;;
22550     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22551       ac_prev=srcdir ;;
22552     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22553       ;;
22554     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22555       ac_prev=prefix ;;
22556     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22557       ;;
22558     *)
22559       case $ac_arg in
22560       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22561       esac
22562       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22563     esac
22564   done
22565
22566   # Always prepend --prefix to ensure using the same prefix
22567   # in subdir configurations.
22568   ac_arg="--prefix=$prefix"
22569   case $ac_arg in
22570   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22571   esac
22572   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22573
22574   ac_popdir=`pwd`
22575   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22576
22577     # Do not complain, so a configure script can configure whichever
22578     # parts of a large source tree are present.
22579     test -d "$srcdir/$ac_dir" || continue
22580
22581     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22582     echo "$as_me:$LINENO: $ac_msg" >&5
22583     echo "$ac_msg" >&6
22584     { as_dir="$ac_dir"
22585   case $as_dir in #(
22586   -*) as_dir=./$as_dir;;
22587   esac
22588   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22589     as_dirs=
22590     while :; do
22591       case $as_dir in #(
22592       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22593       *) as_qdir=$as_dir;;
22594       esac
22595       as_dirs="'$as_qdir' $as_dirs"
22596       as_dir=`$as_dirname -- "$as_dir" ||
22597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22598          X"$as_dir" : 'X\(//\)[^/]' \| \
22599          X"$as_dir" : 'X\(//\)$' \| \
22600          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22601 echo X"$as_dir" |
22602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22603             s//\1/
22604             q
22605           }
22606           /^X\(\/\/\)[^/].*/{
22607             s//\1/
22608             q
22609           }
22610           /^X\(\/\/\)$/{
22611             s//\1/
22612             q
22613           }
22614           /^X\(\/\).*/{
22615             s//\1/
22616             q
22617           }
22618           s/.*/./; q'`
22619       test -d "$as_dir" && break
22620     done
22621     test -z "$as_dirs" || eval "mkdir $as_dirs"
22622   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22623 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22624    { (exit 1); exit 1; }; }; }
22625     ac_builddir=.
22626
22627 case "$ac_dir" in
22628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22629 *)
22630   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22631   # A ".." for each directory in $ac_dir_suffix.
22632   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22633   case $ac_top_builddir_sub in
22634   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22635   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22636   esac ;;
22637 esac
22638 ac_abs_top_builddir=$ac_pwd
22639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22640 # for backward compatibility:
22641 ac_top_builddir=$ac_top_build_prefix
22642
22643 case $srcdir in
22644   .)  # We are building in place.
22645     ac_srcdir=.
22646     ac_top_srcdir=$ac_top_builddir_sub
22647     ac_abs_top_srcdir=$ac_pwd ;;
22648   [\\/]* | ?:[\\/]* )  # Absolute name.
22649     ac_srcdir=$srcdir$ac_dir_suffix;
22650     ac_top_srcdir=$srcdir
22651     ac_abs_top_srcdir=$srcdir ;;
22652   *) # Relative name.
22653     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22654     ac_top_srcdir=$ac_top_build_prefix$srcdir
22655     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22656 esac
22657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22658
22659
22660     cd "$ac_dir"
22661
22662     # Check for guested configure; otherwise get Cygnus style configure.
22663     if test -f "$ac_srcdir/configure.gnu"; then
22664       ac_sub_configure=$ac_srcdir/configure.gnu
22665     elif test -f "$ac_srcdir/configure"; then
22666       ac_sub_configure=$ac_srcdir/configure
22667     elif test -f "$ac_srcdir/configure.in"; then
22668       # This should be Cygnus configure.
22669       ac_sub_configure=$ac_aux_dir/configure
22670     else
22671       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22673       ac_sub_configure=
22674     fi
22675
22676     # The recursion is here.
22677     if test -n "$ac_sub_configure"; then
22678       # Make the cache file name correct relative to the subdirectory.
22679       case $cache_file in
22680       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22681       *) # Relative name.
22682         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22683       esac
22684
22685       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22686 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22687       # The eval makes quoting arguments work.
22688       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22689            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22690         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22691 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22692    { (exit 1); exit 1; }; }
22693     fi
22694
22695     cd "$ac_popdir"
22696   done
22697 fi
22698