Support for experimental targets
[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 JIT
697 TARGET_HAS_JIT
698 ENABLE_DOCS
699 ENABLE_DOXYGEN
700 LLVM_ENABLE_THREADS
701 ENABLE_PTHREADS
702 ENABLE_PIC
703 ENABLE_SHARED
704 ENABLE_EMBED_STDCXX
705 ENABLE_TIMESTAMPS
706 TARGETS_TO_BUILD
707 LLVM_ENUM_TARGETS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
711 OPTIMIZE_OPTION
712 EXTRA_OPTIONS
713 EXTRA_LD_OPTIONS
714 CLANG_SRC_ROOT
715 BINUTILS_INCDIR
716 INTERNAL_PREFIX
717 NM
718 ifGNUmake
719 LN_S
720 CMP
721 CP
722 DATE
723 FIND
724 MKDIR
725 MV
726 RANLIB
727 AR
728 RM
729 SED
730 TAR
731 BINPWD
732 GRAPHVIZ
733 DOT
734 FDP
735 NEATO
736 TWOPI
737 CIRCO
738 GV
739 DOTTY
740 XDOT_PY
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 PDFROFF
750 ZIP
751 OCAMLC
752 OCAMLOPT
753 OCAMLDEP
754 OCAMLDOC
755 GAS
756 HAVE_LINK_VERSION_SCRIPT
757 INSTALL_LTDL_TRUE
758 INSTALL_LTDL_FALSE
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
761 LIBADD_DL
762 NO_VARIADIC_MACROS
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
765 USE_UDIS86
766 USE_OPROFILE
767 USE_INTEL_JITEVENTS
768 INTEL_JITEVENTS_INCDIR
769 INTEL_JITEVENTS_LIBDIR
770 XML2CONFIG
771 LIBXML2_LIBS
772 LIBXML2_INC
773 HAVE_PTHREAD
774 HUGE_VAL_SANITY
775 MMAP_FILE
776 SHLIBEXT
777 SHLIBPATH_VAR
778 LLVM_PREFIX
779 LLVM_BINDIR
780 LLVM_LIBDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 ALL_BINDINGS
790 OCAML_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
792 RPATH
793 RDYNAMIC
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-jit            Enable Just In Time Compiling (default is YES)
1412   --enable-docs           Build documents (default is YES)
1413   --enable-doxygen        Build doxygen documentation (default is NO)
1414   --enable-threads        Use threads if available (default is YES)
1415   --enable-pthreads       Use pthreads if available (default is YES)
1416   --enable-pic            Build LLVM with Position Independent Code (default
1417                           is YES)
1418   --enable-shared         Build a shared library and link tools against it
1419                           (default is NO)
1420   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1421                           Win32 DLL (default is NO)
1422   --enable-timestamps     Enable embedding timestamp information in build
1423                           (default is YES)
1424   --enable-targets        Build specific host targets: all or
1425                           target1,target2,... Valid targets are: host, x86,
1426                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1427                           xcore, msp430, nvptx, and cpp (default=all)
1428   --enable-experimental-targets
1429                           Build experimental host targets: disable or
1430                           target1,target2,... (default=disable)
1431   --enable-bindings       Build specific language bindings:
1432                           all,auto,none,{binding-name} (default=auto)
1433   --enable-libffi         Check for the presence of libffi (default is NO)
1434   --enable-ltdl-install   install libltdl
1435
1436 Optional Packages:
1437   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439   --with-optimize-option  Select the compiler options to use for optimized
1440                           builds
1441   --with-extra-options    Specify additional options to compile LLVM with
1442   --with-extra-ld-options Specify additional options to link LLVM with
1443   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1444                           is stdlib)
1445   --with-clang-srcdir     Directory to the out-of-tree Clang source
1446   --with-clang-resource-dir
1447                           Relative directory from the Clang binary for
1448                           resource files
1449   --with-c-include-dirs   Colon separated list of directories clang will
1450                           search for headers
1451   --with-gcc-toolchain    Directory where gcc is installed.
1452   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1453   --with-binutils-include Specify path to binutils/include/ containing
1454                           plugin-api.h file for gold plugin.
1455   --with-bug-report-url   Specify the URL where bug reports should be
1456                           submitted (default=http://llvm.org/bugs/)
1457   --with-internal-prefix  Installation directory for internal files
1458   --with-udis86=<path>    Use udis86 external x86 disassembler library
1459   --with-oprofile=<prefix>
1460                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1461   --with-intel-jitevents=<vtune-amplifier-dir>
1462                           Specify location of run-time support library for
1463                           Intel JIT API
1464                           (default=/opt/intel/vtune_amplifier_xe_2011)
1465
1466 Some influential environment variables:
1467   CC          C compiler command
1468   CFLAGS      C compiler flags
1469   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470               nonstandard directory <lib dir>
1471   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472               you have headers in a nonstandard directory <include dir>
1473   CXX         C++ compiler command
1474   CXXFLAGS    C++ compiler flags
1475   CPP         C preprocessor
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to <http://llvm.org/bugs/>.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486   # If there are subdirs, report their specific --help.
1487   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488     test -d "$ac_dir" || continue
1489     ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1495   # A ".." for each directory in $ac_dir_suffix.
1496   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1497   case $ac_top_builddir_sub in
1498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500   esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508   .)  # We are building in place.
1509     ac_srcdir=.
1510     ac_top_srcdir=$ac_top_builddir_sub
1511     ac_abs_top_srcdir=$ac_pwd ;;
1512   [\\/]* | ?:[\\/]* )  # Absolute name.
1513     ac_srcdir=$srcdir$ac_dir_suffix;
1514     ac_top_srcdir=$srcdir
1515     ac_abs_top_srcdir=$srcdir ;;
1516   *) # Relative name.
1517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518     ac_top_srcdir=$ac_top_build_prefix$srcdir
1519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523     cd "$ac_dir" || { ac_status=$?; continue; }
1524     # Check for guested configure.
1525     if test -f "$ac_srcdir/configure.gnu"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528     elif test -f "$ac_srcdir/configure"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure" --help=recursive
1531     else
1532       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533     fi || ac_status=$?
1534     cd "$ac_pwd" || { ac_status=$?; break; }
1535   done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540   cat <<\_ACEOF
1541 LLVM configure 3.2svn
1542 generated by GNU Autoconf 2.60
1543
1544 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1545 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548
1549 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1550 _ACEOF
1551   exit
1552 fi
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1556
1557 It was created by LLVM $as_me 3.2svn, which was
1558 generated by GNU Autoconf 2.60.  Invocation command line was
1559
1560   $ $0 $@
1561
1562 _ACEOF
1563 exec 5>>config.log
1564 {
1565 cat <<_ASUNAME
1566 ## --------- ##
1567 ## Platform. ##
1568 ## --------- ##
1569
1570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575
1576 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1578
1579 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1580 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1581 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1582 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1583 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1584 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1585 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1586
1587 _ASUNAME
1588
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592   IFS=$as_save_IFS
1593   test -z "$as_dir" && as_dir=.
1594   echo "PATH: $as_dir"
1595 done
1596 IFS=$as_save_IFS
1597
1598 } >&5
1599
1600 cat >&5 <<_ACEOF
1601
1602
1603 ## ----------- ##
1604 ## Core tests. ##
1605 ## ----------- ##
1606
1607 _ACEOF
1608
1609
1610 # Keep a trace of the command line.
1611 # Strip out --no-create and --no-recursion so they do not pile up.
1612 # Strip out --silent because we don't want to record it for future runs.
1613 # Also quote any args containing shell meta-characters.
1614 # Make two passes to allow for proper duplicate-argument suppression.
1615 ac_configure_args=
1616 ac_configure_args0=
1617 ac_configure_args1=
1618 ac_must_keep_next=false
1619 for ac_pass in 1 2
1620 do
1621   for ac_arg
1622   do
1623     case $ac_arg in
1624     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626     | -silent | --silent | --silen | --sile | --sil)
1627       continue ;;
1628     *\'*)
1629       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1630     esac
1631     case $ac_pass in
1632     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1633     2)
1634       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1635       if test $ac_must_keep_next = true; then
1636         ac_must_keep_next=false # Got value, back to normal.
1637       else
1638         case $ac_arg in
1639           *=* | --config-cache | -C | -disable-* | --disable-* \
1640           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642           | -with-* | --with-* | -without-* | --without-* | --x)
1643             case "$ac_configure_args0 " in
1644               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1645             esac
1646             ;;
1647           -* ) ac_must_keep_next=true ;;
1648         esac
1649       fi
1650       ac_configure_args="$ac_configure_args '$ac_arg'"
1651       ;;
1652     esac
1653   done
1654 done
1655 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1657
1658 # When interrupted or exit'd, cleanup temporary files, and complete
1659 # config.log.  We remove comments because anyway the quotes in there
1660 # would cause problems or look ugly.
1661 # WARNING: Use '\'' to represent an apostrophe within the trap.
1662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1663 trap 'exit_status=$?
1664   # Save into config.log some information that might help in debugging.
1665   {
1666     echo
1667
1668     cat <<\_ASBOX
1669 ## ---------------- ##
1670 ## Cache variables. ##
1671 ## ---------------- ##
1672 _ASBOX
1673     echo
1674     # The following way of writing the cache mishandles newlines in values,
1675 (
1676   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677     eval ac_val=\$$ac_var
1678     case $ac_val in #(
1679     *${as_nl}*)
1680       case $ac_var in #(
1681       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1683       esac
1684       case $ac_var in #(
1685       _ | IFS | as_nl) ;; #(
1686       *) $as_unset $ac_var ;;
1687       esac ;;
1688     esac
1689   done
1690   (set) 2>&1 |
1691     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692     *${as_nl}ac_space=\ *)
1693       sed -n \
1694         "s/'\''/'\''\\\\'\'''\''/g;
1695           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696       ;; #(
1697     *)
1698       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699       ;;
1700     esac |
1701     sort
1702 )
1703     echo
1704
1705     cat <<\_ASBOX
1706 ## ----------------- ##
1707 ## Output variables. ##
1708 ## ----------------- ##
1709 _ASBOX
1710     echo
1711     for ac_var in $ac_subst_vars
1712     do
1713       eval ac_val=\$$ac_var
1714       case $ac_val in
1715       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716       esac
1717       echo "$ac_var='\''$ac_val'\''"
1718     done | sort
1719     echo
1720
1721     if test -n "$ac_subst_files"; then
1722       cat <<\_ASBOX
1723 ## ------------------- ##
1724 ## File substitutions. ##
1725 ## ------------------- ##
1726 _ASBOX
1727       echo
1728       for ac_var in $ac_subst_files
1729       do
1730         eval ac_val=\$$ac_var
1731         case $ac_val in
1732         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733         esac
1734         echo "$ac_var='\''$ac_val'\''"
1735       done | sort
1736       echo
1737     fi
1738
1739     if test -s confdefs.h; then
1740       cat <<\_ASBOX
1741 ## ----------- ##
1742 ## confdefs.h. ##
1743 ## ----------- ##
1744 _ASBOX
1745       echo
1746       cat confdefs.h
1747       echo
1748     fi
1749     test "$ac_signal" != 0 &&
1750       echo "$as_me: caught signal $ac_signal"
1751     echo "$as_me: exit $exit_status"
1752   } >&5
1753   rm -f core *.core core.conftest.* &&
1754     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1755     exit $exit_status
1756 ' 0
1757 for ac_signal in 1 2 13 15; do
1758   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1759 done
1760 ac_signal=0
1761
1762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1763 rm -f -r conftest* confdefs.h
1764
1765 # Predefined preprocessor variables.
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_NAME "$PACKAGE_NAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1789 _ACEOF
1790
1791
1792 # Let the site file select an alternate cache file if it wants to.
1793 # Prefer explicitly selected file to automatically selected ones.
1794 if test -n "$CONFIG_SITE"; then
1795   set x "$CONFIG_SITE"
1796 elif test "x$prefix" != xNONE; then
1797   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1798 else
1799   set x "$ac_default_prefix/share/config.site" \
1800         "$ac_default_prefix/etc/config.site"
1801 fi
1802 shift
1803 for ac_site_file
1804 do
1805   if test -r "$ac_site_file"; then
1806     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807 echo "$as_me: loading site script $ac_site_file" >&6;}
1808     sed 's/^/| /' "$ac_site_file" >&5
1809     . "$ac_site_file"
1810   fi
1811 done
1812
1813 if test -r "$cache_file"; then
1814   # Some versions of bash will fail to source /dev/null (special
1815   # files actually), so we avoid doing that.
1816   if test -f "$cache_file"; then
1817     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818 echo "$as_me: loading cache $cache_file" >&6;}
1819     case $cache_file in
1820       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821       *)                      . "./$cache_file";;
1822     esac
1823   fi
1824 else
1825   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826 echo "$as_me: creating cache $cache_file" >&6;}
1827   >$cache_file
1828 fi
1829
1830 # Check that the precious variables saved in the cache have kept the same
1831 # value.
1832 ac_cache_corrupted=false
1833 for ac_var in $ac_precious_vars; do
1834   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835   eval ac_new_set=\$ac_env_${ac_var}_set
1836   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837   eval ac_new_val=\$ac_env_${ac_var}_value
1838   case $ac_old_set,$ac_new_set in
1839     set,)
1840       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1842       ac_cache_corrupted=: ;;
1843     ,set)
1844       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1846       ac_cache_corrupted=: ;;
1847     ,);;
1848     *)
1849       if test "x$ac_old_val" != "x$ac_new_val"; then
1850         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1853 echo "$as_me:   former value:  $ac_old_val" >&2;}
1854         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1855 echo "$as_me:   current value: $ac_new_val" >&2;}
1856         ac_cache_corrupted=:
1857       fi;;
1858   esac
1859   # Pass precious variables to config.status.
1860   if test "$ac_new_set" = set; then
1861     case $ac_new_val in
1862     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1863     *) ac_arg=$ac_var=$ac_new_val ;;
1864     esac
1865     case " $ac_configure_args " in
1866       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1867       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1868     esac
1869   fi
1870 done
1871 if $ac_cache_corrupted; then
1872   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876    { (exit 1); exit 1; }; }
1877 fi
1878
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 ac_ext=c
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908
1909
1910
1911 cat >>confdefs.h <<\_ACEOF
1912 #define LLVM_VERSION_MAJOR 3
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<\_ACEOF
1917 #define LLVM_VERSION_MINOR 2
1918 _ACEOF
1919
1920
1921 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1922
1923
1924
1925
1926
1927
1928
1929 ac_aux_dir=
1930 for ac_dir in autoconf "$srcdir"/autoconf; do
1931   if test -f "$ac_dir/install-sh"; then
1932     ac_aux_dir=$ac_dir
1933     ac_install_sh="$ac_aux_dir/install-sh -c"
1934     break
1935   elif test -f "$ac_dir/install.sh"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/install.sh -c"
1938     break
1939   elif test -f "$ac_dir/shtool"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/shtool install -c"
1942     break
1943   fi
1944 done
1945 if test -z "$ac_aux_dir"; then
1946   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1947 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1948    { (exit 1); exit 1; }; }
1949 fi
1950
1951 # These three variables are undocumented and unsupported,
1952 # and are intended to be withdrawn in a future Autoconf release.
1953 # They can cause serious problems if a builder's source tree is in a directory
1954 # whose full name contains unusual characters.
1955 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1956 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1957 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1958
1959
1960
1961 if test ${srcdir} != "." ; then
1962   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1963     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1964 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1965    { (exit 1); exit 1; }; }
1966   fi
1967 fi
1968
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975   for ac_prog in clang llvm-gcc gcc
1976   do
1977     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   if test -n "$CC"; then
1985   ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990   IFS=$as_save_IFS
1991   test -z "$as_dir" && as_dir=.
1992   for ac_exec_ext in '' $ac_executable_extensions; do
1993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1994     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996     break 2
1997   fi
1998 done
1999 done
2000 IFS=$as_save_IFS
2001
2002 fi
2003 fi
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006   { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2008 else
2009   { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2011 fi
2012
2013
2014     test -n "$CC" && break
2015   done
2016 fi
2017 if test -z "$CC"; then
2018   ac_ct_CC=$CC
2019   for ac_prog in clang llvm-gcc gcc
2020 do
2021   # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   if test -n "$ac_ct_CC"; then
2029   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034   IFS=$as_save_IFS
2035   test -z "$as_dir" && as_dir=.
2036   for ac_exec_ext in '' $ac_executable_extensions; do
2037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038     ac_cv_prog_ac_ct_CC="$ac_prog"
2039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040     break 2
2041   fi
2042 done
2043 done
2044 IFS=$as_save_IFS
2045
2046 fi
2047 fi
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6; }
2052 else
2053   { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2055 fi
2056
2057
2058   test -n "$ac_ct_CC" && break
2059 done
2060
2061   if test "x$ac_ct_CC" = x; then
2062     CC=""
2063   else
2064     case $cross_compiling:$ac_tool_warned in
2065 yes:)
2066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet.  If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&5
2069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet.  If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2072 ac_tool_warned=yes ;;
2073 esac
2074     CC=$ac_ct_CC
2075   fi
2076 fi
2077
2078
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&2;}
2083    { (exit 1); exit 1; }; }
2084
2085 # Provide some information about the compiler.
2086 echo "$as_me:$LINENO: checking for C compiler version" >&5
2087 ac_compiler=`set X $ac_compile; echo $2`
2088 { (ac_try="$ac_compiler --version >&5"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094   (eval "$ac_compiler --version >&5") 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }
2098 { (ac_try="$ac_compiler -v >&5"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_compiler -v >&5") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108 { (ac_try="$ac_compiler -V >&5"
2109 case "(($ac_try" in
2110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111   *) ac_try_echo=$ac_try;;
2112 esac
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114   (eval "$ac_compiler -V >&5") 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }
2118
2119 cat >conftest.$ac_ext <<_ACEOF
2120 /* confdefs.h.  */
2121 _ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h.  */
2125
2126 int
2127 main ()
2128 {
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 ac_clean_files_save=$ac_clean_files
2135 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2136 # Try to create an executable without -o first, disregard a.out.
2137 # It will help us diagnose broken compilers, and finding out an intuition
2138 # of exeext.
2139 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142 #
2143 # List of possible output files, starting from the most likely.
2144 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145 # only as a last resort.  b.out is created by i960 compilers.
2146 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2147 #
2148 # The IRIX 6 linker writes into existing files which may not be
2149 # executable, retaining their permissions.  Remove them first so a
2150 # subsequent execution test works.
2151 ac_rmfiles=
2152 for ac_file in $ac_files
2153 do
2154   case $ac_file in
2155     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2156     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2157   esac
2158 done
2159 rm -f $ac_rmfiles
2160
2161 if { (ac_try="$ac_link_default"
2162 case "(($ac_try" in
2163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164   *) ac_try_echo=$ac_try;;
2165 esac
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167   (eval "$ac_link_default") 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }; then
2171   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2174 # so that the user can short-circuit this test for compilers unknown to
2175 # Autoconf.
2176 for ac_file in $ac_files
2177 do
2178   test -f "$ac_file" || continue
2179   case $ac_file in
2180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2181         ;;
2182     [ab].out )
2183         # We found the default executable, but exeext='' is most
2184         # certainly right.
2185         break;;
2186     *.* )
2187         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2188         then :; else
2189            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190         fi
2191         # We set ac_cv_exeext here because the later test for it is not
2192         # safe: cross compilers may not add the suffix if given an `-o'
2193         # argument, so we may need to know it at that point already.
2194         # Even if this section looks crufty: it has the advantage of
2195         # actually working.
2196         break;;
2197     * )
2198         break;;
2199   esac
2200 done
2201 test "$ac_cv_exeext" = no && ac_cv_exeext=
2202
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211    { (exit 77); exit 77; }; }
2212 fi
2213
2214 ac_exeext=$ac_cv_exeext
2215 { echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6; }
2217
2218 # Check that the compiler produces executables we can run.  If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225   if { ac_try='./$ac_file'
2226   { (case "(($ac_try" in
2227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228   *) ac_try_echo=$ac_try;;
2229 esac
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231   (eval "$ac_try") 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235     cross_compiling=no
2236   else
2237     if test "$cross_compiling" = maybe; then
2238         cross_compiling=yes
2239     else
2240         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246    { (exit 1); exit 1; }; }
2247     fi
2248   fi
2249 fi
2250 { echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6; }
2252
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check that the compiler produces executables we can run.  If not, either
2256 # the compiler is broken, or we cross compile.
2257 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6; }
2261
2262 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264 if { (ac_try="$ac_link"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_link") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2277 # `rm'.
2278 for ac_file in conftest.exe conftest conftest.*; do
2279   test -f "$ac_file" || continue
2280   case $ac_file in
2281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283           break;;
2284     * ) break;;
2285   esac
2286 done
2287 else
2288   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293 fi
2294
2295 rm -f conftest$ac_cv_exeext
2296 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2298
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2301 ac_exeext=$EXEEXT
2302 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304 if test "${ac_cv_objext+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313
2314 int
2315 main ()
2316 {
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.o conftest.obj
2323 if { (ac_try="$ac_compile"
2324 case "(($ac_try" in
2325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326   *) ac_try_echo=$ac_try;;
2327 esac
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329   (eval "$ac_compile") 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; then
2333   for ac_file in conftest.o conftest.obj conftest.*; do
2334   test -f "$ac_file" || continue;
2335   case $ac_file in
2336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2337     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338        break;;
2339   esac
2340 done
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349    { (exit 1); exit 1; }; }
2350 fi
2351
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353 fi
2354 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6; }
2356 OBJEXT=$ac_cv_objext
2357 ac_objext=$OBJEXT
2358 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369
2370 int
2371 main ()
2372 {
2373 #ifndef __GNUC__
2374        choke me
2375 #endif
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (ac_try="$ac_compile"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388   (eval "$ac_compile") 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396   { (case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401   (eval "$ac_try") 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; } &&
2405          { ac_try='test -s conftest.$ac_objext'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   ac_compiler_gnu=yes
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420         ac_compiler_gnu=no
2421 fi
2422
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2425
2426 fi
2427 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429 GCC=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   ac_save_c_werror_flag=$ac_c_werror_flag
2438    ac_c_werror_flag=yes
2439    ac_cv_prog_cc_g=no
2440    CFLAGS="-g"
2441    cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463   (eval "$ac_compile") 2>conftest.er1
2464   ac_status=$?
2465   grep -v '^ *+' conftest.er1 >conftest.err
2466   rm -f conftest.er1
2467   cat conftest.err >&5
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486   (eval "$ac_try") 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   ac_cv_prog_cc_g=yes
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495         CFLAGS=""
2496       cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h.  */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h.  */
2502
2503 int
2504 main ()
2505 {
2506
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (ac_try="$ac_compile"
2513 case "(($ac_try" in
2514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515   *) ac_try_echo=$ac_try;;
2516 esac
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518   (eval "$ac_compile") 2>conftest.er1
2519   ac_status=$?
2520   grep -v '^ *+' conftest.er1 >conftest.err
2521   rm -f conftest.er1
2522   cat conftest.err >&5
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); } &&
2525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526   { (case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_try") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; } &&
2535          { ac_try='test -s conftest.$ac_objext'
2536   { (case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541   (eval "$ac_try") 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545   :
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550         ac_c_werror_flag=$ac_save_c_werror_flag
2551          CFLAGS="-g"
2552          cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (ac_try="$ac_compile"
2569 case "(($ac_try" in
2570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571   *) ac_try_echo=$ac_try;;
2572 esac
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574   (eval "$ac_compile") 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; } &&
2591          { ac_try='test -s conftest.$ac_objext'
2592   { (case "(($ac_try" in
2593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594   *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597   (eval "$ac_try") 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; }; then
2601   ac_cv_prog_cc_g=yes
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606
2607 fi
2608
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 fi
2614
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616    ac_c_werror_flag=$ac_save_c_werror_flag
2617 fi
2618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2620 if test "$ac_test_CFLAGS" = set; then
2621   CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623   if test "$GCC" = yes; then
2624     CFLAGS="-g -O2"
2625   else
2626     CFLAGS="-g"
2627   fi
2628 else
2629   if test "$GCC" = yes; then
2630     CFLAGS="-O2"
2631   else
2632     CFLAGS=
2633   fi
2634 fi
2635 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_cc_c89+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   ac_cv_prog_cc_c89=no
2641 ac_save_CC=$CC
2642 cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648 #include <stdarg.h>
2649 #include <stdio.h>
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2653 struct buf { int x; };
2654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655 static char *e (p, i)
2656      char **p;
2657      int i;
2658 {
2659   return p[i];
2660 }
2661 static char *f (char * (*g) (char **, int), char **p, ...)
2662 {
2663   char *s;
2664   va_list v;
2665   va_start (v,p);
2666   s = g (p, va_arg (v,int));
2667   va_end (v);
2668   return s;
2669 }
2670
2671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2672    function prototypes and stuff, but not '\xHH' hex character constants.
2673    These don't provoke an error unfortunately, instead are silently treated
2674    as 'x'.  The following induces an error, until -std is added to get
2675    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2676    array size at least.  It's necessary to write '\x00'==0 to get something
2677    that's true only with -std.  */
2678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2679
2680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681    inside strings and character constants.  */
2682 #define FOO(x) 'x'
2683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2684
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689 int argc;
2690 char **argv;
2691 int
2692 main ()
2693 {
2694 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2701 do
2702   CC="$ac_save_CC $ac_arg"
2703   rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compile") 2>conftest.er1
2711   ac_status=$?
2712   grep -v '^ *+' conftest.er1 >conftest.err
2713   rm -f conftest.er1
2714   cat conftest.err >&5
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } &&
2717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_try") 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737   ac_cv_prog_cc_c89=$ac_arg
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742
2743 fi
2744
2745 rm -f core conftest.err conftest.$ac_objext
2746   test "x$ac_cv_prog_cc_c89" != "xno" && break
2747 done
2748 rm -f conftest.$ac_ext
2749 CC=$ac_save_CC
2750
2751 fi
2752 # AC_CACHE_VAL
2753 case "x$ac_cv_prog_cc_c89" in
2754   x)
2755     { echo "$as_me:$LINENO: result: none needed" >&5
2756 echo "${ECHO_T}none needed" >&6; } ;;
2757   xno)
2758     { echo "$as_me:$LINENO: result: unsupported" >&5
2759 echo "${ECHO_T}unsupported" >&6; } ;;
2760   *)
2761     CC="$CC $ac_cv_prog_cc_c89"
2762     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2764 esac
2765
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
2773 ac_ext=cpp
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -z "$CXX"; then
2779   if test -n "$CCC"; then
2780     CXX=$CCC
2781   else
2782     if test -n "$ac_tool_prefix"; then
2783   for ac_prog in clang++ llvm-g++ g++
2784   do
2785     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CXX+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -n "$CXX"; then
2793   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 CXX=$ac_cv_prog_CXX
2813 if test -n "$CXX"; then
2814   { echo "$as_me:$LINENO: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6; }
2816 else
2817   { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2819 fi
2820
2821
2822     test -n "$CXX" && break
2823   done
2824 fi
2825 if test -z "$CXX"; then
2826   ac_ct_CXX=$CXX
2827   for ac_prog in clang++ llvm-g++ g++
2828 do
2829   # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   if test -n "$ac_ct_CXX"; then
2837   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844   for ac_exec_ext in '' $ac_executable_extensions; do
2845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_ac_ct_CXX="$ac_prog"
2847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857 if test -n "$ac_ct_CXX"; then
2858   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2860 else
2861   { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2863 fi
2864
2865
2866   test -n "$ac_ct_CXX" && break
2867 done
2868
2869   if test "x$ac_ct_CXX" = x; then
2870     CXX="g++"
2871   else
2872     case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet.  If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet.  If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880 ac_tool_warned=yes ;;
2881 esac
2882     CXX=$ac_ct_CXX
2883   fi
2884 fi
2885
2886   fi
2887 fi
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compiler --version >&5") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler -v >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2912 case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_compiler -V >&5") 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }
2921
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933
2934 int
2935 main ()
2936 {
2937 #ifndef __GNUC__
2938        choke me
2939 #endif
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_compile") 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } &&
2959          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960   { (case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_try") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; } &&
2969          { ac_try='test -s conftest.$ac_objext'
2970   { (case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_try") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979   ac_compiler_gnu=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984         ac_compiler_gnu=no
2985 fi
2986
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2989
2990 fi
2991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993 GXX=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CXXFLAGS=${CXXFLAGS+set}
2995 ac_save_CXXFLAGS=$CXXFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cxx_g+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002    ac_cxx_werror_flag=yes
3003    ac_cv_prog_cxx_g=no
3004    CXXFLAGS="-g"
3005    cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } &&
3034          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; }; then
3054   ac_cv_prog_cxx_g=yes
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059         CXXFLAGS=""
3060       cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compile") 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } &&
3089          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109   :
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3115          CXXFLAGS="-g"
3116          cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compile") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; } &&
3155          { ac_try='test -s conftest.$ac_objext'
3156   { (case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_try") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   ac_cv_prog_cxx_g=yes
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 fi
3178
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181 fi
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184 if test "$ac_test_CXXFLAGS" = set; then
3185   CXXFLAGS=$ac_save_CXXFLAGS
3186 elif test $ac_cv_prog_cxx_g = yes; then
3187   if test "$GXX" = yes; then
3188     CXXFLAGS="-g -O2"
3189   else
3190     CXXFLAGS="-g"
3191   fi
3192 else
3193   if test "$GXX" = yes; then
3194     CXXFLAGS="-O2"
3195   else
3196     CXXFLAGS=
3197   fi
3198 fi
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3212 # On Suns, sometimes $CPP names a directory.
3213 if test -n "$CPP" && test -d "$CPP"; then
3214   CPP=
3215 fi
3216 if test -z "$CPP"; then
3217   if test "${ac_cv_prog_CPP+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220       # Double quotes because CPP needs to be expanded
3221     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3222     do
3223       ac_preproc_ok=false
3224 for ac_c_preproc_warn_flag in '' yes
3225 do
3226   # Use a header file that comes with gcc, so configuring glibc
3227   # with a fresh cross-compiler works.
3228   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229   # <limits.h> exists even on freestanding compilers.
3230   # On the NeXT, cc -E runs the code through the compiler's parser,
3231   # not just through cpp. "Syntax error" is here to catch this case.
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #ifdef __STDC__
3239 # include <limits.h>
3240 #else
3241 # include <assert.h>
3242 #endif
3243                      Syntax error
3244 _ACEOF
3245 if { (ac_try="$ac_cpp conftest.$ac_ext"
3246 case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252   ac_status=$?
3253   grep -v '^ *+' conftest.er1 >conftest.err
3254   rm -f conftest.er1
3255   cat conftest.err >&5
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } >/dev/null; then
3258   if test -s conftest.err; then
3259     ac_cpp_err=$ac_c_preproc_warn_flag
3260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261   else
3262     ac_cpp_err=
3263   fi
3264 else
3265   ac_cpp_err=yes
3266 fi
3267 if test -z "$ac_cpp_err"; then
3268   :
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273   # Broken: fails on valid input.
3274 continue
3275 fi
3276
3277 rm -f conftest.err conftest.$ac_ext
3278
3279   # OK, works on sane cases.  Now check whether nonexistent headers
3280   # can be detected and how.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <ac_nonexistent.h>
3288 _ACEOF
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } >/dev/null; then
3302   if test -s conftest.err; then
3303     ac_cpp_err=$ac_c_preproc_warn_flag
3304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305   else
3306     ac_cpp_err=
3307   fi
3308 else
3309   ac_cpp_err=yes
3310 fi
3311 if test -z "$ac_cpp_err"; then
3312   # Broken: success on invalid input.
3313 continue
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318   # Passes both tests.
3319 ac_preproc_ok=:
3320 break
3321 fi
3322
3323 rm -f conftest.err conftest.$ac_ext
3324
3325 done
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3329   break
3330 fi
3331
3332     done
3333     ac_cv_prog_CPP=$CPP
3334
3335 fi
3336   CPP=$ac_cv_prog_CPP
3337 else
3338   ac_cv_prog_CPP=$CPP
3339 fi
3340 { echo "$as_me:$LINENO: result: $CPP" >&5
3341 echo "${ECHO_T}$CPP" >&6; }
3342 ac_preproc_ok=false
3343 for ac_c_preproc_warn_flag in '' yes
3344 do
3345   # Use a header file that comes with gcc, so configuring glibc
3346   # with a fresh cross-compiler works.
3347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348   # <limits.h> exists even on freestanding compilers.
3349   # On the NeXT, cc -E runs the code through the compiler's parser,
3350   # not just through cpp. "Syntax error" is here to catch this case.
3351   cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357 #ifdef __STDC__
3358 # include <limits.h>
3359 #else
3360 # include <assert.h>
3361 #endif
3362                      Syntax error
3363 _ACEOF
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } >/dev/null; then
3377   if test -s conftest.err; then
3378     ac_cpp_err=$ac_c_preproc_warn_flag
3379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380   else
3381     ac_cpp_err=
3382   fi
3383 else
3384   ac_cpp_err=yes
3385 fi
3386 if test -z "$ac_cpp_err"; then
3387   :
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392   # Broken: fails on valid input.
3393 continue
3394 fi
3395
3396 rm -f conftest.err conftest.$ac_ext
3397
3398   # OK, works on sane cases.  Now check whether nonexistent headers
3399   # can be detected and how.
3400   cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h.  */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h.  */
3406 #include <ac_nonexistent.h>
3407 _ACEOF
3408 if { (ac_try="$ac_cpp conftest.$ac_ext"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } >/dev/null; then
3421   if test -s conftest.err; then
3422     ac_cpp_err=$ac_c_preproc_warn_flag
3423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424   else
3425     ac_cpp_err=
3426   fi
3427 else
3428   ac_cpp_err=yes
3429 fi
3430 if test -z "$ac_cpp_err"; then
3431   # Broken: success on invalid input.
3432 continue
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437   # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448   :
3449 else
3450   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464
3465
3466 if test -d ${srcdir}/projects/llvm-gcc ; then
3467   subdirs="$subdirs projects/llvm-gcc"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/test-suite ; then
3472   subdirs="$subdirs projects/test-suite"
3473
3474 fi
3475
3476 if test -d ${srcdir}/projects/llvm-test ; then
3477   subdirs="$subdirs projects/llvm-test"
3478
3479 fi
3480
3481 if test -d ${srcdir}/projects/poolalloc ; then
3482   subdirs="$subdirs projects/poolalloc"
3483
3484 fi
3485
3486 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3487   subdirs="$subdirs projects/llvm-poolalloc"
3488
3489 fi
3490
3491 for i in `ls ${srcdir}/projects`
3492 do
3493   if test -d ${srcdir}/projects/${i} ; then
3494     case ${i} in
3495       sample)       subdirs="$subdirs projects/sample"
3496     ;;
3497       privbracket)  subdirs="$subdirs projects/privbracket"
3498  ;;
3499       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3500  ;;
3501       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3502 ;;
3503       llvm-java)    subdirs="$subdirs projects/llvm-java"
3504  ;;
3505       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3506    ;;
3507       safecode)     subdirs="$subdirs projects/safecode"
3508  ;;
3509       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3510  ;;
3511       compiler-rt)       ;;
3512       llvm-gcc)       ;;
3513       test-suite)     ;;
3514       llvm-test)      ;;
3515       poolalloc)      ;;
3516       llvm-poolalloc) ;;
3517       *)
3518         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3519 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3520         ;;
3521     esac
3522   fi
3523 done
3524
3525 # Check whether --enable-polly was given.
3526 if test "${enable_polly+set}" = set; then
3527   enableval=$enable_polly;
3528 else
3529   enableval=default
3530 fi
3531
3532 case "$enableval" in
3533   yes) ENABLE_POLLY=1
3534  ;;
3535   no)  ENABLE_POLLY=0
3536  ;;
3537   default) ENABLE_POLLY=1
3538  ;;
3539   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3540 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3541    { (exit 1); exit 1; }; } ;;
3542 esac
3543
3544
3545 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3546   LLVM_HAS_POLLY=1
3547
3548   subdirs="$subdirs tools/polly"
3549
3550 fi
3551
3552
3553 # Make sure we can run config.sub.
3554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3555   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3556 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3557    { (exit 1); exit 1; }; }
3558
3559 { echo "$as_me:$LINENO: checking build system type" >&5
3560 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3561 if test "${ac_cv_build+set}" = set; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   ac_build_alias=$build_alias
3565 test "x$ac_build_alias" = x &&
3566   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567 test "x$ac_build_alias" = x &&
3568   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3569 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3570    { (exit 1); exit 1; }; }
3571 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3572   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3573 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3574    { (exit 1); exit 1; }; }
3575
3576 fi
3577 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3578 echo "${ECHO_T}$ac_cv_build" >&6; }
3579 case $ac_cv_build in
3580 *-*-*) ;;
3581 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3582 echo "$as_me: error: invalid value of canonical build" >&2;}
3583    { (exit 1); exit 1; }; };;
3584 esac
3585 build=$ac_cv_build
3586 ac_save_IFS=$IFS; IFS='-'
3587 set x $ac_cv_build
3588 shift
3589 build_cpu=$1
3590 build_vendor=$2
3591 shift; shift
3592 # Remember, the first character of IFS is used to create $*,
3593 # except with old shells:
3594 build_os=$*
3595 IFS=$ac_save_IFS
3596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3597
3598
3599 { echo "$as_me:$LINENO: checking host system type" >&5
3600 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3601 if test "${ac_cv_host+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   if test "x$host_alias" = x; then
3605   ac_cv_host=$ac_cv_build
3606 else
3607   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3608     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3609 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3610    { (exit 1); exit 1; }; }
3611 fi
3612
3613 fi
3614 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3615 echo "${ECHO_T}$ac_cv_host" >&6; }
3616 case $ac_cv_host in
3617 *-*-*) ;;
3618 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3619 echo "$as_me: error: invalid value of canonical host" >&2;}
3620    { (exit 1); exit 1; }; };;
3621 esac
3622 host=$ac_cv_host
3623 ac_save_IFS=$IFS; IFS='-'
3624 set x $ac_cv_host
3625 shift
3626 host_cpu=$1
3627 host_vendor=$2
3628 shift; shift
3629 # Remember, the first character of IFS is used to create $*,
3630 # except with old shells:
3631 host_os=$*
3632 IFS=$ac_save_IFS
3633 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3634
3635
3636 { echo "$as_me:$LINENO: checking target system type" >&5
3637 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3638 if test "${ac_cv_target+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   if test "x$target_alias" = x; then
3642   ac_cv_target=$ac_cv_host
3643 else
3644   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3645     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3646 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3647    { (exit 1); exit 1; }; }
3648 fi
3649
3650 fi
3651 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3652 echo "${ECHO_T}$ac_cv_target" >&6; }
3653 case $ac_cv_target in
3654 *-*-*) ;;
3655 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3656 echo "$as_me: error: invalid value of canonical target" >&2;}
3657    { (exit 1); exit 1; }; };;
3658 esac
3659 target=$ac_cv_target
3660 ac_save_IFS=$IFS; IFS='-'
3661 set x $ac_cv_target
3662 shift
3663 target_cpu=$1
3664 target_vendor=$2
3665 shift; shift
3666 # Remember, the first character of IFS is used to create $*,
3667 # except with old shells:
3668 target_os=$*
3669 IFS=$ac_save_IFS
3670 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3671
3672
3673 # The aliases save the names the user supplied, while $host etc.
3674 # will get canonicalized.
3675 test -n "$target_alias" &&
3676   test "$program_prefix$program_suffix$program_transform_name" = \
3677     NONENONEs,x,x, &&
3678   program_prefix=${target_alias}-
3679
3680 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3681 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3682 if test "${llvm_cv_os_type+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   case $host in
3686   *-*-aix*)
3687     llvm_cv_link_all_option="-Wl,--whole-archive"
3688     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689     llvm_cv_os_type="AIX"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-irix*)
3692     llvm_cv_link_all_option="-Wl,--whole-archive"
3693     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694     llvm_cv_os_type="IRIX"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-cygwin*)
3697     llvm_cv_link_all_option="-Wl,--whole-archive"
3698     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699     llvm_cv_os_type="Cygwin"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-darwin*)
3702     llvm_cv_link_all_option="-Wl,-all_load"
3703     llvm_cv_no_link_all_option="-Wl,-noall_load"
3704     llvm_cv_os_type="Darwin"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-minix*)
3707     llvm_cv_link_all_option="-Wl,-all_load"
3708     llvm_cv_no_link_all_option="-Wl,-noall_load"
3709     llvm_cv_os_type="Minix"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-freebsd* | *-*-kfreebsd-gnu)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="FreeBSD"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-openbsd*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="OpenBSD"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-netbsd*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="NetBSD"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-dragonfly*)
3727     llvm_cv_link_all_option="-Wl,--whole-archive"
3728     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729     llvm_cv_os_type="DragonFly"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-hpux*)
3732     llvm_cv_link_all_option="-Wl,--whole-archive"
3733     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734     llvm_cv_os_type="HP-UX"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-interix*)
3737     llvm_cv_link_all_option="-Wl,--whole-archive"
3738     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739     llvm_cv_os_type="Interix"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-linux*)
3742     llvm_cv_link_all_option="-Wl,--whole-archive"
3743     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744     llvm_cv_os_type="Linux"
3745     llvm_cv_platform_type="Unix" ;;
3746   *-*-gnu*)
3747     llvm_cv_link_all_option="-Wl,--whole-archive"
3748     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749     llvm_cv_os_type="GNU"
3750     llvm_cv_platform_type="Unix" ;;
3751   *-*-solaris*)
3752     llvm_cv_link_all_option="-Wl,-z,allextract"
3753     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3754     llvm_cv_os_type="SunOS"
3755     llvm_cv_platform_type="Unix" ;;
3756   *-*-auroraux*)
3757     llvm_cv_link_all_option="-Wl,-z,allextract"
3758     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3759     llvm_cv_os_type="AuroraUX"
3760     llvm_cv_platform_type="Unix" ;;
3761   *-*-win32*)
3762     llvm_cv_link_all_option="-Wl,--whole-archive"
3763     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764     llvm_cv_os_type="Win32"
3765     llvm_cv_platform_type="Win32" ;;
3766   *-*-mingw*)
3767     llvm_cv_link_all_option="-Wl,--whole-archive"
3768     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769     llvm_cv_os_type="MingW"
3770     llvm_cv_platform_type="Win32" ;;
3771   *-*-haiku*)
3772     llvm_cv_link_all_option="-Wl,--whole-archive"
3773     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774     llvm_cv_os_type="Haiku"
3775     llvm_cv_platform_type="Unix" ;;
3776   *-unknown-eabi*)
3777     llvm_cv_link_all_option="-Wl,--whole-archive"
3778     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779     llvm_cv_os_type="Freestanding"
3780     llvm_cv_platform_type="Unix" ;;
3781   *-unknown-elf*)
3782     llvm_cv_link_all_option="-Wl,--whole-archive"
3783     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784     llvm_cv_os_type="Freestanding"
3785     llvm_cv_platform_type="Unix" ;;
3786   *)
3787     llvm_cv_link_all_option=""
3788     llvm_cv_no_link_all_option=""
3789     llvm_cv_os_type="Unknown"
3790     llvm_cv_platform_type="Unknown" ;;
3791 esac
3792 fi
3793 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3794 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3795
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3797 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3798 if test "${llvm_cv_target_os_type+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   case $target in
3802   *-*-aix*)
3803     llvm_cv_target_os_type="AIX" ;;
3804   *-*-irix*)
3805     llvm_cv_target_os_type="IRIX" ;;
3806   *-*-cygwin*)
3807     llvm_cv_target_os_type="Cygwin" ;;
3808   *-*-darwin*)
3809     llvm_cv_target_os_type="Darwin" ;;
3810   *-*-minix*)
3811     llvm_cv_target_os_type="Minix" ;;
3812   *-*-freebsd* | *-*-kfreebsd-gnu)
3813     llvm_cv_target_os_type="FreeBSD" ;;
3814   *-*-openbsd*)
3815     llvm_cv_target_os_type="OpenBSD" ;;
3816   *-*-netbsd*)
3817     llvm_cv_target_os_type="NetBSD" ;;
3818   *-*-dragonfly*)
3819     llvm_cv_target_os_type="DragonFly" ;;
3820   *-*-hpux*)
3821     llvm_cv_target_os_type="HP-UX" ;;
3822   *-*-interix*)
3823     llvm_cv_target_os_type="Interix" ;;
3824   *-*-linux*)
3825     llvm_cv_target_os_type="Linux" ;;
3826   *-*-gnu*)
3827     llvm_cv_target_os_type="GNU" ;;
3828   *-*-solaris*)
3829     llvm_cv_target_os_type="SunOS" ;;
3830   *-*-auroraux*)
3831     llvm_cv_target_os_type="AuroraUX" ;;
3832   *-*-win32*)
3833     llvm_cv_target_os_type="Win32" ;;
3834   *-*-mingw*)
3835     llvm_cv_target_os_type="MingW" ;;
3836   *-*-haiku*)
3837     llvm_cv_target_os_type="Haiku" ;;
3838   *-*-rtems*)
3839     llvm_cv_target_os_type="RTEMS" ;;
3840   *-*-nacl*)
3841     llvm_cv_target_os_type="NativeClient" ;;
3842   *-unknown-eabi*)
3843     llvm_cv_target_os_type="Freestanding" ;;
3844   *)
3845     llvm_cv_target_os_type="Unknown" ;;
3846 esac
3847 fi
3848 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3849 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3850
3851 if test "$llvm_cv_os_type" = "Unknown" ; then
3852   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3853 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3854    { (exit 1); exit 1; }; }
3855 fi
3856
3857 OS=$llvm_cv_os_type
3858
3859 HOST_OS=$llvm_cv_os_type
3860
3861 TARGET_OS=$llvm_cv_target_os_type
3862
3863
3864 LINKALL=$llvm_cv_link_all_option
3865
3866 NOLINKALL=$llvm_cv_no_link_all_option
3867
3868
3869 case $llvm_cv_platform_type in
3870   Unix)
3871
3872 cat >>confdefs.h <<\_ACEOF
3873 #define LLVM_ON_UNIX 1
3874 _ACEOF
3875
3876     LLVM_ON_UNIX=1
3877
3878     LLVM_ON_WIN32=0
3879
3880     ;;
3881   Win32)
3882
3883 cat >>confdefs.h <<\_ACEOF
3884 #define LLVM_ON_WIN32 1
3885 _ACEOF
3886
3887     LLVM_ON_UNIX=0
3888
3889     LLVM_ON_WIN32=1
3890
3891     ;;
3892 esac
3893
3894 { echo "$as_me:$LINENO: checking target architecture" >&5
3895 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3896 if test "${llvm_cv_target_arch+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   case $target in
3900   i?86-*)                 llvm_cv_target_arch="x86" ;;
3901   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3902   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3903   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3904   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3905   mips-*)                 llvm_cv_target_arch="Mips" ;;
3906   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3907   xcore-*)                llvm_cv_target_arch="XCore" ;;
3908   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3909   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3910   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3911   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3912   *)                      llvm_cv_target_arch="Unknown" ;;
3913 esac
3914 fi
3915 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3917
3918 if test "$llvm_cv_target_arch" = "Unknown" ; then
3919   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3921 fi
3922
3923 case "$llvm_cv_target_arch" in
3924     x86)     LLVM_NATIVE_ARCH="X86" ;;
3925     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3926     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3927 esac
3928
3929 ARCH=$llvm_cv_target_arch
3930
3931
3932 case $host in
3933   i?86-*)                 host_arch="x86" ;;
3934   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3935   sparc*-*)               host_arch="Sparc" ;;
3936   powerpc*-*)             host_arch="PowerPC" ;;
3937   arm*-*)                 host_arch="ARM" ;;
3938   mips-*)                 host_arch="Mips" ;;
3939   mipsel-*)               host_arch="Mips" ;;
3940   xcore-*)                host_arch="XCore" ;;
3941   msp430-*)               host_arch="MSP430" ;;
3942   hexagon-*)              host_arch="Hexagon" ;;
3943   mblaze-*)               host_arch="MBlaze" ;;
3944   *)                      host_arch="Unknown" ;;
3945 esac
3946
3947 if test "$host_arch" = "Unknown" ; then
3948   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3949 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3950 fi
3951
3952 HOST_ARCH=$host_arch
3953
3954
3955
3956
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975   for ac_prog in grep ggrep; do
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3979     # Check for GNU ac_path_GREP and select it if it is found.
3980   # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3982 *GNU*)
3983   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3984 *)
3985   ac_count=0
3986   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3987   while :
3988   do
3989     cat "conftest.in" "conftest.in" >"conftest.tmp"
3990     mv "conftest.tmp" "conftest.in"
3991     cp "conftest.in" "conftest.nl"
3992     echo 'GREP' >> "conftest.nl"
3993     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995     ac_count=`expr $ac_count + 1`
3996     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997       # Best one so far, save it but keep looking for a better one
3998       ac_cv_path_GREP="$ac_path_GREP"
3999       ac_path_GREP_max=$ac_count
4000     fi
4001     # 10*(2^10) chars as input seems more than enough
4002     test $ac_count -gt 10 && break
4003   done
4004   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 esac
4006
4007
4008     $ac_path_GREP_found && break 3
4009   done
4010 done
4011
4012 done
4013 IFS=$as_save_IFS
4014
4015
4016 fi
4017
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022    { (exit 1); exit 1; }; }
4023 fi
4024
4025 else
4026   ac_cv_path_GREP=$GREP
4027 fi
4028
4029
4030 fi
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033  GREP="$ac_cv_path_GREP"
4034
4035
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042    then ac_cv_path_EGREP="$GREP -E"
4043    else
4044      # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_prog in egrep; do
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4061     # Check for GNU ac_path_EGREP and select it if it is found.
4062   # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4064 *GNU*)
4065   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4066 *)
4067   ac_count=0
4068   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4069   while :
4070   do
4071     cat "conftest.in" "conftest.in" >"conftest.tmp"
4072     mv "conftest.tmp" "conftest.in"
4073     cp "conftest.in" "conftest.nl"
4074     echo 'EGREP' >> "conftest.nl"
4075     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077     ac_count=`expr $ac_count + 1`
4078     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079       # Best one so far, save it but keep looking for a better one
4080       ac_cv_path_EGREP="$ac_path_EGREP"
4081       ac_path_EGREP_max=$ac_count
4082     fi
4083     # 10*(2^10) chars as input seems more than enough
4084     test $ac_count -gt 10 && break
4085   done
4086   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087 esac
4088
4089
4090     $ac_path_EGREP_found && break 3
4091   done
4092 done
4093
4094 done
4095 IFS=$as_save_IFS
4096
4097
4098 fi
4099
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104    { (exit 1); exit 1; }; }
4105 fi
4106
4107 else
4108   ac_cv_path_EGREP=$EGREP
4109 fi
4110
4111
4112    fi
4113 fi
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116  EGREP="$ac_cv_path_EGREP"
4117
4118
4119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4121 if test "${ac_cv_header_stdc+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h.  */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h.  */
4130 #include <stdlib.h>
4131 #include <stdarg.h>
4132 #include <string.h>
4133 #include <float.h>
4134
4135 int
4136 main ()
4137 {
4138
4139   ;
4140   return 0;
4141 }
4142 _ACEOF
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4145 case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150   (eval "$ac_compile") 2>conftest.er1
4151   ac_status=$?
4152   grep -v '^ *+' conftest.er1 >conftest.err
4153   rm -f conftest.er1
4154   cat conftest.err >&5
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); } &&
4157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4158   { (case "(($ac_try" in
4159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160   *) ac_try_echo=$ac_try;;
4161 esac
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163   (eval "$ac_try") 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; } &&
4167          { ac_try='test -s conftest.$ac_objext'
4168   { (case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173   (eval "$ac_try") 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; }; then
4177   ac_cv_header_stdc=yes
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182         ac_cv_header_stdc=no
4183 fi
4184
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186
4187 if test $ac_cv_header_stdc = yes; then
4188   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4189   cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195 #include <string.h>
4196
4197 _ACEOF
4198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4199   $EGREP "memchr" >/dev/null 2>&1; then
4200   :
4201 else
4202   ac_cv_header_stdc=no
4203 fi
4204 rm -f conftest*
4205
4206 fi
4207
4208 if test $ac_cv_header_stdc = yes; then
4209   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4210   cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h.  */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h.  */
4216 #include <stdlib.h>
4217
4218 _ACEOF
4219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4220   $EGREP "free" >/dev/null 2>&1; then
4221   :
4222 else
4223   ac_cv_header_stdc=no
4224 fi
4225 rm -f conftest*
4226
4227 fi
4228
4229 if test $ac_cv_header_stdc = yes; then
4230   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4231   if test "$cross_compiling" = yes; then
4232   :
4233 else
4234   cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240 #include <ctype.h>
4241 #include <stdlib.h>
4242 #if ((' ' & 0x0FF) == 0x020)
4243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4245 #else
4246 # define ISLOWER(c) \
4247                    (('a' <= (c) && (c) <= 'i') \
4248                      || ('j' <= (c) && (c) <= 'r') \
4249                      || ('s' <= (c) && (c) <= 'z'))
4250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251 #endif
4252
4253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4254 int
4255 main ()
4256 {
4257   int i;
4258   for (i = 0; i < 256; i++)
4259     if (XOR (islower (i), ISLOWER (i))
4260         || toupper (i) != TOUPPER (i))
4261       return 2;
4262   return 0;
4263 }
4264 _ACEOF
4265 rm -f conftest$ac_exeext
4266 if { (ac_try="$ac_link"
4267 case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_link") 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276   { (case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_try") 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; }; then
4285   :
4286 else
4287   echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ( exit $ac_status )
4292 ac_cv_header_stdc=no
4293 fi
4294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4295 fi
4296
4297
4298 fi
4299 fi
4300 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4301 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4302 if test $ac_cv_header_stdc = yes; then
4303
4304 cat >>confdefs.h <<\_ACEOF
4305 #define STDC_HEADERS 1
4306 _ACEOF
4307
4308 fi
4309
4310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321                   inttypes.h stdint.h unistd.h
4322 do
4323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 $ac_includes_default
4336
4337 #include <$ac_header>
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346   (eval "$ac_compile") 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354   { (case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_try") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; } &&
4363          { ac_try='test -s conftest.$ac_objext'
4364   { (case "(($ac_try" in
4365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366   *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   eval "$as_ac_Header=yes"
4374 else
4375   echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378         eval "$as_ac_Header=no"
4379 fi
4380
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 ac_res=`eval echo '${'$as_ac_Header'}'`
4384                { echo "$as_me:$LINENO: result: $ac_res" >&5
4385 echo "${ECHO_T}$ac_res" >&6; }
4386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4387   cat >>confdefs.h <<_ACEOF
4388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 _ACEOF
4390
4391 fi
4392
4393 done
4394
4395
4396 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4397 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4398 if test "${ac_cv_c_bigendian+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   # See if sys/param.h defines the BYTE_ORDER macro.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h.  */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h.  */
4408 #include <sys/types.h>
4409 #include <sys/param.h>
4410
4411 int
4412 main ()
4413 {
4414 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4415  bogus endian macros
4416 #endif
4417
4418   ;
4419   return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.$ac_objext
4423 if { (ac_try="$ac_compile"
4424 case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429   (eval "$ac_compile") 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4437   { (case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442   (eval "$ac_try") 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; } &&
4446          { ac_try='test -s conftest.$ac_objext'
4447   { (case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452   (eval "$ac_try") 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; }; then
4456   # It does; now see whether it defined to BIG_ENDIAN or not.
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463 #include <sys/types.h>
4464 #include <sys/param.h>
4465
4466 int
4467 main ()
4468 {
4469 #if BYTE_ORDER != BIG_ENDIAN
4470  not big endian
4471 #endif
4472
4473   ;
4474   return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (ac_try="$ac_compile"
4479 case "(($ac_try" in
4480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481   *) ac_try_echo=$ac_try;;
4482 esac
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484   (eval "$ac_compile") 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } &&
4491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4492   { (case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497   (eval "$ac_try") 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; } &&
4501          { ac_try='test -s conftest.$ac_objext'
4502   { (case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507   (eval "$ac_try") 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   ac_cv_c_bigendian=yes
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516         ac_cv_c_bigendian=no
4517 fi
4518
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 else
4521   echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524         # It does not; compile a test program.
4525 if test "$cross_compiling" = yes; then
4526   # try to guess the endianness by grepping values into an object file
4527   ac_cv_c_bigendian=unknown
4528   cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4535 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4536 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4537 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4538 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4539 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4540 int
4541 main ()
4542 {
4543  _ascii (); _ebcdic ();
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (ac_try="$ac_compile"
4550 case "(($ac_try" in
4551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552   *) ac_try_echo=$ac_try;;
4553 esac
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555   (eval "$ac_compile") 2>conftest.er1
4556   ac_status=$?
4557   grep -v '^ *+' conftest.er1 >conftest.err
4558   rm -f conftest.er1
4559   cat conftest.err >&5
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } &&
4562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4563   { (case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568   (eval "$ac_try") 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; } &&
4572          { ac_try='test -s conftest.$ac_objext'
4573   { (case "(($ac_try" in
4574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575   *) ac_try_echo=$ac_try;;
4576 esac
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578   (eval "$ac_try") 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); }; }; then
4582   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4583   ac_cv_c_bigendian=yes
4584 fi
4585 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4586   if test "$ac_cv_c_bigendian" = unknown; then
4587     ac_cv_c_bigendian=no
4588   else
4589     # finding both strings is unlikely to happen, but who knows?
4590     ac_cv_c_bigendian=unknown
4591   fi
4592 fi
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597
4598 fi
4599
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 else
4602   cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h.  */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h.  */
4608 $ac_includes_default
4609 int
4610 main ()
4611 {
4612
4613   /* Are we little or big endian?  From Harbison&Steele.  */
4614   union
4615   {
4616     long int l;
4617     char c[sizeof (long int)];
4618   } u;
4619   u.l = 1;
4620   return u.c[sizeof (long int) - 1] == 1;
4621
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 rm -f conftest$ac_exeext
4627 if { (ac_try="$ac_link"
4628 case "(($ac_try" in
4629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630   *) ac_try_echo=$ac_try;;
4631 esac
4632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633   (eval "$ac_link") 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4637   { (case "(($ac_try" in
4638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639   *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642   (eval "$ac_try") 2>&5
4643   ac_status=$?
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); }; }; then
4646   ac_cv_c_bigendian=no
4647 else
4648   echo "$as_me: program exited with status $ac_status" >&5
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 ( exit $ac_status )
4653 ac_cv_c_bigendian=yes
4654 fi
4655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4656 fi
4657
4658
4659 fi
4660
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 fi
4663 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4664 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4665 case $ac_cv_c_bigendian in
4666   yes)
4667     ENDIAN=big
4668  ;;
4669   no)
4670     ENDIAN=little
4671  ;;
4672   *)
4673     { { echo "$as_me:$LINENO: error: unknown endianness
4674 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4675 echo "$as_me: error: unknown endianness
4676 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4677    { (exit 1); exit 1; }; } ;;
4678 esac
4679
4680
4681 if test "$cross_compiling" = yes; then
4682   LLVM_CROSS_COMPILING=1
4683
4684
4685 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4686 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4687 if test "${ac_cv_build_exeext+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4691   ac_cv_build_exeext=.exe
4692 else
4693   ac_build_prefix=${build_alias}-
4694
4695   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4696 set dummy ${ac_build_prefix}gcc; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   if test -n "$BUILD_CC"; then
4703   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710   for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 BUILD_CC=$ac_cv_prog_BUILD_CC
4723 if test -n "$BUILD_CC"; then
4724   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4725 echo "${ECHO_T}$BUILD_CC" >&6; }
4726 else
4727   { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4729 fi
4730
4731
4732   if test -z "$BUILD_CC"; then
4733      # Extract the first word of "gcc", so it can be a program name with args.
4734 set dummy gcc; ac_word=$2
4735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4737 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740   if test -n "$BUILD_CC"; then
4741   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748   for ac_exec_ext in '' $ac_executable_extensions; do
4749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750     ac_cv_prog_BUILD_CC="gcc"
4751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
4760 BUILD_CC=$ac_cv_prog_BUILD_CC
4761 if test -n "$BUILD_CC"; then
4762   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4763 echo "${ECHO_T}$BUILD_CC" >&6; }
4764 else
4765   { echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6; }
4767 fi
4768
4769
4770      if test -z "$BUILD_CC"; then
4771        # Extract the first word of "cc", so it can be a program name with args.
4772 set dummy cc; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   if test -n "$BUILD_CC"; then
4779   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4780 else
4781   ac_prog_rejected=no
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785   IFS=$as_save_IFS
4786   test -z "$as_dir" && as_dir=.
4787   for ac_exec_ext in '' $ac_executable_extensions; do
4788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4789     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4790        ac_prog_rejected=yes
4791        continue
4792      fi
4793     ac_cv_prog_BUILD_CC="cc"
4794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 if test $ac_prog_rejected = yes; then
4802   # We found a bogon in the path, so make sure we never use it.
4803   set dummy $ac_cv_prog_BUILD_CC
4804   shift
4805   if test $# != 0; then
4806     # We chose a different compiler from the bogus one.
4807     # However, it has the same basename, so the bogon will be chosen
4808     # first if we set BUILD_CC to just the basename; use the full file name.
4809     shift
4810     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4811   fi
4812 fi
4813 fi
4814 fi
4815 BUILD_CC=$ac_cv_prog_BUILD_CC
4816 if test -n "$BUILD_CC"; then
4817   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4818 echo "${ECHO_T}$BUILD_CC" >&6; }
4819 else
4820   { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822 fi
4823
4824
4825      fi
4826   fi
4827   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4828 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4829    { (exit 1); exit 1; }; }
4830   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4831   rm -f conftest*
4832   echo 'int main () { return 0; }' > conftest.$ac_ext
4833   ac_cv_build_exeext=
4834   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4835   (eval $ac_build_link) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }; then
4839     for file in conftest.*; do
4840       case $file in
4841       *.c | *.o | *.obj | *.dSYM) ;;
4842       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4843       esac
4844     done
4845   else
4846     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4847 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4848    { (exit 1); exit 1; }; }
4849   fi
4850   rm -f conftest*
4851   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4852 fi
4853 fi
4854
4855 BUILD_EXEEXT=""
4856 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4857 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4858 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4859 ac_build_exeext=$BUILD_EXEEXT
4860
4861   ac_build_prefix=${build_alias}-
4862   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4863 set dummy ${ac_build_prefix}g++; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   if test -n "$BUILD_CXX"; then
4870   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4890 if test -n "$BUILD_CXX"; then
4891   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4892 echo "${ECHO_T}$BUILD_CXX" >&6; }
4893 else
4894   { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4896 fi
4897
4898
4899   if test -z "$BUILD_CXX"; then
4900      # Extract the first word of "g++", so it can be a program name with args.
4901 set dummy g++; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   if test -n "$BUILD_CXX"; then
4908   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_prog_BUILD_CXX="g++"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925 fi
4926 fi
4927 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4928 if test -n "$BUILD_CXX"; then
4929   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4930 echo "${ECHO_T}$BUILD_CXX" >&6; }
4931 else
4932   { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4934 fi
4935
4936
4937      if test -z "$BUILD_CXX"; then
4938        # Extract the first word of "c++", so it can be a program name with args.
4939 set dummy c++; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   if test -n "$BUILD_CXX"; then
4946   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4947 else
4948   ac_prog_rejected=no
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4956     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4957        ac_prog_rejected=yes
4958        continue
4959      fi
4960     ac_cv_prog_BUILD_CXX="c++"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966 IFS=$as_save_IFS
4967
4968 if test $ac_prog_rejected = yes; then
4969   # We found a bogon in the path, so make sure we never use it.
4970   set dummy $ac_cv_prog_BUILD_CXX
4971   shift
4972   if test $# != 0; then
4973     # We chose a different compiler from the bogus one.
4974     # However, it has the same basename, so the bogon will be chosen
4975     # first if we set BUILD_CXX to just the basename; use the full file name.
4976     shift
4977     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4978   fi
4979 fi
4980 fi
4981 fi
4982 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4983 if test -n "$BUILD_CXX"; then
4984   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4985 echo "${ECHO_T}$BUILD_CXX" >&6; }
4986 else
4987   { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4989 fi
4990
4991
4992      fi
4993   fi
4994 else
4995   LLVM_CROSS_COMPILING=0
4996
4997 fi
4998
4999 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5000   cvsbuild="yes"
5001   optimize="no"
5002   CVSBUILD=CVSBUILD=1
5003
5004 else
5005   cvsbuild="no"
5006   optimize="yes"
5007 fi
5008
5009
5010 # Check whether --enable-libcpp was given.
5011 if test "${enable_libcpp+set}" = set; then
5012   enableval=$enable_libcpp;
5013 else
5014   enableval=default
5015 fi
5016
5017 case "$enableval" in
5018   yes) ENABLE_LIBCPP=1
5019  ;;
5020   no)  ENABLE_LIBCPP=0
5021  ;;
5022   default) ENABLE_LIBCPP=0
5023 ;;
5024   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5025 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5026    { (exit 1); exit 1; }; } ;;
5027 esac
5028
5029 # Check whether --enable-cxx11 was given.
5030 if test "${enable_cxx11+set}" = set; then
5031   enableval=$enable_cxx11;
5032 else
5033   enableval=default
5034 fi
5035
5036 case "$enableval" in
5037   yes) ENABLE_CXX11=1
5038  ;;
5039   no)  ENABLE_CXX11=0
5040  ;;
5041   default) ENABLE_CXX11=0
5042 ;;
5043   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5044 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5045    { (exit 1); exit 1; }; } ;;
5046 esac
5047
5048 # Check whether --enable-optimized was given.
5049 if test "${enable_optimized+set}" = set; then
5050   enableval=$enable_optimized;
5051 else
5052   enableval=$optimize
5053 fi
5054
5055 if test ${enableval} = "no" ; then
5056   ENABLE_OPTIMIZED=
5057
5058 else
5059   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5060
5061 fi
5062
5063 # Check whether --enable-profiling was given.
5064 if test "${enable_profiling+set}" = set; then
5065   enableval=$enable_profiling;
5066 else
5067   enableval="no"
5068 fi
5069
5070 if test ${enableval} = "no" ; then
5071   ENABLE_PROFILING=
5072
5073 else
5074   ENABLE_PROFILING=ENABLE_PROFILING=1
5075
5076 fi
5077
5078 # Check whether --enable-assertions was given.
5079 if test "${enable_assertions+set}" = set; then
5080   enableval=$enable_assertions;
5081 else
5082   enableval="yes"
5083 fi
5084
5085 if test ${enableval} = "yes" ; then
5086   DISABLE_ASSERTIONS=
5087
5088 else
5089   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5090
5091 fi
5092
5093 # Check whether --enable-werror was given.
5094 if test "${enable_werror+set}" = set; then
5095   enableval=$enable_werror;
5096 else
5097   enableval="no"
5098 fi
5099
5100 case "$enableval" in
5101   yes) ENABLE_WERROR=1
5102  ;;
5103   no)  ENABLE_WERROR=0
5104  ;;
5105   default) ENABLE_WERROR=0
5106 ;;
5107   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5109    { (exit 1); exit 1; }; } ;;
5110 esac
5111
5112 # Check whether --enable-expensive-checks was given.
5113 if test "${enable_expensive_checks+set}" = set; then
5114   enableval=$enable_expensive_checks;
5115 else
5116   enableval="no"
5117 fi
5118
5119 if test ${enableval} = "yes" ; then
5120   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5121
5122   EXPENSIVE_CHECKS=yes
5123
5124 else
5125   ENABLE_EXPENSIVE_CHECKS=
5126
5127   EXPENSIVE_CHECKS=no
5128
5129 fi
5130
5131 # Check whether --enable-debug-runtime was given.
5132 if test "${enable_debug_runtime+set}" = set; then
5133   enableval=$enable_debug_runtime;
5134 else
5135   enableval=no
5136 fi
5137
5138 if test ${enableval} = "no" ; then
5139   DEBUG_RUNTIME=
5140
5141 else
5142   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5143
5144 fi
5145
5146 # Check whether --enable-debug-symbols was given.
5147 if test "${enable_debug_symbols+set}" = set; then
5148   enableval=$enable_debug_symbols;
5149 else
5150   enableval=no
5151 fi
5152
5153 if test ${enableval} = "no" ; then
5154   DEBUG_SYMBOLS=
5155
5156 else
5157   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5158
5159 fi
5160
5161 # Check whether --enable-jit was given.
5162 if test "${enable_jit+set}" = set; then
5163   enableval=$enable_jit;
5164 else
5165   enableval=default
5166 fi
5167
5168 if test ${enableval} = "no"
5169 then
5170   JIT=
5171
5172 else
5173   case "$llvm_cv_target_arch" in
5174     x86)         TARGET_HAS_JIT=1
5175  ;;
5176     Sparc)       TARGET_HAS_JIT=0
5177  ;;
5178     PowerPC)     TARGET_HAS_JIT=1
5179  ;;
5180     x86_64)      TARGET_HAS_JIT=1
5181  ;;
5182     ARM)         TARGET_HAS_JIT=1
5183  ;;
5184     Mips)        TARGET_HAS_JIT=1
5185  ;;
5186     XCore)       TARGET_HAS_JIT=0
5187  ;;
5188     MSP430)      TARGET_HAS_JIT=0
5189  ;;
5190     Hexagon)     TARGET_HAS_JIT=0
5191  ;;
5192     MBlaze)      TARGET_HAS_JIT=0
5193  ;;
5194     NVPTX)       TARGET_HAS_JIT=0
5195  ;;
5196     *)           TARGET_HAS_JIT=0
5197  ;;
5198   esac
5199 fi
5200
5201 # Check whether --enable-docs was given.
5202 if test "${enable_docs+set}" = set; then
5203   enableval=$enable_docs;
5204 else
5205   enableval=default
5206 fi
5207
5208 case "$enableval" in
5209   yes) ENABLE_DOCS=1
5210  ;;
5211   no)  ENABLE_DOCS=0
5212  ;;
5213   default) ENABLE_DOCS=1
5214  ;;
5215   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5216 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5217    { (exit 1); exit 1; }; } ;;
5218 esac
5219
5220 # Check whether --enable-doxygen was given.
5221 if test "${enable_doxygen+set}" = set; then
5222   enableval=$enable_doxygen;
5223 else
5224   enableval=default
5225 fi
5226
5227 case "$enableval" in
5228   yes) ENABLE_DOXYGEN=1
5229  ;;
5230   no)  ENABLE_DOXYGEN=0
5231  ;;
5232   default) ENABLE_DOXYGEN=0
5233  ;;
5234   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5236    { (exit 1); exit 1; }; } ;;
5237 esac
5238
5239 # Check whether --enable-threads was given.
5240 if test "${enable_threads+set}" = set; then
5241   enableval=$enable_threads;
5242 else
5243   enableval=default
5244 fi
5245
5246 case "$enableval" in
5247   yes) LLVM_ENABLE_THREADS=1
5248  ;;
5249   no)  LLVM_ENABLE_THREADS=0
5250  ;;
5251   default) LLVM_ENABLE_THREADS=1
5252  ;;
5253   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5255    { (exit 1); exit 1; }; } ;;
5256 esac
5257
5258 cat >>confdefs.h <<_ACEOF
5259 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5260 _ACEOF
5261
5262
5263 # Check whether --enable-pthreads was given.
5264 if test "${enable_pthreads+set}" = set; then
5265   enableval=$enable_pthreads;
5266 else
5267   enableval=default
5268 fi
5269
5270 case "$enableval" in
5271   yes) ENABLE_PTHREADS=1
5272  ;;
5273   no)  ENABLE_PTHREADS=0
5274  ;;
5275   default) ENABLE_PTHREADS=1
5276  ;;
5277   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5278 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5279    { (exit 1); exit 1; }; } ;;
5280 esac
5281
5282 # Check whether --enable-pic was given.
5283 if test "${enable_pic+set}" = set; then
5284   enableval=$enable_pic;
5285 else
5286   enableval=default
5287 fi
5288
5289 case "$enableval" in
5290   yes) ENABLE_PIC=1
5291  ;;
5292   no)  ENABLE_PIC=0
5293  ;;
5294   default) ENABLE_PIC=1
5295  ;;
5296   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5298    { (exit 1); exit 1; }; } ;;
5299 esac
5300
5301 cat >>confdefs.h <<_ACEOF
5302 #define ENABLE_PIC $ENABLE_PIC
5303 _ACEOF
5304
5305
5306 # Check whether --enable-shared was given.
5307 if test "${enable_shared+set}" = set; then
5308   enableval=$enable_shared;
5309 else
5310   enableval=default
5311 fi
5312
5313 case "$enableval" in
5314   yes) ENABLE_SHARED=1
5315  ;;
5316   no)  ENABLE_SHARED=0
5317  ;;
5318   default) ENABLE_SHARED=0
5319  ;;
5320   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5322    { (exit 1); exit 1; }; } ;;
5323 esac
5324
5325 # Check whether --enable-embed-stdcxx was given.
5326 if test "${enable_embed_stdcxx+set}" = set; then
5327   enableval=$enable_embed_stdcxx;
5328 else
5329   enableval=default
5330 fi
5331
5332 case "$enableval" in
5333   yes) ENABLE_EMBED_STDCXX=1
5334  ;;
5335   no)  ENABLE_EMBED_STDCXX=0
5336  ;;
5337   default) ENABLE_EMBED_STDCXX=0
5338  ;;
5339   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5340 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5341    { (exit 1); exit 1; }; } ;;
5342 esac
5343
5344 # Check whether --enable-timestamps was given.
5345 if test "${enable_timestamps+set}" = set; then
5346   enableval=$enable_timestamps;
5347 else
5348   enableval=default
5349 fi
5350
5351 case "$enableval" in
5352   yes) ENABLE_TIMESTAMPS=1
5353  ;;
5354   no)  ENABLE_TIMESTAMPS=0
5355  ;;
5356   default) ENABLE_TIMESTAMPS=1
5357  ;;
5358   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5359 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5360    { (exit 1); exit 1; }; } ;;
5361 esac
5362
5363 cat >>confdefs.h <<_ACEOF
5364 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5365 _ACEOF
5366
5367
5368 TARGETS_TO_BUILD=""
5369 # Check whether --enable-targets was given.
5370 if test "${enable_targets+set}" = set; then
5371   enableval=$enable_targets;
5372 else
5373   enableval=all
5374 fi
5375
5376 if test "$enableval" = host-only ; then
5377   enableval=host
5378 fi
5379 case "$enableval" in
5380   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5381   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5382       case "$a_target" in
5383         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5384         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5385         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5386         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5387         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5388         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5389         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5390         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5391         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5392         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5393         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5394         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5395         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5396         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5397         host) case "$llvm_cv_target_arch" in
5398             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5399             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5400             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5401             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5402             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5403             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5404             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5405             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5406             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5407             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5408             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5409             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5410             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5411 echo "$as_me: error: Can not set target to build" >&2;}
5412    { (exit 1); exit 1; }; } ;;
5413           esac ;;
5414         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5415 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5416    { (exit 1); exit 1; }; } ;;
5417       esac
5418   done
5419   ;;
5420 esac
5421
5422 # Check whether --enable-experimental-targets was given.
5423 if test "${enable_experimental_targets+set}" = set; then
5424   enableval=$enable_experimental_targets;
5425 else
5426   enableval=disable
5427 fi
5428
5429
5430 if test ${enableval} != "disable"
5431 then
5432   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5433 fi
5434
5435 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5436
5437
5438 for a_target in $TARGETS_TO_BUILD; do
5439   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5440
5441 cat >>confdefs.h <<_ACEOF
5442 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5443 _ACEOF
5444
5445     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5446     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5447     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5448     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5449     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5450       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5451     fi
5452     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5453       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5454     fi
5455
5456 cat >>confdefs.h <<_ACEOF
5457 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5458 _ACEOF
5459
5460
5461 cat >>confdefs.h <<_ACEOF
5462 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5463 _ACEOF
5464
5465
5466 cat >>confdefs.h <<_ACEOF
5467 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5468 _ACEOF
5469
5470
5471 cat >>confdefs.h <<_ACEOF
5472 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5473 _ACEOF
5474
5475     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5476
5477 cat >>confdefs.h <<_ACEOF
5478 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5479 _ACEOF
5480
5481     fi
5482     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5483
5484 cat >>confdefs.h <<_ACEOF
5485 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5486 _ACEOF
5487
5488     fi
5489   fi
5490 done
5491
5492 LLVM_ENUM_TARGETS=""
5493 LLVM_ENUM_ASM_PRINTERS=""
5494 LLVM_ENUM_ASM_PARSERS=""
5495 LLVM_ENUM_DISASSEMBLERS=""
5496 for target_to_build in $TARGETS_TO_BUILD; do
5497   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5498   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5499     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5500   fi
5501   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5502     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5503   fi
5504   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5505     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5506   fi
5507 done
5508
5509
5510
5511
5512
5513
5514 # Check whether --with-optimize-option was given.
5515 if test "${with_optimize_option+set}" = set; then
5516   withval=$with_optimize_option;
5517 else
5518   withval=default
5519 fi
5520
5521 { echo "$as_me:$LINENO: checking optimization flags" >&5
5522 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5523 case "$withval" in
5524   default)
5525     case "$llvm_cv_os_type" in
5526     FreeBSD) optimize_option=-O2 ;;
5527     MingW) optimize_option=-O2 ;;
5528     *)     optimize_option=-O3 ;;
5529     esac ;;
5530   *) optimize_option="$withval" ;;
5531 esac
5532 OPTIMIZE_OPTION=$optimize_option
5533
5534 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5535 echo "${ECHO_T}$optimize_option" >&6; }
5536
5537
5538 # Check whether --with-extra-options was given.
5539 if test "${with_extra_options+set}" = set; then
5540   withval=$with_extra_options;
5541 else
5542   withval=default
5543 fi
5544
5545 case "$withval" in
5546   default) EXTRA_OPTIONS= ;;
5547   *) EXTRA_OPTIONS=$withval ;;
5548 esac
5549 EXTRA_OPTIONS=$EXTRA_OPTIONS
5550
5551
5552
5553 # Check whether --with-extra-ld-options was given.
5554 if test "${with_extra_ld_options+set}" = set; then
5555   withval=$with_extra_ld_options;
5556 else
5557   withval=default
5558 fi
5559
5560 case "$withval" in
5561   default) EXTRA_LD_OPTIONS= ;;
5562   *) EXTRA_LD_OPTIONS=$withval ;;
5563 esac
5564 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5565
5566
5567 # Check whether --enable-bindings was given.
5568 if test "${enable_bindings+set}" = set; then
5569   enableval=$enable_bindings;
5570 else
5571   enableval=default
5572 fi
5573
5574 BINDINGS_TO_BUILD=""
5575 case "$enableval" in
5576   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5577   all ) BINDINGS_TO_BUILD="ocaml" ;;
5578   none | no) BINDINGS_TO_BUILD="" ;;
5579   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5580       case "$a_binding" in
5581         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5582         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5583 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5584    { (exit 1); exit 1; }; } ;;
5585       esac
5586   done
5587   ;;
5588 esac
5589
5590
5591 # Check whether --with-ocaml-libdir was given.
5592 if test "${with_ocaml_libdir+set}" = set; then
5593   withval=$with_ocaml_libdir;
5594 else
5595   withval=auto
5596 fi
5597
5598 case "$withval" in
5599   auto) with_ocaml_libdir="$withval" ;;
5600   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5601   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5602 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5603    { (exit 1); exit 1; }; } ;;
5604 esac
5605
5606
5607 # Check whether --with-clang-srcdir was given.
5608 if test "${with_clang_srcdir+set}" = set; then
5609   withval=$with_clang_srcdir;
5610 else
5611   withval="-"
5612 fi
5613
5614 case "$withval" in
5615   -) clang_src_root="" ;;
5616   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5617   *) clang_src_root="$ac_pwd/$withval" ;;
5618 esac
5619 CLANG_SRC_ROOT=$clang_src_root
5620
5621
5622
5623 # Check whether --with-clang-resource-dir was given.
5624 if test "${with_clang_resource_dir+set}" = set; then
5625   withval=$with_clang_resource_dir;
5626 else
5627   withval=""
5628 fi
5629
5630
5631 cat >>confdefs.h <<_ACEOF
5632 #define CLANG_RESOURCE_DIR "$withval"
5633 _ACEOF
5634
5635
5636
5637 # Check whether --with-c-include-dirs was given.
5638 if test "${with_c_include_dirs+set}" = set; then
5639   withval=$with_c_include_dirs;
5640 else
5641   withval=""
5642 fi
5643
5644
5645 cat >>confdefs.h <<_ACEOF
5646 #define C_INCLUDE_DIRS "$withval"
5647 _ACEOF
5648
5649
5650 # Clang normally uses the system c++ headers and libraries. With this option,
5651 # clang will use the ones provided by a gcc installation instead. This option should
5652 # be passed the same value that was used with --prefix when configuring gcc.
5653
5654 # Check whether --with-gcc-toolchain was given.
5655 if test "${with_gcc_toolchain+set}" = set; then
5656   withval=$with_gcc_toolchain;
5657 else
5658   withval=""
5659 fi
5660
5661
5662 cat >>confdefs.h <<_ACEOF
5663 #define GCC_INSTALL_PREFIX "$withval"
5664 _ACEOF
5665
5666
5667
5668 # Check whether --with-default-sysroot was given.
5669 if test "${with_default_sysroot+set}" = set; then
5670   withval=$with_default_sysroot;
5671 else
5672   withval=""
5673 fi
5674
5675
5676 cat >>confdefs.h <<_ACEOF
5677 #define DEFAULT_SYSROOT "$withval"
5678 _ACEOF
5679
5680
5681
5682 # Check whether --with-binutils-include was given.
5683 if test "${with_binutils_include+set}" = set; then
5684   withval=$with_binutils_include;
5685 else
5686   withval=default
5687 fi
5688
5689 case "$withval" in
5690   default) WITH_BINUTILS_INCDIR=default ;;
5691   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5692   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5693 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5694    { (exit 1); exit 1; }; } ;;
5695 esac
5696 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5697   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5698
5699   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5700      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5701      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5702 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5703    { (exit 1); exit 1; }; };
5704   fi
5705 fi
5706
5707
5708 # Check whether --with-bug-report-url was given.
5709 if test "${with_bug_report_url+set}" = set; then
5710   withval=$with_bug_report_url;
5711 else
5712   withval="http://llvm.org/bugs/"
5713 fi
5714
5715
5716 cat >>confdefs.h <<_ACEOF
5717 #define BUG_REPORT_URL "$withval"
5718 _ACEOF
5719
5720
5721 # Check whether --enable-libffi was given.
5722 if test "${enable_libffi+set}" = set; then
5723   enableval=$enable_libffi; case "$enableval" in
5724     yes) llvm_cv_enable_libffi="yes" ;;
5725     no)  llvm_cv_enable_libffi="no"  ;;
5726     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5727 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5728    { (exit 1); exit 1; }; } ;;
5729   esac
5730 else
5731   llvm_cv_enable_libffi=no
5732 fi
5733
5734
5735
5736 # Check whether --with-internal-prefix was given.
5737 if test "${with_internal_prefix+set}" = set; then
5738   withval=$with_internal_prefix;
5739 else
5740   withval=""
5741 fi
5742
5743 INTERNAL_PREFIX=$withval
5744
5745
5746
5747 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5748 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5749 if test "${lt_cv_path_NM+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$NM"; then
5753   # Let the user override the test.
5754   lt_cv_path_NM="$NM"
5755 else
5756   lt_nm_to_check="${ac_tool_prefix}nm"
5757   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5758     lt_nm_to_check="$lt_nm_to_check nm"
5759   fi
5760   for lt_tmp_nm in $lt_nm_to_check; do
5761     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5762     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5763       IFS="$lt_save_ifs"
5764       test -z "$ac_dir" && ac_dir=.
5765       tmp_nm="$ac_dir/$lt_tmp_nm"
5766       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5767         # Check to see if the nm accepts a BSD-compat flag.
5768         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5769         #   nm: unknown option "B" ignored
5770         # Tru64's nm complains that /dev/null is an invalid object file
5771         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5772         */dev/null* | *'Invalid file or object type'*)
5773           lt_cv_path_NM="$tmp_nm -B"
5774           break
5775           ;;
5776         *)
5777           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5778           */dev/null*)
5779             lt_cv_path_NM="$tmp_nm -p"
5780             break
5781             ;;
5782           *)
5783             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5784             continue # so that we can try to find one that supports BSD flags
5785             ;;
5786           esac
5787           ;;
5788         esac
5789       fi
5790     done
5791     IFS="$lt_save_ifs"
5792   done
5793   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5794 fi
5795 fi
5796 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5797 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5798 NM="$lt_cv_path_NM"
5799
5800
5801
5802 { echo "$as_me:$LINENO: checking for GNU make" >&5
5803 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5804 if test "${llvm_cv_gnu_make_command+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   llvm_cv_gnu_make_command=''
5808  for a in "$MAKE" make gmake gnumake ; do
5809   if test -z "$a" ; then continue ; fi ;
5810   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5811   then
5812    llvm_cv_gnu_make_command=$a ;
5813    break;
5814   fi
5815  done
5816 fi
5817 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5818 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5819  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5820    ifGNUmake='' ;
5821  else
5822    ifGNUmake='#' ;
5823    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5824 echo "${ECHO_T}\"Not found\"" >&6; };
5825  fi
5826
5827
5828 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5829 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5830 LN_S=$as_ln_s
5831 if test "$LN_S" = "ln -s"; then
5832   { echo "$as_me:$LINENO: result: yes" >&5
5833 echo "${ECHO_T}yes" >&6; }
5834 else
5835   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5836 echo "${ECHO_T}no, using $LN_S" >&6; }
5837 fi
5838
5839 # Extract the first word of "cmp", so it can be a program name with args.
5840 set dummy cmp; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_path_CMP+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   case $CMP in
5847   [\\/]* | ?:[\\/]*)
5848   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5849   ;;
5850   *)
5851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856   for ac_exec_ext in '' $ac_executable_extensions; do
5857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5858     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5867   ;;
5868 esac
5869 fi
5870 CMP=$ac_cv_path_CMP
5871 if test -n "$CMP"; then
5872   { echo "$as_me:$LINENO: result: $CMP" >&5
5873 echo "${ECHO_T}$CMP" >&6; }
5874 else
5875   { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5877 fi
5878
5879
5880 # Extract the first word of "cp", so it can be a program name with args.
5881 set dummy cp; 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_CP+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   case $CP in
5888   [\\/]* | ?:[\\/]*)
5889   ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
5908   ;;
5909 esac
5910 fi
5911 CP=$ac_cv_path_CP
5912 if test -n "$CP"; then
5913   { echo "$as_me:$LINENO: result: $CP" >&5
5914 echo "${ECHO_T}$CP" >&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 "date", so it can be a program name with args.
5922 set dummy date; 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_DATE+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   case $DATE in
5929   [\\/]* | ?:[\\/]*)
5930   ac_cv_path_DATE="$DATE" # 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_DATE="$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_DATE" && ac_cv_path_DATE="date"
5949   ;;
5950 esac
5951 fi
5952 DATE=$ac_cv_path_DATE
5953 if test -n "$DATE"; then
5954   { echo "$as_me:$LINENO: result: $DATE" >&5
5955 echo "${ECHO_T}$DATE" >&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 "find", so it can be a program name with args.
5963 set dummy find; 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_FIND+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   case $FIND in
5970   [\\/]* | ?:[\\/]*)
5971   ac_cv_path_FIND="$FIND" # 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_FIND="$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_FIND" && ac_cv_path_FIND="find"
5990   ;;
5991 esac
5992 fi
5993 FIND=$ac_cv_path_FIND
5994 if test -n "$FIND"; then
5995   { echo "$as_me:$LINENO: result: $FIND" >&5
5996 echo "${ECHO_T}$FIND" >&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 "grep", so it can be a program name with args.
6004 set dummy grep; 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_GREP+set}" = set; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   case $GREP in
6011   [\\/]* | ?:[\\/]*)
6012   ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP="grep"
6031   ;;
6032 esac
6033 fi
6034 GREP=$ac_cv_path_GREP
6035 if test -n "$GREP"; then
6036   { echo "$as_me:$LINENO: result: $GREP" >&5
6037 echo "${ECHO_T}$GREP" >&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 "mkdir", so it can be a program name with args.
6045 set dummy mkdir; 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_MKDIR+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   case $MKDIR in
6052   [\\/]* | ?:[\\/]*)
6053   ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir"
6072   ;;
6073 esac
6074 fi
6075 MKDIR=$ac_cv_path_MKDIR
6076 if test -n "$MKDIR"; then
6077   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6078 echo "${ECHO_T}$MKDIR" >&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 "mv", so it can be a program name with args.
6086 set dummy mv; 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_MV+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   case $MV in
6093   [\\/]* | ?:[\\/]*)
6094   ac_cv_path_MV="$MV" # 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_MV="$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_MV" && ac_cv_path_MV="mv"
6113   ;;
6114 esac
6115 fi
6116 MV=$ac_cv_path_MV
6117 if test -n "$MV"; then
6118   { echo "$as_me:$LINENO: result: $MV" >&5
6119 echo "${ECHO_T}$MV" >&6; }
6120 else
6121   { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6123 fi
6124
6125
6126 if test -n "$ac_tool_prefix"; then
6127   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_RANLIB+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   if test -n "$RANLIB"; then
6135   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 RANLIB=$ac_cv_prog_RANLIB
6155 if test -n "$RANLIB"; then
6156   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6157 echo "${ECHO_T}$RANLIB" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162
6163
6164 fi
6165 if test -z "$ac_cv_prog_RANLIB"; then
6166   ac_ct_RANLIB=$RANLIB
6167   # Extract the first word of "ranlib", so it can be a program name with args.
6168 set dummy ranlib; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   if test -n "$ac_ct_RANLIB"; then
6175   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182   for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_prog_ac_ct_RANLIB="ranlib"
6185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195 if test -n "$ac_ct_RANLIB"; then
6196   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6197 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6198 else
6199   { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6201 fi
6202
6203   if test "x$ac_ct_RANLIB" = x; then
6204     RANLIB=":"
6205   else
6206     case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6209 whose name does not start with the host triplet.  If you think this
6210 configuration is useful to you, please write to autoconf@gnu.org." >&5
6211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6212 whose name does not start with the host triplet.  If you think this
6213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6214 ac_tool_warned=yes ;;
6215 esac
6216     RANLIB=$ac_ct_RANLIB
6217   fi
6218 else
6219   RANLIB="$ac_cv_prog_RANLIB"
6220 fi
6221
6222 if test -n "$ac_tool_prefix"; then
6223   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}ar; ac_word=$2
6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227 if test "${ac_cv_prog_AR+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   if test -n "$AR"; then
6231   ac_cv_prog_AR="$AR" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238   for ac_exec_ext in '' $ac_executable_extensions; do
6239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6240     ac_cv_prog_AR="${ac_tool_prefix}ar"
6241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245 done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 AR=$ac_cv_prog_AR
6251 if test -n "$AR"; then
6252   { echo "$as_me:$LINENO: result: $AR" >&5
6253 echo "${ECHO_T}$AR" >&6; }
6254 else
6255   { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6257 fi
6258
6259
6260 fi
6261 if test -z "$ac_cv_prog_AR"; then
6262   ac_ct_AR=$AR
6263   # Extract the first word of "ar", so it can be a program name with args.
6264 set dummy ar; ac_word=$2
6265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6268   echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270   if test -n "$ac_ct_AR"; then
6271   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278   for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_prog_ac_ct_AR="ar"
6281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6291 if test -n "$ac_ct_AR"; then
6292   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6293 echo "${ECHO_T}$ac_ct_AR" >&6; }
6294 else
6295   { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6297 fi
6298
6299   if test "x$ac_ct_AR" = x; then
6300     AR="false"
6301   else
6302     case $cross_compiling:$ac_tool_warned in
6303 yes:)
6304 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6305 whose name does not start with the host triplet.  If you think this
6306 configuration is useful to you, please write to autoconf@gnu.org." >&5
6307 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6308 whose name does not start with the host triplet.  If you think this
6309 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312     AR=$ac_ct_AR
6313   fi
6314 else
6315   AR="$ac_cv_prog_AR"
6316 fi
6317
6318 # Extract the first word of "rm", so it can be a program name with args.
6319 set dummy rm; ac_word=$2
6320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322 if test "${ac_cv_path_RM+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   case $RM in
6326   [\\/]* | ?:[\\/]*)
6327   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6328   ;;
6329   *)
6330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333   IFS=$as_save_IFS
6334   test -z "$as_dir" && as_dir=.
6335   for ac_exec_ext in '' $ac_executable_extensions; do
6336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6337     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339     break 2
6340   fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6344
6345   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6346   ;;
6347 esac
6348 fi
6349 RM=$ac_cv_path_RM
6350 if test -n "$RM"; then
6351   { echo "$as_me:$LINENO: result: $RM" >&5
6352 echo "${ECHO_T}$RM" >&6; }
6353 else
6354   { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6356 fi
6357
6358
6359 # Extract the first word of "sed", so it can be a program name with args.
6360 set dummy sed; 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_SED+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   case $SED in
6367   [\\/]* | ?:[\\/]*)
6368   ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
6387   ;;
6388 esac
6389 fi
6390 SED=$ac_cv_path_SED
6391 if test -n "$SED"; then
6392   { echo "$as_me:$LINENO: result: $SED" >&5
6393 echo "${ECHO_T}$SED" >&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 "tar", so it can be a program name with args.
6401 set dummy tar; 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_TAR+set}" = set; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   case $TAR in
6408   [\\/]* | ?:[\\/]*)
6409   ac_cv_path_TAR="$TAR" # 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_TAR="$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_TAR" && ac_cv_path_TAR="gtar"
6428   ;;
6429 esac
6430 fi
6431 TAR=$ac_cv_path_TAR
6432 if test -n "$TAR"; then
6433   { echo "$as_me:$LINENO: result: $TAR" >&5
6434 echo "${ECHO_T}$TAR" >&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 "pwd", so it can be a program name with args.
6442 set dummy pwd; 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_BINPWD+set}" = set; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   case $BINPWD in
6449   [\\/]* | ?:[\\/]*)
6450   ac_cv_path_BINPWD="$BINPWD" # 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_BINPWD="$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_BINPWD" && ac_cv_path_BINPWD="pwd"
6469   ;;
6470 esac
6471 fi
6472 BINPWD=$ac_cv_path_BINPWD
6473 if test -n "$BINPWD"; then
6474   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6475 echo "${ECHO_T}$BINPWD" >&6; }
6476 else
6477   { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6479 fi
6480
6481
6482
6483 # Extract the first word of "Graphviz", so it can be a program name with args.
6484 set dummy Graphviz; ac_word=$2
6485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   case $GRAPHVIZ in
6491   [\\/]* | ?:[\\/]*)
6492   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6493   ;;
6494   *)
6495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500   for ac_exec_ext in '' $ac_executable_extensions; do
6501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6502     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6511   ;;
6512 esac
6513 fi
6514 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6515 if test -n "$GRAPHVIZ"; then
6516   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6517 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6518 else
6519   { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6521 fi
6522
6523
6524 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6525
6526 cat >>confdefs.h <<\_ACEOF
6527 #define HAVE_GRAPHVIZ 1
6528 _ACEOF
6529
6530     if test "$llvm_cv_os_type" = "MingW" ; then
6531     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6532   fi
6533
6534 cat >>confdefs.h <<_ACEOF
6535 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6536 _ACEOF
6537
6538 fi
6539 # Extract the first word of "dot", so it can be a program name with args.
6540 set dummy dot; ac_word=$2
6541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543 if test "${ac_cv_path_DOT+set}" = set; then
6544   echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
6546   case $DOT in
6547   [\\/]* | ?:[\\/]*)
6548   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6549   ;;
6550   *)
6551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556   for ac_exec_ext in '' $ac_executable_extensions; do
6557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6567   ;;
6568 esac
6569 fi
6570 DOT=$ac_cv_path_DOT
6571 if test -n "$DOT"; then
6572   { echo "$as_me:$LINENO: result: $DOT" >&5
6573 echo "${ECHO_T}$DOT" >&6; }
6574 else
6575   { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6577 fi
6578
6579
6580 if test "$DOT" != "echo dot" ; then
6581
6582 cat >>confdefs.h <<\_ACEOF
6583 #define HAVE_DOT 1
6584 _ACEOF
6585
6586     if test "$llvm_cv_os_type" = "MingW" ; then
6587     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6588   fi
6589
6590 cat >>confdefs.h <<_ACEOF
6591 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6592 _ACEOF
6593
6594 fi
6595 # Extract the first word of "fdp", so it can be a program name with args.
6596 set dummy fdp; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_path_FDP+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   case $FDP in
6603   [\\/]* | ?:[\\/]*)
6604   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6605   ;;
6606   *)
6607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612   for ac_exec_ext in '' $ac_executable_extensions; do
6613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6614     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6623   ;;
6624 esac
6625 fi
6626 FDP=$ac_cv_path_FDP
6627 if test -n "$FDP"; then
6628   { echo "$as_me:$LINENO: result: $FDP" >&5
6629 echo "${ECHO_T}$FDP" >&6; }
6630 else
6631   { echo "$as_me:$LINENO: result: no" >&5
6632 echo "${ECHO_T}no" >&6; }
6633 fi
6634
6635
6636 if test "$FDP" != "echo fdp" ; then
6637
6638 cat >>confdefs.h <<\_ACEOF
6639 #define HAVE_FDP 1
6640 _ACEOF
6641
6642     if test "$llvm_cv_os_type" = "MingW" ; then
6643     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6644   fi
6645
6646 cat >>confdefs.h <<_ACEOF
6647 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6648 _ACEOF
6649
6650 fi
6651 # Extract the first word of "neato", so it can be a program name with args.
6652 set dummy neato; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_path_NEATO+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658   case $NEATO in
6659   [\\/]* | ?:[\\/]*)
6660   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6661   ;;
6662   *)
6663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668   for ac_exec_ext in '' $ac_executable_extensions; do
6669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6670     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6679   ;;
6680 esac
6681 fi
6682 NEATO=$ac_cv_path_NEATO
6683 if test -n "$NEATO"; then
6684   { echo "$as_me:$LINENO: result: $NEATO" >&5
6685 echo "${ECHO_T}$NEATO" >&6; }
6686 else
6687   { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6689 fi
6690
6691
6692 if test "$NEATO" != "echo neato" ; then
6693
6694 cat >>confdefs.h <<\_ACEOF
6695 #define HAVE_NEATO 1
6696 _ACEOF
6697
6698     if test "$llvm_cv_os_type" = "MingW" ; then
6699     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6700   fi
6701
6702 cat >>confdefs.h <<_ACEOF
6703 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6704 _ACEOF
6705
6706 fi
6707 # Extract the first word of "twopi", so it can be a program name with args.
6708 set dummy twopi; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_TWOPI+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   case $TWOPI in
6715   [\\/]* | ?:[\\/]*)
6716   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6717   ;;
6718   *)
6719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724   for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6735   ;;
6736 esac
6737 fi
6738 TWOPI=$ac_cv_path_TWOPI
6739 if test -n "$TWOPI"; then
6740   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6741 echo "${ECHO_T}$TWOPI" >&6; }
6742 else
6743   { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6745 fi
6746
6747
6748 if test "$TWOPI" != "echo twopi" ; then
6749
6750 cat >>confdefs.h <<\_ACEOF
6751 #define HAVE_TWOPI 1
6752 _ACEOF
6753
6754     if test "$llvm_cv_os_type" = "MingW" ; then
6755     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6756   fi
6757
6758 cat >>confdefs.h <<_ACEOF
6759 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6760 _ACEOF
6761
6762 fi
6763 # Extract the first word of "circo", so it can be a program name with args.
6764 set dummy circo; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_path_CIRCO+set}" = set; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   case $CIRCO in
6771   [\\/]* | ?:[\\/]*)
6772   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6773   ;;
6774   *)
6775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778   IFS=$as_save_IFS
6779   test -z "$as_dir" && as_dir=.
6780   for ac_exec_ext in '' $ac_executable_extensions; do
6781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6782     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785   fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6791   ;;
6792 esac
6793 fi
6794 CIRCO=$ac_cv_path_CIRCO
6795 if test -n "$CIRCO"; then
6796   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6797 echo "${ECHO_T}$CIRCO" >&6; }
6798 else
6799   { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6801 fi
6802
6803
6804 if test "$CIRCO" != "echo circo" ; then
6805
6806 cat >>confdefs.h <<\_ACEOF
6807 #define HAVE_CIRCO 1
6808 _ACEOF
6809
6810     if test "$llvm_cv_os_type" = "MingW" ; then
6811     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6812   fi
6813
6814 cat >>confdefs.h <<_ACEOF
6815 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6816 _ACEOF
6817
6818 fi
6819 for ac_prog in gv gsview32
6820 do
6821   # Extract the first word of "$ac_prog", so it can be a program name with args.
6822 set dummy $ac_prog; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_GV+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828   case $GV in
6829   [\\/]* | ?:[\\/]*)
6830   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6831   ;;
6832   *)
6833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838   for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848   ;;
6849 esac
6850 fi
6851 GV=$ac_cv_path_GV
6852 if test -n "$GV"; then
6853   { echo "$as_me:$LINENO: result: $GV" >&5
6854 echo "${ECHO_T}$GV" >&6; }
6855 else
6856   { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6858 fi
6859
6860
6861   test -n "$GV" && break
6862 done
6863 test -n "$GV" || GV="echo gv"
6864
6865 if test "$GV" != "echo gv" ; then
6866
6867 cat >>confdefs.h <<\_ACEOF
6868 #define HAVE_GV 1
6869 _ACEOF
6870
6871     if test "$llvm_cv_os_type" = "MingW" ; then
6872     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6873   fi
6874
6875 cat >>confdefs.h <<_ACEOF
6876 #define LLVM_PATH_GV "$GV${EXEEXT}"
6877 _ACEOF
6878
6879 fi
6880 # Extract the first word of "dotty", so it can be a program name with args.
6881 set dummy dotty; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_DOTTY+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   case $DOTTY in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6908   ;;
6909 esac
6910 fi
6911 DOTTY=$ac_cv_path_DOTTY
6912 if test -n "$DOTTY"; then
6913   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6914 echo "${ECHO_T}$DOTTY" >&6; }
6915 else
6916   { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6918 fi
6919
6920
6921 if test "$DOTTY" != "echo dotty" ; then
6922
6923 cat >>confdefs.h <<\_ACEOF
6924 #define HAVE_DOTTY 1
6925 _ACEOF
6926
6927     if test "$llvm_cv_os_type" = "MingW" ; then
6928     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6929   fi
6930
6931 cat >>confdefs.h <<_ACEOF
6932 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6933 _ACEOF
6934
6935 fi
6936 # Extract the first word of "xdot.py", so it can be a program name with args.
6937 set dummy xdot.py; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6941   echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943   case $XDOT_PY in
6944   [\\/]* | ?:[\\/]*)
6945   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6946   ;;
6947   *)
6948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953   for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6964   ;;
6965 esac
6966 fi
6967 XDOT_PY=$ac_cv_path_XDOT_PY
6968 if test -n "$XDOT_PY"; then
6969   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6970 echo "${ECHO_T}$XDOT_PY" >&6; }
6971 else
6972   { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6974 fi
6975
6976
6977 if test "$XDOT_PY" != "echo xdot.py" ; then
6978
6979 cat >>confdefs.h <<\_ACEOF
6980 #define HAVE_XDOT_PY 1
6981 _ACEOF
6982
6983     if test "$llvm_cv_os_type" = "MingW" ; then
6984     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6985   fi
6986
6987 cat >>confdefs.h <<_ACEOF
6988 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6989 _ACEOF
6990
6991 fi
6992
6993 # Find a good install program.  We prefer a C program (faster),
6994 # so one script is as good as another.  But avoid the broken or
6995 # incompatible versions:
6996 # SysV /etc/install, /usr/sbin/install
6997 # SunOS /usr/etc/install
6998 # IRIX /sbin/install
6999 # AIX /bin/install
7000 # AmigaOS /C/install, which installs bootblocks on floppy discs
7001 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7002 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7004 # OS/2's system install, which has a completely different semantic
7005 # ./install, which can be erroneously created by make from ./install.sh.
7006 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7007 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7008 if test -z "$INSTALL"; then
7009 if test "${ac_cv_path_install+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015   IFS=$as_save_IFS
7016   test -z "$as_dir" && as_dir=.
7017   # Account for people who put trailing slashes in PATH elements.
7018 case $as_dir/ in
7019   ./ | .// | /cC/* | \
7020   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7021   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7022   /usr/ucb/* ) ;;
7023   *)
7024     # OSF1 and SCO ODT 3.0 have their own names for install.
7025     # Don't use installbsd from OSF since it installs stuff as root
7026     # by default.
7027     for ac_prog in ginstall scoinst install; do
7028       for ac_exec_ext in '' $ac_executable_extensions; do
7029         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7030           if test $ac_prog = install &&
7031             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7032             # AIX install.  It has an incompatible calling convention.
7033             :
7034           elif test $ac_prog = install &&
7035             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7036             # program-specific install script used by HP pwplus--don't use.
7037             :
7038           else
7039             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7040             break 3
7041           fi
7042         fi
7043       done
7044     done
7045     ;;
7046 esac
7047 done
7048 IFS=$as_save_IFS
7049
7050
7051 fi
7052   if test "${ac_cv_path_install+set}" = set; then
7053     INSTALL=$ac_cv_path_install
7054   else
7055     # As a last resort, use the slow shell script.  Don't cache a
7056     # value for INSTALL within a source directory, because that will
7057     # break other packages using the cache if that directory is
7058     # removed, or if the value is a relative name.
7059     INSTALL=$ac_install_sh
7060   fi
7061 fi
7062 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7063 echo "${ECHO_T}$INSTALL" >&6; }
7064
7065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7066 # It thinks the first close brace ends the variable substitution.
7067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7068
7069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7070
7071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7072
7073 case "$INSTALL" in
7074  [\\/$]* | ?:[\\/]* ) ;;
7075  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7076 esac
7077
7078 # Extract the first word of "bzip2", so it can be a program name with args.
7079 set dummy bzip2; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_BZIP2+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   case $BZIP2 in
7086   [\\/]* | ?:[\\/]*)
7087   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7088   ;;
7089   *)
7090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095   for ac_exec_ext in '' $ac_executable_extensions; do
7096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102 done
7103 IFS=$as_save_IFS
7104
7105   ;;
7106 esac
7107 fi
7108 BZIP2=$ac_cv_path_BZIP2
7109 if test -n "$BZIP2"; then
7110   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7111 echo "${ECHO_T}$BZIP2" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117
7118 # Extract the first word of "cat", so it can be a program name with args.
7119 set dummy cat; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_CAT+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   case $CAT in
7126   [\\/]* | ?:[\\/]*)
7127   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7128   ;;
7129   *)
7130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135   for ac_exec_ext in '' $ac_executable_extensions; do
7136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145   ;;
7146 esac
7147 fi
7148 CAT=$ac_cv_path_CAT
7149 if test -n "$CAT"; then
7150   { echo "$as_me:$LINENO: result: $CAT" >&5
7151 echo "${ECHO_T}$CAT" >&6; }
7152 else
7153   { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7155 fi
7156
7157
7158 # Extract the first word of "doxygen", so it can be a program name with args.
7159 set dummy doxygen; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165   case $DOXYGEN in
7166   [\\/]* | ?:[\\/]*)
7167   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7168   ;;
7169   *)
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175   for ac_exec_ext in '' $ac_executable_extensions; do
7176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185   ;;
7186 esac
7187 fi
7188 DOXYGEN=$ac_cv_path_DOXYGEN
7189 if test -n "$DOXYGEN"; then
7190   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7191 echo "${ECHO_T}$DOXYGEN" >&6; }
7192 else
7193   { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7195 fi
7196
7197
7198 # Extract the first word of "groff", so it can be a program name with args.
7199 set dummy groff; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_GROFF+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   case $GROFF in
7206   [\\/]* | ?:[\\/]*)
7207   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7208   ;;
7209   *)
7210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215   for ac_exec_ext in '' $ac_executable_extensions; do
7216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222 done
7223 IFS=$as_save_IFS
7224
7225   ;;
7226 esac
7227 fi
7228 GROFF=$ac_cv_path_GROFF
7229 if test -n "$GROFF"; then
7230   { echo "$as_me:$LINENO: result: $GROFF" >&5
7231 echo "${ECHO_T}$GROFF" >&6; }
7232 else
7233   { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7235 fi
7236
7237
7238 # Extract the first word of "gzip", so it can be a program name with args.
7239 set dummy gzip; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   case $GZIPBIN in
7246   [\\/]* | ?:[\\/]*)
7247   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7248   ;;
7249   *)
7250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255   for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265   ;;
7266 esac
7267 fi
7268 GZIPBIN=$ac_cv_path_GZIPBIN
7269 if test -n "$GZIPBIN"; then
7270   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7271 echo "${ECHO_T}$GZIPBIN" >&6; }
7272 else
7273   { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7275 fi
7276
7277
7278 # Extract the first word of "pdfroff", so it can be a program name with args.
7279 set dummy pdfroff; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_PDFROFF+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   case $PDFROFF in
7286   [\\/]* | ?:[\\/]*)
7287   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7288   ;;
7289   *)
7290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305   ;;
7306 esac
7307 fi
7308 PDFROFF=$ac_cv_path_PDFROFF
7309 if test -n "$PDFROFF"; then
7310   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7311 echo "${ECHO_T}$PDFROFF" >&6; }
7312 else
7313   { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7315 fi
7316
7317
7318 # Extract the first word of "zip", so it can be a program name with args.
7319 set dummy zip; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_ZIP+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   case $ZIP in
7326   [\\/]* | ?:[\\/]*)
7327   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7328   ;;
7329   *)
7330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345   ;;
7346 esac
7347 fi
7348 ZIP=$ac_cv_path_ZIP
7349 if test -n "$ZIP"; then
7350   { echo "$as_me:$LINENO: result: $ZIP" >&5
7351 echo "${ECHO_T}$ZIP" >&6; }
7352 else
7353   { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7355 fi
7356
7357
7358 for ac_prog in ocamlc
7359 do
7360   # Extract the first word of "$ac_prog", so it can be a program name with args.
7361 set dummy $ac_prog; ac_word=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_OCAMLC+set}" = set; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367   case $OCAMLC in
7368   [\\/]* | ?:[\\/]*)
7369   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7370   ;;
7371   *)
7372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377   for ac_exec_ext in '' $ac_executable_extensions; do
7378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7379     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384 done
7385 IFS=$as_save_IFS
7386
7387   ;;
7388 esac
7389 fi
7390 OCAMLC=$ac_cv_path_OCAMLC
7391 if test -n "$OCAMLC"; then
7392   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7393 echo "${ECHO_T}$OCAMLC" >&6; }
7394 else
7395   { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7397 fi
7398
7399
7400   test -n "$OCAMLC" && break
7401 done
7402
7403 for ac_prog in ocamlopt
7404 do
7405   # Extract the first word of "$ac_prog", so it can be a program name with args.
7406 set dummy $ac_prog; ac_word=$2
7407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   case $OCAMLOPT in
7413   [\\/]* | ?:[\\/]*)
7414   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7415   ;;
7416   *)
7417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422   for ac_exec_ext in '' $ac_executable_extensions; do
7423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432   ;;
7433 esac
7434 fi
7435 OCAMLOPT=$ac_cv_path_OCAMLOPT
7436 if test -n "$OCAMLOPT"; then
7437   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7438 echo "${ECHO_T}$OCAMLOPT" >&6; }
7439 else
7440   { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7442 fi
7443
7444
7445   test -n "$OCAMLOPT" && break
7446 done
7447
7448 for ac_prog in ocamldep
7449 do
7450   # Extract the first word of "$ac_prog", so it can be a program name with args.
7451 set dummy $ac_prog; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   case $OCAMLDEP in
7458   [\\/]* | ?:[\\/]*)
7459   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7460   ;;
7461   *)
7462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477   ;;
7478 esac
7479 fi
7480 OCAMLDEP=$ac_cv_path_OCAMLDEP
7481 if test -n "$OCAMLDEP"; then
7482   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7483 echo "${ECHO_T}$OCAMLDEP" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489
7490   test -n "$OCAMLDEP" && break
7491 done
7492
7493 for ac_prog in ocamldoc
7494 do
7495   # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   case $OCAMLDOC in
7503   [\\/]* | ?:[\\/]*)
7504   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7505   ;;
7506   *)
7507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522   ;;
7523 esac
7524 fi
7525 OCAMLDOC=$ac_cv_path_OCAMLDOC
7526 if test -n "$OCAMLDOC"; then
7527   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7528 echo "${ECHO_T}$OCAMLDOC" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7533
7534
7535   test -n "$OCAMLDOC" && break
7536 done
7537
7538 for ac_prog in gas as
7539 do
7540   # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_GAS+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   case $GAS in
7548   [\\/]* | ?:[\\/]*)
7549   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7550   ;;
7551   *)
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567   ;;
7568 esac
7569 fi
7570 GAS=$ac_cv_path_GAS
7571 if test -n "$GAS"; then
7572   { echo "$as_me:$LINENO: result: $GAS" >&5
7573 echo "${ECHO_T}$GAS" >&6; }
7574 else
7575   { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7577 fi
7578
7579
7580   test -n "$GAS" && break
7581 done
7582
7583
7584 { echo "$as_me:$LINENO: checking for linker version" >&5
7585 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7586 if test "${llvm_cv_link_version+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589
7590    version_string="$(ld -v 2>&1 | head -1)"
7591
7592    # Check for ld64.
7593    if (echo "$version_string" | grep -q "ld64"); then
7594      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7595    else
7596      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7597    fi
7598
7599 fi
7600 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7601 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7602
7603 cat >>confdefs.h <<_ACEOF
7604 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7605 _ACEOF
7606
7607
7608
7609 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7610 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7611 if test "${llvm_cv_link_use_r+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614    ac_ext=c
7615 ac_cpp='$CPP $CPPFLAGS'
7616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619
7620   oldcflags="$CFLAGS"
7621   CFLAGS="$CFLAGS -Wl,-R."
7622   cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628
7629 int
7630 main ()
7631 {
7632
7633   ;
7634   return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (ac_try="$ac_link"
7639 case "(($ac_try" in
7640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641   *) ac_try_echo=$ac_try;;
7642 esac
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644   (eval "$ac_link") 2>conftest.er1
7645   ac_status=$?
7646   grep -v '^ *+' conftest.er1 >conftest.err
7647   rm -f conftest.er1
7648   cat conftest.err >&5
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); } &&
7651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7652   { (case "(($ac_try" in
7653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654   *) ac_try_echo=$ac_try;;
7655 esac
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657   (eval "$ac_try") 2>&5
7658   ac_status=$?
7659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660   (exit $ac_status); }; } &&
7661          { ac_try='test -s conftest$ac_exeext'
7662   { (case "(($ac_try" in
7663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664   *) ac_try_echo=$ac_try;;
7665 esac
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667   (eval "$ac_try") 2>&5
7668   ac_status=$?
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); }; }; then
7671   llvm_cv_link_use_r=yes
7672 else
7673   echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7675
7676         llvm_cv_link_use_r=no
7677 fi
7678
7679 rm -f core conftest.err conftest.$ac_objext \
7680       conftest$ac_exeext conftest.$ac_ext
7681   CFLAGS="$oldcflags"
7682   ac_ext=c
7683 ac_cpp='$CPP $CPPFLAGS'
7684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687
7688
7689 fi
7690 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7691 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7692 if test "$llvm_cv_link_use_r" = yes ; then
7693
7694 cat >>confdefs.h <<\_ACEOF
7695 #define HAVE_LINK_R 1
7696 _ACEOF
7697
7698   fi
7699
7700
7701 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7702 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7703 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706    ac_ext=c
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711
7712   oldcflags="$CFLAGS"
7713   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7714   cat >conftest.$ac_ext <<_ACEOF
7715 /* confdefs.h.  */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h.  */
7720
7721 int
7722 main ()
7723 {
7724
7725   ;
7726   return 0;
7727 }
7728 _ACEOF
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7731 case "(($ac_try" in
7732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733   *) ac_try_echo=$ac_try;;
7734 esac
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736   (eval "$ac_link") 2>conftest.er1
7737   ac_status=$?
7738   grep -v '^ *+' conftest.er1 >conftest.err
7739   rm -f conftest.er1
7740   cat conftest.err >&5
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); } &&
7743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7744   { (case "(($ac_try" in
7745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746   *) ac_try_echo=$ac_try;;
7747 esac
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749   (eval "$ac_try") 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); }; } &&
7753          { ac_try='test -s conftest$ac_exeext'
7754   { (case "(($ac_try" in
7755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756   *) ac_try_echo=$ac_try;;
7757 esac
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759   (eval "$ac_try") 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   llvm_cv_link_use_export_dynamic=yes
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768         llvm_cv_link_use_export_dynamic=no
7769 fi
7770
7771 rm -f core conftest.err conftest.$ac_objext \
7772       conftest$ac_exeext conftest.$ac_ext
7773   CFLAGS="$oldcflags"
7774   ac_ext=c
7775 ac_cpp='$CPP $CPPFLAGS'
7776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779
7780
7781 fi
7782 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7783 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7784 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7785
7786 cat >>confdefs.h <<\_ACEOF
7787 #define HAVE_LINK_EXPORT_DYNAMIC 1
7788 _ACEOF
7789
7790   fi
7791
7792
7793 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7794 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7795 if test "${llvm_cv_link_use_version_script+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798    ac_ext=c
7799 ac_cpp='$CPP $CPPFLAGS'
7800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803
7804   oldcflags="$CFLAGS"
7805
7806   # The following code is from the autoconf manual,
7807   # "11.13: Limitations of Usual Tools".
7808   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7809   # Use mktemp if possible; otherwise fall back on mkdir,
7810   # with $RANDOM to make collisions less likely.
7811   : ${TMPDIR=/tmp}
7812   {
7813     tmp=`
7814       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7815     ` &&
7816     test -n "$tmp" && test -d "$tmp"
7817   } || {
7818     tmp=$TMPDIR/foo$$-$RANDOM
7819     (umask 077 && mkdir "$tmp")
7820   } || exit $?
7821
7822   echo "{" > "$tmp/export.map"
7823   echo "  global: main;" >> "$tmp/export.map"
7824   echo "  local: *;" >> "$tmp/export.map"
7825   echo "};" >> "$tmp/export.map"
7826
7827   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7828   cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h.  */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h.  */
7834
7835 int
7836 main ()
7837 {
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (ac_try="$ac_link"
7845 case "(($ac_try" in
7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847   *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850   (eval "$ac_link") 2>conftest.er1
7851   ac_status=$?
7852   grep -v '^ *+' conftest.er1 >conftest.err
7853   rm -f conftest.er1
7854   cat conftest.err >&5
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } &&
7857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7858   { (case "(($ac_try" in
7859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860   *) ac_try_echo=$ac_try;;
7861 esac
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863   (eval "$ac_try") 2>&5
7864   ac_status=$?
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); }; } &&
7867          { ac_try='test -s conftest$ac_exeext'
7868   { (case "(($ac_try" in
7869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870   *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873   (eval "$ac_try") 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; }; then
7877   llvm_cv_link_use_version_script=yes
7878 else
7879   echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882         llvm_cv_link_use_version_script=no
7883 fi
7884
7885 rm -f core conftest.err conftest.$ac_objext \
7886       conftest$ac_exeext conftest.$ac_ext
7887   rm "$tmp/export.map"
7888   rmdir "$tmp"
7889   CFLAGS="$oldcflags"
7890   ac_ext=c
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895
7896
7897 fi
7898 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7899 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7900 if test "$llvm_cv_link_use_version_script" = yes ; then
7901   HAVE_LINK_VERSION_SCRIPT=1
7902
7903   fi
7904
7905
7906
7907
7908 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7909 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7910 if test "${ac_cv_c_const+set}" = set; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919
7920 int
7921 main ()
7922 {
7923 /* FIXME: Include the comments suggested by Paul. */
7924 #ifndef __cplusplus
7925   /* Ultrix mips cc rejects this.  */
7926   typedef int charset[2];
7927   const charset x;
7928   /* SunOS 4.1.1 cc rejects this.  */
7929   char const *const *ccp;
7930   char **p;
7931   /* NEC SVR4.0.2 mips cc rejects this.  */
7932   struct point {int x, y;};
7933   static struct point const zero = {0,0};
7934   /* AIX XL C 1.02.0.0 rejects this.
7935      It does not let you subtract one const X* pointer from another in
7936      an arm of an if-expression whose if-part is not a constant
7937      expression */
7938   const char *g = "string";
7939   ccp = &g + (g ? g-g : 0);
7940   /* HPUX 7.0 cc rejects these. */
7941   ++ccp;
7942   p = (char**) ccp;
7943   ccp = (char const *const *) p;
7944   { /* SCO 3.2v4 cc rejects this.  */
7945     char *t;
7946     char const *s = 0 ? (char *) 0 : (char const *) 0;
7947
7948     *t++ = 0;
7949     if (s) return 0;
7950   }
7951   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7952     int x[] = {25, 17};
7953     const int *foo = &x[0];
7954     ++foo;
7955   }
7956   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7957     typedef const int *iptr;
7958     iptr p = 0;
7959     ++p;
7960   }
7961   { /* AIX XL C 1.02.0.0 rejects this saying
7962        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7963     struct s { int j; const int *ap[3]; };
7964     struct s *b; b->j = 5;
7965   }
7966   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7967     const int foo = 10;
7968     if (!foo) return 0;
7969   }
7970   return !x[0] && !zero.x;
7971 #endif
7972
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 rm -f conftest.$ac_objext
7978 if { (ac_try="$ac_compile"
7979 case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_compile") 2>conftest.er1
7985   ac_status=$?
7986   grep -v '^ *+' conftest.er1 >conftest.err
7987   rm -f conftest.er1
7988   cat conftest.err >&5
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } &&
7991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7992   { (case "(($ac_try" in
7993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994   *) ac_try_echo=$ac_try;;
7995 esac
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997   (eval "$ac_try") 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; } &&
8001          { ac_try='test -s conftest.$ac_objext'
8002   { (case "(($ac_try" in
8003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004   *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007   (eval "$ac_try") 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; }; then
8011   ac_cv_c_const=yes
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016         ac_cv_c_const=no
8017 fi
8018
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 fi
8021 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8022 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8023 if test $ac_cv_c_const = no; then
8024
8025 cat >>confdefs.h <<\_ACEOF
8026 #define const
8027 _ACEOF
8028
8029 fi
8030
8031
8032
8033
8034
8035
8036 ac_header_dirent=no
8037 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8038   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8039 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8040 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   cat >conftest.$ac_ext <<_ACEOF
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050 #include <sys/types.h>
8051 #include <$ac_hdr>
8052
8053 int
8054 main ()
8055 {
8056 if ((DIR *) 0)
8057 return 0;
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069   (eval "$ac_compile") 2>conftest.er1
8070   ac_status=$?
8071   grep -v '^ *+' conftest.er1 >conftest.err
8072   rm -f conftest.er1
8073   cat conftest.err >&5
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } &&
8076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8077   { (case "(($ac_try" in
8078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079   *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082   (eval "$ac_try") 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; } &&
8086          { ac_try='test -s conftest.$ac_objext'
8087   { (case "(($ac_try" in
8088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089   *) ac_try_echo=$ac_try;;
8090 esac
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092   (eval "$ac_try") 2>&5
8093   ac_status=$?
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); }; }; then
8096   eval "$as_ac_Header=yes"
8097 else
8098   echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101         eval "$as_ac_Header=no"
8102 fi
8103
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 fi
8106 ac_res=`eval echo '${'$as_ac_Header'}'`
8107                { echo "$as_me:$LINENO: result: $ac_res" >&5
8108 echo "${ECHO_T}$ac_res" >&6; }
8109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8110   cat >>confdefs.h <<_ACEOF
8111 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8112 _ACEOF
8113
8114 ac_header_dirent=$ac_hdr; break
8115 fi
8116
8117 done
8118 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8119 if test $ac_header_dirent = dirent.h; then
8120   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8121 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8122 if test "${ac_cv_search_opendir+set}" = set; then
8123   echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125   ac_func_search_save_LIBS=$LIBS
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h.  */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h.  */
8132
8133 /* Override any GCC internal prototype to avoid an error.
8134    Use char because int might match the return type of a GCC
8135    builtin and then its argument prototype would still apply.  */
8136 #ifdef __cplusplus
8137 extern "C"
8138 #endif
8139 char opendir ();
8140 int
8141 main ()
8142 {
8143 return opendir ();
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 for ac_lib in '' dir; do
8149   if test -z "$ac_lib"; then
8150     ac_res="none required"
8151   else
8152     ac_res=-l$ac_lib
8153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8154   fi
8155   rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (ac_try="$ac_link"
8157 case "(($ac_try" in
8158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159   *) ac_try_echo=$ac_try;;
8160 esac
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162   (eval "$ac_link") 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170   { (case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_try") 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; } &&
8179          { ac_try='test -s conftest$ac_exeext'
8180   { (case "(($ac_try" in
8181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182   *) ac_try_echo=$ac_try;;
8183 esac
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185   (eval "$ac_try") 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; }; then
8189   ac_cv_search_opendir=$ac_res
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194
8195 fi
8196
8197 rm -f core conftest.err conftest.$ac_objext \
8198       conftest$ac_exeext
8199   if test "${ac_cv_search_opendir+set}" = set; then
8200   break
8201 fi
8202 done
8203 if test "${ac_cv_search_opendir+set}" = set; then
8204   :
8205 else
8206   ac_cv_search_opendir=no
8207 fi
8208 rm conftest.$ac_ext
8209 LIBS=$ac_func_search_save_LIBS
8210 fi
8211 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8212 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8213 ac_res=$ac_cv_search_opendir
8214 if test "$ac_res" != no; then
8215   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8216
8217 fi
8218
8219 else
8220   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8221 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8222 if test "${ac_cv_search_opendir+set}" = set; then
8223   echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225   ac_func_search_save_LIBS=$LIBS
8226 cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232
8233 /* Override any GCC internal prototype to avoid an error.
8234    Use char because int might match the return type of a GCC
8235    builtin and then its argument prototype would still apply.  */
8236 #ifdef __cplusplus
8237 extern "C"
8238 #endif
8239 char opendir ();
8240 int
8241 main ()
8242 {
8243 return opendir ();
8244   ;
8245   return 0;
8246 }
8247 _ACEOF
8248 for ac_lib in '' x; do
8249   if test -z "$ac_lib"; then
8250     ac_res="none required"
8251   else
8252     ac_res=-l$ac_lib
8253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8254   fi
8255   rm -f conftest.$ac_objext conftest$ac_exeext
8256 if { (ac_try="$ac_link"
8257 case "(($ac_try" in
8258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259   *) ac_try_echo=$ac_try;;
8260 esac
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262   (eval "$ac_link") 2>conftest.er1
8263   ac_status=$?
8264   grep -v '^ *+' conftest.er1 >conftest.err
8265   rm -f conftest.er1
8266   cat conftest.err >&5
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); } &&
8269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8270   { (case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_try") 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; } &&
8279          { ac_try='test -s conftest$ac_exeext'
8280   { (case "(($ac_try" in
8281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282   *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285   (eval "$ac_try") 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; }; then
8289   ac_cv_search_opendir=$ac_res
8290 else
8291   echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294
8295 fi
8296
8297 rm -f core conftest.err conftest.$ac_objext \
8298       conftest$ac_exeext
8299   if test "${ac_cv_search_opendir+set}" = set; then
8300   break
8301 fi
8302 done
8303 if test "${ac_cv_search_opendir+set}" = set; then
8304   :
8305 else
8306   ac_cv_search_opendir=no
8307 fi
8308 rm conftest.$ac_ext
8309 LIBS=$ac_func_search_save_LIBS
8310 fi
8311 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8312 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8313 ac_res=$ac_cv_search_opendir
8314 if test "$ac_res" != no; then
8315   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8316
8317 fi
8318
8319 fi
8320
8321
8322 for ac_header in dlfcn.h
8323 do
8324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8326   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8329   echo $ECHO_N "(cached) $ECHO_C" >&6
8330 fi
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332                { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 else
8335   # Is the header compilable?
8336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h.  */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h.  */
8344 $ac_includes_default
8345 #include <$ac_header>
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8349 case "(($ac_try" in
8350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351   *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354   (eval "$ac_compile") 2>conftest.er1
8355   ac_status=$?
8356   grep -v '^ *+' conftest.er1 >conftest.err
8357   rm -f conftest.er1
8358   cat conftest.err >&5
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362   { (case "(($ac_try" in
8363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364   *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367   (eval "$ac_try") 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; } &&
8371          { ac_try='test -s conftest.$ac_objext'
8372   { (case "(($ac_try" in
8373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374   *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377   (eval "$ac_try") 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; }; then
8381   ac_header_compiler=yes
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386         ac_header_compiler=no
8387 fi
8388
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8391 echo "${ECHO_T}$ac_header_compiler" >&6; }
8392
8393 # Is the header present?
8394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402 #include <$ac_header>
8403 _ACEOF
8404 if { (ac_try="$ac_cpp conftest.$ac_ext"
8405 case "(($ac_try" in
8406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407   *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8411   ac_status=$?
8412   grep -v '^ *+' conftest.er1 >conftest.err
8413   rm -f conftest.er1
8414   cat conftest.err >&5
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } >/dev/null; then
8417   if test -s conftest.err; then
8418     ac_cpp_err=$ac_c_preproc_warn_flag
8419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8420   else
8421     ac_cpp_err=
8422   fi
8423 else
8424   ac_cpp_err=yes
8425 fi
8426 if test -z "$ac_cpp_err"; then
8427   ac_header_preproc=yes
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432   ac_header_preproc=no
8433 fi
8434
8435 rm -f conftest.err conftest.$ac_ext
8436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8437 echo "${ECHO_T}$ac_header_preproc" >&6; }
8438
8439 # So?  What about this header?
8440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8441   yes:no: )
8442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8446     ac_header_preproc=yes
8447     ;;
8448   no:yes:* )
8449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8461     ( cat <<\_ASBOX
8462 ## ------------------------------------ ##
8463 ## Report this to http://llvm.org/bugs/ ##
8464 ## ------------------------------------ ##
8465 _ASBOX
8466      ) | sed "s/^/$as_me: WARNING:     /" >&2
8467     ;;
8468 esac
8469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8472   echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474   eval "$as_ac_Header=\$ac_header_preproc"
8475 fi
8476 ac_res=`eval echo '${'$as_ac_Header'}'`
8477                { echo "$as_me:$LINENO: result: $ac_res" >&5
8478 echo "${ECHO_T}$ac_res" >&6; }
8479
8480 fi
8481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8482   cat >>confdefs.h <<_ACEOF
8483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8484 _ACEOF
8485
8486 fi
8487
8488 done
8489
8490 # Check whether --enable-ltdl-install was given.
8491 if test "${enable_ltdl_install+set}" = set; then
8492   enableval=$enable_ltdl_install;
8493 fi
8494
8495
8496
8497
8498 if test x"${enable_ltdl_install-no}" != xno; then
8499   INSTALL_LTDL_TRUE=
8500   INSTALL_LTDL_FALSE='#'
8501 else
8502   INSTALL_LTDL_TRUE='#'
8503   INSTALL_LTDL_FALSE=
8504 fi
8505
8506
8507
8508 if test x"${enable_ltdl_convenience-no}" != xno; then
8509   CONVENIENCE_LTDL_TRUE=
8510   CONVENIENCE_LTDL_FALSE='#'
8511 else
8512   CONVENIENCE_LTDL_TRUE='#'
8513   CONVENIENCE_LTDL_FALSE=
8514 fi
8515
8516
8517 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8518 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8519 library_names_spec=
8520 libname_spec='lib$name'
8521 soname_spec=
8522 shrext_cmds=".so"
8523 postinstall_cmds=
8524 postuninstall_cmds=
8525 finish_cmds=
8526 finish_eval=
8527 shlibpath_var=
8528 shlibpath_overrides_runpath=unknown
8529 version_type=none
8530 dynamic_linker="$host_os ld.so"
8531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8532 if test "$GCC" = yes; then
8533   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8534   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8535     # if the path contains ";" then we assume it to be the separator
8536     # otherwise default to the standard path separator (i.e. ":") - it is
8537     # assumed that no part of a normal pathname contains ";" but that should
8538     # okay in the real world where ";" in dirpaths is itself problematic.
8539     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8540   else
8541     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8542   fi
8543 else
8544   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8545 fi
8546 need_lib_prefix=unknown
8547 hardcode_into_libs=no
8548
8549 # when you set need_version to no, make sure it does not cause -set_version
8550 # flags to be left without arguments
8551 need_version=unknown
8552
8553 case $host_os in
8554 aix3*)
8555   version_type=linux
8556   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8557   shlibpath_var=LIBPATH
8558
8559   # AIX 3 has no versioning support, so we append a major version to the name.
8560   soname_spec='${libname}${release}${shared_ext}$major'
8561   ;;
8562
8563 aix4* | aix5*)
8564   version_type=linux
8565   need_lib_prefix=no
8566   need_version=no
8567   hardcode_into_libs=yes
8568   if test "$host_cpu" = ia64; then
8569     # AIX 5 supports IA64
8570     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8571     shlibpath_var=LD_LIBRARY_PATH
8572   else
8573     # With GCC up to 2.95.x, collect2 would create an import file
8574     # for dependence libraries.  The import file would start with
8575     # the line `#! .'.  This would cause the generated library to
8576     # depend on `.', always an invalid library.  This was fixed in
8577     # development snapshots of GCC prior to 3.0.
8578     case $host_os in
8579       aix4 | aix4.[01] | aix4.[01].*)
8580       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8581            echo ' yes '
8582            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8583         :
8584       else
8585         can_build_shared=no
8586       fi
8587       ;;
8588     esac
8589     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8590     # soname into executable. Probably we can add versioning support to
8591     # collect2, so additional links can be useful in future.
8592     if test "$aix_use_runtimelinking" = yes; then
8593       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8594       # instead of lib<name>.a to let people know that these are not
8595       # typical AIX shared libraries.
8596       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8597     else
8598       # We preserve .a as extension for shared libraries through AIX4.2
8599       # and later when we are not doing run time linking.
8600       library_names_spec='${libname}${release}.a $libname.a'
8601       soname_spec='${libname}${release}${shared_ext}$major'
8602     fi
8603     shlibpath_var=LIBPATH
8604   fi
8605   ;;
8606
8607 amigaos*)
8608   library_names_spec='$libname.ixlibrary $libname.a'
8609   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8610   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'
8611   ;;
8612
8613 beos*)
8614   library_names_spec='${libname}${shared_ext}'
8615   dynamic_linker="$host_os ld.so"
8616   shlibpath_var=LIBRARY_PATH
8617   ;;
8618
8619 bsdi[45]*)
8620   version_type=linux
8621   need_version=no
8622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623   soname_spec='${libname}${release}${shared_ext}$major'
8624   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8625   shlibpath_var=LD_LIBRARY_PATH
8626   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8627   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8628   # the default ld.so.conf also contains /usr/contrib/lib and
8629   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8630   # libtool to hard-code these into programs
8631   ;;
8632
8633 cygwin* | mingw* | pw32*)
8634   version_type=windows
8635   shrext_cmds=".dll"
8636   need_version=no
8637   need_lib_prefix=no
8638
8639   case $GCC,$host_os in
8640   yes,cygwin* | yes,mingw* | yes,pw32*)
8641     library_names_spec='$libname.dll.a'
8642     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8643     postinstall_cmds='base_file=`basename \${file}`~
8644       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8645       dldir=$destdir/`dirname \$dlpath`~
8646       test -d \$dldir || mkdir -p \$dldir~
8647       $install_prog $dir/$dlname \$dldir/$dlname~
8648       chmod a+x \$dldir/$dlname'
8649     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8650       dlpath=$dir/\$dldll~
8651        $rm \$dlpath'
8652     shlibpath_overrides_runpath=yes
8653
8654     case $host_os in
8655     cygwin*)
8656       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8657       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8658       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8659       ;;
8660     mingw*)
8661       # MinGW DLLs use traditional 'lib' prefix
8662       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8663       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8664       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8665         # It is most probably a Windows format PATH printed by
8666         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8667         # path with ; separators, and with drive letters. We can handle the
8668         # drive letters (cygwin fileutils understands them), so leave them,
8669         # especially as we might pass files found there to a mingw objdump,
8670         # which wouldn't understand a cygwinified path. Ahh.
8671         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8672       else
8673         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8674       fi
8675       ;;
8676     pw32*)
8677       # pw32 DLLs use 'pw' prefix rather than 'lib'
8678       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8679       ;;
8680     esac
8681     ;;
8682
8683   *)
8684     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8685     ;;
8686   esac
8687   dynamic_linker='Win32 ld.exe'
8688   # FIXME: first we should search . and the directory the executable is in
8689   shlibpath_var=PATH
8690   ;;
8691
8692 darwin* | rhapsody*)
8693   dynamic_linker="$host_os dyld"
8694   version_type=darwin
8695   need_lib_prefix=no
8696   need_version=no
8697   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8698   soname_spec='${libname}${release}${major}$shared_ext'
8699   shlibpath_overrides_runpath=yes
8700   shlibpath_var=DYLD_LIBRARY_PATH
8701   shrext_cmds='.dylib'
8702   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8703   if test "$GCC" = yes; then
8704     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"`
8705   else
8706     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8707   fi
8708   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8709   ;;
8710
8711 dgux*)
8712   version_type=linux
8713   need_lib_prefix=no
8714   need_version=no
8715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8716   soname_spec='${libname}${release}${shared_ext}$major'
8717   shlibpath_var=LD_LIBRARY_PATH
8718   ;;
8719
8720 freebsd1.*)
8721   dynamic_linker=no
8722   ;;
8723
8724 kfreebsd*-gnu)
8725   version_type=linux
8726   need_lib_prefix=no
8727   need_version=no
8728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8729   soname_spec='${libname}${release}${shared_ext}$major'
8730   shlibpath_var=LD_LIBRARY_PATH
8731   shlibpath_overrides_runpath=no
8732   hardcode_into_libs=yes
8733   dynamic_linker='GNU ld.so'
8734   ;;
8735
8736 freebsd* | dragonfly*)
8737   # DragonFly does not have aout.  When/if they implement a new
8738   # versioning mechanism, adjust this.
8739   if test -x /usr/bin/objformat; then
8740     objformat=`/usr/bin/objformat`
8741   else
8742     case $host_os in
8743     freebsd[123].*) objformat=aout ;;
8744     *) objformat=elf ;;
8745     esac
8746   fi
8747   version_type=freebsd-$objformat
8748   case $version_type in
8749     freebsd-elf*)
8750       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8751       need_version=no
8752       need_lib_prefix=no
8753       ;;
8754     freebsd-*)
8755       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8756       need_version=yes
8757       ;;
8758   esac
8759   shlibpath_var=LD_LIBRARY_PATH
8760   case $host_os in
8761   freebsd2.*)
8762     shlibpath_overrides_runpath=yes
8763     ;;
8764   freebsd3.[01]* | freebsdelf3.[01]*)
8765     shlibpath_overrides_runpath=yes
8766     hardcode_into_libs=yes
8767     ;;
8768   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8769   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8770     shlibpath_overrides_runpath=no
8771     hardcode_into_libs=yes
8772     ;;
8773   freebsd*) # from 4.6 on
8774     shlibpath_overrides_runpath=yes
8775     hardcode_into_libs=yes
8776     ;;
8777   esac
8778   ;;
8779
8780 gnu*)
8781   version_type=linux
8782   need_lib_prefix=no
8783   need_version=no
8784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8785   soname_spec='${libname}${release}${shared_ext}$major'
8786   shlibpath_var=LD_LIBRARY_PATH
8787   hardcode_into_libs=yes
8788   ;;
8789
8790 hpux9* | hpux10* | hpux11*)
8791   # Give a soname corresponding to the major version so that dld.sl refuses to
8792   # link against other versions.
8793   version_type=sunos
8794   need_lib_prefix=no
8795   need_version=no
8796   case $host_cpu in
8797   ia64*)
8798     shrext_cmds='.so'
8799     hardcode_into_libs=yes
8800     dynamic_linker="$host_os dld.so"
8801     shlibpath_var=LD_LIBRARY_PATH
8802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804     soname_spec='${libname}${release}${shared_ext}$major'
8805     if test "X$HPUX_IA64_MODE" = X32; then
8806       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8807     else
8808       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8809     fi
8810     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8811     ;;
8812    hppa*64*)
8813      shrext_cmds='.sl'
8814      hardcode_into_libs=yes
8815      dynamic_linker="$host_os dld.sl"
8816      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8817      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8818      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819      soname_spec='${libname}${release}${shared_ext}$major'
8820      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8821      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8822      ;;
8823    *)
8824     shrext_cmds='.sl'
8825     dynamic_linker="$host_os dld.sl"
8826     shlibpath_var=SHLIB_PATH
8827     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829     soname_spec='${libname}${release}${shared_ext}$major'
8830     ;;
8831   esac
8832   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8833   postinstall_cmds='chmod 555 $lib'
8834   ;;
8835
8836 interix3*)
8837   version_type=linux
8838   need_lib_prefix=no
8839   need_version=no
8840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8841   soname_spec='${libname}${release}${shared_ext}$major'
8842   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8843   shlibpath_var=LD_LIBRARY_PATH
8844   shlibpath_overrides_runpath=no
8845   hardcode_into_libs=yes
8846   ;;
8847
8848 irix5* | irix6* | nonstopux*)
8849   case $host_os in
8850     nonstopux*) version_type=nonstopux ;;
8851     *)
8852         if test "$lt_cv_prog_gnu_ld" = yes; then
8853                 version_type=linux
8854         else
8855                 version_type=irix
8856         fi ;;
8857   esac
8858   need_lib_prefix=no
8859   need_version=no
8860   soname_spec='${libname}${release}${shared_ext}$major'
8861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8862   case $host_os in
8863   irix5* | nonstopux*)
8864     libsuff= shlibsuff=
8865     ;;
8866   *)
8867     case $LD in # libtool.m4 will add one of these switches to LD
8868     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8869       libsuff= shlibsuff= libmagic=32-bit;;
8870     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8871       libsuff=32 shlibsuff=N32 libmagic=N32;;
8872     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8873       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8874     *) libsuff= shlibsuff= libmagic=never-match;;
8875     esac
8876     ;;
8877   esac
8878   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8879   shlibpath_overrides_runpath=no
8880   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8881   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8882   hardcode_into_libs=yes
8883   ;;
8884
8885 # No shared lib support for Linux oldld, aout, or coff.
8886 linux*oldld* | linux*aout* | linux*coff*)
8887   dynamic_linker=no
8888   ;;
8889
8890 # This must be Linux ELF.
8891 linux*)
8892   version_type=linux
8893   need_lib_prefix=no
8894   need_version=no
8895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896   soname_spec='${libname}${release}${shared_ext}$major'
8897   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8898   shlibpath_var=LD_LIBRARY_PATH
8899   shlibpath_overrides_runpath=no
8900   # This implies no fast_install, which is unacceptable.
8901   # Some rework will be needed to allow for fast_install
8902   # before this can be enabled.
8903   hardcode_into_libs=yes
8904
8905   # Append ld.so.conf contents to the search path
8906   if test -f /etc/ld.so.conf; then
8907     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' ' '`
8908     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8909   fi
8910
8911   # We used to test for /lib/ld.so.1 and disable shared libraries on
8912   # powerpc, because MkLinux only supported shared libraries with the
8913   # GNU dynamic linker.  Since this was broken with cross compilers,
8914   # most powerpc-linux boxes support dynamic linking these days and
8915   # people can always --disable-shared, the test was removed, and we
8916   # assume the GNU/Linux dynamic linker is in use.
8917   dynamic_linker='GNU/Linux ld.so'
8918   ;;
8919
8920 knetbsd*-gnu)
8921   version_type=linux
8922   need_lib_prefix=no
8923   need_version=no
8924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925   soname_spec='${libname}${release}${shared_ext}$major'
8926   shlibpath_var=LD_LIBRARY_PATH
8927   shlibpath_overrides_runpath=no
8928   hardcode_into_libs=yes
8929   dynamic_linker='GNU ld.so'
8930   ;;
8931
8932 netbsd*)
8933   version_type=sunos
8934   need_lib_prefix=no
8935   need_version=no
8936   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8938     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8939     dynamic_linker='NetBSD (a.out) ld.so'
8940   else
8941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942     soname_spec='${libname}${release}${shared_ext}$major'
8943     dynamic_linker='NetBSD ld.elf_so'
8944   fi
8945   shlibpath_var=LD_LIBRARY_PATH
8946   shlibpath_overrides_runpath=yes
8947   hardcode_into_libs=yes
8948   ;;
8949
8950 newsos6)
8951   version_type=linux
8952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953   shlibpath_var=LD_LIBRARY_PATH
8954   shlibpath_overrides_runpath=yes
8955   ;;
8956
8957 nto-qnx*)
8958   version_type=linux
8959   need_lib_prefix=no
8960   need_version=no
8961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962   soname_spec='${libname}${release}${shared_ext}$major'
8963   shlibpath_var=LD_LIBRARY_PATH
8964   shlibpath_overrides_runpath=yes
8965   ;;
8966
8967 openbsd* | bitrig*)
8968   version_type=sunos
8969   sys_lib_dlsearch_path_spec="/usr/lib"
8970   need_lib_prefix=no
8971   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8972   case $host_os in
8973     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8974     *)                         need_version=no  ;;
8975   esac
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8978   shlibpath_var=LD_LIBRARY_PATH
8979   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8980     case $host_os in
8981       openbsd2.[89] | openbsd2.[89].*)
8982         shlibpath_overrides_runpath=no
8983         ;;
8984       *)
8985         shlibpath_overrides_runpath=yes
8986         ;;
8987       esac
8988   else
8989     shlibpath_overrides_runpath=yes
8990   fi
8991   ;;
8992
8993 os2*)
8994   libname_spec='$name'
8995   shrext_cmds=".dll"
8996   need_lib_prefix=no
8997   library_names_spec='$libname${shared_ext} $libname.a'
8998   dynamic_linker='OS/2 ld.exe'
8999   shlibpath_var=LIBPATH
9000   ;;
9001
9002 osf3* | osf4* | osf5*)
9003   version_type=osf
9004   need_lib_prefix=no
9005   need_version=no
9006   soname_spec='${libname}${release}${shared_ext}$major'
9007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008   shlibpath_var=LD_LIBRARY_PATH
9009   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9010   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9011   ;;
9012
9013 solaris*)
9014   version_type=linux
9015   need_lib_prefix=no
9016   need_version=no
9017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018   soname_spec='${libname}${release}${shared_ext}$major'
9019   shlibpath_var=LD_LIBRARY_PATH
9020   shlibpath_overrides_runpath=yes
9021   hardcode_into_libs=yes
9022   # ldd complains unless libraries are executable
9023   postinstall_cmds='chmod +x $lib'
9024   ;;
9025
9026 sunos4*)
9027   version_type=sunos
9028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9029   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9030   shlibpath_var=LD_LIBRARY_PATH
9031   shlibpath_overrides_runpath=yes
9032   if test "$with_gnu_ld" = yes; then
9033     need_lib_prefix=no
9034   fi
9035   need_version=yes
9036   ;;
9037
9038 sysv4 | sysv4.3*)
9039   version_type=linux
9040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041   soname_spec='${libname}${release}${shared_ext}$major'
9042   shlibpath_var=LD_LIBRARY_PATH
9043   case $host_vendor in
9044     sni)
9045       shlibpath_overrides_runpath=no
9046       need_lib_prefix=no
9047       export_dynamic_flag_spec='${wl}-Blargedynsym'
9048       runpath_var=LD_RUN_PATH
9049       ;;
9050     siemens)
9051       need_lib_prefix=no
9052       ;;
9053     motorola)
9054       need_lib_prefix=no
9055       need_version=no
9056       shlibpath_overrides_runpath=no
9057       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9058       ;;
9059   esac
9060   ;;
9061
9062 sysv4*MP*)
9063   if test -d /usr/nec ;then
9064     version_type=linux
9065     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9066     soname_spec='$libname${shared_ext}.$major'
9067     shlibpath_var=LD_LIBRARY_PATH
9068   fi
9069   ;;
9070
9071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9072   version_type=freebsd-elf
9073   need_lib_prefix=no
9074   need_version=no
9075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9076   soname_spec='${libname}${release}${shared_ext}$major'
9077   shlibpath_var=LD_LIBRARY_PATH
9078   hardcode_into_libs=yes
9079   if test "$with_gnu_ld" = yes; then
9080     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9081     shlibpath_overrides_runpath=no
9082   else
9083     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9084     shlibpath_overrides_runpath=yes
9085     case $host_os in
9086       sco3.2v5*)
9087         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9088         ;;
9089     esac
9090   fi
9091   sys_lib_dlsearch_path_spec='/usr/lib'
9092   ;;
9093
9094 uts4*)
9095   version_type=linux
9096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097   soname_spec='${libname}${release}${shared_ext}$major'
9098   shlibpath_var=LD_LIBRARY_PATH
9099   ;;
9100
9101 *)
9102   dynamic_linker=no
9103   ;;
9104 esac
9105 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9106 echo "${ECHO_T}$dynamic_linker" >&6; }
9107 test "$dynamic_linker" = no && can_build_shared=no
9108
9109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9110 if test "$GCC" = yes; then
9111   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9112 fi
9113
9114
9115 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9116 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9117 if test "${libltdl_cv_shlibext+set}" = set; then
9118   echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120
9121 module=yes
9122 eval libltdl_cv_shlibext=$shrext_cmds
9123
9124 fi
9125 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9126 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9127 if test -n "$libltdl_cv_shlibext"; then
9128
9129 cat >>confdefs.h <<_ACEOF
9130 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9131 _ACEOF
9132
9133 fi
9134
9135
9136 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9137 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9138 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9139   echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9141   libltdl_cv_shlibpath_var="$shlibpath_var"
9142 fi
9143 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9144 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9145 if test -n "$libltdl_cv_shlibpath_var"; then
9146
9147 cat >>confdefs.h <<_ACEOF
9148 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9149 _ACEOF
9150
9151 fi
9152
9153
9154 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9155 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9156 if test "${libltdl_cv_sys_search_path+set}" = set; then
9157   echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9160 fi
9161 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9162 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9163 if test -n "$libltdl_cv_sys_search_path"; then
9164   sys_search_path=
9165   for dir in $libltdl_cv_sys_search_path; do
9166     if test -z "$sys_search_path"; then
9167       sys_search_path="$dir"
9168     else
9169       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9170     fi
9171   done
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9175 _ACEOF
9176
9177 fi
9178
9179 { echo "$as_me:$LINENO: checking for objdir" >&5
9180 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9181 if test "${libltdl_cv_objdir+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   libltdl_cv_objdir="$objdir"
9185   if test -n "$objdir"; then
9186     :
9187   else
9188     rm -f .libs 2>/dev/null
9189     mkdir .libs 2>/dev/null
9190     if test -d .libs; then
9191       libltdl_cv_objdir=.libs
9192     else
9193       # MS-DOS does not allow filenames that begin with a dot.
9194       libltdl_cv_objdir=_libs
9195     fi
9196   rmdir .libs 2>/dev/null
9197   fi
9198
9199 fi
9200 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9201 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9202
9203 cat >>confdefs.h <<_ACEOF
9204 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9205 _ACEOF
9206
9207
9208
9209
9210
9211
9212 # Check for command to grab the raw symbol name followed by C symbol from nm.
9213 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9214 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9215 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218
9219 # These are sane defaults that work on at least a few old systems.
9220 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9221
9222 # Character class describing NM global symbol codes.
9223 symcode='[BCDEGRST]'
9224
9225 # Regexp to match symbols that can be accessed directly from C.
9226 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9227
9228 # Transform an extracted symbol line into a proper C declaration
9229 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9230
9231 # Transform an extracted symbol line into symbol name and symbol address
9232 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'"
9233
9234 # Define system-specific variables.
9235 case $host_os in
9236 aix*)
9237   symcode='[BCDT]'
9238   ;;
9239 cygwin* | mingw* | pw32*)
9240   symcode='[ABCDGISTW]'
9241   ;;
9242 hpux*) # Its linker distinguishes data from code symbols
9243   if test "$host_cpu" = ia64; then
9244     symcode='[ABCDEGRST]'
9245   fi
9246   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9247   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'"
9248   ;;
9249 linux*)
9250   if test "$host_cpu" = ia64; then
9251     symcode='[ABCDGIRSTW]'
9252     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9253     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'"
9254   fi
9255   ;;
9256 irix* | nonstopux*)
9257   symcode='[BCDEGRST]'
9258   ;;
9259 osf*)
9260   symcode='[BCDEGQRST]'
9261   ;;
9262 solaris*)
9263   symcode='[BDRT]'
9264   ;;
9265 sco3.2v5*)
9266   symcode='[DT]'
9267   ;;
9268 sysv4.2uw2*)
9269   symcode='[DT]'
9270   ;;
9271 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9272   symcode='[ABDT]'
9273   ;;
9274 sysv4)
9275   symcode='[DFNSTU]'
9276   ;;
9277 esac
9278
9279 # Handle CRLF in mingw tool chain
9280 opt_cr=
9281 case $build_os in
9282 mingw*)
9283   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9284   ;;
9285 esac
9286
9287 # If we're using GNU nm, then use its standard symbol codes.
9288 case `$NM -V 2>&1` in
9289 *GNU* | *'with BFD'*)
9290   symcode='[ABCDGIRSTW]' ;;
9291 esac
9292
9293 # Try without a prefix undercore, then with it.
9294 for ac_symprfx in "" "_"; do
9295
9296   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9297   symxfrm="\\1 $ac_symprfx\\2 \\2"
9298
9299   # Write the raw and C identifiers.
9300   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9301
9302   # Check to see that the pipe works correctly.
9303   pipe_works=no
9304
9305   rm -f conftest*
9306   cat > conftest.$ac_ext <<EOF
9307 #ifdef __cplusplus
9308 extern "C" {
9309 #endif
9310 char nm_test_var;
9311 void nm_test_func(){}
9312 #ifdef __cplusplus
9313 }
9314 #endif
9315 int main(){nm_test_var='a';nm_test_func();return(0);}
9316 EOF
9317
9318   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9319   (eval $ac_compile) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; then
9323     # Now try to grab the symbols.
9324     nlist=conftest.nm
9325     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9326   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); } && test -s "$nlist"; then
9330       # Try sorting and uniquifying the output.
9331       if sort "$nlist" | uniq > "$nlist"T; then
9332         mv -f "$nlist"T "$nlist"
9333       else
9334         rm -f "$nlist"T
9335       fi
9336
9337       # Make sure that we snagged all the symbols we need.
9338       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9339         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9340           cat <<EOF > conftest.$ac_ext
9341 #ifdef __cplusplus
9342 extern "C" {
9343 #endif
9344
9345 EOF
9346           # Now generate the symbol file.
9347           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9348
9349           cat <<EOF >> conftest.$ac_ext
9350 #if defined (__STDC__) && __STDC__
9351 # define lt_ptr_t void *
9352 #else
9353 # define lt_ptr_t char *
9354 # define const
9355 #endif
9356
9357 /* The mapping between symbol names and symbols. */
9358 const struct {
9359   const char *name;
9360   lt_ptr_t address;
9361 }
9362 lt_preloaded_symbols[] =
9363 {
9364 EOF
9365           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9366           cat <<\EOF >> conftest.$ac_ext
9367   {0, (lt_ptr_t) 0}
9368 };
9369
9370 #ifdef __cplusplus
9371 }
9372 #endif
9373 EOF
9374           # Now try linking the two files.
9375           mv conftest.$ac_objext conftstm.$ac_objext
9376           lt_save_LIBS="$LIBS"
9377           lt_save_CFLAGS="$CFLAGS"
9378           LIBS="conftstm.$ac_objext"
9379           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9380           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381   (eval $ac_link) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9385             pipe_works=yes
9386           fi
9387           LIBS="$lt_save_LIBS"
9388           CFLAGS="$lt_save_CFLAGS"
9389         else
9390           echo "cannot find nm_test_func in $nlist" >&5
9391         fi
9392       else
9393         echo "cannot find nm_test_var in $nlist" >&5
9394       fi
9395     else
9396       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9397     fi
9398   else
9399     echo "$progname: failed program was:" >&5
9400     cat conftest.$ac_ext >&5
9401   fi
9402   rm -f conftest* conftst*
9403
9404   # Do not use the global_symbol_pipe unless it works.
9405   if test "$pipe_works" = yes; then
9406     break
9407   else
9408     lt_cv_sys_global_symbol_pipe=
9409   fi
9410 done
9411
9412 fi
9413
9414 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9415   lt_cv_sys_global_symbol_to_cdecl=
9416 fi
9417 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9418   { echo "$as_me:$LINENO: result: failed" >&5
9419 echo "${ECHO_T}failed" >&6; }
9420 else
9421   { echo "$as_me:$LINENO: result: ok" >&5
9422 echo "${ECHO_T}ok" >&6; }
9423 fi
9424
9425
9426 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9427 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9428 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9429   echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9432     libltdl_cv_preloaded_symbols=yes
9433   else
9434     libltdl_cv_preloaded_symbols=no
9435   fi
9436
9437 fi
9438 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9439 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9440 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9441
9442 cat >>confdefs.h <<\_ACEOF
9443 #define HAVE_PRELOADED_SYMBOLS 1
9444 _ACEOF
9445
9446 fi
9447
9448 LIBADD_DL=
9449
9450 ac_ext=c
9451 ac_cpp='$CPP $CPPFLAGS'
9452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9455
9456
9457 { echo "$as_me:$LINENO: checking for shl_load" >&5
9458 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9459 if test "${ac_cv_func_shl_load+set}" = set; then
9460   echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462   cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9470 #define shl_load innocuous_shl_load
9471
9472 /* System header to define __stub macros and hopefully few prototypes,
9473     which can conflict with char shl_load (); below.
9474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9475     <limits.h> exists even on freestanding compilers.  */
9476
9477 #ifdef __STDC__
9478 # include <limits.h>
9479 #else
9480 # include <assert.h>
9481 #endif
9482
9483 #undef shl_load
9484
9485 /* Override any GCC internal prototype to avoid an error.
9486    Use char because int might match the return type of a GCC
9487    builtin and then its argument prototype would still apply.  */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 char shl_load ();
9492 /* The GNU C library defines this for functions which it implements
9493     to always fail with ENOSYS.  Some functions are actually named
9494     something starting with __ and the normal name is an alias.  */
9495 #if defined __stub_shl_load || defined __stub___shl_load
9496 choke me
9497 #endif
9498
9499 int
9500 main ()
9501 {
9502 return shl_load ();
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (ac_try="$ac_link"
9509 case "(($ac_try" in
9510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511   *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514   (eval "$ac_link") 2>conftest.er1
9515   ac_status=$?
9516   grep -v '^ *+' conftest.er1 >conftest.err
9517   rm -f conftest.er1
9518   cat conftest.err >&5
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } &&
9521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9522   { (case "(($ac_try" in
9523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524   *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527   (eval "$ac_try") 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; } &&
9531          { ac_try='test -s conftest$ac_exeext'
9532   { (case "(($ac_try" in
9533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534   *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537   (eval "$ac_try") 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_cv_func_shl_load=yes
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546         ac_cv_func_shl_load=no
9547 fi
9548
9549 rm -f core conftest.err conftest.$ac_objext \
9550       conftest$ac_exeext conftest.$ac_ext
9551 fi
9552 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9553 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9554 if test $ac_cv_func_shl_load = yes; then
9555
9556 cat >>confdefs.h <<\_ACEOF
9557 #define HAVE_SHL_LOAD 1
9558 _ACEOF
9559
9560 else
9561   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9562 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9563 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   ac_check_lib_save_LIBS=$LIBS
9567 LIBS="-ldld  $LIBS"
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574
9575 /* Override any GCC internal prototype to avoid an error.
9576    Use char because int might match the return type of a GCC
9577    builtin and then its argument prototype would still apply.  */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char shl_load ();
9582 int
9583 main ()
9584 {
9585 return shl_load ();
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9592 case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597   (eval "$ac_link") 2>conftest.er1
9598   ac_status=$?
9599   grep -v '^ *+' conftest.er1 >conftest.err
9600   rm -f conftest.er1
9601   cat conftest.err >&5
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } &&
9604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9605   { (case "(($ac_try" in
9606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607   *) ac_try_echo=$ac_try;;
9608 esac
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610   (eval "$ac_try") 2>&5
9611   ac_status=$?
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); }; } &&
9614          { ac_try='test -s conftest$ac_exeext'
9615   { (case "(($ac_try" in
9616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617   *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620   (eval "$ac_try") 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; }; then
9624   ac_cv_lib_dld_shl_load=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629         ac_cv_lib_dld_shl_load=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext \
9633       conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9635 fi
9636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9637 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9638 if test $ac_cv_lib_dld_shl_load = yes; then
9639
9640 cat >>confdefs.h <<\_ACEOF
9641 #define HAVE_SHL_LOAD 1
9642 _ACEOF
9643
9644         LIBADD_DL="$LIBADD_DL -ldld"
9645 else
9646   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9647 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9648 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9649   echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651   ac_check_lib_save_LIBS=$LIBS
9652 LIBS="-ldl  $LIBS"
9653 cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h.  */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h.  */
9659
9660 /* Override any GCC internal prototype to avoid an error.
9661    Use char because int might match the return type of a GCC
9662    builtin and then its argument prototype would still apply.  */
9663 #ifdef __cplusplus
9664 extern "C"
9665 #endif
9666 char dlopen ();
9667 int
9668 main ()
9669 {
9670 return dlopen ();
9671   ;
9672   return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (ac_try="$ac_link"
9677 case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_link") 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9690   { (case "(($ac_try" in
9691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692   *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695   (eval "$ac_try") 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; } &&
9699          { ac_try='test -s conftest$ac_exeext'
9700   { (case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_try") 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; }; then
9709   ac_cv_lib_dl_dlopen=yes
9710 else
9711   echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714         ac_cv_lib_dl_dlopen=no
9715 fi
9716
9717 rm -f core conftest.err conftest.$ac_objext \
9718       conftest$ac_exeext conftest.$ac_ext
9719 LIBS=$ac_check_lib_save_LIBS
9720 fi
9721 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9722 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9723 if test $ac_cv_lib_dl_dlopen = yes; then
9724
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_LIBDL 1
9727 _ACEOF
9728
9729                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9730 else
9731   cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h.  */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h.  */
9737 #if HAVE_DLFCN_H
9738 #  include <dlfcn.h>
9739 #endif
9740
9741 int
9742 main ()
9743 {
9744 dlopen(0, 0);
9745   ;
9746   return 0;
9747 }
9748 _ACEOF
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9751 case "(($ac_try" in
9752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753   *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756   (eval "$ac_link") 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764   { (case "(($ac_try" in
9765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766   *) ac_try_echo=$ac_try;;
9767 esac
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769   (eval "$ac_try") 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); }; } &&
9773          { ac_try='test -s conftest$ac_exeext'
9774   { (case "(($ac_try" in
9775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776   *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779   (eval "$ac_try") 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); }; }; then
9783
9784 cat >>confdefs.h <<\_ACEOF
9785 #define HAVE_LIBDL 1
9786 _ACEOF
9787  libltdl_cv_func_dlopen="yes"
9788 else
9789   echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9791
9792         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9793 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9794 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9795   echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797   ac_check_lib_save_LIBS=$LIBS
9798 LIBS="-lsvld  $LIBS"
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805
9806 /* Override any GCC internal prototype to avoid an error.
9807    Use char because int might match the return type of a GCC
9808    builtin and then its argument prototype would still apply.  */
9809 #ifdef __cplusplus
9810 extern "C"
9811 #endif
9812 char dlopen ();
9813 int
9814 main ()
9815 {
9816 return dlopen ();
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9823 case "(($ac_try" in
9824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825   *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828   (eval "$ac_link") 2>conftest.er1
9829   ac_status=$?
9830   grep -v '^ *+' conftest.er1 >conftest.err
9831   rm -f conftest.er1
9832   cat conftest.err >&5
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); } &&
9835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836   { (case "(($ac_try" in
9837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838   *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841   (eval "$ac_try") 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; } &&
9845          { ac_try='test -s conftest$ac_exeext'
9846   { (case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_try") 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; }; then
9855   ac_cv_lib_svld_dlopen=yes
9856 else
9857   echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860         ac_cv_lib_svld_dlopen=no
9861 fi
9862
9863 rm -f core conftest.err conftest.$ac_objext \
9864       conftest$ac_exeext conftest.$ac_ext
9865 LIBS=$ac_check_lib_save_LIBS
9866 fi
9867 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9868 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9869 if test $ac_cv_lib_svld_dlopen = yes; then
9870
9871 cat >>confdefs.h <<\_ACEOF
9872 #define HAVE_LIBDL 1
9873 _ACEOF
9874
9875                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9876 else
9877   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9878 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9879 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9880   echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882   ac_check_lib_save_LIBS=$LIBS
9883 LIBS="-ldld  $LIBS"
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h.  */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h.  */
9890
9891 /* Override any GCC internal prototype to avoid an error.
9892    Use char because int might match the return type of a GCC
9893    builtin and then its argument prototype would still apply.  */
9894 #ifdef __cplusplus
9895 extern "C"
9896 #endif
9897 char dld_link ();
9898 int
9899 main ()
9900 {
9901 return dld_link ();
9902   ;
9903   return 0;
9904 }
9905 _ACEOF
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (ac_try="$ac_link"
9908 case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_link") 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
9917   cat conftest.err >&5
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9921   { (case "(($ac_try" in
9922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923   *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926   (eval "$ac_try") 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; } &&
9930          { ac_try='test -s conftest$ac_exeext'
9931   { (case "(($ac_try" in
9932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933   *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936   (eval "$ac_try") 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; }; then
9940   ac_cv_lib_dld_dld_link=yes
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945         ac_cv_lib_dld_dld_link=no
9946 fi
9947
9948 rm -f core conftest.err conftest.$ac_objext \
9949       conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9951 fi
9952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9954 if test $ac_cv_lib_dld_dld_link = yes; then
9955
9956 cat >>confdefs.h <<\_ACEOF
9957 #define HAVE_DLD 1
9958 _ACEOF
9959
9960                 LIBADD_DL="$LIBADD_DL -ldld"
9961 else
9962   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9963 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9964 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967   cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9975 #define _dyld_func_lookup innocuous__dyld_func_lookup
9976
9977 /* System header to define __stub macros and hopefully few prototypes,
9978     which can conflict with char _dyld_func_lookup (); below.
9979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980     <limits.h> exists even on freestanding compilers.  */
9981
9982 #ifdef __STDC__
9983 # include <limits.h>
9984 #else
9985 # include <assert.h>
9986 #endif
9987
9988 #undef _dyld_func_lookup
9989
9990 /* Override any GCC internal prototype to avoid an error.
9991    Use char because int might match the return type of a GCC
9992    builtin and then its argument prototype would still apply.  */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 char _dyld_func_lookup ();
9997 /* The GNU C library defines this for functions which it implements
9998     to always fail with ENOSYS.  Some functions are actually named
9999     something starting with __ and the normal name is an alias.  */
10000 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10001 choke me
10002 #endif
10003
10004 int
10005 main ()
10006 {
10007 return _dyld_func_lookup ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_link") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } &&
10026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027   { (case "(($ac_try" in
10028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029   *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032   (eval "$ac_try") 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; } &&
10036          { ac_try='test -s conftest$ac_exeext'
10037   { (case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042   (eval "$ac_try") 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; }; then
10046   ac_cv_func__dyld_func_lookup=yes
10047 else
10048   echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051         ac_cv_func__dyld_func_lookup=no
10052 fi
10053
10054 rm -f core conftest.err conftest.$ac_objext \
10055       conftest$ac_exeext conftest.$ac_ext
10056 fi
10057 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10058 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10059 if test $ac_cv_func__dyld_func_lookup = yes; then
10060
10061 cat >>confdefs.h <<\_ACEOF
10062 #define HAVE_DYLD 1
10063 _ACEOF
10064
10065 fi
10066
10067
10068 fi
10069
10070
10071 fi
10072
10073
10074 fi
10075
10076 rm -f core conftest.err conftest.$ac_objext \
10077       conftest$ac_exeext conftest.$ac_ext
10078
10079 fi
10080
10081
10082 fi
10083
10084
10085 fi
10086
10087
10088 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10089 then
10090   lt_save_LIBS="$LIBS"
10091   LIBS="$LIBS $LIBADD_DL"
10092
10093 for ac_func in dlerror
10094 do
10095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101   cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h.  */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h.  */
10107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10109 #define $ac_func innocuous_$ac_func
10110
10111 /* System header to define __stub macros and hopefully few prototypes,
10112     which can conflict with char $ac_func (); below.
10113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10114     <limits.h> exists even on freestanding compilers.  */
10115
10116 #ifdef __STDC__
10117 # include <limits.h>
10118 #else
10119 # include <assert.h>
10120 #endif
10121
10122 #undef $ac_func
10123
10124 /* Override any GCC internal prototype to avoid an error.
10125    Use char because int might match the return type of a GCC
10126    builtin and then its argument prototype would still apply.  */
10127 #ifdef __cplusplus
10128 extern "C"
10129 #endif
10130 char $ac_func ();
10131 /* The GNU C library defines this for functions which it implements
10132     to always fail with ENOSYS.  Some functions are actually named
10133     something starting with __ and the normal name is an alias.  */
10134 #if defined __stub_$ac_func || defined __stub___$ac_func
10135 choke me
10136 #endif
10137
10138 int
10139 main ()
10140 {
10141 return $ac_func ();
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (ac_try="$ac_link"
10148 case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_link") 2>conftest.er1
10154   ac_status=$?
10155   grep -v '^ *+' conftest.er1 >conftest.err
10156   rm -f conftest.er1
10157   cat conftest.err >&5
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } &&
10160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161   { (case "(($ac_try" in
10162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163   *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166   (eval "$ac_try") 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; } &&
10170          { ac_try='test -s conftest$ac_exeext'
10171   { (case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176   (eval "$ac_try") 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   eval "$as_ac_var=yes"
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185         eval "$as_ac_var=no"
10186 fi
10187
10188 rm -f core conftest.err conftest.$ac_objext \
10189       conftest$ac_exeext conftest.$ac_ext
10190 fi
10191 ac_res=`eval echo '${'$as_ac_var'}'`
10192                { echo "$as_me:$LINENO: result: $ac_res" >&5
10193 echo "${ECHO_T}$ac_res" >&6; }
10194 if test `eval echo '${'$as_ac_var'}'` = yes; then
10195   cat >>confdefs.h <<_ACEOF
10196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10197 _ACEOF
10198
10199 fi
10200 done
10201
10202   LIBS="$lt_save_LIBS"
10203 fi
10204 ac_ext=c
10205 ac_cpp='$CPP $CPPFLAGS'
10206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10209
10210
10211
10212 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10213 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10214 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10215   echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217   ac_cv_sys_symbol_underscore=no
10218   cat > conftest.$ac_ext <<EOF
10219 void nm_test_func(){}
10220 int main(){nm_test_func;return 0;}
10221 EOF
10222   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223   (eval $ac_compile) 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); }; then
10227     # Now try to grab the symbols.
10228     ac_nlist=conftest.nm
10229     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10230   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } && test -s "$ac_nlist"; then
10234       # See whether the symbols have a leading underscore.
10235       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10236         ac_cv_sys_symbol_underscore=yes
10237       else
10238         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10239           :
10240         else
10241           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10242         fi
10243       fi
10244     else
10245       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10246     fi
10247   else
10248     echo "configure: failed program was:" >&5
10249     cat conftest.c >&5
10250   fi
10251   rm -rf conftest*
10252
10253 fi
10254 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10255 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10256
10257
10258 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10259   if test x"$libltdl_cv_func_dlopen" = xyes ||
10260      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10261         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10262 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10263 if test "${libltdl_cv_need_uscore+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   libltdl_cv_need_uscore=unknown
10267           save_LIBS="$LIBS"
10268           LIBS="$LIBS $LIBADD_DL"
10269           if test "$cross_compiling" = yes; then :
10270   libltdl_cv_need_uscore=cross
10271 else
10272   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10273   lt_status=$lt_dlunknown
10274   cat > conftest.$ac_ext <<EOF
10275 #line 10275 "configure"
10276 #include "confdefs.h"
10277
10278 #if HAVE_DLFCN_H
10279 #include <dlfcn.h>
10280 #endif
10281
10282 #include <stdio.h>
10283
10284 #ifdef RTLD_GLOBAL
10285 #  define LT_DLGLOBAL           RTLD_GLOBAL
10286 #else
10287 #  ifdef DL_GLOBAL
10288 #    define LT_DLGLOBAL         DL_GLOBAL
10289 #  else
10290 #    define LT_DLGLOBAL         0
10291 #  endif
10292 #endif
10293
10294 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10295    find out it does not work in some platform. */
10296 #ifndef LT_DLLAZY_OR_NOW
10297 #  ifdef RTLD_LAZY
10298 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10299 #  else
10300 #    ifdef DL_LAZY
10301 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10302 #    else
10303 #      ifdef RTLD_NOW
10304 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10305 #      else
10306 #        ifdef DL_NOW
10307 #          define LT_DLLAZY_OR_NOW      DL_NOW
10308 #        else
10309 #          define LT_DLLAZY_OR_NOW      0
10310 #        endif
10311 #      endif
10312 #    endif
10313 #  endif
10314 #endif
10315
10316 #ifdef __cplusplus
10317 extern "C" void exit (int);
10318 #endif
10319
10320 void fnord() { int i=42;}
10321 int main ()
10322 {
10323   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10324   int status = $lt_dlunknown;
10325
10326   if (self)
10327     {
10328       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10329       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10330       /* dlclose (self); */
10331     }
10332   else
10333     puts (dlerror ());
10334
10335     exit (status);
10336 }
10337 EOF
10338   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339   (eval $ac_link) 2>&5
10340   ac_status=$?
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10343     (./conftest; exit; ) >&5 2>/dev/null
10344     lt_status=$?
10345     case x$lt_status in
10346       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10347       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10348       x$lt_dlunknown|x*)  ;;
10349     esac
10350   else :
10351     # compilation failed
10352
10353   fi
10354 fi
10355 rm -fr conftest*
10356
10357           LIBS="$save_LIBS"
10358
10359 fi
10360 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10361 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10362   fi
10363 fi
10364
10365 if test x"$libltdl_cv_need_uscore" = xyes; then
10366
10367 cat >>confdefs.h <<\_ACEOF
10368 #define NEED_USCORE 1
10369 _ACEOF
10370
10371 fi
10372
10373
10374 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10375 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10376 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   # PORTME does your system automatically load deplibs for dlopen?
10380   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10381   # For now, we just catch OSes we know something about -- in the
10382   # future, we'll try test this programmatically.
10383   libltdl_cv_sys_dlopen_deplibs=unknown
10384   case "$host_os" in
10385   aix3*|aix4.1.*|aix4.2.*)
10386     # Unknown whether this is true for these versions of AIX, but
10387     # we want this `case' here to explicitly catch those versions.
10388     libltdl_cv_sys_dlopen_deplibs=unknown
10389     ;;
10390   aix[45]*)
10391     libltdl_cv_sys_dlopen_deplibs=yes
10392     ;;
10393   darwin*)
10394     # Assuming the user has installed a libdl from somewhere, this is true
10395     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10396     libltdl_cv_sys_dlopen_deplibs=yes
10397     ;;
10398   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10399     # GNU and its variants, using gnu ld.so (Glibc)
10400     libltdl_cv_sys_dlopen_deplibs=yes
10401     ;;
10402   hpux10*|hpux11*)
10403     libltdl_cv_sys_dlopen_deplibs=yes
10404     ;;
10405   interix*)
10406     libltdl_cv_sys_dlopen_deplibs=yes
10407     ;;
10408   irix[12345]*|irix6.[01]*)
10409     # Catch all versions of IRIX before 6.2, and indicate that we don't
10410     # know how it worked for any of those versions.
10411     libltdl_cv_sys_dlopen_deplibs=unknown
10412     ;;
10413   irix*)
10414     # The case above catches anything before 6.2, and it's known that
10415     # at 6.2 and later dlopen does load deplibs.
10416     libltdl_cv_sys_dlopen_deplibs=yes
10417     ;;
10418   netbsd*)
10419     libltdl_cv_sys_dlopen_deplibs=yes
10420     ;;
10421   openbsd*)
10422     libltdl_cv_sys_dlopen_deplibs=yes
10423     ;;
10424   osf[1234]*)
10425     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10426     # it did *not* use an RPATH in a shared library to find objects the
10427     # library depends on, so we explicitly say `no'.
10428     libltdl_cv_sys_dlopen_deplibs=no
10429     ;;
10430   osf5.0|osf5.0a|osf5.1)
10431     # dlopen *does* load deplibs and with the right loader patch applied
10432     # it even uses RPATH in a shared library to search for shared objects
10433     # that the library depends on, but there's no easy way to know if that
10434     # patch is installed.  Since this is the case, all we can really
10435     # say is unknown -- it depends on the patch being installed.  If
10436     # it is, this changes to `yes'.  Without it, it would be `no'.
10437     libltdl_cv_sys_dlopen_deplibs=unknown
10438     ;;
10439   osf*)
10440     # the two cases above should catch all versions of osf <= 5.1.  Read
10441     # the comments above for what we know about them.
10442     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10443     # is used to find them so we can finally say `yes'.
10444     libltdl_cv_sys_dlopen_deplibs=yes
10445     ;;
10446   solaris*)
10447     libltdl_cv_sys_dlopen_deplibs=yes
10448     ;;
10449   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10450     libltdl_cv_sys_dlopen_deplibs=yes
10451     ;;
10452   esac
10453
10454 fi
10455 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10456 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10457 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10458
10459 cat >>confdefs.h <<\_ACEOF
10460 #define LTDL_DLOPEN_DEPLIBS 1
10461 _ACEOF
10462
10463 fi
10464
10465
10466 for ac_header in argz.h
10467 do
10468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10473   echo $ECHO_N "(cached) $ECHO_C" >&6
10474 fi
10475 ac_res=`eval echo '${'$as_ac_Header'}'`
10476                { echo "$as_me:$LINENO: result: $ac_res" >&5
10477 echo "${ECHO_T}$ac_res" >&6; }
10478 else
10479   # Is the header compilable?
10480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h.  */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h.  */
10488 $ac_includes_default
10489 #include <$ac_header>
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495   *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498   (eval "$ac_compile") 2>conftest.er1
10499   ac_status=$?
10500   grep -v '^ *+' conftest.er1 >conftest.err
10501   rm -f conftest.er1
10502   cat conftest.err >&5
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); } &&
10505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506   { (case "(($ac_try" in
10507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508   *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511   (eval "$ac_try") 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; } &&
10515          { ac_try='test -s conftest.$ac_objext'
10516   { (case "(($ac_try" in
10517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518   *) ac_try_echo=$ac_try;;
10519 esac
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521   (eval "$ac_try") 2>&5
10522   ac_status=$?
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); }; }; then
10525   ac_header_compiler=yes
10526 else
10527   echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10529
10530         ac_header_compiler=no
10531 fi
10532
10533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10535 echo "${ECHO_T}$ac_header_compiler" >&6; }
10536
10537 # Is the header present?
10538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10540 cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h.  */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h.  */
10546 #include <$ac_header>
10547 _ACEOF
10548 if { (ac_try="$ac_cpp conftest.$ac_ext"
10549 case "(($ac_try" in
10550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551   *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10555   ac_status=$?
10556   grep -v '^ *+' conftest.er1 >conftest.err
10557   rm -f conftest.er1
10558   cat conftest.err >&5
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); } >/dev/null; then
10561   if test -s conftest.err; then
10562     ac_cpp_err=$ac_c_preproc_warn_flag
10563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10564   else
10565     ac_cpp_err=
10566   fi
10567 else
10568   ac_cpp_err=yes
10569 fi
10570 if test -z "$ac_cpp_err"; then
10571   ac_header_preproc=yes
10572 else
10573   echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10575
10576   ac_header_preproc=no
10577 fi
10578
10579 rm -f conftest.err conftest.$ac_ext
10580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10581 echo "${ECHO_T}$ac_header_preproc" >&6; }
10582
10583 # So?  What about this header?
10584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10585   yes:no: )
10586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10590     ac_header_preproc=yes
10591     ;;
10592   no:yes:* )
10593     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10595     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10596 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10597     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10599     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10600 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10603     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10605     ( cat <<\_ASBOX
10606 ## ------------------------------------ ##
10607 ## Report this to http://llvm.org/bugs/ ##
10608 ## ------------------------------------ ##
10609 _ASBOX
10610      ) | sed "s/^/$as_me: WARNING:     /" >&2
10611     ;;
10612 esac
10613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10616   echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618   eval "$as_ac_Header=\$ac_header_preproc"
10619 fi
10620 ac_res=`eval echo '${'$as_ac_Header'}'`
10621                { echo "$as_me:$LINENO: result: $ac_res" >&5
10622 echo "${ECHO_T}$ac_res" >&6; }
10623
10624 fi
10625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10626   cat >>confdefs.h <<_ACEOF
10627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10628 _ACEOF
10629
10630 fi
10631
10632 done
10633
10634
10635 { echo "$as_me:$LINENO: checking for error_t" >&5
10636 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10637 if test "${ac_cv_type_error_t+set}" = set; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640   cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646 #if HAVE_ARGZ_H
10647 #  include <argz.h>
10648 #endif
10649
10650 typedef error_t ac__type_new_;
10651 int
10652 main ()
10653 {
10654 if ((ac__type_new_ *) 0)
10655   return 0;
10656 if (sizeof (ac__type_new_))
10657   return 0;
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext
10663 if { (ac_try="$ac_compile"
10664 case "(($ac_try" in
10665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666   *) ac_try_echo=$ac_try;;
10667 esac
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669   (eval "$ac_compile") 2>conftest.er1
10670   ac_status=$?
10671   grep -v '^ *+' conftest.er1 >conftest.err
10672   rm -f conftest.er1
10673   cat conftest.err >&5
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); } &&
10676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10677   { (case "(($ac_try" in
10678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679   *) ac_try_echo=$ac_try;;
10680 esac
10681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682   (eval "$ac_try") 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; } &&
10686          { ac_try='test -s conftest.$ac_objext'
10687   { (case "(($ac_try" in
10688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689   *) ac_try_echo=$ac_try;;
10690 esac
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692   (eval "$ac_try") 2>&5
10693   ac_status=$?
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); }; }; then
10696   ac_cv_type_error_t=yes
10697 else
10698   echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10700
10701         ac_cv_type_error_t=no
10702 fi
10703
10704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10705 fi
10706 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10707 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10708 if test $ac_cv_type_error_t = yes; then
10709
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_ERROR_T 1
10712 _ACEOF
10713
10714
10715 else
10716
10717 cat >>confdefs.h <<\_ACEOF
10718 #define error_t int
10719 _ACEOF
10720
10721 fi
10722
10723
10724
10725
10726
10727
10728
10729 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10730 do
10731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10745 #define $ac_func innocuous_$ac_func
10746
10747 /* System header to define __stub macros and hopefully few prototypes,
10748     which can conflict with char $ac_func (); below.
10749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750     <limits.h> exists even on freestanding compilers.  */
10751
10752 #ifdef __STDC__
10753 # include <limits.h>
10754 #else
10755 # include <assert.h>
10756 #endif
10757
10758 #undef $ac_func
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761    Use char because int might match the return type of a GCC
10762    builtin and then its argument prototype would still apply.  */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char $ac_func ();
10767 /* The GNU C library defines this for functions which it implements
10768     to always fail with ENOSYS.  Some functions are actually named
10769     something starting with __ and the normal name is an alias.  */
10770 #if defined __stub_$ac_func || defined __stub___$ac_func
10771 choke me
10772 #endif
10773
10774 int
10775 main ()
10776 {
10777 return $ac_func ();
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789   (eval "$ac_link") 2>conftest.er1
10790   ac_status=$?
10791   grep -v '^ *+' conftest.er1 >conftest.err
10792   rm -f conftest.er1
10793   cat conftest.err >&5
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); } &&
10796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10797   { (case "(($ac_try" in
10798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799   *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802   (eval "$ac_try") 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); }; } &&
10806          { ac_try='test -s conftest$ac_exeext'
10807   { (case "(($ac_try" in
10808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809   *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812   (eval "$ac_try") 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; }; then
10816   eval "$as_ac_var=yes"
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821         eval "$as_ac_var=no"
10822 fi
10823
10824 rm -f core conftest.err conftest.$ac_objext \
10825       conftest$ac_exeext conftest.$ac_ext
10826 fi
10827 ac_res=`eval echo '${'$as_ac_var'}'`
10828                { echo "$as_me:$LINENO: result: $ac_res" >&5
10829 echo "${ECHO_T}$ac_res" >&6; }
10830 if test `eval echo '${'$as_ac_var'}'` = yes; then
10831   cat >>confdefs.h <<_ACEOF
10832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10833 _ACEOF
10834
10835 fi
10836 done
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10866                   stdio.h unistd.h
10867 do
10868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 fi
10875 ac_res=`eval echo '${'$as_ac_Header'}'`
10876                { echo "$as_me:$LINENO: result: $ac_res" >&5
10877 echo "${ECHO_T}$ac_res" >&6; }
10878 else
10879   # Is the header compilable?
10880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10882 cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 $ac_includes_default
10889 #include <$ac_header>
10890 _ACEOF
10891 rm -f conftest.$ac_objext
10892 if { (ac_try="$ac_compile"
10893 case "(($ac_try" in
10894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895   *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898   (eval "$ac_compile") 2>conftest.er1
10899   ac_status=$?
10900   grep -v '^ *+' conftest.er1 >conftest.err
10901   rm -f conftest.er1
10902   cat conftest.err >&5
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } &&
10905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10906   { (case "(($ac_try" in
10907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908   *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911   (eval "$ac_try") 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; } &&
10915          { ac_try='test -s conftest.$ac_objext'
10916   { (case "(($ac_try" in
10917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918   *) ac_try_echo=$ac_try;;
10919 esac
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921   (eval "$ac_try") 2>&5
10922   ac_status=$?
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); }; }; then
10925   ac_header_compiler=yes
10926 else
10927   echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10929
10930         ac_header_compiler=no
10931 fi
10932
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10935 echo "${ECHO_T}$ac_header_compiler" >&6; }
10936
10937 # Is the header present?
10938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10940 cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h.  */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h.  */
10946 #include <$ac_header>
10947 _ACEOF
10948 if { (ac_try="$ac_cpp conftest.$ac_ext"
10949 case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10955   ac_status=$?
10956   grep -v '^ *+' conftest.er1 >conftest.err
10957   rm -f conftest.er1
10958   cat conftest.err >&5
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } >/dev/null; then
10961   if test -s conftest.err; then
10962     ac_cpp_err=$ac_c_preproc_warn_flag
10963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10964   else
10965     ac_cpp_err=
10966   fi
10967 else
10968   ac_cpp_err=yes
10969 fi
10970 if test -z "$ac_cpp_err"; then
10971   ac_header_preproc=yes
10972 else
10973   echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976   ac_header_preproc=no
10977 fi
10978
10979 rm -f conftest.err conftest.$ac_ext
10980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10981 echo "${ECHO_T}$ac_header_preproc" >&6; }
10982
10983 # So?  What about this header?
10984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10985   yes:no: )
10986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10990     ac_header_preproc=yes
10991     ;;
10992   no:yes:* )
10993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11005     ( cat <<\_ASBOX
11006 ## ------------------------------------ ##
11007 ## Report this to http://llvm.org/bugs/ ##
11008 ## ------------------------------------ ##
11009 _ASBOX
11010      ) | sed "s/^/$as_me: WARNING:     /" >&2
11011     ;;
11012 esac
11013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016   echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018   eval "$as_ac_Header=\$ac_header_preproc"
11019 fi
11020 ac_res=`eval echo '${'$as_ac_Header'}'`
11021                { echo "$as_me:$LINENO: result: $ac_res" >&5
11022 echo "${ECHO_T}$ac_res" >&6; }
11023
11024 fi
11025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11026   cat >>confdefs.h <<_ACEOF
11027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11028 _ACEOF
11029
11030 fi
11031
11032 done
11033
11034
11035
11036
11037
11038 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11039 do
11040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045   echo $ECHO_N "(cached) $ECHO_C" >&6
11046 fi
11047 ac_res=`eval echo '${'$as_ac_Header'}'`
11048                { echo "$as_me:$LINENO: result: $ac_res" >&5
11049 echo "${ECHO_T}$ac_res" >&6; }
11050 else
11051   # Is the header compilable?
11052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11054 cat >conftest.$ac_ext <<_ACEOF
11055 /* confdefs.h.  */
11056 _ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h.  */
11060 $ac_includes_default
11061 #include <$ac_header>
11062 _ACEOF
11063 rm -f conftest.$ac_objext
11064 if { (ac_try="$ac_compile"
11065 case "(($ac_try" in
11066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067   *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070   (eval "$ac_compile") 2>conftest.er1
11071   ac_status=$?
11072   grep -v '^ *+' conftest.er1 >conftest.err
11073   rm -f conftest.er1
11074   cat conftest.err >&5
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); } &&
11077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11078   { (case "(($ac_try" in
11079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080   *) ac_try_echo=$ac_try;;
11081 esac
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083   (eval "$ac_try") 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); }; } &&
11087          { ac_try='test -s conftest.$ac_objext'
11088   { (case "(($ac_try" in
11089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090   *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093   (eval "$ac_try") 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; }; then
11097   ac_header_compiler=yes
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102         ac_header_compiler=no
11103 fi
11104
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107 echo "${ECHO_T}$ac_header_compiler" >&6; }
11108
11109 # Is the header present?
11110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118 #include <$ac_header>
11119 _ACEOF
11120 if { (ac_try="$ac_cpp conftest.$ac_ext"
11121 case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11127   ac_status=$?
11128   grep -v '^ *+' conftest.er1 >conftest.err
11129   rm -f conftest.er1
11130   cat conftest.err >&5
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); } >/dev/null; then
11133   if test -s conftest.err; then
11134     ac_cpp_err=$ac_c_preproc_warn_flag
11135     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11136   else
11137     ac_cpp_err=
11138   fi
11139 else
11140   ac_cpp_err=yes
11141 fi
11142 if test -z "$ac_cpp_err"; then
11143   ac_header_preproc=yes
11144 else
11145   echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148   ac_header_preproc=no
11149 fi
11150
11151 rm -f conftest.err conftest.$ac_ext
11152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11153 echo "${ECHO_T}$ac_header_preproc" >&6; }
11154
11155 # So?  What about this header?
11156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11157   yes:no: )
11158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11162     ac_header_preproc=yes
11163     ;;
11164   no:yes:* )
11165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11167     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11168 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11169     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11171     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11172 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11175     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11177     ( cat <<\_ASBOX
11178 ## ------------------------------------ ##
11179 ## Report this to http://llvm.org/bugs/ ##
11180 ## ------------------------------------ ##
11181 _ASBOX
11182      ) | sed "s/^/$as_me: WARNING:     /" >&2
11183     ;;
11184 esac
11185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190   eval "$as_ac_Header=\$ac_header_preproc"
11191 fi
11192 ac_res=`eval echo '${'$as_ac_Header'}'`
11193                { echo "$as_me:$LINENO: result: $ac_res" >&5
11194 echo "${ECHO_T}$ac_res" >&6; }
11195
11196 fi
11197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11198   cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11200 _ACEOF
11201
11202 fi
11203
11204 done
11205
11206
11207
11208 for ac_header in string.h strings.h
11209 do
11210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11212   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 fi
11217 ac_res=`eval echo '${'$as_ac_Header'}'`
11218                { echo "$as_me:$LINENO: result: $ac_res" >&5
11219 echo "${ECHO_T}$ac_res" >&6; }
11220 else
11221   # Is the header compilable?
11222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11224 cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h.  */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h.  */
11230 $ac_includes_default
11231 #include <$ac_header>
11232 _ACEOF
11233 rm -f conftest.$ac_objext
11234 if { (ac_try="$ac_compile"
11235 case "(($ac_try" in
11236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237   *) ac_try_echo=$ac_try;;
11238 esac
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240   (eval "$ac_compile") 2>conftest.er1
11241   ac_status=$?
11242   grep -v '^ *+' conftest.er1 >conftest.err
11243   rm -f conftest.er1
11244   cat conftest.err >&5
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } &&
11247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11248   { (case "(($ac_try" in
11249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250   *) ac_try_echo=$ac_try;;
11251 esac
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253   (eval "$ac_try") 2>&5
11254   ac_status=$?
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); }; } &&
11257          { ac_try='test -s conftest.$ac_objext'
11258   { (case "(($ac_try" in
11259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260   *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263   (eval "$ac_try") 2>&5
11264   ac_status=$?
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); }; }; then
11267   ac_header_compiler=yes
11268 else
11269   echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11271
11272         ac_header_compiler=no
11273 fi
11274
11275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11277 echo "${ECHO_T}$ac_header_compiler" >&6; }
11278
11279 # Is the header present?
11280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h.  */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h.  */
11288 #include <$ac_header>
11289 _ACEOF
11290 if { (ac_try="$ac_cpp conftest.$ac_ext"
11291 case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11297   ac_status=$?
11298   grep -v '^ *+' conftest.er1 >conftest.err
11299   rm -f conftest.er1
11300   cat conftest.err >&5
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); } >/dev/null; then
11303   if test -s conftest.err; then
11304     ac_cpp_err=$ac_c_preproc_warn_flag
11305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11306   else
11307     ac_cpp_err=
11308   fi
11309 else
11310   ac_cpp_err=yes
11311 fi
11312 if test -z "$ac_cpp_err"; then
11313   ac_header_preproc=yes
11314 else
11315   echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11317
11318   ac_header_preproc=no
11319 fi
11320
11321 rm -f conftest.err conftest.$ac_ext
11322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11323 echo "${ECHO_T}$ac_header_preproc" >&6; }
11324
11325 # So?  What about this header?
11326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11327   yes:no: )
11328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11332     ac_header_preproc=yes
11333     ;;
11334   no:yes:* )
11335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11337     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11338 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11339     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11341     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11342 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11345     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11347     ( cat <<\_ASBOX
11348 ## ------------------------------------ ##
11349 ## Report this to http://llvm.org/bugs/ ##
11350 ## ------------------------------------ ##
11351 _ASBOX
11352      ) | sed "s/^/$as_me: WARNING:     /" >&2
11353     ;;
11354 esac
11355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360   eval "$as_ac_Header=\$ac_header_preproc"
11361 fi
11362 ac_res=`eval echo '${'$as_ac_Header'}'`
11363                { echo "$as_me:$LINENO: result: $ac_res" >&5
11364 echo "${ECHO_T}$ac_res" >&6; }
11365
11366 fi
11367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11368   cat >>confdefs.h <<_ACEOF
11369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11370 _ACEOF
11371  break
11372 fi
11373
11374 done
11375
11376
11377
11378
11379 for ac_func in strchr index
11380 do
11381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h.  */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h.  */
11393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11395 #define $ac_func innocuous_$ac_func
11396
11397 /* System header to define __stub macros and hopefully few prototypes,
11398     which can conflict with char $ac_func (); below.
11399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11400     <limits.h> exists even on freestanding compilers.  */
11401
11402 #ifdef __STDC__
11403 # include <limits.h>
11404 #else
11405 # include <assert.h>
11406 #endif
11407
11408 #undef $ac_func
11409
11410 /* Override any GCC internal prototype to avoid an error.
11411    Use char because int might match the return type of a GCC
11412    builtin and then its argument prototype would still apply.  */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char $ac_func ();
11417 /* The GNU C library defines this for functions which it implements
11418     to always fail with ENOSYS.  Some functions are actually named
11419     something starting with __ and the normal name is an alias.  */
11420 #if defined __stub_$ac_func || defined __stub___$ac_func
11421 choke me
11422 #endif
11423
11424 int
11425 main ()
11426 {
11427 return $ac_func ();
11428   ;
11429   return 0;
11430 }
11431 _ACEOF
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (ac_try="$ac_link"
11434 case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_link") 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } &&
11446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447   { (case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452   (eval "$ac_try") 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; } &&
11456          { ac_try='test -s conftest$ac_exeext'
11457   { (case "(($ac_try" in
11458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459   *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462   (eval "$ac_try") 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; }; then
11466   eval "$as_ac_var=yes"
11467 else
11468   echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11470
11471         eval "$as_ac_var=no"
11472 fi
11473
11474 rm -f core conftest.err conftest.$ac_objext \
11475       conftest$ac_exeext conftest.$ac_ext
11476 fi
11477 ac_res=`eval echo '${'$as_ac_var'}'`
11478                { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480 if test `eval echo '${'$as_ac_var'}'` = yes; then
11481   cat >>confdefs.h <<_ACEOF
11482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11483 _ACEOF
11484  break
11485 fi
11486 done
11487
11488
11489
11490 for ac_func in strrchr rindex
11491 do
11492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   cat >conftest.$ac_ext <<_ACEOF
11499 /* confdefs.h.  */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h.  */
11504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11506 #define $ac_func innocuous_$ac_func
11507
11508 /* System header to define __stub macros and hopefully few prototypes,
11509     which can conflict with char $ac_func (); below.
11510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511     <limits.h> exists even on freestanding compilers.  */
11512
11513 #ifdef __STDC__
11514 # include <limits.h>
11515 #else
11516 # include <assert.h>
11517 #endif
11518
11519 #undef $ac_func
11520
11521 /* Override any GCC internal prototype to avoid an error.
11522    Use char because int might match the return type of a GCC
11523    builtin and then its argument prototype would still apply.  */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char $ac_func ();
11528 /* The GNU C library defines this for functions which it implements
11529     to always fail with ENOSYS.  Some functions are actually named
11530     something starting with __ and the normal name is an alias.  */
11531 #if defined __stub_$ac_func || defined __stub___$ac_func
11532 choke me
11533 #endif
11534
11535 int
11536 main ()
11537 {
11538 return $ac_func ();
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (ac_try="$ac_link"
11545 case "(($ac_try" in
11546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547   *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550   (eval "$ac_link") 2>conftest.er1
11551   ac_status=$?
11552   grep -v '^ *+' conftest.er1 >conftest.err
11553   rm -f conftest.er1
11554   cat conftest.err >&5
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } &&
11557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558   { (case "(($ac_try" in
11559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560   *) ac_try_echo=$ac_try;;
11561 esac
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563   (eval "$ac_try") 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; } &&
11567          { ac_try='test -s conftest$ac_exeext'
11568   { (case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573   (eval "$ac_try") 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; }; then
11577   eval "$as_ac_var=yes"
11578 else
11579   echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582         eval "$as_ac_var=no"
11583 fi
11584
11585 rm -f core conftest.err conftest.$ac_objext \
11586       conftest$ac_exeext conftest.$ac_ext
11587 fi
11588 ac_res=`eval echo '${'$as_ac_var'}'`
11589                { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_var'}'` = yes; then
11592   cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11594 _ACEOF
11595  break
11596 fi
11597 done
11598
11599
11600
11601 for ac_func in memcpy bcopy
11602 do
11603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11607   echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609   cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h.  */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h.  */
11615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11617 #define $ac_func innocuous_$ac_func
11618
11619 /* System header to define __stub macros and hopefully few prototypes,
11620     which can conflict with char $ac_func (); below.
11621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622     <limits.h> exists even on freestanding compilers.  */
11623
11624 #ifdef __STDC__
11625 # include <limits.h>
11626 #else
11627 # include <assert.h>
11628 #endif
11629
11630 #undef $ac_func
11631
11632 /* Override any GCC internal prototype to avoid an error.
11633    Use char because int might match the return type of a GCC
11634    builtin and then its argument prototype would still apply.  */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char $ac_func ();
11639 /* The GNU C library defines this for functions which it implements
11640     to always fail with ENOSYS.  Some functions are actually named
11641     something starting with __ and the normal name is an alias.  */
11642 #if defined __stub_$ac_func || defined __stub___$ac_func
11643 choke me
11644 #endif
11645
11646 int
11647 main ()
11648 {
11649 return $ac_func ();
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (ac_try="$ac_link"
11656 case "(($ac_try" in
11657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658   *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661   (eval "$ac_link") 2>conftest.er1
11662   ac_status=$?
11663   grep -v '^ *+' conftest.er1 >conftest.err
11664   rm -f conftest.er1
11665   cat conftest.err >&5
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); } &&
11668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11669   { (case "(($ac_try" in
11670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671   *) ac_try_echo=$ac_try;;
11672 esac
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674   (eval "$ac_try") 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; } &&
11678          { ac_try='test -s conftest$ac_exeext'
11679   { (case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684   (eval "$ac_try") 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   eval "$as_ac_var=yes"
11689 else
11690   echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693         eval "$as_ac_var=no"
11694 fi
11695
11696 rm -f core conftest.err conftest.$ac_objext \
11697       conftest$ac_exeext conftest.$ac_ext
11698 fi
11699 ac_res=`eval echo '${'$as_ac_var'}'`
11700                { echo "$as_me:$LINENO: result: $ac_res" >&5
11701 echo "${ECHO_T}$ac_res" >&6; }
11702 if test `eval echo '${'$as_ac_var'}'` = yes; then
11703   cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11705 _ACEOF
11706  break
11707 fi
11708 done
11709
11710
11711
11712 for ac_func in memmove strcmp
11713 do
11714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11718   echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720   cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h.  */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h.  */
11726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11728 #define $ac_func innocuous_$ac_func
11729
11730 /* System header to define __stub macros and hopefully few prototypes,
11731     which can conflict with char $ac_func (); below.
11732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11733     <limits.h> exists even on freestanding compilers.  */
11734
11735 #ifdef __STDC__
11736 # include <limits.h>
11737 #else
11738 # include <assert.h>
11739 #endif
11740
11741 #undef $ac_func
11742
11743 /* Override any GCC internal prototype to avoid an error.
11744    Use char because int might match the return type of a GCC
11745    builtin and then its argument prototype would still apply.  */
11746 #ifdef __cplusplus
11747 extern "C"
11748 #endif
11749 char $ac_func ();
11750 /* The GNU C library defines this for functions which it implements
11751     to always fail with ENOSYS.  Some functions are actually named
11752     something starting with __ and the normal name is an alias.  */
11753 #if defined __stub_$ac_func || defined __stub___$ac_func
11754 choke me
11755 #endif
11756
11757 int
11758 main ()
11759 {
11760 return $ac_func ();
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (ac_try="$ac_link"
11767 case "(($ac_try" in
11768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769   *) ac_try_echo=$ac_try;;
11770 esac
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772   (eval "$ac_link") 2>conftest.er1
11773   ac_status=$?
11774   grep -v '^ *+' conftest.er1 >conftest.err
11775   rm -f conftest.er1
11776   cat conftest.err >&5
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); } &&
11779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11780   { (case "(($ac_try" in
11781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782   *) ac_try_echo=$ac_try;;
11783 esac
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785   (eval "$ac_try") 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; } &&
11789          { ac_try='test -s conftest$ac_exeext'
11790   { (case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795   (eval "$ac_try") 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; }; then
11799   eval "$as_ac_var=yes"
11800 else
11801   echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11803
11804         eval "$as_ac_var=no"
11805 fi
11806
11807 rm -f core conftest.err conftest.$ac_objext \
11808       conftest$ac_exeext conftest.$ac_ext
11809 fi
11810 ac_res=`eval echo '${'$as_ac_var'}'`
11811                { echo "$as_me:$LINENO: result: $ac_res" >&5
11812 echo "${ECHO_T}$ac_res" >&6; }
11813 if test `eval echo '${'$as_ac_var'}'` = yes; then
11814   cat >>confdefs.h <<_ACEOF
11815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11816 _ACEOF
11817
11818 fi
11819 done
11820
11821
11822
11823
11824 for ac_func in closedir opendir readdir
11825 do
11826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11830   echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832   cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h.  */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h.  */
11838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11840 #define $ac_func innocuous_$ac_func
11841
11842 /* System header to define __stub macros and hopefully few prototypes,
11843     which can conflict with char $ac_func (); below.
11844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11845     <limits.h> exists even on freestanding compilers.  */
11846
11847 #ifdef __STDC__
11848 # include <limits.h>
11849 #else
11850 # include <assert.h>
11851 #endif
11852
11853 #undef $ac_func
11854
11855 /* Override any GCC internal prototype to avoid an error.
11856    Use char because int might match the return type of a GCC
11857    builtin and then its argument prototype would still apply.  */
11858 #ifdef __cplusplus
11859 extern "C"
11860 #endif
11861 char $ac_func ();
11862 /* The GNU C library defines this for functions which it implements
11863     to always fail with ENOSYS.  Some functions are actually named
11864     something starting with __ and the normal name is an alias.  */
11865 #if defined __stub_$ac_func || defined __stub___$ac_func
11866 choke me
11867 #endif
11868
11869 int
11870 main ()
11871 {
11872 return $ac_func ();
11873   ;
11874   return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (ac_try="$ac_link"
11879 case "(($ac_try" in
11880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881   *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884   (eval "$ac_link") 2>conftest.er1
11885   ac_status=$?
11886   grep -v '^ *+' conftest.er1 >conftest.err
11887   rm -f conftest.er1
11888   cat conftest.err >&5
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } &&
11891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11892   { (case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_try") 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; } &&
11901          { ac_try='test -s conftest$ac_exeext'
11902   { (case "(($ac_try" in
11903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904   *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907   (eval "$ac_try") 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; }; then
11911   eval "$as_ac_var=yes"
11912 else
11913   echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916         eval "$as_ac_var=no"
11917 fi
11918
11919 rm -f core conftest.err conftest.$ac_objext \
11920       conftest$ac_exeext conftest.$ac_ext
11921 fi
11922 ac_res=`eval echo '${'$as_ac_var'}'`
11923                { echo "$as_me:$LINENO: result: $ac_res" >&5
11924 echo "${ECHO_T}$ac_res" >&6; }
11925 if test `eval echo '${'$as_ac_var'}'` = yes; then
11926   cat >>confdefs.h <<_ACEOF
11927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11928 _ACEOF
11929
11930 fi
11931 done
11932
11933
11934
11935 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11936 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11937
11938 ICC=no
11939 IXX=no
11940 case $CC in
11941   icc*|icpc*)
11942     ICC=yes
11943     IXX=yes
11944     ;;
11945    *)
11946     ;;
11947 esac
11948
11949 if test "$GCC" != "yes" && test "$ICC" != "yes"
11950 then
11951   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11952 echo "$as_me: error: gcc|icc required but not found" >&2;}
11953    { (exit 1); exit 1; }; }
11954 fi
11955
11956 if test "$GXX" != "yes" && test "$IXX" != "yes"
11957 then
11958   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11959 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11960    { (exit 1); exit 1; }; }
11961 fi
11962
11963 if test "$GCC" = "yes"
11964 then
11965   cat >conftest.$ac_ext <<_ACEOF
11966 #if !defined(__GNUC__) || __GNUC__ < 3
11967 #error Unsupported GCC version
11968 #endif
11969
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975   *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978   (eval "$ac_compile") 2>conftest.er1
11979   ac_status=$?
11980   grep -v '^ *+' conftest.er1 >conftest.err
11981   rm -f conftest.er1
11982   cat conftest.err >&5
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); } &&
11985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986   { (case "(($ac_try" in
11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988   *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991   (eval "$ac_try") 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; } &&
11995          { ac_try='test -s conftest.$ac_objext'
11996   { (case "(($ac_try" in
11997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998   *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001   (eval "$ac_try") 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); }; }; then
12005   :
12006 else
12007   echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12009
12010         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12011 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12012    { (exit 1); exit 1; }; }
12013 fi
12014
12015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016 fi
12017
12018 if test -z "$llvm_cv_gnu_make_command"
12019 then
12020   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12021 echo "$as_me: error: GNU Make required but not found" >&2;}
12022    { (exit 1); exit 1; }; }
12023 fi
12024
12025 { echo "$as_me:$LINENO: result: ok" >&5
12026 echo "${ECHO_T}ok" >&6; }
12027
12028 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12029 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12030 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12031
12032 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12033
12034 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12035
12036 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12037 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12038
12039
12040
12041 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12042 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12043 if test "${ac_cv_lib_m_sin+set}" = set; then
12044   echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046   ac_check_lib_save_LIBS=$LIBS
12047 LIBS="-lm  $LIBS"
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h.  */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h.  */
12054
12055 /* Override any GCC internal prototype to avoid an error.
12056    Use char because int might match the return type of a GCC
12057    builtin and then its argument prototype would still apply.  */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 char sin ();
12062 int
12063 main ()
12064 {
12065 return sin ();
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (ac_try="$ac_link"
12072 case "(($ac_try" in
12073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074   *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077   (eval "$ac_link") 2>conftest.er1
12078   ac_status=$?
12079   grep -v '^ *+' conftest.er1 >conftest.err
12080   rm -f conftest.er1
12081   cat conftest.err >&5
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); } &&
12084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085   { (case "(($ac_try" in
12086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087   *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090   (eval "$ac_try") 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; } &&
12094          { ac_try='test -s conftest$ac_exeext'
12095   { (case "(($ac_try" in
12096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097   *) ac_try_echo=$ac_try;;
12098 esac
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100   (eval "$ac_try") 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   ac_cv_lib_m_sin=yes
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109         ac_cv_lib_m_sin=no
12110 fi
12111
12112 rm -f core conftest.err conftest.$ac_objext \
12113       conftest$ac_exeext conftest.$ac_ext
12114 LIBS=$ac_check_lib_save_LIBS
12115 fi
12116 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12117 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12118 if test $ac_cv_lib_m_sin = yes; then
12119   cat >>confdefs.h <<_ACEOF
12120 #define HAVE_LIBM 1
12121 _ACEOF
12122
12123   LIBS="-lm $LIBS"
12124
12125 fi
12126
12127 if test "$llvm_cv_os_type" = "MingW" ; then
12128
12129 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12130 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12131 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134   ac_check_lib_save_LIBS=$LIBS
12135 LIBS="-limagehlp  $LIBS"
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h.  */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h.  */
12142
12143
12144 int
12145 main ()
12146 {
12147 return main ();
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (ac_try="$ac_link"
12154 case "(($ac_try" in
12155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156   *) ac_try_echo=$ac_try;;
12157 esac
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159   (eval "$ac_link") 2>conftest.er1
12160   ac_status=$?
12161   grep -v '^ *+' conftest.er1 >conftest.err
12162   rm -f conftest.er1
12163   cat conftest.err >&5
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); } &&
12166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12167   { (case "(($ac_try" in
12168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169   *) ac_try_echo=$ac_try;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172   (eval "$ac_try") 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); }; } &&
12176          { ac_try='test -s conftest$ac_exeext'
12177   { (case "(($ac_try" in
12178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179   *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182   (eval "$ac_try") 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; }; then
12186   ac_cv_lib_imagehlp_main=yes
12187 else
12188   echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12190
12191         ac_cv_lib_imagehlp_main=no
12192 fi
12193
12194 rm -f core conftest.err conftest.$ac_objext \
12195       conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12199 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12200 if test $ac_cv_lib_imagehlp_main = yes; then
12201   cat >>confdefs.h <<_ACEOF
12202 #define HAVE_LIBIMAGEHLP 1
12203 _ACEOF
12204
12205   LIBS="-limagehlp $LIBS"
12206
12207 fi
12208
12209
12210 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12211 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12212 if test "${ac_cv_lib_psapi_main+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-lpsapi  $LIBS"
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h.  */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h.  */
12223
12224
12225 int
12226 main ()
12227 {
12228 return main ();
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (ac_try="$ac_link"
12235 case "(($ac_try" in
12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237   *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_link") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
12244   cat conftest.err >&5
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248   { (case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_try") 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; } &&
12257          { ac_try='test -s conftest$ac_exeext'
12258   { (case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_try") 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; }; then
12267   ac_cv_lib_psapi_main=yes
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272         ac_cv_lib_psapi_main=no
12273 fi
12274
12275 rm -f core conftest.err conftest.$ac_objext \
12276       conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12278 fi
12279 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12280 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12281 if test $ac_cv_lib_psapi_main = yes; then
12282   cat >>confdefs.h <<_ACEOF
12283 #define HAVE_LIBPSAPI 1
12284 _ACEOF
12285
12286   LIBS="-lpsapi $LIBS"
12287
12288 fi
12289
12290 fi
12291
12292 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12293 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12294 if test "${ac_cv_search_dlopen+set}" = set; then
12295   echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297   ac_func_search_save_LIBS=$LIBS
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h.  */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h.  */
12304
12305 /* Override any GCC internal prototype to avoid an error.
12306    Use char because int might match the return type of a GCC
12307    builtin and then its argument prototype would still apply.  */
12308 #ifdef __cplusplus
12309 extern "C"
12310 #endif
12311 char dlopen ();
12312 int
12313 main ()
12314 {
12315 return dlopen ();
12316   ;
12317   return 0;
12318 }
12319 _ACEOF
12320 for ac_lib in '' dl; do
12321   if test -z "$ac_lib"; then
12322     ac_res="none required"
12323   else
12324     ac_res=-l$ac_lib
12325     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12326   fi
12327   rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (ac_try="$ac_link"
12329 case "(($ac_try" in
12330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331   *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334   (eval "$ac_link") 2>conftest.er1
12335   ac_status=$?
12336   grep -v '^ *+' conftest.er1 >conftest.err
12337   rm -f conftest.er1
12338   cat conftest.err >&5
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); } &&
12341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12342   { (case "(($ac_try" in
12343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344   *) ac_try_echo=$ac_try;;
12345 esac
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347   (eval "$ac_try") 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; } &&
12351          { ac_try='test -s conftest$ac_exeext'
12352   { (case "(($ac_try" in
12353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354   *) ac_try_echo=$ac_try;;
12355 esac
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357   (eval "$ac_try") 2>&5
12358   ac_status=$?
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); }; }; then
12361   ac_cv_search_dlopen=$ac_res
12362 else
12363   echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12365
12366
12367 fi
12368
12369 rm -f core conftest.err conftest.$ac_objext \
12370       conftest$ac_exeext
12371   if test "${ac_cv_search_dlopen+set}" = set; then
12372   break
12373 fi
12374 done
12375 if test "${ac_cv_search_dlopen+set}" = set; then
12376   :
12377 else
12378   ac_cv_search_dlopen=no
12379 fi
12380 rm conftest.$ac_ext
12381 LIBS=$ac_func_search_save_LIBS
12382 fi
12383 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12384 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12385 ac_res=$ac_cv_search_dlopen
12386 if test "$ac_res" != no; then
12387   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12388
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_DLOPEN 1
12391 _ACEOF
12392
12393 else
12394   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12395 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12396 fi
12397
12398
12399 if test "$llvm_cv_enable_libffi" = "yes" ; then
12400   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12401 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12402 if test "${ac_cv_search_ffi_call+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   ac_func_search_save_LIBS=$LIBS
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h.  */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h.  */
12412
12413 /* Override any GCC internal prototype to avoid an error.
12414    Use char because int might match the return type of a GCC
12415    builtin and then its argument prototype would still apply.  */
12416 #ifdef __cplusplus
12417 extern "C"
12418 #endif
12419 char ffi_call ();
12420 int
12421 main ()
12422 {
12423 return ffi_call ();
12424   ;
12425   return 0;
12426 }
12427 _ACEOF
12428 for ac_lib in '' ffi; do
12429   if test -z "$ac_lib"; then
12430     ac_res="none required"
12431   else
12432     ac_res=-l$ac_lib
12433     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12434   fi
12435   rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439   *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442   (eval "$ac_link") 2>conftest.er1
12443   ac_status=$?
12444   grep -v '^ *+' conftest.er1 >conftest.err
12445   rm -f conftest.er1
12446   cat conftest.err >&5
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } &&
12449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450   { (case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455   (eval "$ac_try") 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); }; } &&
12459          { ac_try='test -s conftest$ac_exeext'
12460   { (case "(($ac_try" in
12461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462   *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465   (eval "$ac_try") 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; }; then
12469   ac_cv_search_ffi_call=$ac_res
12470 else
12471   echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474
12475 fi
12476
12477 rm -f core conftest.err conftest.$ac_objext \
12478       conftest$ac_exeext
12479   if test "${ac_cv_search_ffi_call+set}" = set; then
12480   break
12481 fi
12482 done
12483 if test "${ac_cv_search_ffi_call+set}" = set; then
12484   :
12485 else
12486   ac_cv_search_ffi_call=no
12487 fi
12488 rm conftest.$ac_ext
12489 LIBS=$ac_func_search_save_LIBS
12490 fi
12491 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12492 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12493 ac_res=$ac_cv_search_ffi_call
12494 if test "$ac_res" != no; then
12495   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12496
12497 cat >>confdefs.h <<\_ACEOF
12498 #define HAVE_FFI_CALL 1
12499 _ACEOF
12500
12501 else
12502   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12503 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12504    { (exit 1); exit 1; }; }
12505 fi
12506
12507 fi
12508
12509 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12510 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12511 if test "${ac_cv_search_mallinfo+set}" = set; then
12512   echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514   ac_func_search_save_LIBS=$LIBS
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521
12522 /* Override any GCC internal prototype to avoid an error.
12523    Use char because int might match the return type of a GCC
12524    builtin and then its argument prototype would still apply.  */
12525 #ifdef __cplusplus
12526 extern "C"
12527 #endif
12528 char mallinfo ();
12529 int
12530 main ()
12531 {
12532 return mallinfo ();
12533   ;
12534   return 0;
12535 }
12536 _ACEOF
12537 for ac_lib in '' malloc; do
12538   if test -z "$ac_lib"; then
12539     ac_res="none required"
12540   else
12541     ac_res=-l$ac_lib
12542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12543   fi
12544   rm -f conftest.$ac_objext conftest$ac_exeext
12545 if { (ac_try="$ac_link"
12546 case "(($ac_try" in
12547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548   *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551   (eval "$ac_link") 2>conftest.er1
12552   ac_status=$?
12553   grep -v '^ *+' conftest.er1 >conftest.err
12554   rm -f conftest.er1
12555   cat conftest.err >&5
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } &&
12558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12559   { (case "(($ac_try" in
12560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561   *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564   (eval "$ac_try") 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); }; } &&
12568          { ac_try='test -s conftest$ac_exeext'
12569   { (case "(($ac_try" in
12570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571   *) ac_try_echo=$ac_try;;
12572 esac
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574   (eval "$ac_try") 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578   ac_cv_search_mallinfo=$ac_res
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583
12584 fi
12585
12586 rm -f core conftest.err conftest.$ac_objext \
12587       conftest$ac_exeext
12588   if test "${ac_cv_search_mallinfo+set}" = set; then
12589   break
12590 fi
12591 done
12592 if test "${ac_cv_search_mallinfo+set}" = set; then
12593   :
12594 else
12595   ac_cv_search_mallinfo=no
12596 fi
12597 rm conftest.$ac_ext
12598 LIBS=$ac_func_search_save_LIBS
12599 fi
12600 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12601 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12602 ac_res=$ac_cv_search_mallinfo
12603 if test "$ac_res" != no; then
12604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12605
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_MALLINFO 1
12608 _ACEOF
12609
12610 fi
12611
12612
12613 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12614
12615 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12616 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12617 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12618   echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620   ac_check_lib_save_LIBS=$LIBS
12621 LIBS="-lpthread  $LIBS"
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628
12629 /* Override any GCC internal prototype to avoid an error.
12630    Use char because int might match the return type of a GCC
12631    builtin and then its argument prototype would still apply.  */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 char pthread_mutex_init ();
12636 int
12637 main ()
12638 {
12639 return pthread_mutex_init ();
12640   ;
12641   return 0;
12642 }
12643 _ACEOF
12644 rm -f conftest.$ac_objext conftest$ac_exeext
12645 if { (ac_try="$ac_link"
12646 case "(($ac_try" in
12647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648   *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651   (eval "$ac_link") 2>conftest.er1
12652   ac_status=$?
12653   grep -v '^ *+' conftest.er1 >conftest.err
12654   rm -f conftest.er1
12655   cat conftest.err >&5
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } &&
12658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659   { (case "(($ac_try" in
12660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661   *) ac_try_echo=$ac_try;;
12662 esac
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664   (eval "$ac_try") 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); }; } &&
12668          { ac_try='test -s conftest$ac_exeext'
12669   { (case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674   (eval "$ac_try") 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; }; then
12678   ac_cv_lib_pthread_pthread_mutex_init=yes
12679 else
12680   echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12682
12683         ac_cv_lib_pthread_pthread_mutex_init=no
12684 fi
12685
12686 rm -f core conftest.err conftest.$ac_objext \
12687       conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12689 fi
12690 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12691 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12692 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12693   cat >>confdefs.h <<_ACEOF
12694 #define HAVE_LIBPTHREAD 1
12695 _ACEOF
12696
12697   LIBS="-lpthread $LIBS"
12698
12699 fi
12700
12701   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12702 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12703 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   ac_func_search_save_LIBS=$LIBS
12707 cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h.  */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h.  */
12713
12714 /* Override any GCC internal prototype to avoid an error.
12715    Use char because int might match the return type of a GCC
12716    builtin and then its argument prototype would still apply.  */
12717 #ifdef __cplusplus
12718 extern "C"
12719 #endif
12720 char pthread_mutex_lock ();
12721 int
12722 main ()
12723 {
12724 return pthread_mutex_lock ();
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 for ac_lib in '' pthread; do
12730   if test -z "$ac_lib"; then
12731     ac_res="none required"
12732   else
12733     ac_res=-l$ac_lib
12734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12735   fi
12736   rm -f conftest.$ac_objext conftest$ac_exeext
12737 if { (ac_try="$ac_link"
12738 case "(($ac_try" in
12739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740   *) ac_try_echo=$ac_try;;
12741 esac
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743   (eval "$ac_link") 2>conftest.er1
12744   ac_status=$?
12745   grep -v '^ *+' conftest.er1 >conftest.err
12746   rm -f conftest.er1
12747   cat conftest.err >&5
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); } &&
12750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751   { (case "(($ac_try" in
12752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753   *) ac_try_echo=$ac_try;;
12754 esac
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756   (eval "$ac_try") 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); }; } &&
12760          { ac_try='test -s conftest$ac_exeext'
12761   { (case "(($ac_try" in
12762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763   *) ac_try_echo=$ac_try;;
12764 esac
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766   (eval "$ac_try") 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; }; then
12770   ac_cv_search_pthread_mutex_lock=$ac_res
12771 else
12772   echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775
12776 fi
12777
12778 rm -f core conftest.err conftest.$ac_objext \
12779       conftest$ac_exeext
12780   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12781   break
12782 fi
12783 done
12784 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12785   :
12786 else
12787   ac_cv_search_pthread_mutex_lock=no
12788 fi
12789 rm conftest.$ac_ext
12790 LIBS=$ac_func_search_save_LIBS
12791 fi
12792 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12793 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12794 ac_res=$ac_cv_search_pthread_mutex_lock
12795 if test "$ac_res" != no; then
12796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12797
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_PTHREAD_MUTEX_LOCK 1
12800 _ACEOF
12801
12802 fi
12803
12804   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12805 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12806 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12807   echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809   ac_func_search_save_LIBS=$LIBS
12810 cat >conftest.$ac_ext <<_ACEOF
12811 /* confdefs.h.  */
12812 _ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h.  */
12816
12817 /* Override any GCC internal prototype to avoid an error.
12818    Use char because int might match the return type of a GCC
12819    builtin and then its argument prototype would still apply.  */
12820 #ifdef __cplusplus
12821 extern "C"
12822 #endif
12823 char pthread_rwlock_init ();
12824 int
12825 main ()
12826 {
12827 return pthread_rwlock_init ();
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 for ac_lib in '' pthread; do
12833   if test -z "$ac_lib"; then
12834     ac_res="none required"
12835   else
12836     ac_res=-l$ac_lib
12837     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12838   fi
12839   rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (ac_try="$ac_link"
12841 case "(($ac_try" in
12842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843   *) ac_try_echo=$ac_try;;
12844 esac
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846   (eval "$ac_link") 2>conftest.er1
12847   ac_status=$?
12848   grep -v '^ *+' conftest.er1 >conftest.err
12849   rm -f conftest.er1
12850   cat conftest.err >&5
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); } &&
12853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12854   { (case "(($ac_try" in
12855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856   *) ac_try_echo=$ac_try;;
12857 esac
12858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859   (eval "$ac_try") 2>&5
12860   ac_status=$?
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); }; } &&
12863          { ac_try='test -s conftest$ac_exeext'
12864   { (case "(($ac_try" in
12865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866   *) ac_try_echo=$ac_try;;
12867 esac
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869   (eval "$ac_try") 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; }; then
12873   ac_cv_search_pthread_rwlock_init=$ac_res
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878
12879 fi
12880
12881 rm -f core conftest.err conftest.$ac_objext \
12882       conftest$ac_exeext
12883   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12884   break
12885 fi
12886 done
12887 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12888   :
12889 else
12890   ac_cv_search_pthread_rwlock_init=no
12891 fi
12892 rm conftest.$ac_ext
12893 LIBS=$ac_func_search_save_LIBS
12894 fi
12895 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12896 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12897 ac_res=$ac_cv_search_pthread_rwlock_init
12898 if test "$ac_res" != no; then
12899   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12900
12901 cat >>confdefs.h <<\_ACEOF
12902 #define HAVE_PTHREAD_RWLOCK_INIT 1
12903 _ACEOF
12904
12905 fi
12906
12907   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12908 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12909 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12910   echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912   ac_func_search_save_LIBS=$LIBS
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919
12920 /* Override any GCC internal prototype to avoid an error.
12921    Use char because int might match the return type of a GCC
12922    builtin and then its argument prototype would still apply.  */
12923 #ifdef __cplusplus
12924 extern "C"
12925 #endif
12926 char pthread_getspecific ();
12927 int
12928 main ()
12929 {
12930 return pthread_getspecific ();
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 for ac_lib in '' pthread; do
12936   if test -z "$ac_lib"; then
12937     ac_res="none required"
12938   else
12939     ac_res=-l$ac_lib
12940     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12941   fi
12942   rm -f conftest.$ac_objext conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949   (eval "$ac_link") 2>conftest.er1
12950   ac_status=$?
12951   grep -v '^ *+' conftest.er1 >conftest.err
12952   rm -f conftest.er1
12953   cat conftest.err >&5
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } &&
12956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12957   { (case "(($ac_try" in
12958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959   *) ac_try_echo=$ac_try;;
12960 esac
12961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962   (eval "$ac_try") 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; } &&
12966          { ac_try='test -s conftest$ac_exeext'
12967   { (case "(($ac_try" in
12968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969   *) ac_try_echo=$ac_try;;
12970 esac
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972   (eval "$ac_try") 2>&5
12973   ac_status=$?
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); }; }; then
12976   ac_cv_search_pthread_getspecific=$ac_res
12977 else
12978   echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12980
12981
12982 fi
12983
12984 rm -f core conftest.err conftest.$ac_objext \
12985       conftest$ac_exeext
12986   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12987   break
12988 fi
12989 done
12990 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12991   :
12992 else
12993   ac_cv_search_pthread_getspecific=no
12994 fi
12995 rm conftest.$ac_ext
12996 LIBS=$ac_func_search_save_LIBS
12997 fi
12998 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12999 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13000 ac_res=$ac_cv_search_pthread_getspecific
13001 if test "$ac_res" != no; then
13002   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13003
13004 cat >>confdefs.h <<\_ACEOF
13005 #define HAVE_PTHREAD_GETSPECIFIC 1
13006 _ACEOF
13007
13008 fi
13009
13010 fi
13011
13012
13013 # Check whether --with-udis86 was given.
13014 if test "${with_udis86+set}" = set; then
13015   withval=$with_udis86;
13016       USE_UDIS86=1
13017
13018       case "$withval" in
13019         /usr/lib|yes) ;;
13020         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13021       esac
13022
13023 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13024 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13025 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028   ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-ludis86  $LIBS"
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h.  */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h.  */
13036
13037 /* Override any GCC internal prototype to avoid an error.
13038    Use char because int might match the return type of a GCC
13039    builtin and then its argument prototype would still apply.  */
13040 #ifdef __cplusplus
13041 extern "C"
13042 #endif
13043 char ud_init ();
13044 int
13045 main ()
13046 {
13047 return ud_init ();
13048   ;
13049   return 0;
13050 }
13051 _ACEOF
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (ac_try="$ac_link"
13054 case "(($ac_try" in
13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056   *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059   (eval "$ac_link") 2>conftest.er1
13060   ac_status=$?
13061   grep -v '^ *+' conftest.er1 >conftest.err
13062   rm -f conftest.er1
13063   cat conftest.err >&5
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); } &&
13066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13067   { (case "(($ac_try" in
13068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069   *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072   (eval "$ac_try") 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); }; } &&
13076          { ac_try='test -s conftest$ac_exeext'
13077   { (case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082   (eval "$ac_try") 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; }; then
13086   ac_cv_lib_udis86_ud_init=yes
13087 else
13088   echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091         ac_cv_lib_udis86_ud_init=no
13092 fi
13093
13094 rm -f core conftest.err conftest.$ac_objext \
13095       conftest$ac_exeext conftest.$ac_ext
13096 LIBS=$ac_check_lib_save_LIBS
13097 fi
13098 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13099 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13100 if test $ac_cv_lib_udis86_ud_init = yes; then
13101   cat >>confdefs.h <<_ACEOF
13102 #define HAVE_LIBUDIS86 1
13103 _ACEOF
13104
13105   LIBS="-ludis86 $LIBS"
13106
13107 else
13108
13109         echo "Error! You need to have libudis86 around."
13110         exit -1
13111
13112 fi
13113
13114
13115 else
13116   USE_UDIS86=0
13117
13118 fi
13119
13120
13121 cat >>confdefs.h <<_ACEOF
13122 #define USE_UDIS86 $USE_UDIS86
13123 _ACEOF
13124
13125
13126
13127 # Check whether --with-oprofile was given.
13128 if test "${with_oprofile+set}" = set; then
13129   withval=$with_oprofile;
13130       USE_OPROFILE=1
13131
13132       case "$withval" in
13133         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13134         no) llvm_cv_oppath=
13135             USE_OPROFILE=0
13136  ;;
13137         *) llvm_cv_oppath="${withval}/lib/oprofile"
13138            CPPFLAGS="-I${withval}/include";;
13139       esac
13140       case $llvm_cv_os_type in
13141         Linux)
13142           if test -n "$llvm_cv_oppath" ; then
13143             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13144                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13145 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13146 if test "${ac_cv_search_bfd_init+set}" = set; then
13147   echo $ECHO_N "(cached) $ECHO_C" >&6
13148 else
13149   ac_func_search_save_LIBS=$LIBS
13150 cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156
13157 /* Override any GCC internal prototype to avoid an error.
13158    Use char because int might match the return type of a GCC
13159    builtin and then its argument prototype would still apply.  */
13160 #ifdef __cplusplus
13161 extern "C"
13162 #endif
13163 char bfd_init ();
13164 int
13165 main ()
13166 {
13167 return bfd_init ();
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 for ac_lib in '' bfd; do
13173   if test -z "$ac_lib"; then
13174     ac_res="none required"
13175   else
13176     ac_res=-l$ac_lib
13177     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13178   fi
13179   rm -f conftest.$ac_objext conftest$ac_exeext
13180 if { (ac_try="$ac_link"
13181 case "(($ac_try" in
13182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183   *) ac_try_echo=$ac_try;;
13184 esac
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186   (eval "$ac_link") 2>conftest.er1
13187   ac_status=$?
13188   grep -v '^ *+' conftest.er1 >conftest.err
13189   rm -f conftest.er1
13190   cat conftest.err >&5
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); } &&
13193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13194   { (case "(($ac_try" in
13195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196   *) ac_try_echo=$ac_try;;
13197 esac
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199   (eval "$ac_try") 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); }; } &&
13203          { ac_try='test -s conftest$ac_exeext'
13204   { (case "(($ac_try" in
13205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206   *) ac_try_echo=$ac_try;;
13207 esac
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209   (eval "$ac_try") 2>&5
13210   ac_status=$?
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); }; }; then
13213   ac_cv_search_bfd_init=$ac_res
13214 else
13215   echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13217
13218
13219 fi
13220
13221 rm -f core conftest.err conftest.$ac_objext \
13222       conftest$ac_exeext
13223   if test "${ac_cv_search_bfd_init+set}" = set; then
13224   break
13225 fi
13226 done
13227 if test "${ac_cv_search_bfd_init+set}" = set; then
13228   :
13229 else
13230   ac_cv_search_bfd_init=no
13231 fi
13232 rm conftest.$ac_ext
13233 LIBS=$ac_func_search_save_LIBS
13234 fi
13235 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13236 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13237 ac_res=$ac_cv_search_bfd_init
13238 if test "$ac_res" != no; then
13239   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13240
13241 fi
13242
13243             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13244 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13245 if test "${ac_cv_search_op_open_agent+set}" = set; then
13246   echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248   ac_func_search_save_LIBS=$LIBS
13249 cat >conftest.$ac_ext <<_ACEOF
13250 /* confdefs.h.  */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h.  */
13255
13256 /* Override any GCC internal prototype to avoid an error.
13257    Use char because int might match the return type of a GCC
13258    builtin and then its argument prototype would still apply.  */
13259 #ifdef __cplusplus
13260 extern "C"
13261 #endif
13262 char op_open_agent ();
13263 int
13264 main ()
13265 {
13266 return op_open_agent ();
13267   ;
13268   return 0;
13269 }
13270 _ACEOF
13271 for ac_lib in '' opagent; do
13272   if test -z "$ac_lib"; then
13273     ac_res="none required"
13274   else
13275     ac_res=-l$ac_lib
13276     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13277   fi
13278   rm -f conftest.$ac_objext conftest$ac_exeext
13279 if { (ac_try="$ac_link"
13280 case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_link") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } &&
13292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293   { (case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_try") 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); }; } &&
13302          { ac_try='test -s conftest$ac_exeext'
13303   { (case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_try") 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   ac_cv_search_op_open_agent=$ac_res
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317
13318 fi
13319
13320 rm -f core conftest.err conftest.$ac_objext \
13321       conftest$ac_exeext
13322   if test "${ac_cv_search_op_open_agent+set}" = set; then
13323   break
13324 fi
13325 done
13326 if test "${ac_cv_search_op_open_agent+set}" = set; then
13327   :
13328 else
13329   ac_cv_search_op_open_agent=no
13330 fi
13331 rm conftest.$ac_ext
13332 LIBS=$ac_func_search_save_LIBS
13333 fi
13334 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13335 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13336 ac_res=$ac_cv_search_op_open_agent
13337 if test "$ac_res" != no; then
13338   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13339
13340 else
13341
13342               echo "Error! You need to have libopagent around."
13343               exit -1
13344
13345 fi
13346
13347             if test "${ac_cv_header_opagent_h+set}" = set; then
13348   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13349 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13350 if test "${ac_cv_header_opagent_h+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 fi
13353 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13354 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13355 else
13356   # Is the header compilable?
13357 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13358 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13359 cat >conftest.$ac_ext <<_ACEOF
13360 /* confdefs.h.  */
13361 _ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h.  */
13365 $ac_includes_default
13366 #include <opagent.h>
13367 _ACEOF
13368 rm -f conftest.$ac_objext
13369 if { (ac_try="$ac_compile"
13370 case "(($ac_try" in
13371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372   *) ac_try_echo=$ac_try;;
13373 esac
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375   (eval "$ac_compile") 2>conftest.er1
13376   ac_status=$?
13377   grep -v '^ *+' conftest.er1 >conftest.err
13378   rm -f conftest.er1
13379   cat conftest.err >&5
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); } &&
13382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13383   { (case "(($ac_try" in
13384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385   *) ac_try_echo=$ac_try;;
13386 esac
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388   (eval "$ac_try") 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); }; } &&
13392          { ac_try='test -s conftest.$ac_objext'
13393   { (case "(($ac_try" in
13394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395   *) ac_try_echo=$ac_try;;
13396 esac
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398   (eval "$ac_try") 2>&5
13399   ac_status=$?
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); }; }; then
13402   ac_header_compiler=yes
13403 else
13404   echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407         ac_header_compiler=no
13408 fi
13409
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13412 echo "${ECHO_T}$ac_header_compiler" >&6; }
13413
13414 # Is the header present?
13415 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13416 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 #include <opagent.h>
13424 _ACEOF
13425 if { (ac_try="$ac_cpp conftest.$ac_ext"
13426 case "(($ac_try" in
13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428   *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } >/dev/null; then
13438   if test -s conftest.err; then
13439     ac_cpp_err=$ac_c_preproc_warn_flag
13440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13441   else
13442     ac_cpp_err=
13443   fi
13444 else
13445   ac_cpp_err=yes
13446 fi
13447 if test -z "$ac_cpp_err"; then
13448   ac_header_preproc=yes
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453   ac_header_preproc=no
13454 fi
13455
13456 rm -f conftest.err conftest.$ac_ext
13457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13458 echo "${ECHO_T}$ac_header_preproc" >&6; }
13459
13460 # So?  What about this header?
13461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13462   yes:no: )
13463     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13464 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13465     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13466 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13467     ac_header_preproc=yes
13468     ;;
13469   no:yes:* )
13470     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13471 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13472     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13473 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13474     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13475 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13476     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13477 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13478     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13479 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13480     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13481 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13482     ( cat <<\_ASBOX
13483 ## ------------------------------------ ##
13484 ## Report this to http://llvm.org/bugs/ ##
13485 ## ------------------------------------ ##
13486 _ASBOX
13487      ) | sed "s/^/$as_me: WARNING:     /" >&2
13488     ;;
13489 esac
13490 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13491 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13492 if test "${ac_cv_header_opagent_h+set}" = set; then
13493   echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495   ac_cv_header_opagent_h=$ac_header_preproc
13496 fi
13497 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13498 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13499
13500 fi
13501 if test $ac_cv_header_opagent_h = yes; then
13502   :
13503 else
13504
13505               echo "Error! You need to have opagent.h around."
13506               exit -1
13507
13508 fi
13509
13510
13511           fi ;;
13512         *)
13513           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13514 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13515    { (exit 1); exit 1; }; } ;;
13516       esac
13517
13518 else
13519
13520       USE_OPROFILE=0
13521
13522
13523 fi
13524
13525
13526 cat >>confdefs.h <<_ACEOF
13527 #define LLVM_USE_OPROFILE $USE_OPROFILE
13528 _ACEOF
13529
13530
13531
13532 # Check whether --with-intel-jitevents was given.
13533 if test "${with_intel_jitevents+set}" = set; then
13534   withval=$with_intel_jitevents;
13535       case $llvm_cv_os_type in
13536         Linux|Win32|Cygwin|MingW) ;;
13537         *)
13538           { { echo "$as_me:$LINENO: error:
13539             Intel JIT API support is available on Linux and Windows only.\"" >&5
13540 echo "$as_me: error:
13541             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13542    { (exit 1); exit 1; }; } ;;
13543       esac
13544
13545       USE_INTEL_JITEVENTS=1
13546
13547       case "$llvm_cv_target_arch" in
13548         x86)    llvm_intel_jitevents_archdir="lib32";;
13549         x86_64) llvm_intel_jitevents_archdir="lib64";;
13550         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13551                 exit -1;;
13552       esac
13553       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13554       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13555       case "$withval" in
13556         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13557                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13558         *) ;;
13559       esac
13560
13561
13562
13563
13564       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13565       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13566
13567       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13568 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13569 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13570   echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572   ac_func_search_save_LIBS=$LIBS
13573 cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h.  */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h.  */
13579
13580 /* Override any GCC internal prototype to avoid an error.
13581    Use char because int might match the return type of a GCC
13582    builtin and then its argument prototype would still apply.  */
13583 #ifdef __cplusplus
13584 extern "C"
13585 #endif
13586 char iJIT_IsProfilingActive ();
13587 int
13588 main ()
13589 {
13590 return iJIT_IsProfilingActive ();
13591   ;
13592   return 0;
13593 }
13594 _ACEOF
13595 for ac_lib in '' jitprofiling; do
13596   if test -z "$ac_lib"; then
13597     ac_res="none required"
13598   else
13599     ac_res=-l$ac_lib
13600     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13601   fi
13602   rm -f conftest.$ac_objext conftest$ac_exeext
13603 if { (ac_try="$ac_link"
13604 case "(($ac_try" in
13605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606   *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609   (eval "$ac_link") 2>conftest.er1
13610   ac_status=$?
13611   grep -v '^ *+' conftest.er1 >conftest.err
13612   rm -f conftest.er1
13613   cat conftest.err >&5
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); } &&
13616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617   { (case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_try") 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; } &&
13626          { ac_try='test -s conftest$ac_exeext'
13627   { (case "(($ac_try" in
13628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629   *) ac_try_echo=$ac_try;;
13630 esac
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632   (eval "$ac_try") 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641
13642 fi
13643
13644 rm -f core conftest.err conftest.$ac_objext \
13645       conftest$ac_exeext
13646   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13647   break
13648 fi
13649 done
13650 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13651   :
13652 else
13653   ac_cv_search_iJIT_IsProfilingActive=no
13654 fi
13655 rm conftest.$ac_ext
13656 LIBS=$ac_func_search_save_LIBS
13657 fi
13658 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13659 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13660 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13661 if test "$ac_res" != no; then
13662   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13663
13664 else
13665
13666         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13667         exit -1
13668
13669 fi
13670
13671       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13672   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13673 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13674 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 fi
13677 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13678 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13679 else
13680   # Is the header compilable?
13681 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13682 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13683 cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h.  */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h.  */
13689 $ac_includes_default
13690 #include <jitprofiling.h>
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_compile") 2>conftest.er1
13700   ac_status=$?
13701   grep -v '^ *+' conftest.er1 >conftest.err
13702   rm -f conftest.er1
13703   cat conftest.err >&5
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } &&
13706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707   { (case "(($ac_try" in
13708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709   *) ac_try_echo=$ac_try;;
13710 esac
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712   (eval "$ac_try") 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; } &&
13716          { ac_try='test -s conftest.$ac_objext'
13717   { (case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_try") 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   ac_header_compiler=yes
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731         ac_header_compiler=no
13732 fi
13733
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13736 echo "${ECHO_T}$ac_header_compiler" >&6; }
13737
13738 # Is the header present?
13739 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13740 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747 #include <jitprofiling.h>
13748 _ACEOF
13749 if { (ac_try="$ac_cpp conftest.$ac_ext"
13750 case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } >/dev/null; then
13762   if test -s conftest.err; then
13763     ac_cpp_err=$ac_c_preproc_warn_flag
13764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13765   else
13766     ac_cpp_err=
13767   fi
13768 else
13769   ac_cpp_err=yes
13770 fi
13771 if test -z "$ac_cpp_err"; then
13772   ac_header_preproc=yes
13773 else
13774   echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777   ac_header_preproc=no
13778 fi
13779
13780 rm -f conftest.err conftest.$ac_ext
13781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782 echo "${ECHO_T}$ac_header_preproc" >&6; }
13783
13784 # So?  What about this header?
13785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13786   yes:no: )
13787     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13788 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13789     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13790 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13791     ac_header_preproc=yes
13792     ;;
13793   no:yes:* )
13794     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13795 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13796     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13797 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13798     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13799 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13800     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13801 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13802     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13803 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13804     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13805 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13806     ( cat <<\_ASBOX
13807 ## ------------------------------------ ##
13808 ## Report this to http://llvm.org/bugs/ ##
13809 ## ------------------------------------ ##
13810 _ASBOX
13811      ) | sed "s/^/$as_me: WARNING:     /" >&2
13812     ;;
13813 esac
13814 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13815 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13816 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13817   echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819   ac_cv_header_jitprofiling_h=$ac_header_preproc
13820 fi
13821 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13822 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13823
13824 fi
13825 if test $ac_cv_header_jitprofiling_h = yes; then
13826   :
13827 else
13828
13829         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13830         exit -1
13831
13832 fi
13833
13834
13835
13836
13837 else
13838
13839       USE_INTEL_JITEVENTS=0
13840
13841
13842 fi
13843
13844
13845 cat >>confdefs.h <<_ACEOF
13846 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13847 _ACEOF
13848
13849
13850 for ac_prog in xml2-config
13851 do
13852   # Extract the first word of "$ac_prog", so it can be a program name with args.
13853 set dummy $ac_prog; ac_word=$2
13854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13856 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13857   echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859   if test -n "$XML2CONFIG"; then
13860   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13861 else
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13864 do
13865   IFS=$as_save_IFS
13866   test -z "$as_dir" && as_dir=.
13867   for ac_exec_ext in '' $ac_executable_extensions; do
13868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13869     ac_cv_prog_XML2CONFIG="$ac_prog"
13870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13871     break 2
13872   fi
13873 done
13874 done
13875 IFS=$as_save_IFS
13876
13877 fi
13878 fi
13879 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13880 if test -n "$XML2CONFIG"; then
13881   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13882 echo "${ECHO_T}$XML2CONFIG" >&6; }
13883 else
13884   { echo "$as_me:$LINENO: result: no" >&5
13885 echo "${ECHO_T}no" >&6; }
13886 fi
13887
13888
13889   test -n "$XML2CONFIG" && break
13890 done
13891
13892
13893 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13894 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13895 if test "x$XML2CONFIG" = "x"; then
13896  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13897 echo "${ECHO_T}xml2-config not found" >&6; }
13898 else
13899  LIBXML2_INC=`$XML2CONFIG --cflags`
13900  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13901 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13902  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13903 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13904 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13905   echo $ECHO_N "(cached) $ECHO_C" >&6
13906 else
13907   ac_check_lib_save_LIBS=$LIBS
13908 LIBS="-lxml2  $LIBS"
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h.  */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h.  */
13915
13916 /* Override any GCC internal prototype to avoid an error.
13917    Use char because int might match the return type of a GCC
13918    builtin and then its argument prototype would still apply.  */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 char xmlReadFile ();
13923 int
13924 main ()
13925 {
13926 return xmlReadFile ();
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 rm -f conftest.$ac_objext conftest$ac_exeext
13932 if { (ac_try="$ac_link"
13933 case "(($ac_try" in
13934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935   *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938   (eval "$ac_link") 2>conftest.er1
13939   ac_status=$?
13940   grep -v '^ *+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } &&
13945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13946   { (case "(($ac_try" in
13947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948   *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951   (eval "$ac_try") 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; } &&
13955          { ac_try='test -s conftest$ac_exeext'
13956   { (case "(($ac_try" in
13957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958   *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961   (eval "$ac_try") 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; }; then
13965   ac_cv_lib_xml2_xmlReadFile=yes
13966 else
13967   echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970         ac_cv_lib_xml2_xmlReadFile=no
13971 fi
13972
13973 rm -f core conftest.err conftest.$ac_objext \
13974       conftest$ac_exeext conftest.$ac_ext
13975 LIBS=$ac_check_lib_save_LIBS
13976 fi
13977 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13978 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13979 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13980
13981 cat >>confdefs.h <<\_ACEOF
13982 #define CLANG_HAVE_LIBXML 1
13983 _ACEOF
13984
13985                                 LIBXML2_LIBS="-lxml2"
13986 fi
13987
13988 fi
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998 ac_header_dirent=no
13999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14000   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14001 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14002 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14004   echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006   cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h.  */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h.  */
14012 #include <sys/types.h>
14013 #include <$ac_hdr>
14014
14015 int
14016 main ()
14017 {
14018 if ((DIR *) 0)
14019 return 0;
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 rm -f conftest.$ac_objext
14025 if { (ac_try="$ac_compile"
14026 case "(($ac_try" in
14027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028   *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031   (eval "$ac_compile") 2>conftest.er1
14032   ac_status=$?
14033   grep -v '^ *+' conftest.er1 >conftest.err
14034   rm -f conftest.er1
14035   cat conftest.err >&5
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); } &&
14038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14039   { (case "(($ac_try" in
14040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041   *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044   (eval "$ac_try") 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; } &&
14048          { ac_try='test -s conftest.$ac_objext'
14049   { (case "(($ac_try" in
14050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051   *) ac_try_echo=$ac_try;;
14052 esac
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054   (eval "$ac_try") 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); }; }; then
14058   eval "$as_ac_Header=yes"
14059 else
14060   echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063         eval "$as_ac_Header=no"
14064 fi
14065
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 fi
14068 ac_res=`eval echo '${'$as_ac_Header'}'`
14069                { echo "$as_me:$LINENO: result: $ac_res" >&5
14070 echo "${ECHO_T}$ac_res" >&6; }
14071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14072   cat >>confdefs.h <<_ACEOF
14073 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14074 _ACEOF
14075
14076 ac_header_dirent=$ac_hdr; break
14077 fi
14078
14079 done
14080 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14081 if test $ac_header_dirent = dirent.h; then
14082   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14083 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14084 if test "${ac_cv_search_opendir+set}" = set; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087   ac_func_search_save_LIBS=$LIBS
14088 cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h.  */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h.  */
14094
14095 /* Override any GCC internal prototype to avoid an error.
14096    Use char because int might match the return type of a GCC
14097    builtin and then its argument prototype would still apply.  */
14098 #ifdef __cplusplus
14099 extern "C"
14100 #endif
14101 char opendir ();
14102 int
14103 main ()
14104 {
14105 return opendir ();
14106   ;
14107   return 0;
14108 }
14109 _ACEOF
14110 for ac_lib in '' dir; do
14111   if test -z "$ac_lib"; then
14112     ac_res="none required"
14113   else
14114     ac_res=-l$ac_lib
14115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14116   fi
14117   rm -f conftest.$ac_objext conftest$ac_exeext
14118 if { (ac_try="$ac_link"
14119 case "(($ac_try" in
14120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121   *) ac_try_echo=$ac_try;;
14122 esac
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124   (eval "$ac_link") 2>conftest.er1
14125   ac_status=$?
14126   grep -v '^ *+' conftest.er1 >conftest.err
14127   rm -f conftest.er1
14128   cat conftest.err >&5
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); } &&
14131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14132   { (case "(($ac_try" in
14133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134   *) ac_try_echo=$ac_try;;
14135 esac
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137   (eval "$ac_try") 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; } &&
14141          { ac_try='test -s conftest$ac_exeext'
14142   { (case "(($ac_try" in
14143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144   *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147   (eval "$ac_try") 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); }; }; then
14151   ac_cv_search_opendir=$ac_res
14152 else
14153   echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14155
14156
14157 fi
14158
14159 rm -f core conftest.err conftest.$ac_objext \
14160       conftest$ac_exeext
14161   if test "${ac_cv_search_opendir+set}" = set; then
14162   break
14163 fi
14164 done
14165 if test "${ac_cv_search_opendir+set}" = set; then
14166   :
14167 else
14168   ac_cv_search_opendir=no
14169 fi
14170 rm conftest.$ac_ext
14171 LIBS=$ac_func_search_save_LIBS
14172 fi
14173 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14174 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14175 ac_res=$ac_cv_search_opendir
14176 if test "$ac_res" != no; then
14177   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14178
14179 fi
14180
14181 else
14182   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14184 if test "${ac_cv_search_opendir+set}" = set; then
14185   echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187   ac_func_search_save_LIBS=$LIBS
14188 cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h.  */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h.  */
14194
14195 /* Override any GCC internal prototype to avoid an error.
14196    Use char because int might match the return type of a GCC
14197    builtin and then its argument prototype would still apply.  */
14198 #ifdef __cplusplus
14199 extern "C"
14200 #endif
14201 char opendir ();
14202 int
14203 main ()
14204 {
14205 return opendir ();
14206   ;
14207   return 0;
14208 }
14209 _ACEOF
14210 for ac_lib in '' x; do
14211   if test -z "$ac_lib"; then
14212     ac_res="none required"
14213   else
14214     ac_res=-l$ac_lib
14215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14216   fi
14217   rm -f conftest.$ac_objext conftest$ac_exeext
14218 if { (ac_try="$ac_link"
14219 case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224   (eval "$ac_link") 2>conftest.er1
14225   ac_status=$?
14226   grep -v '^ *+' conftest.er1 >conftest.err
14227   rm -f conftest.er1
14228   cat conftest.err >&5
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } &&
14231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14232   { (case "(($ac_try" in
14233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234   *) ac_try_echo=$ac_try;;
14235 esac
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237   (eval "$ac_try") 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); }; } &&
14241          { ac_try='test -s conftest$ac_exeext'
14242   { (case "(($ac_try" in
14243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244   *) ac_try_echo=$ac_try;;
14245 esac
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247   (eval "$ac_try") 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; }; then
14251   ac_cv_search_opendir=$ac_res
14252 else
14253   echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256
14257 fi
14258
14259 rm -f core conftest.err conftest.$ac_objext \
14260       conftest$ac_exeext
14261   if test "${ac_cv_search_opendir+set}" = set; then
14262   break
14263 fi
14264 done
14265 if test "${ac_cv_search_opendir+set}" = set; then
14266   :
14267 else
14268   ac_cv_search_opendir=no
14269 fi
14270 rm conftest.$ac_ext
14271 LIBS=$ac_func_search_save_LIBS
14272 fi
14273 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14274 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14275 ac_res=$ac_cv_search_opendir
14276 if test "$ac_res" != no; then
14277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14278
14279 fi
14280
14281 fi
14282
14283 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14284 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14285 if test "${ac_cv_header_mmap_anon+set}" = set; then
14286   echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288    ac_ext=c
14289 ac_cpp='$CPP $CPPFLAGS'
14290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14293
14294   cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300 #include <sys/mman.h>
14301 #include <unistd.h>
14302 #include <fcntl.h>
14303 int
14304 main ()
14305 {
14306 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest.$ac_objext
14312 if { (ac_try="$ac_compile"
14313 case "(($ac_try" in
14314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315   *) ac_try_echo=$ac_try;;
14316 esac
14317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318   (eval "$ac_compile") 2>conftest.er1
14319   ac_status=$?
14320   grep -v '^ *+' conftest.er1 >conftest.err
14321   rm -f conftest.er1
14322   cat conftest.err >&5
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } &&
14325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14335          { ac_try='test -s conftest.$ac_objext'
14336   { (case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_try") 2>&5
14342   ac_status=$?
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; }; then
14345   ac_cv_header_mmap_anon=yes
14346 else
14347   echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14349
14350         ac_cv_header_mmap_anon=no
14351 fi
14352
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14354   ac_ext=c
14355 ac_cpp='$CPP $CPPFLAGS'
14356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359
14360
14361 fi
14362 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14363 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14364 if test "$ac_cv_header_mmap_anon" = yes; then
14365
14366 cat >>confdefs.h <<\_ACEOF
14367 #define HAVE_MMAP_ANONYMOUS 1
14368 _ACEOF
14369
14370 fi
14371
14372 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14373 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14374 if test "${ac_cv_header_stat_broken+set}" = set; then
14375   echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377   cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h.  */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h.  */
14383 #include <sys/types.h>
14384 #include <sys/stat.h>
14385
14386 #if defined S_ISBLK && defined S_IFDIR
14387 # if S_ISBLK (S_IFDIR)
14388 You lose.
14389 # endif
14390 #endif
14391
14392 #if defined S_ISBLK && defined S_IFCHR
14393 # if S_ISBLK (S_IFCHR)
14394 You lose.
14395 # endif
14396 #endif
14397
14398 #if defined S_ISLNK && defined S_IFREG
14399 # if S_ISLNK (S_IFREG)
14400 You lose.
14401 # endif
14402 #endif
14403
14404 #if defined S_ISSOCK && defined S_IFREG
14405 # if S_ISSOCK (S_IFREG)
14406 You lose.
14407 # endif
14408 #endif
14409
14410 _ACEOF
14411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14412   $EGREP "You lose" >/dev/null 2>&1; then
14413   ac_cv_header_stat_broken=yes
14414 else
14415   ac_cv_header_stat_broken=no
14416 fi
14417 rm -f conftest*
14418
14419 fi
14420 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14421 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14422 if test $ac_cv_header_stat_broken = yes; then
14423
14424 cat >>confdefs.h <<\_ACEOF
14425 #define STAT_MACROS_BROKEN 1
14426 _ACEOF
14427
14428 fi
14429
14430 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14431 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14432 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14433   echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14435   cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h.  */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h.  */
14441 #include <sys/types.h>
14442 #include <sys/wait.h>
14443 #ifndef WEXITSTATUS
14444 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14445 #endif
14446 #ifndef WIFEXITED
14447 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14448 #endif
14449
14450 int
14451 main ()
14452 {
14453   int s;
14454   wait (&s);
14455   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext
14461 if { (ac_try="$ac_compile"
14462 case "(($ac_try" in
14463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464   *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467   (eval "$ac_compile") 2>conftest.er1
14468   ac_status=$?
14469   grep -v '^ *+' conftest.er1 >conftest.err
14470   rm -f conftest.er1
14471   cat conftest.err >&5
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } &&
14474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14475   { (case "(($ac_try" in
14476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477   *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480   (eval "$ac_try") 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); }; } &&
14484          { ac_try='test -s conftest.$ac_objext'
14485   { (case "(($ac_try" in
14486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487   *) ac_try_echo=$ac_try;;
14488 esac
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490   (eval "$ac_try") 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; }; then
14494   ac_cv_header_sys_wait_h=yes
14495 else
14496   echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499         ac_cv_header_sys_wait_h=no
14500 fi
14501
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 fi
14504 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14505 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14506 if test $ac_cv_header_sys_wait_h = yes; then
14507
14508 cat >>confdefs.h <<\_ACEOF
14509 #define HAVE_SYS_WAIT_H 1
14510 _ACEOF
14511
14512 fi
14513
14514 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14515 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14516 if test "${ac_cv_header_time+set}" = set; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519   cat >conftest.$ac_ext <<_ACEOF
14520 /* confdefs.h.  */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h.  */
14525 #include <sys/types.h>
14526 #include <sys/time.h>
14527 #include <time.h>
14528
14529 int
14530 main ()
14531 {
14532 if ((struct tm *) 0)
14533 return 0;
14534   ;
14535   return 0;
14536 }
14537 _ACEOF
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542   *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545   (eval "$ac_compile") 2>conftest.er1
14546   ac_status=$?
14547   grep -v '^ *+' conftest.er1 >conftest.err
14548   rm -f conftest.er1
14549   cat conftest.err >&5
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } &&
14552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14553   { (case "(($ac_try" in
14554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555   *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558   (eval "$ac_try") 2>&5
14559   ac_status=$?
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); }; } &&
14562          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; }; then
14572   ac_cv_header_time=yes
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577         ac_cv_header_time=no
14578 fi
14579
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 fi
14582 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14583 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14584 if test $ac_cv_header_time = yes; then
14585
14586 cat >>confdefs.h <<\_ACEOF
14587 #define TIME_WITH_SYS_TIME 1
14588 _ACEOF
14589
14590 fi
14591
14592
14593
14594
14595
14596
14597
14598
14599 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14600 do
14601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14603   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14606   echo $ECHO_N "(cached) $ECHO_C" >&6
14607 fi
14608 ac_res=`eval echo '${'$as_ac_Header'}'`
14609                { echo "$as_me:$LINENO: result: $ac_res" >&5
14610 echo "${ECHO_T}$ac_res" >&6; }
14611 else
14612   # Is the header compilable?
14613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14615 cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h.  */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h.  */
14621 $ac_includes_default
14622 #include <$ac_header>
14623 _ACEOF
14624 rm -f conftest.$ac_objext
14625 if { (ac_try="$ac_compile"
14626 case "(($ac_try" in
14627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628   *) ac_try_echo=$ac_try;;
14629 esac
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631   (eval "$ac_compile") 2>conftest.er1
14632   ac_status=$?
14633   grep -v '^ *+' conftest.er1 >conftest.err
14634   rm -f conftest.er1
14635   cat conftest.err >&5
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } &&
14638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14639   { (case "(($ac_try" in
14640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641   *) ac_try_echo=$ac_try;;
14642 esac
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644   (eval "$ac_try") 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); }; } &&
14648          { ac_try='test -s conftest.$ac_objext'
14649   { (case "(($ac_try" in
14650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651   *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654   (eval "$ac_try") 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }; }; then
14658   ac_header_compiler=yes
14659 else
14660   echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14662
14663         ac_header_compiler=no
14664 fi
14665
14666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14668 echo "${ECHO_T}$ac_header_compiler" >&6; }
14669
14670 # Is the header present?
14671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679 #include <$ac_header>
14680 _ACEOF
14681 if { (ac_try="$ac_cpp conftest.$ac_ext"
14682 case "(($ac_try" in
14683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684   *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14688   ac_status=$?
14689   grep -v '^ *+' conftest.er1 >conftest.err
14690   rm -f conftest.er1
14691   cat conftest.err >&5
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); } >/dev/null; then
14694   if test -s conftest.err; then
14695     ac_cpp_err=$ac_c_preproc_warn_flag
14696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14697   else
14698     ac_cpp_err=
14699   fi
14700 else
14701   ac_cpp_err=yes
14702 fi
14703 if test -z "$ac_cpp_err"; then
14704   ac_header_preproc=yes
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709   ac_header_preproc=no
14710 fi
14711
14712 rm -f conftest.err conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14714 echo "${ECHO_T}$ac_header_preproc" >&6; }
14715
14716 # So?  What about this header?
14717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14718   yes:no: )
14719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14723     ac_header_preproc=yes
14724     ;;
14725   no:yes:* )
14726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14738     ( cat <<\_ASBOX
14739 ## ------------------------------------ ##
14740 ## Report this to http://llvm.org/bugs/ ##
14741 ## ------------------------------------ ##
14742 _ASBOX
14743      ) | sed "s/^/$as_me: WARNING:     /" >&2
14744     ;;
14745 esac
14746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749   echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751   eval "$as_ac_Header=\$ac_header_preproc"
14752 fi
14753 ac_res=`eval echo '${'$as_ac_Header'}'`
14754                { echo "$as_me:$LINENO: result: $ac_res" >&5
14755 echo "${ECHO_T}$ac_res" >&6; }
14756
14757 fi
14758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14759   cat >>confdefs.h <<_ACEOF
14760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14761 _ACEOF
14762
14763 fi
14764
14765 done
14766
14767
14768
14769
14770
14771
14772
14773 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14774 do
14775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14777   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14780   echo $ECHO_N "(cached) $ECHO_C" >&6
14781 fi
14782 ac_res=`eval echo '${'$as_ac_Header'}'`
14783                { echo "$as_me:$LINENO: result: $ac_res" >&5
14784 echo "${ECHO_T}$ac_res" >&6; }
14785 else
14786   # Is the header compilable?
14787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h.  */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h.  */
14795 $ac_includes_default
14796 #include <$ac_header>
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (ac_try="$ac_compile"
14800 case "(($ac_try" in
14801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802   *) ac_try_echo=$ac_try;;
14803 esac
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805   (eval "$ac_compile") 2>conftest.er1
14806   ac_status=$?
14807   grep -v '^ *+' conftest.er1 >conftest.err
14808   rm -f conftest.er1
14809   cat conftest.err >&5
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); } &&
14812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14813   { (case "(($ac_try" in
14814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815   *) ac_try_echo=$ac_try;;
14816 esac
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818   (eval "$ac_try") 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; } &&
14822          { ac_try='test -s conftest.$ac_objext'
14823   { (case "(($ac_try" in
14824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825   *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828   (eval "$ac_try") 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; }; then
14832   ac_header_compiler=yes
14833 else
14834   echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14836
14837         ac_header_compiler=no
14838 fi
14839
14840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14842 echo "${ECHO_T}$ac_header_compiler" >&6; }
14843
14844 # Is the header present?
14845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853 #include <$ac_header>
14854 _ACEOF
14855 if { (ac_try="$ac_cpp conftest.$ac_ext"
14856 case "(($ac_try" in
14857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858   *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14862   ac_status=$?
14863   grep -v '^ *+' conftest.er1 >conftest.err
14864   rm -f conftest.er1
14865   cat conftest.err >&5
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } >/dev/null; then
14868   if test -s conftest.err; then
14869     ac_cpp_err=$ac_c_preproc_warn_flag
14870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14871   else
14872     ac_cpp_err=
14873   fi
14874 else
14875   ac_cpp_err=yes
14876 fi
14877 if test -z "$ac_cpp_err"; then
14878   ac_header_preproc=yes
14879 else
14880   echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883   ac_header_preproc=no
14884 fi
14885
14886 rm -f conftest.err conftest.$ac_ext
14887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14888 echo "${ECHO_T}$ac_header_preproc" >&6; }
14889
14890 # So?  What about this header?
14891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14892   yes:no: )
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14897     ac_header_preproc=yes
14898     ;;
14899   no:yes:* )
14900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14912     ( cat <<\_ASBOX
14913 ## ------------------------------------ ##
14914 ## Report this to http://llvm.org/bugs/ ##
14915 ## ------------------------------------ ##
14916 _ASBOX
14917      ) | sed "s/^/$as_me: WARNING:     /" >&2
14918     ;;
14919 esac
14920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14923   echo $ECHO_N "(cached) $ECHO_C" >&6
14924 else
14925   eval "$as_ac_Header=\$ac_header_preproc"
14926 fi
14927 ac_res=`eval echo '${'$as_ac_Header'}'`
14928                { echo "$as_me:$LINENO: result: $ac_res" >&5
14929 echo "${ECHO_T}$ac_res" >&6; }
14930
14931 fi
14932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14933   cat >>confdefs.h <<_ACEOF
14934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14935 _ACEOF
14936
14937 fi
14938
14939 done
14940
14941
14942
14943 for ac_header in utime.h windows.h
14944 do
14945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14947   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14950   echo $ECHO_N "(cached) $ECHO_C" >&6
14951 fi
14952 ac_res=`eval echo '${'$as_ac_Header'}'`
14953                { echo "$as_me:$LINENO: result: $ac_res" >&5
14954 echo "${ECHO_T}$ac_res" >&6; }
14955 else
14956   # Is the header compilable?
14957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14959 cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h.  */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h.  */
14965 $ac_includes_default
14966 #include <$ac_header>
14967 _ACEOF
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972   *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975   (eval "$ac_compile") 2>conftest.er1
14976   ac_status=$?
14977   grep -v '^ *+' conftest.er1 >conftest.err
14978   rm -f conftest.er1
14979   cat conftest.err >&5
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } &&
14982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14983   { (case "(($ac_try" in
14984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985   *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988   (eval "$ac_try") 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; } &&
14992          { ac_try='test -s conftest.$ac_objext'
14993   { (case "(($ac_try" in
14994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995   *) ac_try_echo=$ac_try;;
14996 esac
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998   (eval "$ac_try") 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); }; }; then
15002   ac_header_compiler=yes
15003 else
15004   echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15006
15007         ac_header_compiler=no
15008 fi
15009
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15012 echo "${ECHO_T}$ac_header_compiler" >&6; }
15013
15014 # Is the header present?
15015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h.  */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h.  */
15023 #include <$ac_header>
15024 _ACEOF
15025 if { (ac_try="$ac_cpp conftest.$ac_ext"
15026 case "(($ac_try" in
15027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028   *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15032   ac_status=$?
15033   grep -v '^ *+' conftest.er1 >conftest.err
15034   rm -f conftest.er1
15035   cat conftest.err >&5
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } >/dev/null; then
15038   if test -s conftest.err; then
15039     ac_cpp_err=$ac_c_preproc_warn_flag
15040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15041   else
15042     ac_cpp_err=
15043   fi
15044 else
15045   ac_cpp_err=yes
15046 fi
15047 if test -z "$ac_cpp_err"; then
15048   ac_header_preproc=yes
15049 else
15050   echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15052
15053   ac_header_preproc=no
15054 fi
15055
15056 rm -f conftest.err conftest.$ac_ext
15057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15058 echo "${ECHO_T}$ac_header_preproc" >&6; }
15059
15060 # So?  What about this header?
15061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15062   yes:no: )
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15067     ac_header_preproc=yes
15068     ;;
15069   no:yes:* )
15070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15072     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15073 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15074     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15076     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15077 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15080     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15082     ( cat <<\_ASBOX
15083 ## ------------------------------------ ##
15084 ## Report this to http://llvm.org/bugs/ ##
15085 ## ------------------------------------ ##
15086 _ASBOX
15087      ) | sed "s/^/$as_me: WARNING:     /" >&2
15088     ;;
15089 esac
15090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15093   echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095   eval "$as_ac_Header=\$ac_header_preproc"
15096 fi
15097 ac_res=`eval echo '${'$as_ac_Header'}'`
15098                { echo "$as_me:$LINENO: result: $ac_res" >&5
15099 echo "${ECHO_T}$ac_res" >&6; }
15100
15101 fi
15102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15103   cat >>confdefs.h <<_ACEOF
15104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15105 _ACEOF
15106
15107 fi
15108
15109 done
15110
15111
15112
15113
15114
15115
15116 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15117 do
15118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15120   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15123   echo $ECHO_N "(cached) $ECHO_C" >&6
15124 fi
15125 ac_res=`eval echo '${'$as_ac_Header'}'`
15126                { echo "$as_me:$LINENO: result: $ac_res" >&5
15127 echo "${ECHO_T}$ac_res" >&6; }
15128 else
15129   # Is the header compilable?
15130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15132 cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h.  */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h.  */
15138 $ac_includes_default
15139 #include <$ac_header>
15140 _ACEOF
15141 rm -f conftest.$ac_objext
15142 if { (ac_try="$ac_compile"
15143 case "(($ac_try" in
15144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145   *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148   (eval "$ac_compile") 2>conftest.er1
15149   ac_status=$?
15150   grep -v '^ *+' conftest.er1 >conftest.err
15151   rm -f conftest.er1
15152   cat conftest.err >&5
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); } &&
15155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156   { (case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_try") 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; } &&
15165          { ac_try='test -s conftest.$ac_objext'
15166   { (case "(($ac_try" in
15167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168   *) ac_try_echo=$ac_try;;
15169 esac
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171   (eval "$ac_try") 2>&5
15172   ac_status=$?
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); }; }; then
15175   ac_header_compiler=yes
15176 else
15177   echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15179
15180         ac_header_compiler=no
15181 fi
15182
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15185 echo "${ECHO_T}$ac_header_compiler" >&6; }
15186
15187 # Is the header present?
15188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15190 cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h.  */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h.  */
15196 #include <$ac_header>
15197 _ACEOF
15198 if { (ac_try="$ac_cpp conftest.$ac_ext"
15199 case "(($ac_try" in
15200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201   *) ac_try_echo=$ac_try;;
15202 esac
15203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15205   ac_status=$?
15206   grep -v '^ *+' conftest.er1 >conftest.err
15207   rm -f conftest.er1
15208   cat conftest.err >&5
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); } >/dev/null; then
15211   if test -s conftest.err; then
15212     ac_cpp_err=$ac_c_preproc_warn_flag
15213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15214   else
15215     ac_cpp_err=
15216   fi
15217 else
15218   ac_cpp_err=yes
15219 fi
15220 if test -z "$ac_cpp_err"; then
15221   ac_header_preproc=yes
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226   ac_header_preproc=no
15227 fi
15228
15229 rm -f conftest.err conftest.$ac_ext
15230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15231 echo "${ECHO_T}$ac_header_preproc" >&6; }
15232
15233 # So?  What about this header?
15234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15235   yes:no: )
15236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15240     ac_header_preproc=yes
15241     ;;
15242   no:yes:* )
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15255     ( cat <<\_ASBOX
15256 ## ------------------------------------ ##
15257 ## Report this to http://llvm.org/bugs/ ##
15258 ## ------------------------------------ ##
15259 _ASBOX
15260      ) | sed "s/^/$as_me: WARNING:     /" >&2
15261     ;;
15262 esac
15263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15266   echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268   eval "$as_ac_Header=\$ac_header_preproc"
15269 fi
15270 ac_res=`eval echo '${'$as_ac_Header'}'`
15271                { echo "$as_me:$LINENO: result: $ac_res" >&5
15272 echo "${ECHO_T}$ac_res" >&6; }
15273
15274 fi
15275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15276   cat >>confdefs.h <<_ACEOF
15277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15278 _ACEOF
15279
15280 fi
15281
15282 done
15283
15284
15285
15286
15287
15288 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15289 do
15290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15292   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15295   echo $ECHO_N "(cached) $ECHO_C" >&6
15296 fi
15297 ac_res=`eval echo '${'$as_ac_Header'}'`
15298                { echo "$as_me:$LINENO: result: $ac_res" >&5
15299 echo "${ECHO_T}$ac_res" >&6; }
15300 else
15301   # Is the header compilable?
15302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15304 cat >conftest.$ac_ext <<_ACEOF
15305 /* confdefs.h.  */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h.  */
15310 $ac_includes_default
15311 #include <$ac_header>
15312 _ACEOF
15313 rm -f conftest.$ac_objext
15314 if { (ac_try="$ac_compile"
15315 case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320   (eval "$ac_compile") 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } &&
15327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15328   { (case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333   (eval "$ac_try") 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; } &&
15337          { ac_try='test -s conftest.$ac_objext'
15338   { (case "(($ac_try" in
15339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340   *) ac_try_echo=$ac_try;;
15341 esac
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343   (eval "$ac_try") 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; }; then
15347   ac_header_compiler=yes
15348 else
15349   echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352         ac_header_compiler=no
15353 fi
15354
15355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357 echo "${ECHO_T}$ac_header_compiler" >&6; }
15358
15359 # Is the header present?
15360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h.  */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h.  */
15368 #include <$ac_header>
15369 _ACEOF
15370 if { (ac_try="$ac_cpp conftest.$ac_ext"
15371 case "(($ac_try" in
15372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373   *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15377   ac_status=$?
15378   grep -v '^ *+' conftest.er1 >conftest.err
15379   rm -f conftest.er1
15380   cat conftest.err >&5
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); } >/dev/null; then
15383   if test -s conftest.err; then
15384     ac_cpp_err=$ac_c_preproc_warn_flag
15385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15386   else
15387     ac_cpp_err=
15388   fi
15389 else
15390   ac_cpp_err=yes
15391 fi
15392 if test -z "$ac_cpp_err"; then
15393   ac_header_preproc=yes
15394 else
15395   echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398   ac_header_preproc=no
15399 fi
15400
15401 rm -f conftest.err conftest.$ac_ext
15402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15403 echo "${ECHO_T}$ac_header_preproc" >&6; }
15404
15405 # So?  What about this header?
15406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15407   yes:no: )
15408     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15412     ac_header_preproc=yes
15413     ;;
15414   no:yes:* )
15415     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15417     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15418 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15419     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15421     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15422 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15425     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15427     ( cat <<\_ASBOX
15428 ## ------------------------------------ ##
15429 ## Report this to http://llvm.org/bugs/ ##
15430 ## ------------------------------------ ##
15431 _ASBOX
15432      ) | sed "s/^/$as_me: WARNING:     /" >&2
15433     ;;
15434 esac
15435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15438   echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440   eval "$as_ac_Header=\$ac_header_preproc"
15441 fi
15442 ac_res=`eval echo '${'$as_ac_Header'}'`
15443                { echo "$as_me:$LINENO: result: $ac_res" >&5
15444 echo "${ECHO_T}$ac_res" >&6; }
15445
15446 fi
15447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15448   cat >>confdefs.h <<_ACEOF
15449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15450 _ACEOF
15451
15452 fi
15453
15454 done
15455
15456
15457 for ac_header in valgrind/valgrind.h
15458 do
15459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15464   echo $ECHO_N "(cached) $ECHO_C" >&6
15465 fi
15466 ac_res=`eval echo '${'$as_ac_Header'}'`
15467                { echo "$as_me:$LINENO: result: $ac_res" >&5
15468 echo "${ECHO_T}$ac_res" >&6; }
15469 else
15470   # Is the header compilable?
15471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479 $ac_includes_default
15480 #include <$ac_header>
15481 _ACEOF
15482 rm -f conftest.$ac_objext
15483 if { (ac_try="$ac_compile"
15484 case "(($ac_try" in
15485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486   *) ac_try_echo=$ac_try;;
15487 esac
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489   (eval "$ac_compile") 2>conftest.er1
15490   ac_status=$?
15491   grep -v '^ *+' conftest.er1 >conftest.err
15492   rm -f conftest.er1
15493   cat conftest.err >&5
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); } &&
15496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15497   { (case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502   (eval "$ac_try") 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); }; } &&
15506          { ac_try='test -s conftest.$ac_objext'
15507   { (case "(($ac_try" in
15508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509   *) ac_try_echo=$ac_try;;
15510 esac
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512   (eval "$ac_try") 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); }; }; then
15516   ac_header_compiler=yes
15517 else
15518   echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521         ac_header_compiler=no
15522 fi
15523
15524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15526 echo "${ECHO_T}$ac_header_compiler" >&6; }
15527
15528 # Is the header present?
15529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537 #include <$ac_header>
15538 _ACEOF
15539 if { (ac_try="$ac_cpp conftest.$ac_ext"
15540 case "(($ac_try" in
15541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542   *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15546   ac_status=$?
15547   grep -v '^ *+' conftest.er1 >conftest.err
15548   rm -f conftest.er1
15549   cat conftest.err >&5
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } >/dev/null; then
15552   if test -s conftest.err; then
15553     ac_cpp_err=$ac_c_preproc_warn_flag
15554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15555   else
15556     ac_cpp_err=
15557   fi
15558 else
15559   ac_cpp_err=yes
15560 fi
15561 if test -z "$ac_cpp_err"; then
15562   ac_header_preproc=yes
15563 else
15564   echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15566
15567   ac_header_preproc=no
15568 fi
15569
15570 rm -f conftest.err conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15572 echo "${ECHO_T}$ac_header_preproc" >&6; }
15573
15574 # So?  What about this header?
15575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15576   yes:no: )
15577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15581     ac_header_preproc=yes
15582     ;;
15583   no:yes:* )
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15587 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15590     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15591 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15596     ( cat <<\_ASBOX
15597 ## ------------------------------------ ##
15598 ## Report this to http://llvm.org/bugs/ ##
15599 ## ------------------------------------ ##
15600 _ASBOX
15601      ) | sed "s/^/$as_me: WARNING:     /" >&2
15602     ;;
15603 esac
15604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15607   echo $ECHO_N "(cached) $ECHO_C" >&6
15608 else
15609   eval "$as_ac_Header=\$ac_header_preproc"
15610 fi
15611 ac_res=`eval echo '${'$as_ac_Header'}'`
15612                { echo "$as_me:$LINENO: result: $ac_res" >&5
15613 echo "${ECHO_T}$ac_res" >&6; }
15614
15615 fi
15616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15617   cat >>confdefs.h <<_ACEOF
15618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15619 _ACEOF
15620
15621 fi
15622
15623 done
15624
15625
15626 for ac_header in fenv.h
15627 do
15628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15630   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15633   echo $ECHO_N "(cached) $ECHO_C" >&6
15634 fi
15635 ac_res=`eval echo '${'$as_ac_Header'}'`
15636                { echo "$as_me:$LINENO: result: $ac_res" >&5
15637 echo "${ECHO_T}$ac_res" >&6; }
15638 else
15639   # Is the header compilable?
15640 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15642 cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h.  */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h.  */
15648 $ac_includes_default
15649 #include <$ac_header>
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (ac_try="$ac_compile"
15653 case "(($ac_try" in
15654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655   *) ac_try_echo=$ac_try;;
15656 esac
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658   (eval "$ac_compile") 2>conftest.er1
15659   ac_status=$?
15660   grep -v '^ *+' conftest.er1 >conftest.err
15661   rm -f conftest.er1
15662   cat conftest.err >&5
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15666   { (case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_try") 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; } &&
15675          { ac_try='test -s conftest.$ac_objext'
15676   { (case "(($ac_try" in
15677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678   *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681   (eval "$ac_try") 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); }; }; then
15685   ac_header_compiler=yes
15686 else
15687   echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15689
15690         ac_header_compiler=no
15691 fi
15692
15693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15695 echo "${ECHO_T}$ac_header_compiler" >&6; }
15696
15697 # Is the header present?
15698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15700 cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h.  */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h.  */
15706 #include <$ac_header>
15707 _ACEOF
15708 if { (ac_try="$ac_cpp conftest.$ac_ext"
15709 case "(($ac_try" in
15710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711   *) ac_try_echo=$ac_try;;
15712 esac
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15715   ac_status=$?
15716   grep -v '^ *+' conftest.er1 >conftest.err
15717   rm -f conftest.er1
15718   cat conftest.err >&5
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); } >/dev/null; then
15721   if test -s conftest.err; then
15722     ac_cpp_err=$ac_c_preproc_warn_flag
15723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15724   else
15725     ac_cpp_err=
15726   fi
15727 else
15728   ac_cpp_err=yes
15729 fi
15730 if test -z "$ac_cpp_err"; then
15731   ac_header_preproc=yes
15732 else
15733   echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736   ac_header_preproc=no
15737 fi
15738
15739 rm -f conftest.err conftest.$ac_ext
15740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15741 echo "${ECHO_T}$ac_header_preproc" >&6; }
15742
15743 # So?  What about this header?
15744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15745   yes:no: )
15746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15750     ac_header_preproc=yes
15751     ;;
15752   no:yes:* )
15753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15755     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15756 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15757     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15759     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15760 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15763     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15765     ( cat <<\_ASBOX
15766 ## ------------------------------------ ##
15767 ## Report this to http://llvm.org/bugs/ ##
15768 ## ------------------------------------ ##
15769 _ASBOX
15770      ) | sed "s/^/$as_me: WARNING:     /" >&2
15771     ;;
15772 esac
15773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15776   echo $ECHO_N "(cached) $ECHO_C" >&6
15777 else
15778   eval "$as_ac_Header=\$ac_header_preproc"
15779 fi
15780 ac_res=`eval echo '${'$as_ac_Header'}'`
15781                { echo "$as_me:$LINENO: result: $ac_res" >&5
15782 echo "${ECHO_T}$ac_res" >&6; }
15783
15784 fi
15785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15786   cat >>confdefs.h <<_ACEOF
15787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15788 _ACEOF
15789
15790 fi
15791
15792 done
15793
15794 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15795
15796 for ac_header in pthread.h
15797 do
15798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15803   echo $ECHO_N "(cached) $ECHO_C" >&6
15804 fi
15805 ac_res=`eval echo '${'$as_ac_Header'}'`
15806                { echo "$as_me:$LINENO: result: $ac_res" >&5
15807 echo "${ECHO_T}$ac_res" >&6; }
15808 else
15809   # Is the header compilable?
15810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h.  */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h.  */
15818 $ac_includes_default
15819 #include <$ac_header>
15820 _ACEOF
15821 rm -f conftest.$ac_objext
15822 if { (ac_try="$ac_compile"
15823 case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_compile") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } &&
15835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836   { (case "(($ac_try" in
15837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838   *) ac_try_echo=$ac_try;;
15839 esac
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841   (eval "$ac_try") 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; } &&
15845          { ac_try='test -s conftest.$ac_objext'
15846   { (case "(($ac_try" in
15847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848   *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851   (eval "$ac_try") 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; }; then
15855   ac_header_compiler=yes
15856 else
15857   echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15859
15860         ac_header_compiler=no
15861 fi
15862
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15865 echo "${ECHO_T}$ac_header_compiler" >&6; }
15866
15867 # Is the header present?
15868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15870 cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h.  */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h.  */
15876 #include <$ac_header>
15877 _ACEOF
15878 if { (ac_try="$ac_cpp conftest.$ac_ext"
15879 case "(($ac_try" in
15880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881   *) ac_try_echo=$ac_try;;
15882 esac
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15885   ac_status=$?
15886   grep -v '^ *+' conftest.er1 >conftest.err
15887   rm -f conftest.er1
15888   cat conftest.err >&5
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); } >/dev/null; then
15891   if test -s conftest.err; then
15892     ac_cpp_err=$ac_c_preproc_warn_flag
15893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15894   else
15895     ac_cpp_err=
15896   fi
15897 else
15898   ac_cpp_err=yes
15899 fi
15900 if test -z "$ac_cpp_err"; then
15901   ac_header_preproc=yes
15902 else
15903   echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906   ac_header_preproc=no
15907 fi
15908
15909 rm -f conftest.err conftest.$ac_ext
15910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15911 echo "${ECHO_T}$ac_header_preproc" >&6; }
15912
15913 # So?  What about this header?
15914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15915   yes:no: )
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15920     ac_header_preproc=yes
15921     ;;
15922   no:yes:* )
15923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15935     ( cat <<\_ASBOX
15936 ## ------------------------------------ ##
15937 ## Report this to http://llvm.org/bugs/ ##
15938 ## ------------------------------------ ##
15939 _ASBOX
15940      ) | sed "s/^/$as_me: WARNING:     /" >&2
15941     ;;
15942 esac
15943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15946   echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948   eval "$as_ac_Header=\$ac_header_preproc"
15949 fi
15950 ac_res=`eval echo '${'$as_ac_Header'}'`
15951                { echo "$as_me:$LINENO: result: $ac_res" >&5
15952 echo "${ECHO_T}$ac_res" >&6; }
15953
15954 fi
15955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15956   cat >>confdefs.h <<_ACEOF
15957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15958 _ACEOF
15959  HAVE_PTHREAD=1
15960
15961 else
15962   HAVE_PTHREAD=0
15963
15964 fi
15965
15966 done
15967
15968 else
15969   HAVE_PTHREAD=0
15970
15971 fi
15972
15973 if test "$llvm_cv_enable_libffi" = "yes" ; then
15974
15975
15976 for ac_header in ffi.h ffi/ffi.h
15977 do
15978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983   echo $ECHO_N "(cached) $ECHO_C" >&6
15984 fi
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986                { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15988 else
15989   # Is the header compilable?
15990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998 $ac_includes_default
15999 #include <$ac_header>
16000 _ACEOF
16001 rm -f conftest.$ac_objext
16002 if { (ac_try="$ac_compile"
16003 case "(($ac_try" in
16004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005   *) ac_try_echo=$ac_try;;
16006 esac
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008   (eval "$ac_compile") 2>conftest.er1
16009   ac_status=$?
16010   grep -v '^ *+' conftest.er1 >conftest.err
16011   rm -f conftest.er1
16012   cat conftest.err >&5
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); } &&
16015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016   { (case "(($ac_try" in
16017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018   *) ac_try_echo=$ac_try;;
16019 esac
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021   (eval "$ac_try") 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; } &&
16025          { ac_try='test -s conftest.$ac_objext'
16026   { (case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031   (eval "$ac_try") 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; }; then
16035   ac_header_compiler=yes
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040         ac_header_compiler=no
16041 fi
16042
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16046
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056 #include <$ac_header>
16057 _ACEOF
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } >/dev/null; then
16071   if test -s conftest.err; then
16072     ac_cpp_err=$ac_c_preproc_warn_flag
16073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16074   else
16075     ac_cpp_err=
16076   fi
16077 else
16078   ac_cpp_err=yes
16079 fi
16080 if test -z "$ac_cpp_err"; then
16081   ac_header_preproc=yes
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086   ac_header_preproc=no
16087 fi
16088
16089 rm -f conftest.err conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6; }
16092
16093 # So?  What about this header?
16094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16095   yes:no: )
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100     ac_header_preproc=yes
16101     ;;
16102   no:yes:* )
16103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16115     ( cat <<\_ASBOX
16116 ## ------------------------------------ ##
16117 ## Report this to http://llvm.org/bugs/ ##
16118 ## ------------------------------------ ##
16119 _ASBOX
16120      ) | sed "s/^/$as_me: WARNING:     /" >&2
16121     ;;
16122 esac
16123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126   echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128   eval "$as_ac_Header=\$ac_header_preproc"
16129 fi
16130 ac_res=`eval echo '${'$as_ac_Header'}'`
16131                { echo "$as_me:$LINENO: result: $ac_res" >&5
16132 echo "${ECHO_T}$ac_res" >&6; }
16133
16134 fi
16135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16136   cat >>confdefs.h <<_ACEOF
16137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16138 _ACEOF
16139
16140 fi
16141
16142 done
16143
16144 fi
16145
16146
16147 for ac_header in CrashReporterClient.h
16148 do
16149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 fi
16156 ac_res=`eval echo '${'$as_ac_Header'}'`
16157                { echo "$as_me:$LINENO: result: $ac_res" >&5
16158 echo "${ECHO_T}$ac_res" >&6; }
16159 else
16160   # Is the header compilable?
16161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16163 cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h.  */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h.  */
16169 $ac_includes_default
16170 #include <$ac_header>
16171 _ACEOF
16172 rm -f conftest.$ac_objext
16173 if { (ac_try="$ac_compile"
16174 case "(($ac_try" in
16175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176   *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179   (eval "$ac_compile") 2>conftest.er1
16180   ac_status=$?
16181   grep -v '^ *+' conftest.er1 >conftest.err
16182   rm -f conftest.er1
16183   cat conftest.err >&5
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); } &&
16186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187   { (case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_try") 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }; } &&
16196          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
16207 else
16208   echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211         ac_header_compiler=no
16212 fi
16213
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16216 echo "${ECHO_T}$ac_header_compiler" >&6; }
16217
16218 # Is the header present?
16219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16221 cat >conftest.$ac_ext <<_ACEOF
16222 /* confdefs.h.  */
16223 _ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h.  */
16227 #include <$ac_header>
16228 _ACEOF
16229 if { (ac_try="$ac_cpp conftest.$ac_ext"
16230 case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16236   ac_status=$?
16237   grep -v '^ *+' conftest.er1 >conftest.err
16238   rm -f conftest.er1
16239   cat conftest.err >&5
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); } >/dev/null; then
16242   if test -s conftest.err; then
16243     ac_cpp_err=$ac_c_preproc_warn_flag
16244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16245   else
16246     ac_cpp_err=
16247   fi
16248 else
16249   ac_cpp_err=yes
16250 fi
16251 if test -z "$ac_cpp_err"; then
16252   ac_header_preproc=yes
16253 else
16254   echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16256
16257   ac_header_preproc=no
16258 fi
16259
16260 rm -f conftest.err conftest.$ac_ext
16261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16262 echo "${ECHO_T}$ac_header_preproc" >&6; }
16263
16264 # So?  What about this header?
16265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16266   yes:no: )
16267     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16271     ac_header_preproc=yes
16272     ;;
16273   no:yes:* )
16274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16276     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16277 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16278     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16280     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16281 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16284     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16286     ( cat <<\_ASBOX
16287 ## ------------------------------------ ##
16288 ## Report this to http://llvm.org/bugs/ ##
16289 ## ------------------------------------ ##
16290 _ASBOX
16291      ) | sed "s/^/$as_me: WARNING:     /" >&2
16292     ;;
16293 esac
16294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16297   echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299   eval "$as_ac_Header=\$ac_header_preproc"
16300 fi
16301 ac_res=`eval echo '${'$as_ac_Header'}'`
16302                { echo "$as_me:$LINENO: result: $ac_res" >&5
16303 echo "${ECHO_T}$ac_res" >&6; }
16304
16305 fi
16306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16307   cat >>confdefs.h <<_ACEOF
16308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16309 _ACEOF
16310
16311 fi
16312
16313 done
16314
16315
16316 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16317 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
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 extern const char *__crashreporter_info__;
16325       int main() {
16326         __crashreporter_info__ = "test";
16327         return 0;
16328       }
16329
16330 _ACEOF
16331 rm -f conftest.$ac_objext conftest$ac_exeext
16332 if { (ac_try="$ac_link"
16333 case "(($ac_try" in
16334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335   *) ac_try_echo=$ac_try;;
16336 esac
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338   (eval "$ac_link") 2>conftest.er1
16339   ac_status=$?
16340   grep -v '^ *+' conftest.er1 >conftest.err
16341   rm -f conftest.er1
16342   cat conftest.err >&5
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } &&
16345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16346   { (case "(($ac_try" in
16347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348   *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351   (eval "$ac_try") 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; } &&
16355          { ac_try='test -s conftest$ac_exeext'
16356   { (case "(($ac_try" in
16357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358   *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361   (eval "$ac_try") 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; }; then
16365   { echo "$as_me:$LINENO: result: yes" >&5
16366 echo "${ECHO_T}yes" >&6; }
16367
16368 cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_CRASHREPORTER_INFO 1
16370 _ACEOF
16371
16372 else
16373   echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16375
16376         { echo "$as_me:$LINENO: result: no" >&5
16377 echo "${ECHO_T}no" >&6; }
16378
16379 cat >>confdefs.h <<\_ACEOF
16380 #define HAVE_CRASHREPORTER_INFO 0
16381 _ACEOF
16382
16383 fi
16384
16385 rm -f core conftest.err conftest.$ac_objext \
16386       conftest$ac_exeext conftest.$ac_ext
16387
16388
16389
16390
16391   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16392 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16393 if test "${ac_cv_huge_val_sanity+set}" = set; then
16394   echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396
16397     ac_ext=cpp
16398 ac_cpp='$CXXCPP $CPPFLAGS'
16399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16402
16403     ac_save_CXXFLAGS=$CXXFLAGS
16404     CXXFLAGS="$CXXFLAGS -pedantic"
16405     if test "$cross_compiling" = yes; then
16406   ac_cv_huge_val_sanity=yes
16407 else
16408   cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h.  */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h.  */
16414 #include <math.h>
16415 int
16416 main ()
16417 {
16418 double x = HUGE_VAL; return x != x;
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430   (eval "$ac_link") 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16434   { (case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439   (eval "$ac_try") 2>&5
16440   ac_status=$?
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); }; }; then
16443   ac_cv_huge_val_sanity=yes
16444 else
16445   echo "$as_me: program exited with status $ac_status" >&5
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16448
16449 ( exit $ac_status )
16450 ac_cv_huge_val_sanity=no
16451 fi
16452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16453 fi
16454
16455
16456     CXXFLAGS=$ac_save_CXXFLAGS
16457     ac_ext=c
16458 ac_cpp='$CPP $CPPFLAGS'
16459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16462
16463
16464 fi
16465 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16466 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16467   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16468
16469
16470 { echo "$as_me:$LINENO: checking for pid_t" >&5
16471 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16472 if test "${ac_cv_type_pid_t+set}" = set; then
16473   echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475   cat >conftest.$ac_ext <<_ACEOF
16476 /* confdefs.h.  */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h.  */
16481 $ac_includes_default
16482 typedef pid_t ac__type_new_;
16483 int
16484 main ()
16485 {
16486 if ((ac__type_new_ *) 0)
16487   return 0;
16488 if (sizeof (ac__type_new_))
16489   return 0;
16490   ;
16491   return 0;
16492 }
16493 _ACEOF
16494 rm -f conftest.$ac_objext
16495 if { (ac_try="$ac_compile"
16496 case "(($ac_try" in
16497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498   *) ac_try_echo=$ac_try;;
16499 esac
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501   (eval "$ac_compile") 2>conftest.er1
16502   ac_status=$?
16503   grep -v '^ *+' conftest.er1 >conftest.err
16504   rm -f conftest.er1
16505   cat conftest.err >&5
16506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507   (exit $ac_status); } &&
16508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16509   { (case "(($ac_try" in
16510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511   *) ac_try_echo=$ac_try;;
16512 esac
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514   (eval "$ac_try") 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); }; } &&
16518          { ac_try='test -s conftest.$ac_objext'
16519   { (case "(($ac_try" in
16520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521   *) ac_try_echo=$ac_try;;
16522 esac
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524   (eval "$ac_try") 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); }; }; then
16528   ac_cv_type_pid_t=yes
16529 else
16530   echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16532
16533         ac_cv_type_pid_t=no
16534 fi
16535
16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537 fi
16538 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16539 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16540 if test $ac_cv_type_pid_t = yes; then
16541   :
16542 else
16543
16544 cat >>confdefs.h <<_ACEOF
16545 #define pid_t int
16546 _ACEOF
16547
16548 fi
16549
16550 { echo "$as_me:$LINENO: checking for size_t" >&5
16551 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16552 if test "${ac_cv_type_size_t+set}" = set; then
16553   echo $ECHO_N "(cached) $ECHO_C" >&6
16554 else
16555   cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h.  */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h.  */
16561 $ac_includes_default
16562 typedef size_t ac__type_new_;
16563 int
16564 main ()
16565 {
16566 if ((ac__type_new_ *) 0)
16567   return 0;
16568 if (sizeof (ac__type_new_))
16569   return 0;
16570   ;
16571   return 0;
16572 }
16573 _ACEOF
16574 rm -f conftest.$ac_objext
16575 if { (ac_try="$ac_compile"
16576 case "(($ac_try" in
16577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578   *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581   (eval "$ac_compile") 2>conftest.er1
16582   ac_status=$?
16583   grep -v '^ *+' conftest.er1 >conftest.err
16584   rm -f conftest.er1
16585   cat conftest.err >&5
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); } &&
16588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16589   { (case "(($ac_try" in
16590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591   *) ac_try_echo=$ac_try;;
16592 esac
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594   (eval "$ac_try") 2>&5
16595   ac_status=$?
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); }; } &&
16598          { ac_try='test -s conftest.$ac_objext'
16599   { (case "(($ac_try" in
16600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601   *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604   (eval "$ac_try") 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); }; }; then
16608   ac_cv_type_size_t=yes
16609 else
16610   echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16612
16613         ac_cv_type_size_t=no
16614 fi
16615
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617 fi
16618 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16619 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16620 if test $ac_cv_type_size_t = yes; then
16621   :
16622 else
16623
16624 cat >>confdefs.h <<_ACEOF
16625 #define size_t unsigned int
16626 _ACEOF
16627
16628 fi
16629
16630
16631 cat >>confdefs.h <<_ACEOF
16632 #define RETSIGTYPE void
16633 _ACEOF
16634
16635 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16636 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16637 if test "${ac_cv_struct_tm+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 #include <sys/types.h>
16647 #include <time.h>
16648
16649 int
16650 main ()
16651 {
16652 struct tm *tp; tp->tm_sec;
16653   ;
16654   return 0;
16655 }
16656 _ACEOF
16657 rm -f conftest.$ac_objext
16658 if { (ac_try="$ac_compile"
16659 case "(($ac_try" in
16660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661   *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664   (eval "$ac_compile") 2>conftest.er1
16665   ac_status=$?
16666   grep -v '^ *+' conftest.er1 >conftest.err
16667   rm -f conftest.er1
16668   cat conftest.err >&5
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); } &&
16671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16672   { (case "(($ac_try" in
16673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674   *) ac_try_echo=$ac_try;;
16675 esac
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677   (eval "$ac_try") 2>&5
16678   ac_status=$?
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); }; } &&
16681          { ac_try='test -s conftest.$ac_objext'
16682   { (case "(($ac_try" in
16683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684   *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687   (eval "$ac_try") 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; }; then
16691   ac_cv_struct_tm=time.h
16692 else
16693   echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696         ac_cv_struct_tm=sys/time.h
16697 fi
16698
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 fi
16701 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16702 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16703 if test $ac_cv_struct_tm = sys/time.h; then
16704
16705 cat >>confdefs.h <<\_ACEOF
16706 #define TM_IN_SYS_TIME 1
16707 _ACEOF
16708
16709 fi
16710
16711 { echo "$as_me:$LINENO: checking for int64_t" >&5
16712 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16713 if test "${ac_cv_type_int64_t+set}" = set; then
16714   echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716   cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h.  */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h.  */
16722 $ac_includes_default
16723 typedef int64_t ac__type_new_;
16724 int
16725 main ()
16726 {
16727 if ((ac__type_new_ *) 0)
16728   return 0;
16729 if (sizeof (ac__type_new_))
16730   return 0;
16731   ;
16732   return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext
16736 if { (ac_try="$ac_compile"
16737 case "(($ac_try" in
16738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739   *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742   (eval "$ac_compile") 2>conftest.er1
16743   ac_status=$?
16744   grep -v '^ *+' conftest.er1 >conftest.err
16745   rm -f conftest.er1
16746   cat conftest.err >&5
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } &&
16749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750   { (case "(($ac_try" in
16751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752   *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755   (eval "$ac_try") 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; } &&
16759          { ac_try='test -s conftest.$ac_objext'
16760   { (case "(($ac_try" in
16761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762   *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765   (eval "$ac_try") 2>&5
16766   ac_status=$?
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); }; }; then
16769   ac_cv_type_int64_t=yes
16770 else
16771   echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774         ac_cv_type_int64_t=no
16775 fi
16776
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16778 fi
16779 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16780 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16781 if test $ac_cv_type_int64_t = yes; then
16782
16783 cat >>confdefs.h <<_ACEOF
16784 #define HAVE_INT64_T 1
16785 _ACEOF
16786
16787
16788 else
16789   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16790 echo "$as_me: error: Type int64_t required but not found" >&2;}
16791    { (exit 1); exit 1; }; }
16792 fi
16793
16794 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16795 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16796 if test "${ac_cv_type_uint64_t+set}" = set; then
16797   echo $ECHO_N "(cached) $ECHO_C" >&6
16798 else
16799   cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h.  */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h.  */
16805 $ac_includes_default
16806 typedef uint64_t ac__type_new_;
16807 int
16808 main ()
16809 {
16810 if ((ac__type_new_ *) 0)
16811   return 0;
16812 if (sizeof (ac__type_new_))
16813   return 0;
16814   ;
16815   return 0;
16816 }
16817 _ACEOF
16818 rm -f conftest.$ac_objext
16819 if { (ac_try="$ac_compile"
16820 case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_compile") 2>conftest.er1
16826   ac_status=$?
16827   grep -v '^ *+' conftest.er1 >conftest.err
16828   rm -f conftest.er1
16829   cat conftest.err >&5
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); } &&
16832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16833   { (case "(($ac_try" in
16834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835   *) ac_try_echo=$ac_try;;
16836 esac
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838   (eval "$ac_try") 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }; } &&
16842          { ac_try='test -s conftest.$ac_objext'
16843   { (case "(($ac_try" in
16844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845   *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848   (eval "$ac_try") 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; }; then
16852   ac_cv_type_uint64_t=yes
16853 else
16854   echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16856
16857         ac_cv_type_uint64_t=no
16858 fi
16859
16860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16861 fi
16862 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16863 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16864 if test $ac_cv_type_uint64_t = yes; then
16865
16866 cat >>confdefs.h <<_ACEOF
16867 #define HAVE_UINT64_T 1
16868 _ACEOF
16869
16870
16871 else
16872   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16873 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16874 if test "${ac_cv_type_u_int64_t+set}" = set; then
16875   echo $ECHO_N "(cached) $ECHO_C" >&6
16876 else
16877   cat >conftest.$ac_ext <<_ACEOF
16878 /* confdefs.h.  */
16879 _ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h.  */
16883 $ac_includes_default
16884 typedef u_int64_t ac__type_new_;
16885 int
16886 main ()
16887 {
16888 if ((ac__type_new_ *) 0)
16889   return 0;
16890 if (sizeof (ac__type_new_))
16891   return 0;
16892   ;
16893   return 0;
16894 }
16895 _ACEOF
16896 rm -f conftest.$ac_objext
16897 if { (ac_try="$ac_compile"
16898 case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903   (eval "$ac_compile") 2>conftest.er1
16904   ac_status=$?
16905   grep -v '^ *+' conftest.er1 >conftest.err
16906   rm -f conftest.er1
16907   cat conftest.err >&5
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); } &&
16910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911   { (case "(($ac_try" in
16912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913   *) ac_try_echo=$ac_try;;
16914 esac
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916   (eval "$ac_try") 2>&5
16917   ac_status=$?
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); }; } &&
16920          { ac_try='test -s conftest.$ac_objext'
16921   { (case "(($ac_try" in
16922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923   *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926   (eval "$ac_try") 2>&5
16927   ac_status=$?
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); }; }; then
16930   ac_cv_type_u_int64_t=yes
16931 else
16932   echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935         ac_cv_type_u_int64_t=no
16936 fi
16937
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16939 fi
16940 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16941 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16942 if test $ac_cv_type_u_int64_t = yes; then
16943
16944 cat >>confdefs.h <<_ACEOF
16945 #define HAVE_U_INT64_T 1
16946 _ACEOF
16947
16948
16949 else
16950   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16951 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16952    { (exit 1); exit 1; }; }
16953 fi
16954
16955 fi
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16967 do
16968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h.  */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h.  */
16980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16982 #define $ac_func innocuous_$ac_func
16983
16984 /* System header to define __stub macros and hopefully few prototypes,
16985     which can conflict with char $ac_func (); below.
16986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16987     <limits.h> exists even on freestanding compilers.  */
16988
16989 #ifdef __STDC__
16990 # include <limits.h>
16991 #else
16992 # include <assert.h>
16993 #endif
16994
16995 #undef $ac_func
16996
16997 /* Override any GCC internal prototype to avoid an error.
16998    Use char because int might match the return type of a GCC
16999    builtin and then its argument prototype would still apply.  */
17000 #ifdef __cplusplus
17001 extern "C"
17002 #endif
17003 char $ac_func ();
17004 /* The GNU C library defines this for functions which it implements
17005     to always fail with ENOSYS.  Some functions are actually named
17006     something starting with __ and the normal name is an alias.  */
17007 #if defined __stub_$ac_func || defined __stub___$ac_func
17008 choke me
17009 #endif
17010
17011 int
17012 main ()
17013 {
17014 return $ac_func ();
17015   ;
17016   return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (ac_try="$ac_link"
17021 case "(($ac_try" in
17022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023   *) ac_try_echo=$ac_try;;
17024 esac
17025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026   (eval "$ac_link") 2>conftest.er1
17027   ac_status=$?
17028   grep -v '^ *+' conftest.er1 >conftest.err
17029   rm -f conftest.er1
17030   cat conftest.err >&5
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); } &&
17033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17043          { ac_try='test -s conftest$ac_exeext'
17044   { (case "(($ac_try" in
17045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046   *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049   (eval "$ac_try") 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; }; then
17053   eval "$as_ac_var=yes"
17054 else
17055   echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058         eval "$as_ac_var=no"
17059 fi
17060
17061 rm -f core conftest.err conftest.$ac_objext \
17062       conftest$ac_exeext conftest.$ac_ext
17063 fi
17064 ac_res=`eval echo '${'$as_ac_var'}'`
17065                { echo "$as_me:$LINENO: result: $ac_res" >&5
17066 echo "${ECHO_T}$ac_res" >&6; }
17067 if test `eval echo '${'$as_ac_var'}'` = yes; then
17068   cat >>confdefs.h <<_ACEOF
17069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17070 _ACEOF
17071
17072 fi
17073 done
17074
17075
17076
17077
17078
17079 for ac_func in powf fmodf strtof round
17080 do
17081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17085   echo $ECHO_N "(cached) $ECHO_C" >&6
17086 else
17087   cat >conftest.$ac_ext <<_ACEOF
17088 /* confdefs.h.  */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h.  */
17093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17095 #define $ac_func innocuous_$ac_func
17096
17097 /* System header to define __stub macros and hopefully few prototypes,
17098     which can conflict with char $ac_func (); below.
17099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17100     <limits.h> exists even on freestanding compilers.  */
17101
17102 #ifdef __STDC__
17103 # include <limits.h>
17104 #else
17105 # include <assert.h>
17106 #endif
17107
17108 #undef $ac_func
17109
17110 /* Override any GCC internal prototype to avoid an error.
17111    Use char because int might match the return type of a GCC
17112    builtin and then its argument prototype would still apply.  */
17113 #ifdef __cplusplus
17114 extern "C"
17115 #endif
17116 char $ac_func ();
17117 /* The GNU C library defines this for functions which it implements
17118     to always fail with ENOSYS.  Some functions are actually named
17119     something starting with __ and the normal name is an alias.  */
17120 #if defined __stub_$ac_func || defined __stub___$ac_func
17121 choke me
17122 #endif
17123
17124 int
17125 main ()
17126 {
17127 return $ac_func ();
17128   ;
17129   return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136   *) ac_try_echo=$ac_try;;
17137 esac
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139   (eval "$ac_link") 2>conftest.er1
17140   ac_status=$?
17141   grep -v '^ *+' conftest.er1 >conftest.err
17142   rm -f conftest.er1
17143   cat conftest.err >&5
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); } &&
17146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17147   { (case "(($ac_try" in
17148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149   *) ac_try_echo=$ac_try;;
17150 esac
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152   (eval "$ac_try") 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; } &&
17156          { ac_try='test -s conftest$ac_exeext'
17157   { (case "(($ac_try" in
17158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159   *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162   (eval "$ac_try") 2>&5
17163   ac_status=$?
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); }; }; then
17166   eval "$as_ac_var=yes"
17167 else
17168   echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17170
17171         eval "$as_ac_var=no"
17172 fi
17173
17174 rm -f core conftest.err conftest.$ac_objext \
17175       conftest$ac_exeext conftest.$ac_ext
17176 fi
17177 ac_res=`eval echo '${'$as_ac_var'}'`
17178                { echo "$as_me:$LINENO: result: $ac_res" >&5
17179 echo "${ECHO_T}$ac_res" >&6; }
17180 if test `eval echo '${'$as_ac_var'}'` = yes; then
17181   cat >>confdefs.h <<_ACEOF
17182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17183 _ACEOF
17184
17185 fi
17186 done
17187
17188
17189
17190
17191
17192
17193 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17194 do
17195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17199   echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201   cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h.  */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h.  */
17207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17209 #define $ac_func innocuous_$ac_func
17210
17211 /* System header to define __stub macros and hopefully few prototypes,
17212     which can conflict with char $ac_func (); below.
17213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17214     <limits.h> exists even on freestanding compilers.  */
17215
17216 #ifdef __STDC__
17217 # include <limits.h>
17218 #else
17219 # include <assert.h>
17220 #endif
17221
17222 #undef $ac_func
17223
17224 /* Override any GCC internal prototype to avoid an error.
17225    Use char because int might match the return type of a GCC
17226    builtin and then its argument prototype would still apply.  */
17227 #ifdef __cplusplus
17228 extern "C"
17229 #endif
17230 char $ac_func ();
17231 /* The GNU C library defines this for functions which it implements
17232     to always fail with ENOSYS.  Some functions are actually named
17233     something starting with __ and the normal name is an alias.  */
17234 #if defined __stub_$ac_func || defined __stub___$ac_func
17235 choke me
17236 #endif
17237
17238 int
17239 main ()
17240 {
17241 return $ac_func ();
17242   ;
17243   return 0;
17244 }
17245 _ACEOF
17246 rm -f conftest.$ac_objext conftest$ac_exeext
17247 if { (ac_try="$ac_link"
17248 case "(($ac_try" in
17249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250   *) ac_try_echo=$ac_try;;
17251 esac
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253   (eval "$ac_link") 2>conftest.er1
17254   ac_status=$?
17255   grep -v '^ *+' conftest.er1 >conftest.err
17256   rm -f conftest.er1
17257   cat conftest.err >&5
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } &&
17260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17261   { (case "(($ac_try" in
17262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263   *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266   (eval "$ac_try") 2>&5
17267   ac_status=$?
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); }; } &&
17270          { ac_try='test -s conftest$ac_exeext'
17271   { (case "(($ac_try" in
17272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273   *) ac_try_echo=$ac_try;;
17274 esac
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276   (eval "$ac_try") 2>&5
17277   ac_status=$?
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); }; }; then
17280   eval "$as_ac_var=yes"
17281 else
17282   echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17284
17285         eval "$as_ac_var=no"
17286 fi
17287
17288 rm -f core conftest.err conftest.$ac_objext \
17289       conftest$ac_exeext conftest.$ac_ext
17290 fi
17291 ac_res=`eval echo '${'$as_ac_var'}'`
17292                { echo "$as_me:$LINENO: result: $ac_res" >&5
17293 echo "${ECHO_T}$ac_res" >&6; }
17294 if test `eval echo '${'$as_ac_var'}'` = yes; then
17295   cat >>confdefs.h <<_ACEOF
17296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17297 _ACEOF
17298
17299 fi
17300 done
17301
17302
17303
17304
17305 for ac_func in isatty mkdtemp mkstemp
17306 do
17307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313   cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17321 #define $ac_func innocuous_$ac_func
17322
17323 /* System header to define __stub macros and hopefully few prototypes,
17324     which can conflict with char $ac_func (); below.
17325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17326     <limits.h> exists even on freestanding compilers.  */
17327
17328 #ifdef __STDC__
17329 # include <limits.h>
17330 #else
17331 # include <assert.h>
17332 #endif
17333
17334 #undef $ac_func
17335
17336 /* Override any GCC internal prototype to avoid an error.
17337    Use char because int might match the return type of a GCC
17338    builtin and then its argument prototype would still apply.  */
17339 #ifdef __cplusplus
17340 extern "C"
17341 #endif
17342 char $ac_func ();
17343 /* The GNU C library defines this for functions which it implements
17344     to always fail with ENOSYS.  Some functions are actually named
17345     something starting with __ and the normal name is an alias.  */
17346 #if defined __stub_$ac_func || defined __stub___$ac_func
17347 choke me
17348 #endif
17349
17350 int
17351 main ()
17352 {
17353 return $ac_func ();
17354   ;
17355   return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362   *) ac_try_echo=$ac_try;;
17363 esac
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365   (eval "$ac_link") 2>conftest.er1
17366   ac_status=$?
17367   grep -v '^ *+' conftest.er1 >conftest.err
17368   rm -f conftest.er1
17369   cat conftest.err >&5
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } &&
17372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17373   { (case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_try") 2>&5
17379   ac_status=$?
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); }; } &&
17382          { ac_try='test -s conftest$ac_exeext'
17383   { (case "(($ac_try" in
17384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385   *) ac_try_echo=$ac_try;;
17386 esac
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388   (eval "$ac_try") 2>&5
17389   ac_status=$?
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); }; }; then
17392   eval "$as_ac_var=yes"
17393 else
17394   echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17396
17397         eval "$as_ac_var=no"
17398 fi
17399
17400 rm -f core conftest.err conftest.$ac_objext \
17401       conftest$ac_exeext conftest.$ac_ext
17402 fi
17403 ac_res=`eval echo '${'$as_ac_var'}'`
17404                { echo "$as_me:$LINENO: result: $ac_res" >&5
17405 echo "${ECHO_T}$ac_res" >&6; }
17406 if test `eval echo '${'$as_ac_var'}'` = yes; then
17407   cat >>confdefs.h <<_ACEOF
17408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17409 _ACEOF
17410
17411 fi
17412 done
17413
17414
17415
17416
17417
17418
17419
17420
17421 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17422 do
17423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17427   echo $ECHO_N "(cached) $ECHO_C" >&6
17428 else
17429   cat >conftest.$ac_ext <<_ACEOF
17430 /* confdefs.h.  */
17431 _ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h.  */
17435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17437 #define $ac_func innocuous_$ac_func
17438
17439 /* System header to define __stub macros and hopefully few prototypes,
17440     which can conflict with char $ac_func (); below.
17441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442     <limits.h> exists even on freestanding compilers.  */
17443
17444 #ifdef __STDC__
17445 # include <limits.h>
17446 #else
17447 # include <assert.h>
17448 #endif
17449
17450 #undef $ac_func
17451
17452 /* Override any GCC internal prototype to avoid an error.
17453    Use char because int might match the return type of a GCC
17454    builtin and then its argument prototype would still apply.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 char $ac_func ();
17459 /* The GNU C library defines this for functions which it implements
17460     to always fail with ENOSYS.  Some functions are actually named
17461     something starting with __ and the normal name is an alias.  */
17462 #if defined __stub_$ac_func || defined __stub___$ac_func
17463 choke me
17464 #endif
17465
17466 int
17467 main ()
17468 {
17469 return $ac_func ();
17470   ;
17471   return 0;
17472 }
17473 _ACEOF
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478   *) ac_try_echo=$ac_try;;
17479 esac
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481   (eval "$ac_link") 2>conftest.er1
17482   ac_status=$?
17483   grep -v '^ *+' conftest.er1 >conftest.err
17484   rm -f conftest.er1
17485   cat conftest.err >&5
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); } &&
17488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489   { (case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_try") 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; } &&
17498          { ac_try='test -s conftest$ac_exeext'
17499   { (case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504   (eval "$ac_try") 2>&5
17505   ac_status=$?
17506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); }; }; then
17508   eval "$as_ac_var=yes"
17509 else
17510   echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17512
17513         eval "$as_ac_var=no"
17514 fi
17515
17516 rm -f core conftest.err conftest.$ac_objext \
17517       conftest$ac_exeext conftest.$ac_ext
17518 fi
17519 ac_res=`eval echo '${'$as_ac_var'}'`
17520                { echo "$as_me:$LINENO: result: $ac_res" >&5
17521 echo "${ECHO_T}$ac_res" >&6; }
17522 if test `eval echo '${'$as_ac_var'}'` = yes; then
17523   cat >>confdefs.h <<_ACEOF
17524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17525 _ACEOF
17526
17527 fi
17528 done
17529
17530
17531
17532
17533
17534 for ac_func in strerror strerror_r setenv arc4random
17535 do
17536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17540   echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542   cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h.  */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h.  */
17548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17550 #define $ac_func innocuous_$ac_func
17551
17552 /* System header to define __stub macros and hopefully few prototypes,
17553     which can conflict with char $ac_func (); below.
17554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17555     <limits.h> exists even on freestanding compilers.  */
17556
17557 #ifdef __STDC__
17558 # include <limits.h>
17559 #else
17560 # include <assert.h>
17561 #endif
17562
17563 #undef $ac_func
17564
17565 /* Override any GCC internal prototype to avoid an error.
17566    Use char because int might match the return type of a GCC
17567    builtin and then its argument prototype would still apply.  */
17568 #ifdef __cplusplus
17569 extern "C"
17570 #endif
17571 char $ac_func ();
17572 /* The GNU C library defines this for functions which it implements
17573     to always fail with ENOSYS.  Some functions are actually named
17574     something starting with __ and the normal name is an alias.  */
17575 #if defined __stub_$ac_func || defined __stub___$ac_func
17576 choke me
17577 #endif
17578
17579 int
17580 main ()
17581 {
17582 return $ac_func ();
17583   ;
17584   return 0;
17585 }
17586 _ACEOF
17587 rm -f conftest.$ac_objext conftest$ac_exeext
17588 if { (ac_try="$ac_link"
17589 case "(($ac_try" in
17590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591   *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594   (eval "$ac_link") 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } &&
17601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17611          { ac_try='test -s conftest$ac_exeext'
17612   { (case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_try") 2>&5
17618   ac_status=$?
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); }; }; then
17621   eval "$as_ac_var=yes"
17622 else
17623   echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17625
17626         eval "$as_ac_var=no"
17627 fi
17628
17629 rm -f core conftest.err conftest.$ac_objext \
17630       conftest$ac_exeext conftest.$ac_ext
17631 fi
17632 ac_res=`eval echo '${'$as_ac_var'}'`
17633                { echo "$as_me:$LINENO: result: $ac_res" >&5
17634 echo "${ECHO_T}$ac_res" >&6; }
17635 if test `eval echo '${'$as_ac_var'}'` = yes; then
17636   cat >>confdefs.h <<_ACEOF
17637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17638 _ACEOF
17639
17640 fi
17641 done
17642
17643
17644
17645
17646
17647 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17648 do
17649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655   cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h.  */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h.  */
17661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17663 #define $ac_func innocuous_$ac_func
17664
17665 /* System header to define __stub macros and hopefully few prototypes,
17666     which can conflict with char $ac_func (); below.
17667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17668     <limits.h> exists even on freestanding compilers.  */
17669
17670 #ifdef __STDC__
17671 # include <limits.h>
17672 #else
17673 # include <assert.h>
17674 #endif
17675
17676 #undef $ac_func
17677
17678 /* Override any GCC internal prototype to avoid an error.
17679    Use char because int might match the return type of a GCC
17680    builtin and then its argument prototype would still apply.  */
17681 #ifdef __cplusplus
17682 extern "C"
17683 #endif
17684 char $ac_func ();
17685 /* The GNU C library defines this for functions which it implements
17686     to always fail with ENOSYS.  Some functions are actually named
17687     something starting with __ and the normal name is an alias.  */
17688 #if defined __stub_$ac_func || defined __stub___$ac_func
17689 choke me
17690 #endif
17691
17692 int
17693 main ()
17694 {
17695 return $ac_func ();
17696   ;
17697   return 0;
17698 }
17699 _ACEOF
17700 rm -f conftest.$ac_objext conftest$ac_exeext
17701 if { (ac_try="$ac_link"
17702 case "(($ac_try" in
17703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704   *) ac_try_echo=$ac_try;;
17705 esac
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707   (eval "$ac_link") 2>conftest.er1
17708   ac_status=$?
17709   grep -v '^ *+' conftest.er1 >conftest.err
17710   rm -f conftest.er1
17711   cat conftest.err >&5
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } &&
17714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17715   { (case "(($ac_try" in
17716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717   *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720   (eval "$ac_try") 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; } &&
17724          { ac_try='test -s conftest$ac_exeext'
17725   { (case "(($ac_try" in
17726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727   *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730   (eval "$ac_try") 2>&5
17731   ac_status=$?
17732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); }; }; then
17734   eval "$as_ac_var=yes"
17735 else
17736   echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739         eval "$as_ac_var=no"
17740 fi
17741
17742 rm -f core conftest.err conftest.$ac_objext \
17743       conftest$ac_exeext conftest.$ac_ext
17744 fi
17745 ac_res=`eval echo '${'$as_ac_var'}'`
17746                { echo "$as_me:$LINENO: result: $ac_res" >&5
17747 echo "${ECHO_T}$ac_res" >&6; }
17748 if test `eval echo '${'$as_ac_var'}'` = yes; then
17749   cat >>confdefs.h <<_ACEOF
17750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17751 _ACEOF
17752
17753 fi
17754 done
17755
17756
17757
17758
17759
17760
17761 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17762 do
17763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17777 #define $ac_func innocuous_$ac_func
17778
17779 /* System header to define __stub macros and hopefully few prototypes,
17780     which can conflict with char $ac_func (); below.
17781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782     <limits.h> exists even on freestanding compilers.  */
17783
17784 #ifdef __STDC__
17785 # include <limits.h>
17786 #else
17787 # include <assert.h>
17788 #endif
17789
17790 #undef $ac_func
17791
17792 /* Override any GCC internal prototype to avoid an error.
17793    Use char because int might match the return type of a GCC
17794    builtin and then its argument prototype would still apply.  */
17795 #ifdef __cplusplus
17796 extern "C"
17797 #endif
17798 char $ac_func ();
17799 /* The GNU C library defines this for functions which it implements
17800     to always fail with ENOSYS.  Some functions are actually named
17801     something starting with __ and the normal name is an alias.  */
17802 #if defined __stub_$ac_func || defined __stub___$ac_func
17803 choke me
17804 #endif
17805
17806 int
17807 main ()
17808 {
17809 return $ac_func ();
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_link") 2>conftest.er1
17822   ac_status=$?
17823   grep -v '^ *+' conftest.er1 >conftest.err
17824   rm -f conftest.er1
17825   cat conftest.err >&5
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } &&
17828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829   { (case "(($ac_try" in
17830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831   *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834   (eval "$ac_try") 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); }; } &&
17838          { ac_try='test -s conftest$ac_exeext'
17839   { (case "(($ac_try" in
17840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841   *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844   (eval "$ac_try") 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); }; }; then
17848   eval "$as_ac_var=yes"
17849 else
17850   echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853         eval "$as_ac_var=no"
17854 fi
17855
17856 rm -f core conftest.err conftest.$ac_objext \
17857       conftest$ac_exeext conftest.$ac_ext
17858 fi
17859 ac_res=`eval echo '${'$as_ac_var'}'`
17860                { echo "$as_me:$LINENO: result: $ac_res" >&5
17861 echo "${ECHO_T}$ac_res" >&6; }
17862 if test `eval echo '${'$as_ac_var'}'` = yes; then
17863   cat >>confdefs.h <<_ACEOF
17864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17865 _ACEOF
17866
17867 fi
17868 done
17869
17870 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17871 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17872 if test "${llvm_cv_c_printf_a+set}" = set; then
17873   echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875   ac_ext=c
17876 ac_cpp='$CPP $CPPFLAGS'
17877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17880
17881  if test "$cross_compiling" = yes; then
17882   llvmac_cv_c_printf_a=no
17883 else
17884   cat >conftest.$ac_ext <<_ACEOF
17885
17886   /* confdefs.h.  */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h.  */
17891
17892 #include <stdio.h>
17893 #include <stdlib.h>
17894
17895 int
17896 main ()
17897 {
17898
17899 volatile double A, B;
17900 char Buffer[100];
17901 A = 1;
17902 A /= 10.0;
17903 sprintf(Buffer, "%a", A);
17904 B = atof(Buffer);
17905 if (A != B)
17906   return (1);
17907 if (A != 0x1.999999999999ap-4)
17908   return (1);
17909 return (0);
17910   ;
17911   return 0;
17912 }
17913 _ACEOF
17914 rm -f conftest$ac_exeext
17915 if { (ac_try="$ac_link"
17916 case "(($ac_try" in
17917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918   *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921   (eval "$ac_link") 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17925   { (case "(($ac_try" in
17926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927   *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930   (eval "$ac_try") 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; }; then
17934   llvm_cv_c_printf_a=yes
17935 else
17936   echo "$as_me: program exited with status $ac_status" >&5
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 ( exit $ac_status )
17941 llvmac_cv_c_printf_a=no
17942 fi
17943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17944 fi
17945
17946
17947  ac_ext=c
17948 ac_cpp='$CPP $CPPFLAGS'
17949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17952
17953 fi
17954 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17955 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17956  if test "$llvm_cv_c_printf_a" = "yes"; then
17957
17958 cat >>confdefs.h <<\_ACEOF
17959 #define HAVE_PRINTF_A 1
17960 _ACEOF
17961
17962  fi
17963
17964
17965 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17966 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17967 if test "${ac_cv_func_rand48+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   ac_ext=cpp
17971 ac_cpp='$CXXCPP $CPPFLAGS'
17972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17975
17976    cat >conftest.$ac_ext <<_ACEOF
17977 /* confdefs.h.  */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h.  */
17982 #include <stdlib.h>
17983 int
17984 main ()
17985 {
17986 srand48(0);lrand48();drand48();
17987   ;
17988   return 0;
17989 }
17990 _ACEOF
17991 rm -f conftest.$ac_objext
17992 if { (ac_try="$ac_compile"
17993 case "(($ac_try" in
17994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995   *) ac_try_echo=$ac_try;;
17996 esac
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998   (eval "$ac_compile") 2>conftest.er1
17999   ac_status=$?
18000   grep -v '^ *+' conftest.er1 >conftest.err
18001   rm -f conftest.er1
18002   cat conftest.err >&5
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); } &&
18005          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18006   { (case "(($ac_try" in
18007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008   *) ac_try_echo=$ac_try;;
18009 esac
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011   (eval "$ac_try") 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; } &&
18015          { ac_try='test -s conftest.$ac_objext'
18016   { (case "(($ac_try" in
18017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018   *) ac_try_echo=$ac_try;;
18019 esac
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021   (eval "$ac_try") 2>&5
18022   ac_status=$?
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); }; }; then
18025   ac_cv_func_rand48=yes
18026 else
18027   echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18029
18030         ac_cv_func_rand48=no
18031 fi
18032
18033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034   ac_ext=c
18035 ac_cpp='$CPP $CPPFLAGS'
18036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18039
18040 fi
18041 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18042 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18043
18044 if test "$ac_cv_func_rand48" = "yes" ; then
18045
18046 cat >>confdefs.h <<\_ACEOF
18047 #define HAVE_RAND48 1
18048 _ACEOF
18049
18050 fi
18051
18052
18053 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18054 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18055 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058   cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h.  */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h.  */
18064 $ac_includes_default
18065 int
18066 main ()
18067 {
18068 #ifndef strerror_s
18069   char *p = (char *) strerror_s;
18070   return !p;
18071 #endif
18072
18073   ;
18074   return 0;
18075 }
18076 _ACEOF
18077 rm -f conftest.$ac_objext
18078 if { (ac_try="$ac_compile"
18079 case "(($ac_try" in
18080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081   *) ac_try_echo=$ac_try;;
18082 esac
18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084   (eval "$ac_compile") 2>conftest.er1
18085   ac_status=$?
18086   grep -v '^ *+' conftest.er1 >conftest.err
18087   rm -f conftest.er1
18088   cat conftest.err >&5
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); } &&
18091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18092   { (case "(($ac_try" in
18093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094   *) ac_try_echo=$ac_try;;
18095 esac
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097   (eval "$ac_try") 2>&5
18098   ac_status=$?
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); }; } &&
18101          { ac_try='test -s conftest.$ac_objext'
18102   { (case "(($ac_try" in
18103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104   *) ac_try_echo=$ac_try;;
18105 esac
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107   (eval "$ac_try") 2>&5
18108   ac_status=$?
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); }; }; then
18111   ac_cv_have_decl_strerror_s=yes
18112 else
18113   echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18115
18116         ac_cv_have_decl_strerror_s=no
18117 fi
18118
18119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18120 fi
18121 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18122 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18123 if test $ac_cv_have_decl_strerror_s = yes; then
18124
18125 cat >>confdefs.h <<_ACEOF
18126 #define HAVE_DECL_STRERROR_S 1
18127 _ACEOF
18128
18129
18130 else
18131   cat >>confdefs.h <<_ACEOF
18132 #define HAVE_DECL_STRERROR_S 0
18133 _ACEOF
18134
18135
18136 fi
18137
18138
18139
18140 if test "$llvm_cv_os_type" = "MingW" ; then
18141   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18142 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18143 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18144   echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146   ac_check_lib_save_LIBS=$LIBS
18147 LIBS="-lgcc  $LIBS"
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154
18155 /* Override any GCC internal prototype to avoid an error.
18156    Use char because int might match the return type of a GCC
18157    builtin and then its argument prototype would still apply.  */
18158 #ifdef __cplusplus
18159 extern "C"
18160 #endif
18161 char _alloca ();
18162 int
18163 main ()
18164 {
18165 return _alloca ();
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (ac_try="$ac_link"
18172 case "(($ac_try" in
18173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174   *) ac_try_echo=$ac_try;;
18175 esac
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177   (eval "$ac_link") 2>conftest.er1
18178   ac_status=$?
18179   grep -v '^ *+' conftest.er1 >conftest.err
18180   rm -f conftest.er1
18181   cat conftest.err >&5
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } &&
18184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185   { (case "(($ac_try" in
18186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187   *) ac_try_echo=$ac_try;;
18188 esac
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190   (eval "$ac_try") 2>&5
18191   ac_status=$?
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); }; } &&
18194          { ac_try='test -s conftest$ac_exeext'
18195   { (case "(($ac_try" in
18196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197   *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200   (eval "$ac_try") 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); }; }; then
18204   ac_cv_lib_gcc__alloca=yes
18205 else
18206   echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18208
18209         ac_cv_lib_gcc__alloca=no
18210 fi
18211
18212 rm -f core conftest.err conftest.$ac_objext \
18213       conftest$ac_exeext conftest.$ac_ext
18214 LIBS=$ac_check_lib_save_LIBS
18215 fi
18216 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18217 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18218 if test $ac_cv_lib_gcc__alloca = yes; then
18219
18220 cat >>confdefs.h <<\_ACEOF
18221 #define HAVE__ALLOCA 1
18222 _ACEOF
18223
18224 fi
18225
18226   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18227 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18228 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18229   echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231   ac_check_lib_save_LIBS=$LIBS
18232 LIBS="-lgcc  $LIBS"
18233 cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h.  */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h.  */
18239
18240 /* Override any GCC internal prototype to avoid an error.
18241    Use char because int might match the return type of a GCC
18242    builtin and then its argument prototype would still apply.  */
18243 #ifdef __cplusplus
18244 extern "C"
18245 #endif
18246 char __alloca ();
18247 int
18248 main ()
18249 {
18250 return __alloca ();
18251   ;
18252   return 0;
18253 }
18254 _ACEOF
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (ac_try="$ac_link"
18257 case "(($ac_try" in
18258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259   *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262   (eval "$ac_link") 2>conftest.er1
18263   ac_status=$?
18264   grep -v '^ *+' conftest.er1 >conftest.err
18265   rm -f conftest.er1
18266   cat conftest.err >&5
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); } &&
18269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18270   { (case "(($ac_try" in
18271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272   *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275   (eval "$ac_try") 2>&5
18276   ac_status=$?
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); }; } &&
18279          { ac_try='test -s conftest$ac_exeext'
18280   { (case "(($ac_try" in
18281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282   *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285   (eval "$ac_try") 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; }; then
18289   ac_cv_lib_gcc___alloca=yes
18290 else
18291   echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294         ac_cv_lib_gcc___alloca=no
18295 fi
18296
18297 rm -f core conftest.err conftest.$ac_objext \
18298       conftest$ac_exeext conftest.$ac_ext
18299 LIBS=$ac_check_lib_save_LIBS
18300 fi
18301 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18302 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18303 if test $ac_cv_lib_gcc___alloca = yes; then
18304
18305 cat >>confdefs.h <<\_ACEOF
18306 #define HAVE___ALLOCA 1
18307 _ACEOF
18308
18309 fi
18310
18311   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18312 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18313 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18314   echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316   ac_check_lib_save_LIBS=$LIBS
18317 LIBS="-lgcc  $LIBS"
18318 cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h.  */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h.  */
18324
18325 /* Override any GCC internal prototype to avoid an error.
18326    Use char because int might match the return type of a GCC
18327    builtin and then its argument prototype would still apply.  */
18328 #ifdef __cplusplus
18329 extern "C"
18330 #endif
18331 char __chkstk ();
18332 int
18333 main ()
18334 {
18335 return __chkstk ();
18336   ;
18337   return 0;
18338 }
18339 _ACEOF
18340 rm -f conftest.$ac_objext conftest$ac_exeext
18341 if { (ac_try="$ac_link"
18342 case "(($ac_try" in
18343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344   *) ac_try_echo=$ac_try;;
18345 esac
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347   (eval "$ac_link") 2>conftest.er1
18348   ac_status=$?
18349   grep -v '^ *+' conftest.er1 >conftest.err
18350   rm -f conftest.er1
18351   cat conftest.err >&5
18352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353   (exit $ac_status); } &&
18354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18355   { (case "(($ac_try" in
18356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357   *) ac_try_echo=$ac_try;;
18358 esac
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360   (eval "$ac_try") 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; } &&
18364          { ac_try='test -s conftest$ac_exeext'
18365   { (case "(($ac_try" in
18366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367   *) ac_try_echo=$ac_try;;
18368 esac
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370   (eval "$ac_try") 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; }; then
18374   ac_cv_lib_gcc___chkstk=yes
18375 else
18376   echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18378
18379         ac_cv_lib_gcc___chkstk=no
18380 fi
18381
18382 rm -f core conftest.err conftest.$ac_objext \
18383       conftest$ac_exeext conftest.$ac_ext
18384 LIBS=$ac_check_lib_save_LIBS
18385 fi
18386 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18387 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18388 if test $ac_cv_lib_gcc___chkstk = yes; then
18389
18390 cat >>confdefs.h <<\_ACEOF
18391 #define HAVE___CHKSTK 1
18392 _ACEOF
18393
18394 fi
18395
18396   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18397 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18398 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18399   echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401   ac_check_lib_save_LIBS=$LIBS
18402 LIBS="-lgcc  $LIBS"
18403 cat >conftest.$ac_ext <<_ACEOF
18404 /* confdefs.h.  */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h.  */
18409
18410 /* Override any GCC internal prototype to avoid an error.
18411    Use char because int might match the return type of a GCC
18412    builtin and then its argument prototype would still apply.  */
18413 #ifdef __cplusplus
18414 extern "C"
18415 #endif
18416 char ___chkstk ();
18417 int
18418 main ()
18419 {
18420 return ___chkstk ();
18421   ;
18422   return 0;
18423 }
18424 _ACEOF
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (ac_try="$ac_link"
18427 case "(($ac_try" in
18428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429   *) ac_try_echo=$ac_try;;
18430 esac
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432   (eval "$ac_link") 2>conftest.er1
18433   ac_status=$?
18434   grep -v '^ *+' conftest.er1 >conftest.err
18435   rm -f conftest.er1
18436   cat conftest.err >&5
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); } &&
18439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440   { (case "(($ac_try" in
18441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442   *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445   (eval "$ac_try") 2>&5
18446   ac_status=$?
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); }; } &&
18449          { ac_try='test -s conftest$ac_exeext'
18450   { (case "(($ac_try" in
18451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452   *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455   (eval "$ac_try") 2>&5
18456   ac_status=$?
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); }; }; then
18459   ac_cv_lib_gcc____chkstk=yes
18460 else
18461   echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464         ac_cv_lib_gcc____chkstk=no
18465 fi
18466
18467 rm -f core conftest.err conftest.$ac_objext \
18468       conftest$ac_exeext conftest.$ac_ext
18469 LIBS=$ac_check_lib_save_LIBS
18470 fi
18471 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18472 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18473 if test $ac_cv_lib_gcc____chkstk = yes; then
18474
18475 cat >>confdefs.h <<\_ACEOF
18476 #define HAVE____CHKSTK 1
18477 _ACEOF
18478
18479 fi
18480
18481
18482   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18483 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18484 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18485   echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487   ac_check_lib_save_LIBS=$LIBS
18488 LIBS="-lgcc  $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h.  */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h.  */
18495
18496 /* Override any GCC internal prototype to avoid an error.
18497    Use char because int might match the return type of a GCC
18498    builtin and then its argument prototype would still apply.  */
18499 #ifdef __cplusplus
18500 extern "C"
18501 #endif
18502 char __ashldi3 ();
18503 int
18504 main ()
18505 {
18506 return __ashldi3 ();
18507   ;
18508   return 0;
18509 }
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515   *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518   (eval "$ac_link") 2>conftest.er1
18519   ac_status=$?
18520   grep -v '^ *+' conftest.er1 >conftest.err
18521   rm -f conftest.er1
18522   cat conftest.err >&5
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } &&
18525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526   { (case "(($ac_try" in
18527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528   *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531   (eval "$ac_try") 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; } &&
18535          { ac_try='test -s conftest$ac_exeext'
18536   { (case "(($ac_try" in
18537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538   *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541   (eval "$ac_try") 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); }; }; then
18545   ac_cv_lib_gcc___ashldi3=yes
18546 else
18547   echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550         ac_cv_lib_gcc___ashldi3=no
18551 fi
18552
18553 rm -f core conftest.err conftest.$ac_objext \
18554       conftest$ac_exeext conftest.$ac_ext
18555 LIBS=$ac_check_lib_save_LIBS
18556 fi
18557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18558 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18559 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18560
18561 cat >>confdefs.h <<\_ACEOF
18562 #define HAVE___ASHLDI3 1
18563 _ACEOF
18564
18565 fi
18566
18567   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18568 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18569 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lgcc  $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 /* Override any GCC internal prototype to avoid an error.
18582    Use char because int might match the return type of a GCC
18583    builtin and then its argument prototype would still apply.  */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 char __ashrdi3 ();
18588 int
18589 main ()
18590 {
18591 return __ashrdi3 ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603   (eval "$ac_link") 2>conftest.er1
18604   ac_status=$?
18605   grep -v '^ *+' conftest.er1 >conftest.err
18606   rm -f conftest.er1
18607   cat conftest.err >&5
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } &&
18610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18611   { (case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616   (eval "$ac_try") 2>&5
18617   ac_status=$?
18618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619   (exit $ac_status); }; } &&
18620          { ac_try='test -s conftest$ac_exeext'
18621   { (case "(($ac_try" in
18622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623   *) ac_try_echo=$ac_try;;
18624 esac
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626   (eval "$ac_try") 2>&5
18627   ac_status=$?
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); }; }; then
18630   ac_cv_lib_gcc___ashrdi3=yes
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635         ac_cv_lib_gcc___ashrdi3=no
18636 fi
18637
18638 rm -f core conftest.err conftest.$ac_objext \
18639       conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18641 fi
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18643 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18644 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18645
18646 cat >>confdefs.h <<\_ACEOF
18647 #define HAVE___ASHRDI3 1
18648 _ACEOF
18649
18650 fi
18651
18652   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18653 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18654 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18655   echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657   ac_check_lib_save_LIBS=$LIBS
18658 LIBS="-lgcc  $LIBS"
18659 cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h.  */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h.  */
18665
18666 /* Override any GCC internal prototype to avoid an error.
18667    Use char because int might match the return type of a GCC
18668    builtin and then its argument prototype would still apply.  */
18669 #ifdef __cplusplus
18670 extern "C"
18671 #endif
18672 char __divdi3 ();
18673 int
18674 main ()
18675 {
18676 return __divdi3 ();
18677   ;
18678   return 0;
18679 }
18680 _ACEOF
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (ac_try="$ac_link"
18683 case "(($ac_try" in
18684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685   *) ac_try_echo=$ac_try;;
18686 esac
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688   (eval "$ac_link") 2>conftest.er1
18689   ac_status=$?
18690   grep -v '^ *+' conftest.er1 >conftest.err
18691   rm -f conftest.er1
18692   cat conftest.err >&5
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); } &&
18695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18696   { (case "(($ac_try" in
18697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698   *) ac_try_echo=$ac_try;;
18699 esac
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701   (eval "$ac_try") 2>&5
18702   ac_status=$?
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); }; } &&
18705          { ac_try='test -s conftest$ac_exeext'
18706   { (case "(($ac_try" in
18707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708   *) ac_try_echo=$ac_try;;
18709 esac
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711   (eval "$ac_try") 2>&5
18712   ac_status=$?
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); }; }; then
18715   ac_cv_lib_gcc___divdi3=yes
18716 else
18717   echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18719
18720         ac_cv_lib_gcc___divdi3=no
18721 fi
18722
18723 rm -f core conftest.err conftest.$ac_objext \
18724       conftest$ac_exeext conftest.$ac_ext
18725 LIBS=$ac_check_lib_save_LIBS
18726 fi
18727 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18728 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18729 if test $ac_cv_lib_gcc___divdi3 = yes; then
18730
18731 cat >>confdefs.h <<\_ACEOF
18732 #define HAVE___DIVDI3 1
18733 _ACEOF
18734
18735 fi
18736
18737   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18738 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18739 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   ac_check_lib_save_LIBS=$LIBS
18743 LIBS="-lgcc  $LIBS"
18744 cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h.  */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h.  */
18750
18751 /* Override any GCC internal prototype to avoid an error.
18752    Use char because int might match the return type of a GCC
18753    builtin and then its argument prototype would still apply.  */
18754 #ifdef __cplusplus
18755 extern "C"
18756 #endif
18757 char __fixdfdi ();
18758 int
18759 main ()
18760 {
18761 return __fixdfdi ();
18762   ;
18763   return 0;
18764 }
18765 _ACEOF
18766 rm -f conftest.$ac_objext conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770   *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773   (eval "$ac_link") 2>conftest.er1
18774   ac_status=$?
18775   grep -v '^ *+' conftest.er1 >conftest.err
18776   rm -f conftest.er1
18777   cat conftest.err >&5
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); } &&
18780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18781   { (case "(($ac_try" in
18782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783   *) ac_try_echo=$ac_try;;
18784 esac
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786   (eval "$ac_try") 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; } &&
18790          { ac_try='test -s conftest$ac_exeext'
18791   { (case "(($ac_try" in
18792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793   *) ac_try_echo=$ac_try;;
18794 esac
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796   (eval "$ac_try") 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; }; then
18800   ac_cv_lib_gcc___fixdfdi=yes
18801 else
18802   echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805         ac_cv_lib_gcc___fixdfdi=no
18806 fi
18807
18808 rm -f core conftest.err conftest.$ac_objext \
18809       conftest$ac_exeext conftest.$ac_ext
18810 LIBS=$ac_check_lib_save_LIBS
18811 fi
18812 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18813 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18814 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18815
18816 cat >>confdefs.h <<\_ACEOF
18817 #define HAVE___FIXDFDI 1
18818 _ACEOF
18819
18820 fi
18821
18822   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18823 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18824 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827   ac_check_lib_save_LIBS=$LIBS
18828 LIBS="-lgcc  $LIBS"
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835
18836 /* Override any GCC internal prototype to avoid an error.
18837    Use char because int might match the return type of a GCC
18838    builtin and then its argument prototype would still apply.  */
18839 #ifdef __cplusplus
18840 extern "C"
18841 #endif
18842 char __fixsfdi ();
18843 int
18844 main ()
18845 {
18846 return __fixsfdi ();
18847   ;
18848   return 0;
18849 }
18850 _ACEOF
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (ac_try="$ac_link"
18853 case "(($ac_try" in
18854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855   *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858   (eval "$ac_link") 2>conftest.er1
18859   ac_status=$?
18860   grep -v '^ *+' conftest.er1 >conftest.err
18861   rm -f conftest.er1
18862   cat conftest.err >&5
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); } &&
18865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18866   { (case "(($ac_try" in
18867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868   *) ac_try_echo=$ac_try;;
18869 esac
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871   (eval "$ac_try") 2>&5
18872   ac_status=$?
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); }; } &&
18875          { ac_try='test -s conftest$ac_exeext'
18876   { (case "(($ac_try" in
18877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878   *) ac_try_echo=$ac_try;;
18879 esac
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881   (eval "$ac_try") 2>&5
18882   ac_status=$?
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); }; }; then
18885   ac_cv_lib_gcc___fixsfdi=yes
18886 else
18887   echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18889
18890         ac_cv_lib_gcc___fixsfdi=no
18891 fi
18892
18893 rm -f core conftest.err conftest.$ac_objext \
18894       conftest$ac_exeext conftest.$ac_ext
18895 LIBS=$ac_check_lib_save_LIBS
18896 fi
18897 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18898 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18899 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18900
18901 cat >>confdefs.h <<\_ACEOF
18902 #define HAVE___FIXSFDI 1
18903 _ACEOF
18904
18905 fi
18906
18907   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18908 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18909 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18910   echo $ECHO_N "(cached) $ECHO_C" >&6
18911 else
18912   ac_check_lib_save_LIBS=$LIBS
18913 LIBS="-lgcc  $LIBS"
18914 cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h.  */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h.  */
18920
18921 /* Override any GCC internal prototype to avoid an error.
18922    Use char because int might match the return type of a GCC
18923    builtin and then its argument prototype would still apply.  */
18924 #ifdef __cplusplus
18925 extern "C"
18926 #endif
18927 char __floatdidf ();
18928 int
18929 main ()
18930 {
18931 return __floatdidf ();
18932   ;
18933   return 0;
18934 }
18935 _ACEOF
18936 rm -f conftest.$ac_objext conftest$ac_exeext
18937 if { (ac_try="$ac_link"
18938 case "(($ac_try" in
18939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940   *) ac_try_echo=$ac_try;;
18941 esac
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943   (eval "$ac_link") 2>conftest.er1
18944   ac_status=$?
18945   grep -v '^ *+' conftest.er1 >conftest.err
18946   rm -f conftest.er1
18947   cat conftest.err >&5
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); } &&
18950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18951   { (case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956   (eval "$ac_try") 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); }; } &&
18960          { ac_try='test -s conftest$ac_exeext'
18961   { (case "(($ac_try" in
18962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963   *) ac_try_echo=$ac_try;;
18964 esac
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966   (eval "$ac_try") 2>&5
18967   ac_status=$?
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); }; }; then
18970   ac_cv_lib_gcc___floatdidf=yes
18971 else
18972   echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18974
18975         ac_cv_lib_gcc___floatdidf=no
18976 fi
18977
18978 rm -f core conftest.err conftest.$ac_objext \
18979       conftest$ac_exeext conftest.$ac_ext
18980 LIBS=$ac_check_lib_save_LIBS
18981 fi
18982 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18983 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18984 if test $ac_cv_lib_gcc___floatdidf = yes; then
18985
18986 cat >>confdefs.h <<\_ACEOF
18987 #define HAVE___FLOATDIDF 1
18988 _ACEOF
18989
18990 fi
18991
18992   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18993 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18994 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18995   echo $ECHO_N "(cached) $ECHO_C" >&6
18996 else
18997   ac_check_lib_save_LIBS=$LIBS
18998 LIBS="-lgcc  $LIBS"
18999 cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005
19006 /* Override any GCC internal prototype to avoid an error.
19007    Use char because int might match the return type of a GCC
19008    builtin and then its argument prototype would still apply.  */
19009 #ifdef __cplusplus
19010 extern "C"
19011 #endif
19012 char __lshrdi3 ();
19013 int
19014 main ()
19015 {
19016 return __lshrdi3 ();
19017   ;
19018   return 0;
19019 }
19020 _ACEOF
19021 rm -f conftest.$ac_objext conftest$ac_exeext
19022 if { (ac_try="$ac_link"
19023 case "(($ac_try" in
19024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025   *) ac_try_echo=$ac_try;;
19026 esac
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028   (eval "$ac_link") 2>conftest.er1
19029   ac_status=$?
19030   grep -v '^ *+' conftest.er1 >conftest.err
19031   rm -f conftest.er1
19032   cat conftest.err >&5
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); } &&
19035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19036   { (case "(($ac_try" in
19037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038   *) ac_try_echo=$ac_try;;
19039 esac
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041   (eval "$ac_try") 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; } &&
19045          { ac_try='test -s conftest$ac_exeext'
19046   { (case "(($ac_try" in
19047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048   *) ac_try_echo=$ac_try;;
19049 esac
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051   (eval "$ac_try") 2>&5
19052   ac_status=$?
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); }; }; then
19055   ac_cv_lib_gcc___lshrdi3=yes
19056 else
19057   echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19059
19060         ac_cv_lib_gcc___lshrdi3=no
19061 fi
19062
19063 rm -f core conftest.err conftest.$ac_objext \
19064       conftest$ac_exeext conftest.$ac_ext
19065 LIBS=$ac_check_lib_save_LIBS
19066 fi
19067 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19068 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19069 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19070
19071 cat >>confdefs.h <<\_ACEOF
19072 #define HAVE___LSHRDI3 1
19073 _ACEOF
19074
19075 fi
19076
19077   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19078 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19079 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19080   echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082   ac_check_lib_save_LIBS=$LIBS
19083 LIBS="-lgcc  $LIBS"
19084 cat >conftest.$ac_ext <<_ACEOF
19085 /* confdefs.h.  */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h.  */
19090
19091 /* Override any GCC internal prototype to avoid an error.
19092    Use char because int might match the return type of a GCC
19093    builtin and then its argument prototype would still apply.  */
19094 #ifdef __cplusplus
19095 extern "C"
19096 #endif
19097 char __moddi3 ();
19098 int
19099 main ()
19100 {
19101 return __moddi3 ();
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 rm -f conftest.$ac_objext conftest$ac_exeext
19107 if { (ac_try="$ac_link"
19108 case "(($ac_try" in
19109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110   *) ac_try_echo=$ac_try;;
19111 esac
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113   (eval "$ac_link") 2>conftest.er1
19114   ac_status=$?
19115   grep -v '^ *+' conftest.er1 >conftest.err
19116   rm -f conftest.er1
19117   cat conftest.err >&5
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); } &&
19120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19121   { (case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126   (eval "$ac_try") 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); }; } &&
19130          { ac_try='test -s conftest$ac_exeext'
19131   { (case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136   (eval "$ac_try") 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; }; then
19140   ac_cv_lib_gcc___moddi3=yes
19141 else
19142   echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145         ac_cv_lib_gcc___moddi3=no
19146 fi
19147
19148 rm -f core conftest.err conftest.$ac_objext \
19149       conftest$ac_exeext conftest.$ac_ext
19150 LIBS=$ac_check_lib_save_LIBS
19151 fi
19152 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19153 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19154 if test $ac_cv_lib_gcc___moddi3 = yes; then
19155
19156 cat >>confdefs.h <<\_ACEOF
19157 #define HAVE___MODDI3 1
19158 _ACEOF
19159
19160 fi
19161
19162   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19163 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19164 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19165   echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167   ac_check_lib_save_LIBS=$LIBS
19168 LIBS="-lgcc  $LIBS"
19169 cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h.  */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h.  */
19175
19176 /* Override any GCC internal prototype to avoid an error.
19177    Use char because int might match the return type of a GCC
19178    builtin and then its argument prototype would still apply.  */
19179 #ifdef __cplusplus
19180 extern "C"
19181 #endif
19182 char __udivdi3 ();
19183 int
19184 main ()
19185 {
19186 return __udivdi3 ();
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (ac_try="$ac_link"
19193 case "(($ac_try" in
19194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195   *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198   (eval "$ac_link") 2>conftest.er1
19199   ac_status=$?
19200   grep -v '^ *+' conftest.er1 >conftest.err
19201   rm -f conftest.er1
19202   cat conftest.err >&5
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } &&
19205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19206   { (case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_try") 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; } &&
19215          { ac_try='test -s conftest$ac_exeext'
19216   { (case "(($ac_try" in
19217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218   *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221   (eval "$ac_try") 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; }; then
19225   ac_cv_lib_gcc___udivdi3=yes
19226 else
19227   echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230         ac_cv_lib_gcc___udivdi3=no
19231 fi
19232
19233 rm -f core conftest.err conftest.$ac_objext \
19234       conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19236 fi
19237 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19238 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19239 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19240
19241 cat >>confdefs.h <<\_ACEOF
19242 #define HAVE___UDIVDI3 1
19243 _ACEOF
19244
19245 fi
19246
19247   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19248 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19249 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19250   echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252   ac_check_lib_save_LIBS=$LIBS
19253 LIBS="-lgcc  $LIBS"
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h.  */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h.  */
19260
19261 /* Override any GCC internal prototype to avoid an error.
19262    Use char because int might match the return type of a GCC
19263    builtin and then its argument prototype would still apply.  */
19264 #ifdef __cplusplus
19265 extern "C"
19266 #endif
19267 char __umoddi3 ();
19268 int
19269 main ()
19270 {
19271 return __umoddi3 ();
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (ac_try="$ac_link"
19278 case "(($ac_try" in
19279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280   *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283   (eval "$ac_link") 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } &&
19290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291   { (case "(($ac_try" in
19292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293   *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296   (eval "$ac_try") 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; } &&
19300          { ac_try='test -s conftest$ac_exeext'
19301   { (case "(($ac_try" in
19302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303   *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306   (eval "$ac_try") 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; }; then
19310   ac_cv_lib_gcc___umoddi3=yes
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315         ac_cv_lib_gcc___umoddi3=no
19316 fi
19317
19318 rm -f core conftest.err conftest.$ac_objext \
19319       conftest$ac_exeext conftest.$ac_ext
19320 LIBS=$ac_check_lib_save_LIBS
19321 fi
19322 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19323 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19324 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19325
19326 cat >>confdefs.h <<\_ACEOF
19327 #define HAVE___UMODDI3 1
19328 _ACEOF
19329
19330 fi
19331
19332
19333   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19334 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19335 if test "${ac_cv_lib_gcc___main+set}" = set; then
19336   echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19338   ac_check_lib_save_LIBS=$LIBS
19339 LIBS="-lgcc  $LIBS"
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h.  */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h.  */
19346
19347 /* Override any GCC internal prototype to avoid an error.
19348    Use char because int might match the return type of a GCC
19349    builtin and then its argument prototype would still apply.  */
19350 #ifdef __cplusplus
19351 extern "C"
19352 #endif
19353 char __main ();
19354 int
19355 main ()
19356 {
19357 return __main ();
19358   ;
19359   return 0;
19360 }
19361 _ACEOF
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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_lib_gcc___main=yes
19397 else
19398   echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401         ac_cv_lib_gcc___main=no
19402 fi
19403
19404 rm -f core conftest.err conftest.$ac_objext \
19405       conftest$ac_exeext conftest.$ac_ext
19406 LIBS=$ac_check_lib_save_LIBS
19407 fi
19408 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19409 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19410 if test $ac_cv_lib_gcc___main = yes; then
19411
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE___MAIN 1
19414 _ACEOF
19415
19416 fi
19417
19418   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19419 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19420 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19421   echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423   ac_check_lib_save_LIBS=$LIBS
19424 LIBS="-lgcc  $LIBS"
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431
19432 /* Override any GCC internal prototype to avoid an error.
19433    Use char because int might match the return type of a GCC
19434    builtin and then its argument prototype would still apply.  */
19435 #ifdef __cplusplus
19436 extern "C"
19437 #endif
19438 char __cmpdi2 ();
19439 int
19440 main ()
19441 {
19442 return __cmpdi2 ();
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451   *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454   (eval "$ac_link") 2>conftest.er1
19455   ac_status=$?
19456   grep -v '^ *+' conftest.er1 >conftest.err
19457   rm -f conftest.er1
19458   cat conftest.err >&5
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } &&
19461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19462   { (case "(($ac_try" in
19463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464   *) ac_try_echo=$ac_try;;
19465 esac
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467   (eval "$ac_try") 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; } &&
19471          { ac_try='test -s conftest$ac_exeext'
19472   { (case "(($ac_try" in
19473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474   *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477   (eval "$ac_try") 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_cv_lib_gcc___cmpdi2=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486         ac_cv_lib_gcc___cmpdi2=no
19487 fi
19488
19489 rm -f core conftest.err conftest.$ac_objext \
19490       conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19492 fi
19493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19494 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19495 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19496
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE___CMPDI2 1
19499 _ACEOF
19500
19501 fi
19502
19503 fi
19504
19505 if test "$llvm_cv_os_type" = "MingW" ; then
19506   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19507 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19508   cat >conftest.$ac_ext <<_ACEOF
19509 #include <windows.h>
19510 #include <imagehlp.h>
19511 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19512 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19513 _ACEOF
19514 rm -f conftest.$ac_objext
19515 if { (ac_try="$ac_compile"
19516 case "(($ac_try" in
19517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518   *) ac_try_echo=$ac_try;;
19519 esac
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521   (eval "$ac_compile") 2>conftest.er1
19522   ac_status=$?
19523   grep -v '^ *+' conftest.er1 >conftest.err
19524   rm -f conftest.er1
19525   cat conftest.err >&5
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); } &&
19528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19529   { (case "(($ac_try" in
19530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531   *) ac_try_echo=$ac_try;;
19532 esac
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534   (eval "$ac_try") 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; } &&
19538          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19545   ac_status=$?
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); }; }; then
19548
19549   { echo "$as_me:$LINENO: result: yes" >&5
19550 echo "${ECHO_T}yes" >&6; }
19551   llvm_cv_win32_elmcb_pcstr="PCSTR"
19552
19553 else
19554   echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557
19558   { echo "$as_me:$LINENO: result: no" >&5
19559 echo "${ECHO_T}no" >&6; }
19560   llvm_cv_win32_elmcb_pcstr="PSTR"
19561
19562 fi
19563
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19565
19566 cat >>confdefs.h <<_ACEOF
19567 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19568 _ACEOF
19569
19570 fi
19571
19572
19573 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19574 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19575 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19576   echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578   ac_ext=cpp
19579 ac_cpp='$CXXCPP $CPPFLAGS'
19580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19583
19584    cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h.  */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h.  */
19590 #include <math.h>
19591 int
19592 main ()
19593 {
19594 float f; isnan(f);
19595   ;
19596   return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext
19600 if { (ac_try="$ac_compile"
19601 case "(($ac_try" in
19602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603   *) ac_try_echo=$ac_try;;
19604 esac
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606   (eval "$ac_compile") 2>conftest.er1
19607   ac_status=$?
19608   grep -v '^ *+' conftest.er1 >conftest.err
19609   rm -f conftest.er1
19610   cat conftest.err >&5
19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); } &&
19613          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19614   { (case "(($ac_try" in
19615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616   *) ac_try_echo=$ac_try;;
19617 esac
19618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619   (eval "$ac_try") 2>&5
19620   ac_status=$?
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); }; } &&
19623          { ac_try='test -s conftest.$ac_objext'
19624   { (case "(($ac_try" in
19625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626   *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629   (eval "$ac_try") 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; }; then
19633   ac_cv_func_isnan_in_math_h=yes
19634 else
19635   echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638         ac_cv_func_isnan_in_math_h=no
19639 fi
19640
19641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19642   ac_ext=c
19643 ac_cpp='$CPP $CPPFLAGS'
19644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19647
19648 fi
19649 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19650 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19651
19652
19653 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19654
19655 cat >>confdefs.h <<\_ACEOF
19656 #define HAVE_ISNAN_IN_MATH_H 1
19657 _ACEOF
19658
19659 fi
19660
19661 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19662 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19663 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19664   echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666   ac_ext=cpp
19667 ac_cpp='$CXXCPP $CPPFLAGS'
19668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19671
19672    cat >conftest.$ac_ext <<_ACEOF
19673 /* confdefs.h.  */
19674 _ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h.  */
19678 #include <cmath>
19679 int
19680 main ()
19681 {
19682 float f; isnan(f);
19683   ;
19684   return 0;
19685 }
19686 _ACEOF
19687 rm -f conftest.$ac_objext
19688 if { (ac_try="$ac_compile"
19689 case "(($ac_try" in
19690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691   *) ac_try_echo=$ac_try;;
19692 esac
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694   (eval "$ac_compile") 2>conftest.er1
19695   ac_status=$?
19696   grep -v '^ *+' conftest.er1 >conftest.err
19697   rm -f conftest.er1
19698   cat conftest.err >&5
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); } &&
19701          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19702   { (case "(($ac_try" in
19703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704   *) ac_try_echo=$ac_try;;
19705 esac
19706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19707   (eval "$ac_try") 2>&5
19708   ac_status=$?
19709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710   (exit $ac_status); }; } &&
19711          { ac_try='test -s conftest.$ac_objext'
19712   { (case "(($ac_try" in
19713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714   *) ac_try_echo=$ac_try;;
19715 esac
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717   (eval "$ac_try") 2>&5
19718   ac_status=$?
19719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720   (exit $ac_status); }; }; then
19721   ac_cv_func_isnan_in_cmath=yes
19722 else
19723   echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726         ac_cv_func_isnan_in_cmath=no
19727 fi
19728
19729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19730   ac_ext=c
19731 ac_cpp='$CPP $CPPFLAGS'
19732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19735
19736 fi
19737 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19738 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19739
19740 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19741
19742 cat >>confdefs.h <<\_ACEOF
19743 #define HAVE_ISNAN_IN_CMATH 1
19744 _ACEOF
19745
19746 fi
19747
19748 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19749 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19750 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753   ac_ext=cpp
19754 ac_cpp='$CXXCPP $CPPFLAGS'
19755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19758
19759    cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h.  */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h.  */
19765 #include <cmath>
19766 int
19767 main ()
19768 {
19769 float f; std::isnan(f);
19770   ;
19771   return 0;
19772 }
19773 _ACEOF
19774 rm -f conftest.$ac_objext
19775 if { (ac_try="$ac_compile"
19776 case "(($ac_try" in
19777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778   *) ac_try_echo=$ac_try;;
19779 esac
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781   (eval "$ac_compile") 2>conftest.er1
19782   ac_status=$?
19783   grep -v '^ *+' conftest.er1 >conftest.err
19784   rm -f conftest.er1
19785   cat conftest.err >&5
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); } &&
19788          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19789   { (case "(($ac_try" in
19790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791   *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794   (eval "$ac_try") 2>&5
19795   ac_status=$?
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); }; } &&
19798          { ac_try='test -s conftest.$ac_objext'
19799   { (case "(($ac_try" in
19800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801   *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804   (eval "$ac_try") 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; }; then
19808   ac_cv_func_std_isnan_in_cmath=yes
19809 else
19810   echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813         ac_cv_func_std_isnan_in_cmath=no
19814 fi
19815
19816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19817   ac_ext=c
19818 ac_cpp='$CPP $CPPFLAGS'
19819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19822
19823 fi
19824 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19825 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19826
19827 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19828
19829 cat >>confdefs.h <<\_ACEOF
19830 #define HAVE_STD_ISNAN_IN_CMATH 1
19831 _ACEOF
19832
19833 fi
19834
19835
19836 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19837 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19838 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19839   echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841   ac_ext=cpp
19842 ac_cpp='$CXXCPP $CPPFLAGS'
19843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19846
19847    cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853 #include <math.h>
19854 int
19855 main ()
19856 {
19857 float f; isinf(f);
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (ac_try="$ac_compile"
19864 case "(($ac_try" in
19865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866   *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869   (eval "$ac_compile") 2>conftest.er1
19870   ac_status=$?
19871   grep -v '^ *+' conftest.er1 >conftest.err
19872   rm -f conftest.er1
19873   cat conftest.err >&5
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } &&
19876          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19877   { (case "(($ac_try" in
19878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879   *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882   (eval "$ac_try") 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }; } &&
19886          { ac_try='test -s conftest.$ac_objext'
19887   { (case "(($ac_try" in
19888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889   *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892   (eval "$ac_try") 2>&5
19893   ac_status=$?
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); }; }; then
19896   ac_cv_func_isinf_in_math_h=yes
19897 else
19898   echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901         ac_cv_func_isinf_in_math_h=no
19902 fi
19903
19904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19905   ac_ext=c
19906 ac_cpp='$CPP $CPPFLAGS'
19907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19910
19911 fi
19912 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19913 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19914
19915 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19916
19917 cat >>confdefs.h <<\_ACEOF
19918 #define HAVE_ISINF_IN_MATH_H 1
19919 _ACEOF
19920
19921 fi
19922
19923 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19924 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19925 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19926   echo $ECHO_N "(cached) $ECHO_C" >&6
19927 else
19928   ac_ext=cpp
19929 ac_cpp='$CXXCPP $CPPFLAGS'
19930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19933
19934    cat >conftest.$ac_ext <<_ACEOF
19935 /* confdefs.h.  */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h.  */
19940 #include <cmath>
19941 int
19942 main ()
19943 {
19944 float f; isinf(f);
19945   ;
19946   return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext
19950 if { (ac_try="$ac_compile"
19951 case "(($ac_try" in
19952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953   *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956   (eval "$ac_compile") 2>conftest.er1
19957   ac_status=$?
19958   grep -v '^ *+' conftest.er1 >conftest.err
19959   rm -f conftest.er1
19960   cat conftest.err >&5
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); } &&
19963          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19964   { (case "(($ac_try" in
19965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966   *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969   (eval "$ac_try") 2>&5
19970   ac_status=$?
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); }; } &&
19973          { ac_try='test -s conftest.$ac_objext'
19974   { (case "(($ac_try" in
19975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976   *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979   (eval "$ac_try") 2>&5
19980   ac_status=$?
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); }; }; then
19983   ac_cv_func_isinf_in_cmath=yes
19984 else
19985   echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19987
19988         ac_cv_func_isinf_in_cmath=no
19989 fi
19990
19991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19992   ac_ext=c
19993 ac_cpp='$CPP $CPPFLAGS'
19994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19997
19998 fi
19999 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20000 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20001
20002 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20003
20004 cat >>confdefs.h <<\_ACEOF
20005 #define HAVE_ISINF_IN_CMATH 1
20006 _ACEOF
20007
20008 fi
20009
20010 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20011 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20012 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015   ac_ext=cpp
20016 ac_cpp='$CXXCPP $CPPFLAGS'
20017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20020
20021    cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027 #include <cmath>
20028 int
20029 main ()
20030 {
20031 float f; std::isinf(f);
20032   ;
20033   return 0;
20034 }
20035 _ACEOF
20036 rm -f conftest.$ac_objext
20037 if { (ac_try="$ac_compile"
20038 case "(($ac_try" in
20039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040   *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043   (eval "$ac_compile") 2>conftest.er1
20044   ac_status=$?
20045   grep -v '^ *+' conftest.er1 >conftest.err
20046   rm -f conftest.er1
20047   cat conftest.err >&5
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); } &&
20050          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20051   { (case "(($ac_try" in
20052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053   *) ac_try_echo=$ac_try;;
20054 esac
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056   (eval "$ac_try") 2>&5
20057   ac_status=$?
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); }; } &&
20060          { ac_try='test -s conftest.$ac_objext'
20061   { (case "(($ac_try" in
20062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063   *) ac_try_echo=$ac_try;;
20064 esac
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066   (eval "$ac_try") 2>&5
20067   ac_status=$?
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); }; }; then
20070   ac_cv_func_std_isinf_in_cmath=yes
20071 else
20072   echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20074
20075         ac_cv_func_std_isinf_in_cmath=no
20076 fi
20077
20078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20079   ac_ext=c
20080 ac_cpp='$CPP $CPPFLAGS'
20081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084
20085 fi
20086 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20087 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20088
20089 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20090
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE_STD_ISINF_IN_CMATH 1
20093 _ACEOF
20094
20095 fi
20096
20097 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20098 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20099 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20100   echo $ECHO_N "(cached) $ECHO_C" >&6
20101 else
20102   ac_ext=cpp
20103 ac_cpp='$CXXCPP $CPPFLAGS'
20104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20107
20108    cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h.  */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h.  */
20114 #include <ieeefp.h>
20115 int
20116 main ()
20117 {
20118 float f; finite(f);
20119   ;
20120   return 0;
20121 }
20122 _ACEOF
20123 rm -f conftest.$ac_objext
20124 if { (ac_try="$ac_compile"
20125 case "(($ac_try" in
20126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127   *) ac_try_echo=$ac_try;;
20128 esac
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130   (eval "$ac_compile") 2>conftest.er1
20131   ac_status=$?
20132   grep -v '^ *+' conftest.er1 >conftest.err
20133   rm -f conftest.er1
20134   cat conftest.err >&5
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); } &&
20137          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20138   { (case "(($ac_try" in
20139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140   *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143   (eval "$ac_try") 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); }; } &&
20147          { ac_try='test -s conftest.$ac_objext'
20148   { (case "(($ac_try" in
20149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150   *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153   (eval "$ac_try") 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; }; then
20157   ac_cv_func_finite_in_ieeefp_h=yes
20158 else
20159   echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20161
20162         ac_cv_func_finite_in_ieeefp_h=no
20163 fi
20164
20165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20166   ac_ext=c
20167 ac_cpp='$CPP $CPPFLAGS'
20168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20171
20172 fi
20173 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20174 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20175
20176 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20177
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_FINITE_IN_IEEEFP_H 1
20180 _ACEOF
20181
20182 fi
20183
20184
20185
20186 if test "$llvm_cv_platform_type" = "Unix" ; then
20187
20188
20189 for ac_header in stdlib.h unistd.h
20190 do
20191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20193   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 fi
20198 ac_res=`eval echo '${'$as_ac_Header'}'`
20199                { echo "$as_me:$LINENO: result: $ac_res" >&5
20200 echo "${ECHO_T}$ac_res" >&6; }
20201 else
20202   # Is the header compilable?
20203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20205 cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h.  */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h.  */
20211 $ac_includes_default
20212 #include <$ac_header>
20213 _ACEOF
20214 rm -f conftest.$ac_objext
20215 if { (ac_try="$ac_compile"
20216 case "(($ac_try" in
20217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218   *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221   (eval "$ac_compile") 2>conftest.er1
20222   ac_status=$?
20223   grep -v '^ *+' conftest.er1 >conftest.err
20224   rm -f conftest.er1
20225   cat conftest.err >&5
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); } &&
20228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20229   { (case "(($ac_try" in
20230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231   *) ac_try_echo=$ac_try;;
20232 esac
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234   (eval "$ac_try") 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; } &&
20238          { ac_try='test -s conftest.$ac_objext'
20239   { (case "(($ac_try" in
20240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241   *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244   (eval "$ac_try") 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; }; then
20248   ac_header_compiler=yes
20249 else
20250   echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253         ac_header_compiler=no
20254 fi
20255
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20258 echo "${ECHO_T}$ac_header_compiler" >&6; }
20259
20260 # Is the header present?
20261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h.  */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h.  */
20269 #include <$ac_header>
20270 _ACEOF
20271 if { (ac_try="$ac_cpp conftest.$ac_ext"
20272 case "(($ac_try" in
20273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274   *) ac_try_echo=$ac_try;;
20275 esac
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20278   ac_status=$?
20279   grep -v '^ *+' conftest.er1 >conftest.err
20280   rm -f conftest.er1
20281   cat conftest.err >&5
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); } >/dev/null; then
20284   if test -s conftest.err; then
20285     ac_cpp_err=$ac_c_preproc_warn_flag
20286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20287   else
20288     ac_cpp_err=
20289   fi
20290 else
20291   ac_cpp_err=yes
20292 fi
20293 if test -z "$ac_cpp_err"; then
20294   ac_header_preproc=yes
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299   ac_header_preproc=no
20300 fi
20301
20302 rm -f conftest.err conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20304 echo "${ECHO_T}$ac_header_preproc" >&6; }
20305
20306 # So?  What about this header?
20307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20308   yes:no: )
20309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20313     ac_header_preproc=yes
20314     ;;
20315   no:yes:* )
20316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20328     ( cat <<\_ASBOX
20329 ## ------------------------------------ ##
20330 ## Report this to http://llvm.org/bugs/ ##
20331 ## ------------------------------------ ##
20332 _ASBOX
20333      ) | sed "s/^/$as_me: WARNING:     /" >&2
20334     ;;
20335 esac
20336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20339   echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341   eval "$as_ac_Header=\$ac_header_preproc"
20342 fi
20343 ac_res=`eval echo '${'$as_ac_Header'}'`
20344                { echo "$as_me:$LINENO: result: $ac_res" >&5
20345 echo "${ECHO_T}$ac_res" >&6; }
20346
20347 fi
20348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20349   cat >>confdefs.h <<_ACEOF
20350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20351 _ACEOF
20352
20353 fi
20354
20355 done
20356
20357
20358 for ac_func in getpagesize
20359 do
20360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20374 #define $ac_func innocuous_$ac_func
20375
20376 /* System header to define __stub macros and hopefully few prototypes,
20377     which can conflict with char $ac_func (); below.
20378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20379     <limits.h> exists even on freestanding compilers.  */
20380
20381 #ifdef __STDC__
20382 # include <limits.h>
20383 #else
20384 # include <assert.h>
20385 #endif
20386
20387 #undef $ac_func
20388
20389 /* Override any GCC internal prototype to avoid an error.
20390    Use char because int might match the return type of a GCC
20391    builtin and then its argument prototype would still apply.  */
20392 #ifdef __cplusplus
20393 extern "C"
20394 #endif
20395 char $ac_func ();
20396 /* The GNU C library defines this for functions which it implements
20397     to always fail with ENOSYS.  Some functions are actually named
20398     something starting with __ and the normal name is an alias.  */
20399 #if defined __stub_$ac_func || defined __stub___$ac_func
20400 choke me
20401 #endif
20402
20403 int
20404 main ()
20405 {
20406 return $ac_func ();
20407   ;
20408   return 0;
20409 }
20410 _ACEOF
20411 rm -f conftest.$ac_objext conftest$ac_exeext
20412 if { (ac_try="$ac_link"
20413 case "(($ac_try" in
20414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415   *) ac_try_echo=$ac_try;;
20416 esac
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418   (eval "$ac_link") 2>conftest.er1
20419   ac_status=$?
20420   grep -v '^ *+' conftest.er1 >conftest.err
20421   rm -f conftest.er1
20422   cat conftest.err >&5
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); } &&
20425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20426   { (case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431   (eval "$ac_try") 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); }; } &&
20435          { ac_try='test -s conftest$ac_exeext'
20436   { (case "(($ac_try" in
20437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438   *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441   (eval "$ac_try") 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); }; }; then
20445   eval "$as_ac_var=yes"
20446 else
20447   echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450         eval "$as_ac_var=no"
20451 fi
20452
20453 rm -f core conftest.err conftest.$ac_objext \
20454       conftest$ac_exeext conftest.$ac_ext
20455 fi
20456 ac_res=`eval echo '${'$as_ac_var'}'`
20457                { echo "$as_me:$LINENO: result: $ac_res" >&5
20458 echo "${ECHO_T}$ac_res" >&6; }
20459 if test `eval echo '${'$as_ac_var'}'` = yes; then
20460   cat >>confdefs.h <<_ACEOF
20461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20462 _ACEOF
20463
20464 fi
20465 done
20466
20467 { echo "$as_me:$LINENO: checking for working mmap" >&5
20468 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20469 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20470   echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472   if test "$cross_compiling" = yes; then
20473   ac_cv_func_mmap_fixed_mapped=no
20474 else
20475   cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481 $ac_includes_default
20482 /* malloc might have been renamed as rpl_malloc. */
20483 #undef malloc
20484
20485 /* Thanks to Mike Haertel and Jim Avera for this test.
20486    Here is a matrix of mmap possibilities:
20487         mmap private not fixed
20488         mmap private fixed at somewhere currently unmapped
20489         mmap private fixed at somewhere already mapped
20490         mmap shared not fixed
20491         mmap shared fixed at somewhere currently unmapped
20492         mmap shared fixed at somewhere already mapped
20493    For private mappings, we should verify that changes cannot be read()
20494    back from the file, nor mmap's back from the file at a different
20495    address.  (There have been systems where private was not correctly
20496    implemented like the infamous i386 svr4.0, and systems where the
20497    VM page cache was not coherent with the file system buffer cache
20498    like early versions of FreeBSD and possibly contemporary NetBSD.)
20499    For shared mappings, we should conversely verify that changes get
20500    propagated back to all the places they're supposed to be.
20501
20502    Grep wants private fixed already mapped.
20503    The main things grep needs to know about mmap are:
20504    * does it exist and is it safe to write into the mmap'd area
20505    * how to use it (BSD variants)  */
20506
20507 #include <fcntl.h>
20508 #include <sys/mman.h>
20509
20510 #if !STDC_HEADERS && !HAVE_STDLIB_H
20511 char *malloc ();
20512 #endif
20513
20514 /* This mess was copied from the GNU getpagesize.h.  */
20515 #if !HAVE_GETPAGESIZE
20516 /* Assume that all systems that can run configure have sys/param.h.  */
20517 # if !HAVE_SYS_PARAM_H
20518 #  define HAVE_SYS_PARAM_H 1
20519 # endif
20520
20521 # ifdef _SC_PAGESIZE
20522 #  define getpagesize() sysconf(_SC_PAGESIZE)
20523 # else /* no _SC_PAGESIZE */
20524 #  if HAVE_SYS_PARAM_H
20525 #   include <sys/param.h>
20526 #   ifdef EXEC_PAGESIZE
20527 #    define getpagesize() EXEC_PAGESIZE
20528 #   else /* no EXEC_PAGESIZE */
20529 #    ifdef NBPG
20530 #     define getpagesize() NBPG * CLSIZE
20531 #     ifndef CLSIZE
20532 #      define CLSIZE 1
20533 #     endif /* no CLSIZE */
20534 #    else /* no NBPG */
20535 #     ifdef NBPC
20536 #      define getpagesize() NBPC
20537 #     else /* no NBPC */
20538 #      ifdef PAGESIZE
20539 #       define getpagesize() PAGESIZE
20540 #      endif /* PAGESIZE */
20541 #     endif /* no NBPC */
20542 #    endif /* no NBPG */
20543 #   endif /* no EXEC_PAGESIZE */
20544 #  else /* no HAVE_SYS_PARAM_H */
20545 #   define getpagesize() 8192   /* punt totally */
20546 #  endif /* no HAVE_SYS_PARAM_H */
20547 # endif /* no _SC_PAGESIZE */
20548
20549 #endif /* no HAVE_GETPAGESIZE */
20550
20551 int
20552 main ()
20553 {
20554   char *data, *data2, *data3;
20555   int i, pagesize;
20556   int fd;
20557
20558   pagesize = getpagesize ();
20559
20560   /* First, make a file with some known garbage in it. */
20561   data = (char *) malloc (pagesize);
20562   if (!data)
20563     return 1;
20564   for (i = 0; i < pagesize; ++i)
20565     *(data + i) = rand ();
20566   umask (0);
20567   fd = creat ("conftest.mmap", 0600);
20568   if (fd < 0)
20569     return 1;
20570   if (write (fd, data, pagesize) != pagesize)
20571     return 1;
20572   close (fd);
20573
20574   /* Next, try to mmap the file at a fixed address which already has
20575      something else allocated at it.  If we can, also make sure that
20576      we see the same garbage.  */
20577   fd = open ("conftest.mmap", O_RDWR);
20578   if (fd < 0)
20579     return 1;
20580   data2 = (char *) malloc (2 * pagesize);
20581   if (!data2)
20582     return 1;
20583   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20584   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20585                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20586     return 1;
20587   for (i = 0; i < pagesize; ++i)
20588     if (*(data + i) != *(data2 + i))
20589       return 1;
20590
20591   /* Finally, make sure that changes to the mapped area do not
20592      percolate back to the file as seen by read().  (This is a bug on
20593      some variants of i386 svr4.0.)  */
20594   for (i = 0; i < pagesize; ++i)
20595     *(data2 + i) = *(data2 + i) + 1;
20596   data3 = (char *) malloc (pagesize);
20597   if (!data3)
20598     return 1;
20599   if (read (fd, data3, pagesize) != pagesize)
20600     return 1;
20601   for (i = 0; i < pagesize; ++i)
20602     if (*(data + i) != *(data3 + i))
20603       return 1;
20604   close (fd);
20605   return 0;
20606 }
20607 _ACEOF
20608 rm -f conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612   *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615   (eval "$ac_link") 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20619   { (case "(($ac_try" in
20620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621   *) ac_try_echo=$ac_try;;
20622 esac
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624   (eval "$ac_try") 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); }; }; then
20628   ac_cv_func_mmap_fixed_mapped=yes
20629 else
20630   echo "$as_me: program exited with status $ac_status" >&5
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634 ( exit $ac_status )
20635 ac_cv_func_mmap_fixed_mapped=no
20636 fi
20637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20638 fi
20639
20640
20641 fi
20642 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20643 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20644 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20645
20646 cat >>confdefs.h <<\_ACEOF
20647 #define HAVE_MMAP 1
20648 _ACEOF
20649
20650 fi
20651 rm -f conftest.mmap
20652
20653   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20654 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20655 if test "${ac_cv_func_mmap_file+set}" = set; then
20656   echo $ECHO_N "(cached) $ECHO_C" >&6
20657 else
20658    ac_ext=c
20659 ac_cpp='$CPP $CPPFLAGS'
20660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20663
20664   if test "$cross_compiling" = yes; then
20665   ac_cv_func_mmap_file=no
20666 else
20667   cat >conftest.$ac_ext <<_ACEOF
20668
20669     /* confdefs.h.  */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h.  */
20674
20675 #include <sys/types.h>
20676 #include <sys/mman.h>
20677 #include <fcntl.h>
20678
20679 int
20680 main ()
20681 {
20682
20683   int fd;
20684   fd = creat ("foo",0777);
20685   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20686   unlink ("foo");
20687   return (fd != (int) MAP_FAILED);
20688   ;
20689   return 0;
20690 }
20691 _ACEOF
20692 rm -f conftest$ac_exeext
20693 if { (ac_try="$ac_link"
20694 case "(($ac_try" in
20695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696   *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699   (eval "$ac_link") 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20703   { (case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_try") 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); }; }; then
20712   ac_cv_func_mmap_file=yes
20713 else
20714   echo "$as_me: program exited with status $ac_status" >&5
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718 ( exit $ac_status )
20719 ac_cv_func_mmap_file=no
20720 fi
20721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20722 fi
20723
20724
20725   ac_ext=c
20726 ac_cpp='$CPP $CPPFLAGS'
20727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20730
20731
20732 fi
20733 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20734 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20735 if test "$ac_cv_func_mmap_file" = yes; then
20736
20737 cat >>confdefs.h <<\_ACEOF
20738 #define HAVE_MMAP_FILE
20739 _ACEOF
20740
20741    MMAP_FILE=yes
20742
20743 fi
20744
20745   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20746 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20747 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20748   echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750   if test "$llvm_cv_os_type" = "Interix" ; then
20751    ac_cv_need_dev_zero_for_mmap=yes
20752  else
20753    ac_cv_need_dev_zero_for_mmap=no
20754  fi
20755
20756 fi
20757 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20758 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20759 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20760
20761 cat >>confdefs.h <<\_ACEOF
20762 #define NEED_DEV_ZERO_FOR_MMAP 1
20763 _ACEOF
20764
20765 fi
20766
20767   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20768   then
20769     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20770 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20771   fi
20772   if test "$ac_cv_func_mmap_file" = "no"
20773   then
20774     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20775 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20776   fi
20777 fi
20778
20779 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20780 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20781 ac_ext=cpp
20782 ac_cpp='$CXXCPP $CPPFLAGS'
20783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20786
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793 int main() {
20794         volatile unsigned long val = 1;
20795         __sync_synchronize();
20796         __sync_val_compare_and_swap(&val, 1, 0);
20797         __sync_add_and_fetch(&val, 1);
20798         __sync_sub_and_fetch(&val, 1);
20799         return 0;
20800       }
20801
20802 _ACEOF
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807   *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810   (eval "$ac_link") 2>conftest.er1
20811   ac_status=$?
20812   grep -v '^ *+' conftest.er1 >conftest.err
20813   rm -f conftest.er1
20814   cat conftest.err >&5
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } &&
20817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20818   { (case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_try") 2>&5
20824   ac_status=$?
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); }; } &&
20827          { ac_try='test -s conftest$ac_exeext'
20828   { (case "(($ac_try" in
20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830   *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833   (eval "$ac_try") 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); }; }; then
20837   ac_ext=c
20838 ac_cpp='$CPP $CPPFLAGS'
20839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20842
20843   { echo "$as_me:$LINENO: result: yes" >&5
20844 echo "${ECHO_T}yes" >&6; }
20845
20846 cat >>confdefs.h <<\_ACEOF
20847 #define LLVM_HAS_ATOMICS 1
20848 _ACEOF
20849
20850 else
20851   echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20853
20854         { echo "$as_me:$LINENO: result: no" >&5
20855 echo "${ECHO_T}no" >&6; }
20856
20857 cat >>confdefs.h <<\_ACEOF
20858 #define LLVM_HAS_ATOMICS 0
20859 _ACEOF
20860
20861   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20862 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20863 fi
20864
20865 rm -f core conftest.err conftest.$ac_objext \
20866       conftest$ac_exeext conftest.$ac_ext
20867
20868
20869 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20870   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20871 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20872 if test "${llvm_cv_linux_mixed+set}" = set; then
20873   echo $ECHO_N "(cached) $ECHO_C" >&6
20874 else
20875    ac_ext=c
20876 ac_cpp='$CPP $CPPFLAGS'
20877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20880
20881   cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h.  */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h.  */
20887 #ifndef __x86_64__
20888        error: Not x86-64 even if uname says so!
20889       #endif
20890
20891 int
20892 main ()
20893 {
20894
20895   ;
20896   return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_compile") 2>conftest.er1
20907   ac_status=$?
20908   grep -v '^ *+' conftest.er1 >conftest.err
20909   rm -f conftest.er1
20910   cat conftest.err >&5
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); } &&
20913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20914   { (case "(($ac_try" in
20915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916   *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919   (eval "$ac_try") 2>&5
20920   ac_status=$?
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); }; } &&
20923          { ac_try='test -s conftest.$ac_objext'
20924   { (case "(($ac_try" in
20925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926   *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929   (eval "$ac_try") 2>&5
20930   ac_status=$?
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); }; }; then
20933   llvm_cv_linux_mixed=no
20934 else
20935   echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20937
20938         llvm_cv_linux_mixed=yes
20939 fi
20940
20941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942   ac_ext=c
20943 ac_cpp='$CPP $CPPFLAGS'
20944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20947
20948
20949 fi
20950 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20951 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20952
20953   if test "$llvm_cv_linux_mixed" = "yes"; then
20954     llvm_cv_target_arch="x86"
20955     ARCH="x86"
20956   fi
20957 fi
20958
20959
20960 for ac_func in __dso_handle
20961 do
20962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20966   echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968   cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20976 #define $ac_func innocuous_$ac_func
20977
20978 /* System header to define __stub macros and hopefully few prototypes,
20979     which can conflict with char $ac_func (); below.
20980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20981     <limits.h> exists even on freestanding compilers.  */
20982
20983 #ifdef __STDC__
20984 # include <limits.h>
20985 #else
20986 # include <assert.h>
20987 #endif
20988
20989 #undef $ac_func
20990
20991 /* Override any GCC internal prototype to avoid an error.
20992    Use char because int might match the return type of a GCC
20993    builtin and then its argument prototype would still apply.  */
20994 #ifdef __cplusplus
20995 extern "C"
20996 #endif
20997 char $ac_func ();
20998 /* The GNU C library defines this for functions which it implements
20999     to always fail with ENOSYS.  Some functions are actually named
21000     something starting with __ and the normal name is an alias.  */
21001 #if defined __stub_$ac_func || defined __stub___$ac_func
21002 choke me
21003 #endif
21004
21005 int
21006 main ()
21007 {
21008 return $ac_func ();
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 rm -f conftest.$ac_objext conftest$ac_exeext
21014 if { (ac_try="$ac_link"
21015 case "(($ac_try" in
21016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017   *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020   (eval "$ac_link") 2>conftest.er1
21021   ac_status=$?
21022   grep -v '^ *+' conftest.er1 >conftest.err
21023   rm -f conftest.er1
21024   cat conftest.err >&5
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); } &&
21027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21028   { (case "(($ac_try" in
21029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030   *) ac_try_echo=$ac_try;;
21031 esac
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033   (eval "$ac_try") 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; } &&
21037          { ac_try='test -s conftest$ac_exeext'
21038   { (case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043   (eval "$ac_try") 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; }; then
21047   eval "$as_ac_var=yes"
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052         eval "$as_ac_var=no"
21053 fi
21054
21055 rm -f core conftest.err conftest.$ac_objext \
21056       conftest$ac_exeext conftest.$ac_ext
21057 fi
21058 ac_res=`eval echo '${'$as_ac_var'}'`
21059                { echo "$as_me:$LINENO: result: $ac_res" >&5
21060 echo "${ECHO_T}$ac_res" >&6; }
21061 if test `eval echo '${'$as_ac_var'}'` = yes; then
21062   cat >>confdefs.h <<_ACEOF
21063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21064 _ACEOF
21065
21066 fi
21067 done
21068
21069
21070 SHLIBEXT=$libltdl_cv_shlibext
21071
21072
21073 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21074
21075
21076 if test "${prefix}" = "NONE" ; then
21077   prefix="/usr/local"
21078 fi
21079 eval LLVM_PREFIX="${prefix}";
21080 eval LLVM_BINDIR="${prefix}/bin";
21081 eval LLVM_LIBDIR="${prefix}/lib";
21082 eval LLVM_DATADIR="${prefix}/share/llvm";
21083 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21084 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21085 eval LLVM_INCLUDEDIR="${prefix}/include";
21086 eval LLVM_INFODIR="${prefix}/info";
21087 eval LLVM_MANDIR="${prefix}/man";
21088 LLVM_CONFIGTIME=`date`
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21101   LLVM_CONFIGTIME="(timestamp not enabled)"
21102 fi
21103
21104
21105 cat >>confdefs.h <<_ACEOF
21106 #define LLVM_PREFIX "$LLVM_PREFIX"
21107 _ACEOF
21108
21109
21110 cat >>confdefs.h <<_ACEOF
21111 #define LLVM_BINDIR "$LLVM_BINDIR"
21112 _ACEOF
21113
21114
21115 cat >>confdefs.h <<_ACEOF
21116 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21117 _ACEOF
21118
21119
21120 cat >>confdefs.h <<_ACEOF
21121 #define LLVM_DATADIR "$LLVM_DATADIR"
21122 _ACEOF
21123
21124
21125 cat >>confdefs.h <<_ACEOF
21126 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21127 _ACEOF
21128
21129
21130 cat >>confdefs.h <<_ACEOF
21131 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21132 _ACEOF
21133
21134
21135 cat >>confdefs.h <<_ACEOF
21136 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21137 _ACEOF
21138
21139
21140 cat >>confdefs.h <<_ACEOF
21141 #define LLVM_INFODIR "$LLVM_INFODIR"
21142 _ACEOF
21143
21144
21145 cat >>confdefs.h <<_ACEOF
21146 #define LLVM_MANDIR "$LLVM_MANDIR"
21147 _ACEOF
21148
21149
21150 cat >>confdefs.h <<_ACEOF
21151 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21152 _ACEOF
21153
21154
21155 cat >>confdefs.h <<_ACEOF
21156 #define LLVM_HOSTTRIPLE "$host"
21157 _ACEOF
21158
21159
21160 cat >>confdefs.h <<_ACEOF
21161 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21162 _ACEOF
21163
21164
21165 if test "$BINDINGS_TO_BUILD" = auto ; then
21166   BINDINGS_TO_BUILD=""
21167   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21168     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21169   fi
21170 fi
21171 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21172
21173
21174 ALL_BINDINGS=ocaml
21175
21176
21177 binding_prereqs_failed=0
21178 for a_binding in $BINDINGS_TO_BUILD ; do
21179   case "$a_binding" in
21180   ocaml)
21181     if test "x$OCAMLC" = x ; then
21182       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21183 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21184       binding_prereqs_failed=1
21185     fi
21186     if test "x$OCAMLDEP" = x ; then
21187       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21188 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21189       binding_prereqs_failed=1
21190     fi
21191     if test "x$OCAMLOPT" = x ; then
21192       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21193 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21194           fi
21195     if test "x$with_ocaml_libdir" != xauto ; then
21196       OCAML_LIBDIR=$with_ocaml_libdir
21197
21198     else
21199       ocaml_stdlib="`"$OCAMLC" -where`"
21200       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21201       then
21202         # ocaml stdlib is beneath our prefix; use stdlib
21203         OCAML_LIBDIR=$ocaml_stdlib
21204
21205       else
21206         # ocaml stdlib is outside our prefix; use libdir/ocaml
21207         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21208
21209       fi
21210     fi
21211     ;;
21212   esac
21213 done
21214 if test "$binding_prereqs_failed" = 1 ; then
21215   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21216 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21217    { (exit 1); exit 1; }; }
21218 fi
21219
21220 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21221 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21222 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21223   echo $ECHO_N "(cached) $ECHO_C" >&6
21224 else
21225    ac_ext=cpp
21226 ac_cpp='$CXXCPP $CPPFLAGS'
21227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21230
21231   oldcxxflags="$CXXFLAGS"
21232   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21233   cat >conftest.$ac_ext <<_ACEOF
21234 /* confdefs.h.  */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h.  */
21239 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21240 int
21241 main ()
21242 {
21243 X<int>().f();
21244   ;
21245   return 0;
21246 }
21247 _ACEOF
21248 rm -f conftest.$ac_objext
21249 if { (ac_try="$ac_compile"
21250 case "(($ac_try" in
21251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252   *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255   (eval "$ac_compile") 2>conftest.er1
21256   ac_status=$?
21257   grep -v '^ *+' conftest.er1 >conftest.err
21258   rm -f conftest.er1
21259   cat conftest.err >&5
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); } &&
21262          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21263   { (case "(($ac_try" in
21264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265   *) ac_try_echo=$ac_try;;
21266 esac
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268   (eval "$ac_try") 2>&5
21269   ac_status=$?
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); }; } &&
21272          { ac_try='test -s conftest.$ac_objext'
21273   { (case "(($ac_try" in
21274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275   *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278   (eval "$ac_try") 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); }; }; then
21282   llvm_cv_cxx_visibility_inlines_hidden=yes
21283 else
21284   echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287         llvm_cv_cxx_visibility_inlines_hidden=no
21288 fi
21289
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291   CXXFLAGS="$oldcxxflags"
21292   ac_ext=c
21293 ac_cpp='$CPP $CPPFLAGS'
21294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21297
21298
21299 fi
21300 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21301 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21302 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21303   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21304
21305 else
21306   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21307
21308 fi
21309
21310
21311 if test "$llvm_cv_link_use_r" = "yes" ; then
21312   RPATH="-Wl,-R"
21313 else
21314   RPATH="-Wl,-rpath"
21315 fi
21316
21317
21318 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21319   RDYNAMIC="-Wl,-export-dynamic"
21320 else
21321   RDYNAMIC=""
21322 fi
21323
21324
21325
21326 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21327
21328
21329
21330
21331
21332
21333 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21334
21335 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21336
21337 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21338
21339 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21340
21341 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21342
21343
21344 ac_config_files="$ac_config_files Makefile.config"
21345
21346
21347 ac_config_files="$ac_config_files llvm.spec"
21348
21349
21350 ac_config_files="$ac_config_files docs/doxygen.cfg"
21351
21352
21353 if test "${clang_src_root}" = ""; then
21354   clang_src_root="$srcdir/tools/clang"
21355 fi
21356 if test -f ${clang_src_root}/README.txt; then
21357     configh="include/clang/Config/config.h"
21358   doxy="docs/doxygen.cfg"
21359   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21360
21361   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21362
21363 fi
21364
21365 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21366
21367
21368 ac_config_commands="$ac_config_commands setup"
21369
21370 ac_config_commands="$ac_config_commands Makefile"
21371
21372
21373 ac_config_commands="$ac_config_commands Makefile.common"
21374
21375
21376 ac_config_commands="$ac_config_commands examples/Makefile"
21377
21378
21379 ac_config_commands="$ac_config_commands lib/Makefile"
21380
21381
21382 ac_config_commands="$ac_config_commands runtime/Makefile"
21383
21384
21385 ac_config_commands="$ac_config_commands test/Makefile"
21386
21387
21388 ac_config_commands="$ac_config_commands test/Makefile.tests"
21389
21390
21391 ac_config_commands="$ac_config_commands unittests/Makefile"
21392
21393
21394 ac_config_commands="$ac_config_commands tools/Makefile"
21395
21396
21397 ac_config_commands="$ac_config_commands utils/Makefile"
21398
21399
21400 ac_config_commands="$ac_config_commands projects/Makefile"
21401
21402
21403 ac_config_commands="$ac_config_commands bindings/Makefile"
21404
21405
21406 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21407
21408
21409
21410 cat >confcache <<\_ACEOF
21411 # This file is a shell script that caches the results of configure
21412 # tests run on this system so they can be shared between configure
21413 # scripts and configure runs, see configure's option --config-cache.
21414 # It is not useful on other systems.  If it contains results you don't
21415 # want to keep, you may remove or edit it.
21416 #
21417 # config.status only pays attention to the cache file if you give it
21418 # the --recheck option to rerun configure.
21419 #
21420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21422 # following values.
21423
21424 _ACEOF
21425
21426 # The following way of writing the cache mishandles newlines in values,
21427 # but we know of no workaround that is simple, portable, and efficient.
21428 # So, we kill variables containing newlines.
21429 # Ultrix sh set writes to stderr and can't be redirected directly,
21430 # and sets the high bit in the cache file unless we assign to the vars.
21431 (
21432   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21433     eval ac_val=\$$ac_var
21434     case $ac_val in #(
21435     *${as_nl}*)
21436       case $ac_var in #(
21437       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21438 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21439       esac
21440       case $ac_var in #(
21441       _ | IFS | as_nl) ;; #(
21442       *) $as_unset $ac_var ;;
21443       esac ;;
21444     esac
21445   done
21446
21447   (set) 2>&1 |
21448     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21449     *${as_nl}ac_space=\ *)
21450       # `set' does not quote correctly, so add quotes (double-quote
21451       # substitution turns \\\\ into \\, and sed turns \\ into \).
21452       sed -n \
21453         "s/'/'\\\\''/g;
21454           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21455       ;; #(
21456     *)
21457       # `set' quotes correctly as required by POSIX, so do not add quotes.
21458       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21459       ;;
21460     esac |
21461     sort
21462 ) |
21463   sed '
21464      /^ac_cv_env_/b end
21465      t clear
21466      :clear
21467      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21468      t end
21469      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21470      :end' >>confcache
21471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21472   if test -w "$cache_file"; then
21473     test "x$cache_file" != "x/dev/null" &&
21474       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21475 echo "$as_me: updating cache $cache_file" >&6;}
21476     cat confcache >$cache_file
21477   else
21478     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21479 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21480   fi
21481 fi
21482 rm -f confcache
21483
21484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21485 # Let make expand exec_prefix.
21486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21487
21488 DEFS=-DHAVE_CONFIG_H
21489
21490 ac_libobjs=
21491 ac_ltlibobjs=
21492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21493   # 1. Remove the extension, and $U if already installed.
21494   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21495   ac_i=`echo "$ac_i" | sed "$ac_script"`
21496   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21497   #    will be set to the directory where LIBOBJS objects are built.
21498   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21499   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21500 done
21501 LIBOBJS=$ac_libobjs
21502
21503 LTLIBOBJS=$ac_ltlibobjs
21504
21505
21506 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21507   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21508 Usually this means the macro was only invoked conditionally." >&5
21509 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21510 Usually this means the macro was only invoked conditionally." >&2;}
21511    { (exit 1); exit 1; }; }
21512 fi
21513 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21514   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21515 Usually this means the macro was only invoked conditionally." >&5
21516 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21517 Usually this means the macro was only invoked conditionally." >&2;}
21518    { (exit 1); exit 1; }; }
21519 fi
21520
21521 : ${CONFIG_STATUS=./config.status}
21522 ac_clean_files_save=$ac_clean_files
21523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21526 cat >$CONFIG_STATUS <<_ACEOF
21527 #! $SHELL
21528 # Generated by $as_me.
21529 # Run this file to recreate the current configuration.
21530 # Compiler output produced by configure, useful for debugging
21531 # configure, is in config.log if it exists.
21532
21533 debug=false
21534 ac_cs_recheck=false
21535 ac_cs_silent=false
21536 SHELL=\${CONFIG_SHELL-$SHELL}
21537 _ACEOF
21538
21539 cat >>$CONFIG_STATUS <<\_ACEOF
21540 ## --------------------- ##
21541 ## M4sh Initialization.  ##
21542 ## --------------------- ##
21543
21544 # Be Bourne compatible
21545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21546   emulate sh
21547   NULLCMD=:
21548   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21549   # is contrary to our usage.  Disable this feature.
21550   alias -g '${1+"$@"}'='"$@"'
21551   setopt NO_GLOB_SUBST
21552 else
21553   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21554 fi
21555 BIN_SH=xpg4; export BIN_SH # for Tru64
21556 DUALCASE=1; export DUALCASE # for MKS sh
21557
21558
21559 # PATH needs CR
21560 # Avoid depending upon Character Ranges.
21561 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21562 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21563 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21564 as_cr_digits='0123456789'
21565 as_cr_alnum=$as_cr_Letters$as_cr_digits
21566
21567 # The user is always right.
21568 if test "${PATH_SEPARATOR+set}" != set; then
21569   echo "#! /bin/sh" >conf$$.sh
21570   echo  "exit 0"   >>conf$$.sh
21571   chmod +x conf$$.sh
21572   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21573     PATH_SEPARATOR=';'
21574   else
21575     PATH_SEPARATOR=:
21576   fi
21577   rm -f conf$$.sh
21578 fi
21579
21580 # Support unset when possible.
21581 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21582   as_unset=unset
21583 else
21584   as_unset=false
21585 fi
21586
21587
21588 # IFS
21589 # We need space, tab and new line, in precisely that order.  Quoting is
21590 # there to prevent editors from complaining about space-tab.
21591 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21592 # splitting by setting IFS to empty value.)
21593 as_nl='
21594 '
21595 IFS=" ""        $as_nl"
21596
21597 # Find who we are.  Look in the path if we contain no directory separator.
21598 case $0 in
21599   *[\\/]* ) as_myself=$0 ;;
21600   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21601 for as_dir in $PATH
21602 do
21603   IFS=$as_save_IFS
21604   test -z "$as_dir" && as_dir=.
21605   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21606 done
21607 IFS=$as_save_IFS
21608
21609      ;;
21610 esac
21611 # We did not find ourselves, most probably we were run as `sh COMMAND'
21612 # in which case we are not to be found in the path.
21613 if test "x$as_myself" = x; then
21614   as_myself=$0
21615 fi
21616 if test ! -f "$as_myself"; then
21617   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21618   { (exit 1); exit 1; }
21619 fi
21620
21621 # Work around bugs in pre-3.0 UWIN ksh.
21622 for as_var in ENV MAIL MAILPATH
21623 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21624 done
21625 PS1='$ '
21626 PS2='> '
21627 PS4='+ '
21628
21629 # NLS nuisances.
21630 for as_var in \
21631   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21632   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21633   LC_TELEPHONE LC_TIME
21634 do
21635   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21636     eval $as_var=C; export $as_var
21637   else
21638     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21639   fi
21640 done
21641
21642 # Required to use basename.
21643 if expr a : '\(a\)' >/dev/null 2>&1 &&
21644    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21645   as_expr=expr
21646 else
21647   as_expr=false
21648 fi
21649
21650 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21651   as_basename=basename
21652 else
21653   as_basename=false
21654 fi
21655
21656
21657 # Name of the executable.
21658 as_me=`$as_basename -- "$0" ||
21659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21660          X"$0" : 'X\(//\)$' \| \
21661          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21662 echo X/"$0" |
21663     sed '/^.*\/\([^/][^/]*\)\/*$/{
21664             s//\1/
21665             q
21666           }
21667           /^X\/\(\/\/\)$/{
21668             s//\1/
21669             q
21670           }
21671           /^X\/\(\/\).*/{
21672             s//\1/
21673             q
21674           }
21675           s/.*/./; q'`
21676
21677 # CDPATH.
21678 $as_unset CDPATH
21679
21680
21681
21682   as_lineno_1=$LINENO
21683   as_lineno_2=$LINENO
21684   test "x$as_lineno_1" != "x$as_lineno_2" &&
21685   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21686
21687   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21688   # uniformly replaced by the line number.  The first 'sed' inserts a
21689   # line-number line after each line using $LINENO; the second 'sed'
21690   # does the real work.  The second script uses 'N' to pair each
21691   # line-number line with the line containing $LINENO, and appends
21692   # trailing '-' during substitution so that $LINENO is not a special
21693   # case at line end.
21694   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21695   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21696   # E. McMahon (1931-1989) for sed's syntax.  :-)
21697   sed -n '
21698     p
21699     /[$]LINENO/=
21700   ' <$as_myself |
21701     sed '
21702       s/[$]LINENO.*/&-/
21703       t lineno
21704       b
21705       :lineno
21706       N
21707       :loop
21708       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21709       t loop
21710       s/-\n.*//
21711     ' >$as_me.lineno &&
21712   chmod +x "$as_me.lineno" ||
21713     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21714    { (exit 1); exit 1; }; }
21715
21716   # Don't try to exec as it changes $[0], causing all sort of problems
21717   # (the dirname of $[0] is not the place where we might find the
21718   # original and so on.  Autoconf is especially sensitive to this).
21719   . "./$as_me.lineno"
21720   # Exit status is that of the last command.
21721   exit
21722 }
21723
21724
21725 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21726   as_dirname=dirname
21727 else
21728   as_dirname=false
21729 fi
21730
21731 ECHO_C= ECHO_N= ECHO_T=
21732 case `echo -n x` in
21733 -n*)
21734   case `echo 'x\c'` in
21735   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21736   *)   ECHO_C='\c';;
21737   esac;;
21738 *)
21739   ECHO_N='-n';;
21740 esac
21741
21742 if expr a : '\(a\)' >/dev/null 2>&1 &&
21743    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21744   as_expr=expr
21745 else
21746   as_expr=false
21747 fi
21748
21749 rm -f conf$$ conf$$.exe conf$$.file
21750 if test -d conf$$.dir; then
21751   rm -f conf$$.dir/conf$$.file
21752 else
21753   rm -f conf$$.dir
21754   mkdir conf$$.dir
21755 fi
21756 echo >conf$$.file
21757 if ln -s conf$$.file conf$$ 2>/dev/null; then
21758   as_ln_s='ln -s'
21759   # ... but there are two gotchas:
21760   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21761   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21762   # In both cases, we have to default to `cp -p'.
21763   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21764     as_ln_s='cp -p'
21765 elif ln conf$$.file conf$$ 2>/dev/null; then
21766   as_ln_s=ln
21767 else
21768   as_ln_s='cp -p'
21769 fi
21770 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21771 rmdir conf$$.dir 2>/dev/null
21772
21773 if mkdir -p . 2>/dev/null; then
21774   as_mkdir_p=:
21775 else
21776   test -d ./-p && rmdir ./-p
21777   as_mkdir_p=false
21778 fi
21779
21780 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21781 # systems may use methods other than mode bits to determine executability.
21782 cat >conf$$.file <<_ASEOF
21783 #! /bin/sh
21784 exit 0
21785 _ASEOF
21786 chmod +x conf$$.file
21787 if test -x conf$$.file >/dev/null 2>&1; then
21788   as_executable_p="test -x"
21789 else
21790   as_executable_p=:
21791 fi
21792 rm -f conf$$.file
21793
21794 # Sed expression to map a string onto a valid CPP name.
21795 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21796
21797 # Sed expression to map a string onto a valid variable name.
21798 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21799
21800
21801 exec 6>&1
21802
21803 # Save the log message, to keep $[0] and so on meaningful, and to
21804 # report actual input values of CONFIG_FILES etc. instead of their
21805 # values after options handling.
21806 ac_log="
21807 This file was extended by LLVM $as_me 3.2svn, which was
21808 generated by GNU Autoconf 2.60.  Invocation command line was
21809
21810   CONFIG_FILES    = $CONFIG_FILES
21811   CONFIG_HEADERS  = $CONFIG_HEADERS
21812   CONFIG_LINKS    = $CONFIG_LINKS
21813   CONFIG_COMMANDS = $CONFIG_COMMANDS
21814   $ $0 $@
21815
21816 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21817 "
21818
21819 _ACEOF
21820
21821 cat >>$CONFIG_STATUS <<_ACEOF
21822 # Files that config.status was made for.
21823 config_files="$ac_config_files"
21824 config_headers="$ac_config_headers"
21825 config_commands="$ac_config_commands"
21826
21827 _ACEOF
21828
21829 cat >>$CONFIG_STATUS <<\_ACEOF
21830 ac_cs_usage="\
21831 \`$as_me' instantiates files from templates according to the
21832 current configuration.
21833
21834 Usage: $0 [OPTIONS] [FILE]...
21835
21836   -h, --help       print this help, then exit
21837   -V, --version    print version number, then exit
21838   -q, --quiet      do not print progress messages
21839   -d, --debug      don't remove temporary files
21840       --recheck    update $as_me by reconfiguring in the same conditions
21841   --file=FILE[:TEMPLATE]
21842                    instantiate the configuration file FILE
21843   --header=FILE[:TEMPLATE]
21844                    instantiate the configuration header FILE
21845
21846 Configuration files:
21847 $config_files
21848
21849 Configuration headers:
21850 $config_headers
21851
21852 Configuration commands:
21853 $config_commands
21854
21855 Report bugs to <bug-autoconf@gnu.org>."
21856
21857 _ACEOF
21858 cat >>$CONFIG_STATUS <<_ACEOF
21859 ac_cs_version="\\
21860 LLVM config.status 3.2svn
21861 configured by $0, generated by GNU Autoconf 2.60,
21862   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21863
21864 Copyright (C) 2006 Free Software Foundation, Inc.
21865 This config.status script is free software; the Free Software Foundation
21866 gives unlimited permission to copy, distribute and modify it."
21867
21868 ac_pwd='$ac_pwd'
21869 srcdir='$srcdir'
21870 INSTALL='$INSTALL'
21871 _ACEOF
21872
21873 cat >>$CONFIG_STATUS <<\_ACEOF
21874 # If no file are specified by the user, then we need to provide default
21875 # value.  By we need to know if files were specified by the user.
21876 ac_need_defaults=:
21877 while test $# != 0
21878 do
21879   case $1 in
21880   --*=*)
21881     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21882     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21883     ac_shift=:
21884     ;;
21885   *)
21886     ac_option=$1
21887     ac_optarg=$2
21888     ac_shift=shift
21889     ;;
21890   esac
21891
21892   case $ac_option in
21893   # Handling of the options.
21894   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21895     ac_cs_recheck=: ;;
21896   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21897     echo "$ac_cs_version"; exit ;;
21898   --debug | --debu | --deb | --de | --d | -d )
21899     debug=: ;;
21900   --file | --fil | --fi | --f )
21901     $ac_shift
21902     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21903     ac_need_defaults=false;;
21904   --header | --heade | --head | --hea )
21905     $ac_shift
21906     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21907     ac_need_defaults=false;;
21908   --he | --h)
21909     # Conflict between --help and --header
21910     { echo "$as_me: error: ambiguous option: $1
21911 Try \`$0 --help' for more information." >&2
21912    { (exit 1); exit 1; }; };;
21913   --help | --hel | -h )
21914     echo "$ac_cs_usage"; exit ;;
21915   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21916   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21917     ac_cs_silent=: ;;
21918
21919   # This is an error.
21920   -*) { echo "$as_me: error: unrecognized option: $1
21921 Try \`$0 --help' for more information." >&2
21922    { (exit 1); exit 1; }; } ;;
21923
21924   *) ac_config_targets="$ac_config_targets $1"
21925      ac_need_defaults=false ;;
21926
21927   esac
21928   shift
21929 done
21930
21931 ac_configure_extra_args=
21932
21933 if $ac_cs_silent; then
21934   exec 6>/dev/null
21935   ac_configure_extra_args="$ac_configure_extra_args --silent"
21936 fi
21937
21938 _ACEOF
21939 cat >>$CONFIG_STATUS <<_ACEOF
21940 if \$ac_cs_recheck; then
21941   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21942   CONFIG_SHELL=$SHELL
21943   export CONFIG_SHELL
21944   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21945 fi
21946
21947 _ACEOF
21948 cat >>$CONFIG_STATUS <<\_ACEOF
21949 exec 5>>config.log
21950 {
21951   echo
21952   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21953 ## Running $as_me. ##
21954 _ASBOX
21955   echo "$ac_log"
21956 } >&5
21957
21958 _ACEOF
21959 cat >>$CONFIG_STATUS <<_ACEOF
21960 #
21961 # INIT-COMMANDS
21962 #
21963 llvm_src="${srcdir}"
21964
21965 _ACEOF
21966
21967 cat >>$CONFIG_STATUS <<\_ACEOF
21968
21969 # Handling of arguments.
21970 for ac_config_target in $ac_config_targets
21971 do
21972   case $ac_config_target in
21973     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21974     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21975     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21976     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21977     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21978     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21979     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21980     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21981     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21982     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21983     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21984     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21985     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21986     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21987     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21988     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21989     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21990     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21991     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21992     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21993     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21994     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21995     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21996     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21997     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21998     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21999     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22000
22001   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22003    { (exit 1); exit 1; }; };;
22004   esac
22005 done
22006
22007
22008 # If the user did not use the arguments to specify the items to instantiate,
22009 # then the envvar interface is used.  Set only those that are not.
22010 # We use the long form for the default assignment because of an extremely
22011 # bizarre bug on SunOS 4.1.3.
22012 if $ac_need_defaults; then
22013   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22014   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22015   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22016 fi
22017
22018 # Have a temporary directory for convenience.  Make it in the build tree
22019 # simply because there is no reason against having it here, and in addition,
22020 # creating and moving files from /tmp can sometimes cause problems.
22021 # Hook for its removal unless debugging.
22022 # Note that there is a small window in which the directory will not be cleaned:
22023 # after its creation but before its name has been assigned to `$tmp'.
22024 $debug ||
22025 {
22026   tmp=
22027   trap 'exit_status=$?
22028   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22029 ' 0
22030   trap '{ (exit 1); exit 1; }' 1 2 13 15
22031 }
22032 # Create a (secure) tmp directory for tmp files.
22033
22034 {
22035   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22036   test -n "$tmp" && test -d "$tmp"
22037 }  ||
22038 {
22039   tmp=./conf$$-$RANDOM
22040   (umask 077 && mkdir "$tmp")
22041 } ||
22042 {
22043    echo "$me: cannot create a temporary directory in ." >&2
22044    { (exit 1); exit 1; }
22045 }
22046
22047 #
22048 # Set up the sed scripts for CONFIG_FILES section.
22049 #
22050
22051 # No need to generate the scripts if there are no CONFIG_FILES.
22052 # This happens for instance when ./config.status config.h
22053 if test -n "$CONFIG_FILES"; then
22054
22055 _ACEOF
22056
22057
22058
22059 ac_delim='%!_!# '
22060 for ac_last_try in false false false false false :; do
22061   cat >conf$$subs.sed <<_ACEOF
22062 SHELL!$SHELL$ac_delim
22063 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22064 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22065 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22066 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22067 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22068 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22069 exec_prefix!$exec_prefix$ac_delim
22070 prefix!$prefix$ac_delim
22071 program_transform_name!$program_transform_name$ac_delim
22072 bindir!$bindir$ac_delim
22073 sbindir!$sbindir$ac_delim
22074 libexecdir!$libexecdir$ac_delim
22075 datarootdir!$datarootdir$ac_delim
22076 datadir!$datadir$ac_delim
22077 sysconfdir!$sysconfdir$ac_delim
22078 sharedstatedir!$sharedstatedir$ac_delim
22079 localstatedir!$localstatedir$ac_delim
22080 includedir!$includedir$ac_delim
22081 oldincludedir!$oldincludedir$ac_delim
22082 docdir!$docdir$ac_delim
22083 infodir!$infodir$ac_delim
22084 htmldir!$htmldir$ac_delim
22085 dvidir!$dvidir$ac_delim
22086 pdfdir!$pdfdir$ac_delim
22087 psdir!$psdir$ac_delim
22088 libdir!$libdir$ac_delim
22089 localedir!$localedir$ac_delim
22090 mandir!$mandir$ac_delim
22091 DEFS!$DEFS$ac_delim
22092 ECHO_C!$ECHO_C$ac_delim
22093 ECHO_N!$ECHO_N$ac_delim
22094 ECHO_T!$ECHO_T$ac_delim
22095 LIBS!$LIBS$ac_delim
22096 build_alias!$build_alias$ac_delim
22097 host_alias!$host_alias$ac_delim
22098 target_alias!$target_alias$ac_delim
22099 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22100 CC!$CC$ac_delim
22101 CFLAGS!$CFLAGS$ac_delim
22102 LDFLAGS!$LDFLAGS$ac_delim
22103 CPPFLAGS!$CPPFLAGS$ac_delim
22104 ac_ct_CC!$ac_ct_CC$ac_delim
22105 EXEEXT!$EXEEXT$ac_delim
22106 OBJEXT!$OBJEXT$ac_delim
22107 CXX!$CXX$ac_delim
22108 CXXFLAGS!$CXXFLAGS$ac_delim
22109 ac_ct_CXX!$ac_ct_CXX$ac_delim
22110 CPP!$CPP$ac_delim
22111 subdirs!$subdirs$ac_delim
22112 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22113 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22114 build!$build$ac_delim
22115 build_cpu!$build_cpu$ac_delim
22116 build_vendor!$build_vendor$ac_delim
22117 build_os!$build_os$ac_delim
22118 host!$host$ac_delim
22119 host_cpu!$host_cpu$ac_delim
22120 host_vendor!$host_vendor$ac_delim
22121 host_os!$host_os$ac_delim
22122 target!$target$ac_delim
22123 target_cpu!$target_cpu$ac_delim
22124 target_vendor!$target_vendor$ac_delim
22125 target_os!$target_os$ac_delim
22126 OS!$OS$ac_delim
22127 HOST_OS!$HOST_OS$ac_delim
22128 TARGET_OS!$TARGET_OS$ac_delim
22129 LINKALL!$LINKALL$ac_delim
22130 NOLINKALL!$NOLINKALL$ac_delim
22131 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22132 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22133 ARCH!$ARCH$ac_delim
22134 HOST_ARCH!$HOST_ARCH$ac_delim
22135 ENDIAN!$ENDIAN$ac_delim
22136 GREP!$GREP$ac_delim
22137 EGREP!$EGREP$ac_delim
22138 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22139 BUILD_CC!$BUILD_CC$ac_delim
22140 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22141 BUILD_CXX!$BUILD_CXX$ac_delim
22142 CVSBUILD!$CVSBUILD$ac_delim
22143 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22144 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22145 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22146 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22147 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22148 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22149 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22150 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22151 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22152 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22153 JIT!$JIT$ac_delim
22154 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22155 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22156 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22157 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22158 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22159 _ACEOF
22160
22161   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22162     break
22163   elif $ac_last_try; then
22164     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22165 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22166    { (exit 1); exit 1; }; }
22167   else
22168     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22169   fi
22170 done
22171
22172 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22173 if test -n "$ac_eof"; then
22174   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22175   ac_eof=`expr $ac_eof + 1`
22176 fi
22177
22178 cat >>$CONFIG_STATUS <<_ACEOF
22179 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22181 _ACEOF
22182 sed '
22183 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22184 s/^/s,@/; s/!/@,|#_!!_#|/
22185 :n
22186 t n
22187 s/'"$ac_delim"'$/,g/; t
22188 s/$/\\/; p
22189 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22190 ' >>$CONFIG_STATUS <conf$$subs.sed
22191 rm -f conf$$subs.sed
22192 cat >>$CONFIG_STATUS <<_ACEOF
22193 CEOF$ac_eof
22194 _ACEOF
22195
22196
22197 ac_delim='%!_!# '
22198 for ac_last_try in false false false false false :; do
22199   cat >conf$$subs.sed <<_ACEOF
22200 ENABLE_PIC!$ENABLE_PIC$ac_delim
22201 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22202 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22203 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22204 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22205 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22206 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22207 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22208 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22209 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22210 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22211 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22212 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22213 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22214 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22215 NM!$NM$ac_delim
22216 ifGNUmake!$ifGNUmake$ac_delim
22217 LN_S!$LN_S$ac_delim
22218 CMP!$CMP$ac_delim
22219 CP!$CP$ac_delim
22220 DATE!$DATE$ac_delim
22221 FIND!$FIND$ac_delim
22222 MKDIR!$MKDIR$ac_delim
22223 MV!$MV$ac_delim
22224 RANLIB!$RANLIB$ac_delim
22225 AR!$AR$ac_delim
22226 RM!$RM$ac_delim
22227 SED!$SED$ac_delim
22228 TAR!$TAR$ac_delim
22229 BINPWD!$BINPWD$ac_delim
22230 GRAPHVIZ!$GRAPHVIZ$ac_delim
22231 DOT!$DOT$ac_delim
22232 FDP!$FDP$ac_delim
22233 NEATO!$NEATO$ac_delim
22234 TWOPI!$TWOPI$ac_delim
22235 CIRCO!$CIRCO$ac_delim
22236 GV!$GV$ac_delim
22237 DOTTY!$DOTTY$ac_delim
22238 XDOT_PY!$XDOT_PY$ac_delim
22239 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22240 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22241 INSTALL_DATA!$INSTALL_DATA$ac_delim
22242 BZIP2!$BZIP2$ac_delim
22243 CAT!$CAT$ac_delim
22244 DOXYGEN!$DOXYGEN$ac_delim
22245 GROFF!$GROFF$ac_delim
22246 GZIPBIN!$GZIPBIN$ac_delim
22247 PDFROFF!$PDFROFF$ac_delim
22248 ZIP!$ZIP$ac_delim
22249 OCAMLC!$OCAMLC$ac_delim
22250 OCAMLOPT!$OCAMLOPT$ac_delim
22251 OCAMLDEP!$OCAMLDEP$ac_delim
22252 OCAMLDOC!$OCAMLDOC$ac_delim
22253 GAS!$GAS$ac_delim
22254 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22255 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22256 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22257 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22258 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22259 LIBADD_DL!$LIBADD_DL$ac_delim
22260 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22261 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22262 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22263 USE_UDIS86!$USE_UDIS86$ac_delim
22264 USE_OPROFILE!$USE_OPROFILE$ac_delim
22265 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22266 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22267 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22268 XML2CONFIG!$XML2CONFIG$ac_delim
22269 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22270 LIBXML2_INC!$LIBXML2_INC$ac_delim
22271 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22272 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22273 MMAP_FILE!$MMAP_FILE$ac_delim
22274 SHLIBEXT!$SHLIBEXT$ac_delim
22275 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22276 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22277 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22278 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22279 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22280 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22281 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22282 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22283 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22284 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22285 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22286 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22287 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22288 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22289 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22290 RPATH!$RPATH$ac_delim
22291 RDYNAMIC!$RDYNAMIC$ac_delim
22292 LIBOBJS!$LIBOBJS$ac_delim
22293 LTLIBOBJS!$LTLIBOBJS$ac_delim
22294 _ACEOF
22295
22296   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
22297     break
22298   elif $ac_last_try; then
22299     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22300 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22301    { (exit 1); exit 1; }; }
22302   else
22303     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22304   fi
22305 done
22306
22307 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22308 if test -n "$ac_eof"; then
22309   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22310   ac_eof=`expr $ac_eof + 1`
22311 fi
22312
22313 cat >>$CONFIG_STATUS <<_ACEOF
22314 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22316 _ACEOF
22317 sed '
22318 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22319 s/^/s,@/; s/!/@,|#_!!_#|/
22320 :n
22321 t n
22322 s/'"$ac_delim"'$/,g/; t
22323 s/$/\\/; p
22324 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22325 ' >>$CONFIG_STATUS <conf$$subs.sed
22326 rm -f conf$$subs.sed
22327 cat >>$CONFIG_STATUS <<_ACEOF
22328 :end
22329 s/|#_!!_#|//g
22330 CEOF$ac_eof
22331 _ACEOF
22332
22333
22334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22336 # trailing colons and then remove the whole line if VPATH becomes empty
22337 # (actually we leave an empty line to preserve line numbers).
22338 if test "x$srcdir" = x.; then
22339   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22340 s/:*\$(srcdir):*/:/
22341 s/:*\${srcdir}:*/:/
22342 s/:*@srcdir@:*/:/
22343 s/^\([^=]*=[     ]*\):*/\1/
22344 s/:*$//
22345 s/^[^=]*=[       ]*$//
22346 }'
22347 fi
22348
22349 cat >>$CONFIG_STATUS <<\_ACEOF
22350 fi # test -n "$CONFIG_FILES"
22351
22352
22353 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22354 do
22355   case $ac_tag in
22356   :[FHLC]) ac_mode=$ac_tag; continue;;
22357   esac
22358   case $ac_mode$ac_tag in
22359   :[FHL]*:*);;
22360   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22361 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22362    { (exit 1); exit 1; }; };;
22363   :[FH]-) ac_tag=-:-;;
22364   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22365   esac
22366   ac_save_IFS=$IFS
22367   IFS=:
22368   set x $ac_tag
22369   IFS=$ac_save_IFS
22370   shift
22371   ac_file=$1
22372   shift
22373
22374   case $ac_mode in
22375   :L) ac_source=$1;;
22376   :[FH])
22377     ac_file_inputs=
22378     for ac_f
22379     do
22380       case $ac_f in
22381       -) ac_f="$tmp/stdin";;
22382       *) # Look for the file first in the build tree, then in the source tree
22383          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22384          # because $ac_f cannot contain `:'.
22385          test -f "$ac_f" ||
22386            case $ac_f in
22387            [\\/$]*) false;;
22388            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22389            esac ||
22390            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22391 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22392    { (exit 1); exit 1; }; };;
22393       esac
22394       ac_file_inputs="$ac_file_inputs $ac_f"
22395     done
22396
22397     # Let's still pretend it is `configure' which instantiates (i.e., don't
22398     # use $as_me), people would be surprised to read:
22399     #    /* config.h.  Generated by config.status.  */
22400     configure_input="Generated from "`IFS=:
22401           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22402     if test x"$ac_file" != x-; then
22403       configure_input="$ac_file.  $configure_input"
22404       { echo "$as_me:$LINENO: creating $ac_file" >&5
22405 echo "$as_me: creating $ac_file" >&6;}
22406     fi
22407
22408     case $ac_tag in
22409     *:-:* | *:-) cat >"$tmp/stdin";;
22410     esac
22411     ;;
22412   esac
22413
22414   ac_dir=`$as_dirname -- "$ac_file" ||
22415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22416          X"$ac_file" : 'X\(//\)[^/]' \| \
22417          X"$ac_file" : 'X\(//\)$' \| \
22418          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22419 echo X"$ac_file" |
22420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22421             s//\1/
22422             q
22423           }
22424           /^X\(\/\/\)[^/].*/{
22425             s//\1/
22426             q
22427           }
22428           /^X\(\/\/\)$/{
22429             s//\1/
22430             q
22431           }
22432           /^X\(\/\).*/{
22433             s//\1/
22434             q
22435           }
22436           s/.*/./; q'`
22437   { as_dir="$ac_dir"
22438   case $as_dir in #(
22439   -*) as_dir=./$as_dir;;
22440   esac
22441   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22442     as_dirs=
22443     while :; do
22444       case $as_dir in #(
22445       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22446       *) as_qdir=$as_dir;;
22447       esac
22448       as_dirs="'$as_qdir' $as_dirs"
22449       as_dir=`$as_dirname -- "$as_dir" ||
22450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451          X"$as_dir" : 'X\(//\)[^/]' \| \
22452          X"$as_dir" : 'X\(//\)$' \| \
22453          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22454 echo X"$as_dir" |
22455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22456             s//\1/
22457             q
22458           }
22459           /^X\(\/\/\)[^/].*/{
22460             s//\1/
22461             q
22462           }
22463           /^X\(\/\/\)$/{
22464             s//\1/
22465             q
22466           }
22467           /^X\(\/\).*/{
22468             s//\1/
22469             q
22470           }
22471           s/.*/./; q'`
22472       test -d "$as_dir" && break
22473     done
22474     test -z "$as_dirs" || eval "mkdir $as_dirs"
22475   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22476 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22477    { (exit 1); exit 1; }; }; }
22478   ac_builddir=.
22479
22480 case "$ac_dir" in
22481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22482 *)
22483   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22484   # A ".." for each directory in $ac_dir_suffix.
22485   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22486   case $ac_top_builddir_sub in
22487   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22488   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22489   esac ;;
22490 esac
22491 ac_abs_top_builddir=$ac_pwd
22492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22493 # for backward compatibility:
22494 ac_top_builddir=$ac_top_build_prefix
22495
22496 case $srcdir in
22497   .)  # We are building in place.
22498     ac_srcdir=.
22499     ac_top_srcdir=$ac_top_builddir_sub
22500     ac_abs_top_srcdir=$ac_pwd ;;
22501   [\\/]* | ?:[\\/]* )  # Absolute name.
22502     ac_srcdir=$srcdir$ac_dir_suffix;
22503     ac_top_srcdir=$srcdir
22504     ac_abs_top_srcdir=$srcdir ;;
22505   *) # Relative name.
22506     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22507     ac_top_srcdir=$ac_top_build_prefix$srcdir
22508     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22509 esac
22510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22511
22512
22513   case $ac_mode in
22514   :F)
22515   #
22516   # CONFIG_FILE
22517   #
22518
22519   case $INSTALL in
22520   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22521   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22522   esac
22523 _ACEOF
22524
22525 cat >>$CONFIG_STATUS <<\_ACEOF
22526 # If the template does not know about datarootdir, expand it.
22527 # FIXME: This hack should be removed a few years after 2.60.
22528 ac_datarootdir_hack=; ac_datarootdir_seen=
22529
22530 case `sed -n '/datarootdir/ {
22531   p
22532   q
22533 }
22534 /@datadir@/p
22535 /@docdir@/p
22536 /@infodir@/p
22537 /@localedir@/p
22538 /@mandir@/p
22539 ' $ac_file_inputs` in
22540 *datarootdir*) ac_datarootdir_seen=yes;;
22541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22542   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22543 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22544 _ACEOF
22545 cat >>$CONFIG_STATUS <<_ACEOF
22546   ac_datarootdir_hack='
22547   s&@datadir@&$datadir&g
22548   s&@docdir@&$docdir&g
22549   s&@infodir@&$infodir&g
22550   s&@localedir@&$localedir&g
22551   s&@mandir@&$mandir&g
22552     s&\\\${datarootdir}&$datarootdir&g' ;;
22553 esac
22554 _ACEOF
22555
22556 # Neutralize VPATH when `$srcdir' = `.'.
22557 # Shell code in configure.ac might set extrasub.
22558 # FIXME: do we really want to maintain this feature?
22559 cat >>$CONFIG_STATUS <<_ACEOF
22560   sed "$ac_vpsub
22561 $extrasub
22562 _ACEOF
22563 cat >>$CONFIG_STATUS <<\_ACEOF
22564 :t
22565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22566 s&@configure_input@&$configure_input&;t t
22567 s&@top_builddir@&$ac_top_builddir_sub&;t t
22568 s&@srcdir@&$ac_srcdir&;t t
22569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22570 s&@top_srcdir@&$ac_top_srcdir&;t t
22571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22572 s&@builddir@&$ac_builddir&;t t
22573 s&@abs_builddir@&$ac_abs_builddir&;t t
22574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22575 s&@INSTALL@&$ac_INSTALL&;t t
22576 $ac_datarootdir_hack
22577 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22578
22579 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22580   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22581   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22582   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22583 which seems to be undefined.  Please make sure it is defined." >&5
22584 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22585 which seems to be undefined.  Please make sure it is defined." >&2;}
22586
22587   rm -f "$tmp/stdin"
22588   case $ac_file in
22589   -) cat "$tmp/out"; rm -f "$tmp/out";;
22590   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22591   esac
22592  ;;
22593   :H)
22594   #
22595   # CONFIG_HEADER
22596   #
22597 _ACEOF
22598
22599 # Transform confdefs.h into a sed script `conftest.defines', that
22600 # substitutes the proper values into config.h.in to produce config.h.
22601 rm -f conftest.defines conftest.tail
22602 # First, append a space to every undef/define line, to ease matching.
22603 echo 's/$/ /' >conftest.defines
22604 # Then, protect against being on the right side of a sed subst, or in
22605 # an unquoted here document, in config.status.  If some macros were
22606 # called several times there might be several #defines for the same
22607 # symbol, which is useless.  But do not sort them, since the last
22608 # AC_DEFINE must be honored.
22609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22610 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22611 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22612 # PARAMS is the parameter list in the macro definition--in most cases, it's
22613 # just an empty string.
22614 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22615 ac_dB='\\)[      (].*,\\1define\\2'
22616 ac_dC=' '
22617 ac_dD=' ,'
22618
22619 uniq confdefs.h |
22620   sed -n '
22621         t rset
22622         :rset
22623         s/^[     ]*#[    ]*define[       ][      ]*//
22624         t ok
22625         d
22626         :ok
22627         s/[\\&,]/\\&/g
22628         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22629         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22630   ' >>conftest.defines
22631
22632 # Remove the space that was appended to ease matching.
22633 # Then replace #undef with comments.  This is necessary, for
22634 # example, in the case of _POSIX_SOURCE, which is predefined and required
22635 # on some systems where configure will not decide to define it.
22636 # (The regexp can be short, since the line contains either #define or #undef.)
22637 echo 's/ $//
22638 s,^[     #]*u.*,/* & */,' >>conftest.defines
22639
22640 # Break up conftest.defines:
22641 ac_max_sed_lines=50
22642
22643 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22644 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22645 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22646 # et cetera.
22647 ac_in='$ac_file_inputs'
22648 ac_out='"$tmp/out1"'
22649 ac_nxt='"$tmp/out2"'
22650
22651 while :
22652 do
22653   # Write a here document:
22654     cat >>$CONFIG_STATUS <<_ACEOF
22655     # First, check the format of the line:
22656     cat >"\$tmp/defines.sed" <<\\CEOF
22657 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22658 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22659 b
22660 :def
22661 _ACEOF
22662   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22663   echo 'CEOF
22664     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22665   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22666   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22667   grep . conftest.tail >/dev/null || break
22668   rm -f conftest.defines
22669   mv conftest.tail conftest.defines
22670 done
22671 rm -f conftest.defines conftest.tail
22672
22673 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22674 cat >>$CONFIG_STATUS <<\_ACEOF
22675   if test x"$ac_file" != x-; then
22676     echo "/* $configure_input  */" >"$tmp/config.h"
22677     cat "$ac_result" >>"$tmp/config.h"
22678     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22679       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22680 echo "$as_me: $ac_file is unchanged" >&6;}
22681     else
22682       rm -f $ac_file
22683       mv "$tmp/config.h" $ac_file
22684     fi
22685   else
22686     echo "/* $configure_input  */"
22687     cat "$ac_result"
22688   fi
22689   rm -f "$tmp/out12"
22690  ;;
22691
22692   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22693 echo "$as_me: executing $ac_file commands" >&6;}
22694  ;;
22695   esac
22696
22697
22698   case $ac_file$ac_mode in
22699     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22700    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22701     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22702    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22703     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22704    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22705     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22706    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22707     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22708    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22709     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22710    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22711     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22712    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22713     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22714    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22715     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22716    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22717     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22718    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22719     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22720    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22721     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22722    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22723     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22724    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22725
22726   esac
22727 done # for ac_tag
22728
22729
22730 { (exit 0); exit 0; }
22731 _ACEOF
22732 chmod +x $CONFIG_STATUS
22733 ac_clean_files=$ac_clean_files_save
22734
22735
22736 # configure is writing to config.log, and then calls config.status.
22737 # config.status does its own redirection, appending to config.log.
22738 # Unfortunately, on DOS this fails, as config.log is still kept open
22739 # by configure, so config.status won't be able to write to it; its
22740 # output is simply discarded.  So we exec the FD to /dev/null,
22741 # effectively closing config.log, so it can be properly (re)opened and
22742 # appended to by config.status.  When coming back to configure, we
22743 # need to make the FD available again.
22744 if test "$no_create" != yes; then
22745   ac_cs_success=:
22746   ac_config_status_args=
22747   test "$silent" = yes &&
22748     ac_config_status_args="$ac_config_status_args --quiet"
22749   exec 5>/dev/null
22750   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22751   exec 5>>config.log
22752   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22753   # would make configure fail if this is the last instruction.
22754   $ac_cs_success || { (exit 1); exit 1; }
22755 fi
22756
22757 #
22758 # CONFIG_SUBDIRS section.
22759 #
22760 if test "$no_recursion" != yes; then
22761
22762   # Remove --cache-file and --srcdir arguments so they do not pile up.
22763   ac_sub_configure_args=
22764   ac_prev=
22765   eval "set x $ac_configure_args"
22766   shift
22767   for ac_arg
22768   do
22769     if test -n "$ac_prev"; then
22770       ac_prev=
22771       continue
22772     fi
22773     case $ac_arg in
22774     -cache-file | --cache-file | --cache-fil | --cache-fi \
22775     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22776       ac_prev=cache_file ;;
22777     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22778     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22779     | --c=*)
22780       ;;
22781     --config-cache | -C)
22782       ;;
22783     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22784       ac_prev=srcdir ;;
22785     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22786       ;;
22787     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22788       ac_prev=prefix ;;
22789     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22790       ;;
22791     *)
22792       case $ac_arg in
22793       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22794       esac
22795       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22796     esac
22797   done
22798
22799   # Always prepend --prefix to ensure using the same prefix
22800   # in subdir configurations.
22801   ac_arg="--prefix=$prefix"
22802   case $ac_arg in
22803   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22804   esac
22805   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22806
22807   ac_popdir=`pwd`
22808   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22809
22810     # Do not complain, so a configure script can configure whichever
22811     # parts of a large source tree are present.
22812     test -d "$srcdir/$ac_dir" || continue
22813
22814     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22815     echo "$as_me:$LINENO: $ac_msg" >&5
22816     echo "$ac_msg" >&6
22817     { as_dir="$ac_dir"
22818   case $as_dir in #(
22819   -*) as_dir=./$as_dir;;
22820   esac
22821   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22822     as_dirs=
22823     while :; do
22824       case $as_dir in #(
22825       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22826       *) as_qdir=$as_dir;;
22827       esac
22828       as_dirs="'$as_qdir' $as_dirs"
22829       as_dir=`$as_dirname -- "$as_dir" ||
22830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22831          X"$as_dir" : 'X\(//\)[^/]' \| \
22832          X"$as_dir" : 'X\(//\)$' \| \
22833          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22834 echo X"$as_dir" |
22835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22836             s//\1/
22837             q
22838           }
22839           /^X\(\/\/\)[^/].*/{
22840             s//\1/
22841             q
22842           }
22843           /^X\(\/\/\)$/{
22844             s//\1/
22845             q
22846           }
22847           /^X\(\/\).*/{
22848             s//\1/
22849             q
22850           }
22851           s/.*/./; q'`
22852       test -d "$as_dir" && break
22853     done
22854     test -z "$as_dirs" || eval "mkdir $as_dirs"
22855   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22856 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22857    { (exit 1); exit 1; }; }; }
22858     ac_builddir=.
22859
22860 case "$ac_dir" in
22861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22862 *)
22863   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22864   # A ".." for each directory in $ac_dir_suffix.
22865   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22866   case $ac_top_builddir_sub in
22867   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22868   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22869   esac ;;
22870 esac
22871 ac_abs_top_builddir=$ac_pwd
22872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22873 # for backward compatibility:
22874 ac_top_builddir=$ac_top_build_prefix
22875
22876 case $srcdir in
22877   .)  # We are building in place.
22878     ac_srcdir=.
22879     ac_top_srcdir=$ac_top_builddir_sub
22880     ac_abs_top_srcdir=$ac_pwd ;;
22881   [\\/]* | ?:[\\/]* )  # Absolute name.
22882     ac_srcdir=$srcdir$ac_dir_suffix;
22883     ac_top_srcdir=$srcdir
22884     ac_abs_top_srcdir=$srcdir ;;
22885   *) # Relative name.
22886     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22887     ac_top_srcdir=$ac_top_build_prefix$srcdir
22888     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22889 esac
22890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22891
22892
22893     cd "$ac_dir"
22894
22895     # Check for guested configure; otherwise get Cygnus style configure.
22896     if test -f "$ac_srcdir/configure.gnu"; then
22897       ac_sub_configure=$ac_srcdir/configure.gnu
22898     elif test -f "$ac_srcdir/configure"; then
22899       ac_sub_configure=$ac_srcdir/configure
22900     elif test -f "$ac_srcdir/configure.in"; then
22901       # This should be Cygnus configure.
22902       ac_sub_configure=$ac_aux_dir/configure
22903     else
22904       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22905 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22906       ac_sub_configure=
22907     fi
22908
22909     # The recursion is here.
22910     if test -n "$ac_sub_configure"; then
22911       # Make the cache file name correct relative to the subdirectory.
22912       case $cache_file in
22913       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22914       *) # Relative name.
22915         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22916       esac
22917
22918       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22919 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22920       # The eval makes quoting arguments work.
22921       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22922            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22923         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22924 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22925    { (exit 1); exit 1; }; }
22926     fi
22927
22928     cd "$ac_popdir"
22929   done
22930 fi
22931