Fix typo in r164357
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_OPTIMIZED
689 ENABLE_PROFILING
690 DISABLE_ASSERTIONS
691 ENABLE_WERROR
692 ENABLE_EXPENSIVE_CHECKS
693 EXPENSIVE_CHECKS
694 DEBUG_RUNTIME
695 DEBUG_SYMBOLS
696 KEEP_SYMBOLS
697 JIT
698 TARGET_HAS_JIT
699 ENABLE_DOCS
700 ENABLE_DOXYGEN
701 LLVM_ENABLE_THREADS
702 ENABLE_PTHREADS
703 ENABLE_PIC
704 ENABLE_SHARED
705 ENABLE_EMBED_STDCXX
706 ENABLE_TIMESTAMPS
707 TARGETS_TO_BUILD
708 LLVM_ENUM_TARGETS
709 LLVM_ENUM_ASM_PRINTERS
710 LLVM_ENUM_ASM_PARSERS
711 LLVM_ENUM_DISASSEMBLERS
712 OPTIMIZE_OPTION
713 EXTRA_OPTIONS
714 EXTRA_LD_OPTIONS
715 CLANG_SRC_ROOT
716 BINUTILS_INCDIR
717 INTERNAL_PREFIX
718 NM
719 ifGNUmake
720 LN_S
721 CMP
722 CP
723 DATE
724 FIND
725 MKDIR
726 MV
727 RANLIB
728 AR
729 RM
730 SED
731 TAR
732 BINPWD
733 GRAPHVIZ
734 DOT
735 FDP
736 NEATO
737 TWOPI
738 CIRCO
739 GV
740 DOTTY
741 XDOT_PY
742 INSTALL_PROGRAM
743 INSTALL_SCRIPT
744 INSTALL_DATA
745 BZIP2
746 CAT
747 DOXYGEN
748 GROFF
749 GZIPBIN
750 PDFROFF
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 USE_INTEL_JITEVENTS
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
771 XML2CONFIG
772 LIBXML2_LIBS
773 LIBXML2_INC
774 HAVE_PTHREAD
775 HUGE_VAL_SANITY
776 MMAP_FILE
777 SHLIBEXT
778 SHLIBPATH_VAR
779 LLVM_PREFIX
780 LLVM_BINDIR
781 LLVM_LIBDIR
782 LLVM_DATADIR
783 LLVM_DOCSDIR
784 LLVM_ETCDIR
785 LLVM_INCLUDEDIR
786 LLVM_INFODIR
787 LLVM_MANDIR
788 LLVM_CONFIGTIME
789 BINDINGS_TO_BUILD
790 ALL_BINDINGS
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 LIBOBJS
796 LTLIBOBJS'
797 ac_subst_files=''
798       ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 CPPFLAGS
805 CXX
806 CXXFLAGS
807 CCC
808 CPP'
809 ac_subdirs_all='projects/llvm-gcc
810 projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/sample
815 projects/privbracket
816 projects/llvm-stacker
817 projects/llvm-reopt
818 projects/llvm-java
819 projects/llvm-tv
820 projects/safecode
821 projects/llvm-kernel
822 tools/polly'
823
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874   # If the previous option needs an argument, assign it.
875   if test -n "$ac_prev"; then
876     eval $ac_prev=\$ac_option
877     ac_prev=
878     continue
879   fi
880
881   case $ac_option in
882   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883   *)    ac_optarg=yes ;;
884   esac
885
886   # Accept the important Cygnus configure options, so we can diagnose typos.
887
888   case $ac_dashdash$ac_option in
889   --)
890     ac_dashdash=yes ;;
891
892   -bindir | --bindir | --bindi | --bind | --bin | --bi)
893     ac_prev=bindir ;;
894   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895     bindir=$ac_optarg ;;
896
897   -build | --build | --buil | --bui | --bu)
898     ac_prev=build_alias ;;
899   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900     build_alias=$ac_optarg ;;
901
902   -cache-file | --cache-file | --cache-fil | --cache-fi \
903   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904     ac_prev=cache_file ;;
905   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907     cache_file=$ac_optarg ;;
908
909   --config-cache | -C)
910     cache_file=config.cache ;;
911
912   -datadir | --datadir | --datadi | --datad)
913     ac_prev=datadir ;;
914   -datadir=* | --datadir=* | --datadi=* | --datad=*)
915     datadir=$ac_optarg ;;
916
917   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918   | --dataroo | --dataro | --datar)
919     ac_prev=datarootdir ;;
920   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922     datarootdir=$ac_optarg ;;
923
924   -disable-* | --disable-*)
925     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929    { (exit 1); exit 1; }; }
930     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931     eval enable_$ac_feature=no ;;
932
933   -docdir | --docdir | --docdi | --doc | --do)
934     ac_prev=docdir ;;
935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936     docdir=$ac_optarg ;;
937
938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939     ac_prev=dvidir ;;
940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941     dvidir=$ac_optarg ;;
942
943   -enable-* | --enable-*)
944     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
947       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948    { (exit 1); exit 1; }; }
949     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
950     eval enable_$ac_feature=\$ac_optarg ;;
951
952   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954   | --exec | --exe | --ex)
955     ac_prev=exec_prefix ;;
956   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958   | --exec=* | --exe=* | --ex=*)
959     exec_prefix=$ac_optarg ;;
960
961   -gas | --gas | --ga | --g)
962     # Obsolete; use --with-gas.
963     with_gas=yes ;;
964
965   -help | --help | --hel | --he | -h)
966     ac_init_help=long ;;
967   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968     ac_init_help=recursive ;;
969   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970     ac_init_help=short ;;
971
972   -host | --host | --hos | --ho)
973     ac_prev=host_alias ;;
974   -host=* | --host=* | --hos=* | --ho=*)
975     host_alias=$ac_optarg ;;
976
977   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978     ac_prev=htmldir ;;
979   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980   | --ht=*)
981     htmldir=$ac_optarg ;;
982
983   -includedir | --includedir | --includedi | --included | --include \
984   | --includ | --inclu | --incl | --inc)
985     ac_prev=includedir ;;
986   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987   | --includ=* | --inclu=* | --incl=* | --inc=*)
988     includedir=$ac_optarg ;;
989
990   -infodir | --infodir | --infodi | --infod | --info | --inf)
991     ac_prev=infodir ;;
992   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993     infodir=$ac_optarg ;;
994
995   -libdir | --libdir | --libdi | --libd)
996     ac_prev=libdir ;;
997   -libdir=* | --libdir=* | --libdi=* | --libd=*)
998     libdir=$ac_optarg ;;
999
1000   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001   | --libexe | --libex | --libe)
1002     ac_prev=libexecdir ;;
1003   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004   | --libexe=* | --libex=* | --libe=*)
1005     libexecdir=$ac_optarg ;;
1006
1007   -localedir | --localedir | --localedi | --localed | --locale)
1008     ac_prev=localedir ;;
1009   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010     localedir=$ac_optarg ;;
1011
1012   -localstatedir | --localstatedir | --localstatedi | --localstated \
1013   | --localstate | --localstat | --localsta | --localst | --locals)
1014     ac_prev=localstatedir ;;
1015   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017     localstatedir=$ac_optarg ;;
1018
1019   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020     ac_prev=mandir ;;
1021   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022     mandir=$ac_optarg ;;
1023
1024   -nfp | --nfp | --nf)
1025     # Obsolete; use --without-fp.
1026     with_fp=no ;;
1027
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n)
1030     no_create=yes ;;
1031
1032   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034     no_recursion=yes ;;
1035
1036   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038   | --oldin | --oldi | --old | --ol | --o)
1039     ac_prev=oldincludedir ;;
1040   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043     oldincludedir=$ac_optarg ;;
1044
1045   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046     ac_prev=prefix ;;
1047   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048     prefix=$ac_optarg ;;
1049
1050   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051   | --program-pre | --program-pr | --program-p)
1052     ac_prev=program_prefix ;;
1053   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055     program_prefix=$ac_optarg ;;
1056
1057   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058   | --program-suf | --program-su | --program-s)
1059     ac_prev=program_suffix ;;
1060   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062     program_suffix=$ac_optarg ;;
1063
1064   -program-transform-name | --program-transform-name \
1065   | --program-transform-nam | --program-transform-na \
1066   | --program-transform-n | --program-transform- \
1067   | --program-transform | --program-transfor \
1068   | --program-transfo | --program-transf \
1069   | --program-trans | --program-tran \
1070   | --progr-tra | --program-tr | --program-t)
1071     ac_prev=program_transform_name ;;
1072   -program-transform-name=* | --program-transform-name=* \
1073   | --program-transform-nam=* | --program-transform-na=* \
1074   | --program-transform-n=* | --program-transform-=* \
1075   | --program-transform=* | --program-transfor=* \
1076   | --program-transfo=* | --program-transf=* \
1077   | --program-trans=* | --program-tran=* \
1078   | --progr-tra=* | --program-tr=* | --program-t=*)
1079     program_transform_name=$ac_optarg ;;
1080
1081   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082     ac_prev=pdfdir ;;
1083   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084     pdfdir=$ac_optarg ;;
1085
1086   -psdir | --psdir | --psdi | --psd | --ps)
1087     ac_prev=psdir ;;
1088   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089     psdir=$ac_optarg ;;
1090
1091   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092   | -silent | --silent | --silen | --sile | --sil)
1093     silent=yes ;;
1094
1095   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096     ac_prev=sbindir ;;
1097   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098   | --sbi=* | --sb=*)
1099     sbindir=$ac_optarg ;;
1100
1101   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103   | --sharedst | --shareds | --shared | --share | --shar \
1104   | --sha | --sh)
1105     ac_prev=sharedstatedir ;;
1106   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109   | --sha=* | --sh=*)
1110     sharedstatedir=$ac_optarg ;;
1111
1112   -site | --site | --sit)
1113     ac_prev=site ;;
1114   -site=* | --site=* | --sit=*)
1115     site=$ac_optarg ;;
1116
1117   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118     ac_prev=srcdir ;;
1119   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120     srcdir=$ac_optarg ;;
1121
1122   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123   | --syscon | --sysco | --sysc | --sys | --sy)
1124     ac_prev=sysconfdir ;;
1125   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127     sysconfdir=$ac_optarg ;;
1128
1129   -target | --target | --targe | --targ | --tar | --ta | --t)
1130     ac_prev=target_alias ;;
1131   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132     target_alias=$ac_optarg ;;
1133
1134   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135     verbose=yes ;;
1136
1137   -version | --version | --versio | --versi | --vers | -V)
1138     ac_init_version=: ;;
1139
1140   -with-* | --with-*)
1141     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144       { echo "$as_me: error: invalid package name: $ac_package" >&2
1145    { (exit 1); exit 1; }; }
1146     ac_package=`echo $ac_package| sed 's/-/_/g'`
1147     eval with_$ac_package=\$ac_optarg ;;
1148
1149   -without-* | --without-*)
1150     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153       { echo "$as_me: error: invalid package name: $ac_package" >&2
1154    { (exit 1); exit 1; }; }
1155     ac_package=`echo $ac_package | sed 's/-/_/g'`
1156     eval with_$ac_package=no ;;
1157
1158   --x)
1159     # Obsolete; use --with-x.
1160     with_x=yes ;;
1161
1162   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163   | --x-incl | --x-inc | --x-in | --x-i)
1164     ac_prev=x_includes ;;
1165   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167     x_includes=$ac_optarg ;;
1168
1169   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171     ac_prev=x_libraries ;;
1172   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174     x_libraries=$ac_optarg ;;
1175
1176   -*) { echo "$as_me: error: unrecognized option: $ac_option
1177 Try \`$0 --help' for more information." >&2
1178    { (exit 1); exit 1; }; }
1179     ;;
1180
1181   *=*)
1182     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186    { (exit 1); exit 1; }; }
1187     eval $ac_envvar=\$ac_optarg
1188     export $ac_envvar ;;
1189
1190   *)
1191     # FIXME: should be removed in autoconf 3.0.
1192     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196     ;;
1197
1198   esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203   { echo "$as_me: error: missing argument to $ac_option" >&2
1204    { (exit 1); exit 1; }; }
1205 fi
1206
1207 # Be sure to have absolute directory names.
1208 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209                 datadir sysconfdir sharedstatedir localstatedir includedir \
1210                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211                 libdir localedir mandir
1212 do
1213   eval ac_val=\$$ac_var
1214   case $ac_val in
1215     [\\/$]* | ?:[\\/]* )  continue;;
1216     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217   esac
1218   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219    { (exit 1); exit 1; }; }
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231   if test "x$build_alias" = x; then
1232     cross_compiling=maybe
1233     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234     If a cross compiler is detected then cross compile mode will be used." >&2
1235   elif test "x$build_alias" != "x$host_alias"; then
1236     cross_compiling=yes
1237   fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249   { echo "$as_me: error: Working directory cannot be determined" >&2
1250    { (exit 1); exit 1; }; }
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252   { echo "$as_me: error: pwd does not report name of working directory" >&2
1253    { (exit 1); exit 1; }; }
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258   ac_srcdir_defaulted=yes
1259   # Try the directory containing this script, then the parent directory.
1260   ac_confdir=`$as_dirname -- "$0" ||
1261 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262          X"$0" : 'X\(//\)[^/]' \| \
1263          X"$0" : 'X\(//\)$' \| \
1264          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 echo X"$0" |
1266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)[^/].*/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\).*/{
1279             s//\1/
1280             q
1281           }
1282           s/.*/./; q'`
1283   srcdir=$ac_confdir
1284   if test ! -r "$srcdir/$ac_unique_file"; then
1285     srcdir=..
1286   fi
1287 else
1288   ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293    { (exit 1); exit 1; }; }
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298    { (exit 1); exit 1; }; }
1299         pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302   srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_env_${ac_var}_value=\$${ac_var}
1313   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321   # Omit some internal or obsolete options to make the list less imposing.
1322   # This message is too long to be a string in the A/UX 3.1 sh.
1323   cat <<_ACEOF
1324 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334   -h, --help              display this help and exit
1335       --help=short        display options specific to this package
1336       --help=recursive    display the short help of all the included packages
1337   -V, --version           display version information and exit
1338   -q, --quiet, --silent   do not print \`checking...' messages
1339       --cache-file=FILE   cache test results in FILE [disabled]
1340   -C, --config-cache      alias for \`--cache-file=config.cache'
1341   -n, --no-create         do not create output files
1342       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345   --prefix=PREFIX         install architecture-independent files in PREFIX
1346                           [$ac_default_prefix]
1347   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                           [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358   --bindir=DIR           user executables [EPREFIX/bin]
1359   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1360   --libexecdir=DIR       program executables [EPREFIX/libexec]
1361   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1362   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1363   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1364   --libdir=DIR           object code libraries [EPREFIX/lib]
1365   --includedir=DIR       C header files [PREFIX/include]
1366   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1367   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1368   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1369   --infodir=DIR          info documentation [DATAROOTDIR/info]
1370   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1371   --mandir=DIR           man documentation [DATAROOTDIR/man]
1372   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1373   --htmldir=DIR          html documentation [DOCDIR]
1374   --dvidir=DIR           dvi documentation [DOCDIR]
1375   --pdfdir=DIR           pdf documentation [DOCDIR]
1376   --psdir=DIR            ps documentation [DOCDIR]
1377 _ACEOF
1378
1379   cat <<\_ACEOF
1380
1381 System types:
1382   --build=BUILD     configure for building on BUILD [guessed]
1383   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384   --target=TARGET   configure for building compilers for TARGET [HOST]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389   case $ac_init_help in
1390      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1391    esac
1392   cat <<\_ACEOF
1393
1394 Optional Features:
1395   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1396   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1397   --enable-polly          Use polly if available (default is YES)
1398   --enable-libcpp         Use libc++ if available (default is NO)
1399   --enable-cxx11          Use c++11 if available (default is NO)
1400   --enable-optimized      Compile with optimizations enabled (default is NO)
1401   --enable-profiling      Compile with profiling enabled (default is NO)
1402   --enable-assertions     Compile with assertion checks enabled (default is
1403                           YES)
1404   --enable-werror         Compile with -Werror enabled (default is NO)
1405   --enable-expensive-checks
1406                           Compile with expensive debug checks enabled (default
1407                           is NO)
1408   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1409                           NO)
1410   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1411                           optimization is on and YES if it's off)
1412   --enable-keep-symbols   Do not strip installed executables)
1413   --enable-jit            Enable Just In Time Compiling (default is YES)
1414   --enable-docs           Build documents (default is YES)
1415   --enable-doxygen        Build doxygen documentation (default is NO)
1416   --enable-threads        Use threads if available (default is YES)
1417   --enable-pthreads       Use pthreads if available (default is YES)
1418   --enable-pic            Build LLVM with Position Independent Code (default
1419                           is YES)
1420   --enable-shared         Build a shared library and link tools against it
1421                           (default is NO)
1422   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1423                           Win32 DLL (default is NO)
1424   --enable-timestamps     Enable embedding timestamp information in build
1425                           (default is YES)
1426   --enable-backtraces     Enable embedding backtraces on crash (default is
1427                           YES)
1428   --enable-targets        Build specific host targets: all or
1429                           target1,target2,... Valid targets are: host, x86,
1430                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1431                           xcore, msp430, nvptx, and cpp (default=all)
1432   --enable-experimental-targets
1433                           Build experimental host targets: disable or
1434                           target1,target2,... (default=disable)
1435   --enable-bindings       Build specific language bindings:
1436                           all,auto,none,{binding-name} (default=auto)
1437   --enable-libffi         Check for the presence of libffi (default is NO)
1438   --enable-ltdl-install   install libltdl
1439
1440 Optional Packages:
1441   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1442   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1443   --with-optimize-option  Select the compiler options to use for optimized
1444                           builds
1445   --with-extra-options    Specify additional options to compile LLVM with
1446   --with-extra-ld-options Specify additional options to link LLVM with
1447   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1448                           is stdlib)
1449   --with-clang-srcdir     Directory to the out-of-tree Clang source
1450   --with-clang-resource-dir
1451                           Relative directory from the Clang binary for
1452                           resource files
1453   --with-c-include-dirs   Colon separated list of directories clang will
1454                           search for headers
1455   --with-gcc-toolchain    Directory where gcc is installed.
1456   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1457   --with-binutils-include Specify path to binutils/include/ containing
1458                           plugin-api.h file for gold plugin.
1459   --with-bug-report-url   Specify the URL where bug reports should be
1460                           submitted (default=http://llvm.org/bugs/)
1461   --with-internal-prefix  Installation directory for internal files
1462   --with-udis86=<path>    Use udis86 external x86 disassembler library
1463   --with-oprofile=<prefix>
1464                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1465   --with-intel-jitevents=<vtune-amplifier-dir>
1466                           Specify location of run-time support library for
1467                           Intel JIT API
1468                           (default=/opt/intel/vtune_amplifier_xe_2011)
1469
1470 Some influential environment variables:
1471   CC          C compiler command
1472   CFLAGS      C compiler flags
1473   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474               nonstandard directory <lib dir>
1475   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476               you have headers in a nonstandard directory <include dir>
1477   CXX         C++ compiler command
1478   CXXFLAGS    C++ compiler flags
1479   CPP         C preprocessor
1480
1481 Use these variables to override the choices made by `configure' or to help
1482 it to find libraries and programs with nonstandard names/locations.
1483
1484 Report bugs to <http://llvm.org/bugs/>.
1485 _ACEOF
1486 ac_status=$?
1487 fi
1488
1489 if test "$ac_init_help" = "recursive"; then
1490   # If there are subdirs, report their specific --help.
1491   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492     test -d "$ac_dir" || continue
1493     ac_builddir=.
1494
1495 case "$ac_dir" in
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *)
1498   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1499   # A ".." for each directory in $ac_dir_suffix.
1500   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1501   case $ac_top_builddir_sub in
1502   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504   esac ;;
1505 esac
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1510
1511 case $srcdir in
1512   .)  # We are building in place.
1513     ac_srcdir=.
1514     ac_top_srcdir=$ac_top_builddir_sub
1515     ac_abs_top_srcdir=$ac_pwd ;;
1516   [\\/]* | ?:[\\/]* )  # Absolute name.
1517     ac_srcdir=$srcdir$ac_dir_suffix;
1518     ac_top_srcdir=$srcdir
1519     ac_abs_top_srcdir=$srcdir ;;
1520   *) # Relative name.
1521     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522     ac_top_srcdir=$ac_top_build_prefix$srcdir
1523     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 esac
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526
1527     cd "$ac_dir" || { ac_status=$?; continue; }
1528     # Check for guested configure.
1529     if test -f "$ac_srcdir/configure.gnu"; then
1530       echo &&
1531       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532     elif test -f "$ac_srcdir/configure"; then
1533       echo &&
1534       $SHELL "$ac_srcdir/configure" --help=recursive
1535     else
1536       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537     fi || ac_status=$?
1538     cd "$ac_pwd" || { ac_status=$?; break; }
1539   done
1540 fi
1541
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1544   cat <<\_ACEOF
1545 LLVM configure 3.2svn
1546 generated by GNU Autoconf 2.60
1547
1548 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1549 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552
1553 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1554 _ACEOF
1555   exit
1556 fi
1557 cat >config.log <<_ACEOF
1558 This file contains any messages produced by compilers while
1559 running configure, to aid debugging if configure makes a mistake.
1560
1561 It was created by LLVM $as_me 3.2svn, which was
1562 generated by GNU Autoconf 2.60.  Invocation command line was
1563
1564   $ $0 $@
1565
1566 _ACEOF
1567 exec 5>>config.log
1568 {
1569 cat <<_ASUNAME
1570 ## --------- ##
1571 ## Platform. ##
1572 ## --------- ##
1573
1574 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1575 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1576 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1577 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1578 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1579
1580 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1581 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1582
1583 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1584 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1585 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1586 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1587 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1588 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1589 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1590
1591 _ASUNAME
1592
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1595 do
1596   IFS=$as_save_IFS
1597   test -z "$as_dir" && as_dir=.
1598   echo "PATH: $as_dir"
1599 done
1600 IFS=$as_save_IFS
1601
1602 } >&5
1603
1604 cat >&5 <<_ACEOF
1605
1606
1607 ## ----------- ##
1608 ## Core tests. ##
1609 ## ----------- ##
1610
1611 _ACEOF
1612
1613
1614 # Keep a trace of the command line.
1615 # Strip out --no-create and --no-recursion so they do not pile up.
1616 # Strip out --silent because we don't want to record it for future runs.
1617 # Also quote any args containing shell meta-characters.
1618 # Make two passes to allow for proper duplicate-argument suppression.
1619 ac_configure_args=
1620 ac_configure_args0=
1621 ac_configure_args1=
1622 ac_must_keep_next=false
1623 for ac_pass in 1 2
1624 do
1625   for ac_arg
1626   do
1627     case $ac_arg in
1628     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1629     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1630     | -silent | --silent | --silen | --sile | --sil)
1631       continue ;;
1632     *\'*)
1633       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1634     esac
1635     case $ac_pass in
1636     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1637     2)
1638       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1639       if test $ac_must_keep_next = true; then
1640         ac_must_keep_next=false # Got value, back to normal.
1641       else
1642         case $ac_arg in
1643           *=* | --config-cache | -C | -disable-* | --disable-* \
1644           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1645           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1646           | -with-* | --with-* | -without-* | --without-* | --x)
1647             case "$ac_configure_args0 " in
1648               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1649             esac
1650             ;;
1651           -* ) ac_must_keep_next=true ;;
1652         esac
1653       fi
1654       ac_configure_args="$ac_configure_args '$ac_arg'"
1655       ;;
1656     esac
1657   done
1658 done
1659 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1660 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1661
1662 # When interrupted or exit'd, cleanup temporary files, and complete
1663 # config.log.  We remove comments because anyway the quotes in there
1664 # would cause problems or look ugly.
1665 # WARNING: Use '\'' to represent an apostrophe within the trap.
1666 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1667 trap 'exit_status=$?
1668   # Save into config.log some information that might help in debugging.
1669   {
1670     echo
1671
1672     cat <<\_ASBOX
1673 ## ---------------- ##
1674 ## Cache variables. ##
1675 ## ---------------- ##
1676 _ASBOX
1677     echo
1678     # The following way of writing the cache mishandles newlines in values,
1679 (
1680   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1681     eval ac_val=\$$ac_var
1682     case $ac_val in #(
1683     *${as_nl}*)
1684       case $ac_var in #(
1685       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1686 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1687       esac
1688       case $ac_var in #(
1689       _ | IFS | as_nl) ;; #(
1690       *) $as_unset $ac_var ;;
1691       esac ;;
1692     esac
1693   done
1694   (set) 2>&1 |
1695     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1696     *${as_nl}ac_space=\ *)
1697       sed -n \
1698         "s/'\''/'\''\\\\'\'''\''/g;
1699           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1700       ;; #(
1701     *)
1702       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1703       ;;
1704     esac |
1705     sort
1706 )
1707     echo
1708
1709     cat <<\_ASBOX
1710 ## ----------------- ##
1711 ## Output variables. ##
1712 ## ----------------- ##
1713 _ASBOX
1714     echo
1715     for ac_var in $ac_subst_vars
1716     do
1717       eval ac_val=\$$ac_var
1718       case $ac_val in
1719       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720       esac
1721       echo "$ac_var='\''$ac_val'\''"
1722     done | sort
1723     echo
1724
1725     if test -n "$ac_subst_files"; then
1726       cat <<\_ASBOX
1727 ## ------------------- ##
1728 ## File substitutions. ##
1729 ## ------------------- ##
1730 _ASBOX
1731       echo
1732       for ac_var in $ac_subst_files
1733       do
1734         eval ac_val=\$$ac_var
1735         case $ac_val in
1736         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737         esac
1738         echo "$ac_var='\''$ac_val'\''"
1739       done | sort
1740       echo
1741     fi
1742
1743     if test -s confdefs.h; then
1744       cat <<\_ASBOX
1745 ## ----------- ##
1746 ## confdefs.h. ##
1747 ## ----------- ##
1748 _ASBOX
1749       echo
1750       cat confdefs.h
1751       echo
1752     fi
1753     test "$ac_signal" != 0 &&
1754       echo "$as_me: caught signal $ac_signal"
1755     echo "$as_me: exit $exit_status"
1756   } >&5
1757   rm -f core *.core core.conftest.* &&
1758     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1759     exit $exit_status
1760 ' 0
1761 for ac_signal in 1 2 13 15; do
1762   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1763 done
1764 ac_signal=0
1765
1766 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1767 rm -f -r conftest* confdefs.h
1768
1769 # Predefined preprocessor variables.
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_NAME "$PACKAGE_NAME"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1778 _ACEOF
1779
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_STRING "$PACKAGE_STRING"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1793 _ACEOF
1794
1795
1796 # Let the site file select an alternate cache file if it wants to.
1797 # Prefer explicitly selected file to automatically selected ones.
1798 if test -n "$CONFIG_SITE"; then
1799   set x "$CONFIG_SITE"
1800 elif test "x$prefix" != xNONE; then
1801   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1802 else
1803   set x "$ac_default_prefix/share/config.site" \
1804         "$ac_default_prefix/etc/config.site"
1805 fi
1806 shift
1807 for ac_site_file
1808 do
1809   if test -r "$ac_site_file"; then
1810     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1811 echo "$as_me: loading site script $ac_site_file" >&6;}
1812     sed 's/^/| /' "$ac_site_file" >&5
1813     . "$ac_site_file"
1814   fi
1815 done
1816
1817 if test -r "$cache_file"; then
1818   # Some versions of bash will fail to source /dev/null (special
1819   # files actually), so we avoid doing that.
1820   if test -f "$cache_file"; then
1821     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1822 echo "$as_me: loading cache $cache_file" >&6;}
1823     case $cache_file in
1824       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1825       *)                      . "./$cache_file";;
1826     esac
1827   fi
1828 else
1829   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1830 echo "$as_me: creating cache $cache_file" >&6;}
1831   >$cache_file
1832 fi
1833
1834 # Check that the precious variables saved in the cache have kept the same
1835 # value.
1836 ac_cache_corrupted=false
1837 for ac_var in $ac_precious_vars; do
1838   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1839   eval ac_new_set=\$ac_env_${ac_var}_set
1840   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1841   eval ac_new_val=\$ac_env_${ac_var}_value
1842   case $ac_old_set,$ac_new_set in
1843     set,)
1844       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1846       ac_cache_corrupted=: ;;
1847     ,set)
1848       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1850       ac_cache_corrupted=: ;;
1851     ,);;
1852     *)
1853       if test "x$ac_old_val" != "x$ac_new_val"; then
1854         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1855 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1856         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1857 echo "$as_me:   former value:  $ac_old_val" >&2;}
1858         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1859 echo "$as_me:   current value: $ac_new_val" >&2;}
1860         ac_cache_corrupted=:
1861       fi;;
1862   esac
1863   # Pass precious variables to config.status.
1864   if test "$ac_new_set" = set; then
1865     case $ac_new_val in
1866     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1867     *) ac_arg=$ac_var=$ac_new_val ;;
1868     esac
1869     case " $ac_configure_args " in
1870       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1871       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1872     esac
1873   fi
1874 done
1875 if $ac_cache_corrupted; then
1876   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1877 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1878   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1879 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1880    { (exit 1); exit 1; }; }
1881 fi
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907 ac_ext=c
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912
1913
1914
1915 cat >>confdefs.h <<\_ACEOF
1916 #define LLVM_VERSION_MAJOR 3
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<\_ACEOF
1921 #define LLVM_VERSION_MINOR 2
1922 _ACEOF
1923
1924
1925 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1926
1927
1928
1929
1930
1931
1932
1933 ac_aux_dir=
1934 for ac_dir in autoconf "$srcdir"/autoconf; do
1935   if 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/install.sh"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/install.sh -c"
1942     break
1943   elif test -f "$ac_dir/shtool"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/shtool install -c"
1946     break
1947   fi
1948 done
1949 if test -z "$ac_aux_dir"; then
1950   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1952    { (exit 1); exit 1; }; }
1953 fi
1954
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1962
1963
1964
1965 if test ${srcdir} != "." ; then
1966   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1967     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1968 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1969    { (exit 1); exit 1; }; }
1970   fi
1971 fi
1972
1973 ac_ext=c
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978 if test -n "$ac_tool_prefix"; then
1979   for ac_prog in clang llvm-gcc gcc
1980   do
1981     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985 if test "${ac_cv_prog_CC+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   if test -n "$CC"; then
1989   ac_cv_prog_CC="$CC" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1998     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000     break 2
2001   fi
2002 done
2003 done
2004 IFS=$as_save_IFS
2005
2006 fi
2007 fi
2008 CC=$ac_cv_prog_CC
2009 if test -n "$CC"; then
2010   { echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6; }
2012 else
2013   { echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6; }
2015 fi
2016
2017
2018     test -n "$CC" && break
2019   done
2020 fi
2021 if test -z "$CC"; then
2022   ac_ct_CC=$CC
2023   for ac_prog in clang llvm-gcc gcc
2024 do
2025   # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   if test -n "$ac_ct_CC"; then
2033   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038   IFS=$as_save_IFS
2039   test -z "$as_dir" && as_dir=.
2040   for ac_exec_ext in '' $ac_executable_extensions; do
2041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2042     ac_cv_prog_ac_ct_CC="$ac_prog"
2043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044     break 2
2045   fi
2046 done
2047 done
2048 IFS=$as_save_IFS
2049
2050 fi
2051 fi
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6; }
2056 else
2057   { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2059 fi
2060
2061
2062   test -n "$ac_ct_CC" && break
2063 done
2064
2065   if test "x$ac_ct_CC" = x; then
2066     CC=""
2067   else
2068     case $cross_compiling:$ac_tool_warned in
2069 yes:)
2070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet.  If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&5
2073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet.  If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2076 ac_tool_warned=yes ;;
2077 esac
2078     CC=$ac_ct_CC
2079   fi
2080 fi
2081
2082
2083 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&5
2085 echo "$as_me: error: no acceptable C compiler found in \$PATH
2086 See \`config.log' for more details." >&2;}
2087    { (exit 1); exit 1; }; }
2088
2089 # Provide some information about the compiler.
2090 echo "$as_me:$LINENO: checking for C compiler version" >&5
2091 ac_compiler=`set X $ac_compile; echo $2`
2092 { (ac_try="$ac_compiler --version >&5"
2093 case "(($ac_try" in
2094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095   *) ac_try_echo=$ac_try;;
2096 esac
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098   (eval "$ac_compiler --version >&5") 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }
2102 { (ac_try="$ac_compiler -v >&5"
2103 case "(($ac_try" in
2104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105   *) ac_try_echo=$ac_try;;
2106 esac
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108   (eval "$ac_compiler -v >&5") 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }
2112 { (ac_try="$ac_compiler -V >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler -V >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122
2123 cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129
2130 int
2131 main ()
2132 {
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 ac_clean_files_save=$ac_clean_files
2139 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2140 # Try to create an executable without -o first, disregard a.out.
2141 # It will help us diagnose broken compilers, and finding out an intuition
2142 # of exeext.
2143 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2144 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2145 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2146 #
2147 # List of possible output files, starting from the most likely.
2148 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2149 # only as a last resort.  b.out is created by i960 compilers.
2150 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2151 #
2152 # The IRIX 6 linker writes into existing files which may not be
2153 # executable, retaining their permissions.  Remove them first so a
2154 # subsequent execution test works.
2155 ac_rmfiles=
2156 for ac_file in $ac_files
2157 do
2158   case $ac_file in
2159     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2160     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2161   esac
2162 done
2163 rm -f $ac_rmfiles
2164
2165 if { (ac_try="$ac_link_default"
2166 case "(($ac_try" in
2167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168   *) ac_try_echo=$ac_try;;
2169 esac
2170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171   (eval "$ac_link_default") 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; then
2175   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2176 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2177 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2178 # so that the user can short-circuit this test for compilers unknown to
2179 # Autoconf.
2180 for ac_file in $ac_files
2181 do
2182   test -f "$ac_file" || continue
2183   case $ac_file in
2184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2185         ;;
2186     [ab].out )
2187         # We found the default executable, but exeext='' is most
2188         # certainly right.
2189         break;;
2190     *.* )
2191         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2192         then :; else
2193            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194         fi
2195         # We set ac_cv_exeext here because the later test for it is not
2196         # safe: cross compilers may not add the suffix if given an `-o'
2197         # argument, so we may need to know it at that point already.
2198         # Even if this section looks crufty: it has the advantage of
2199         # actually working.
2200         break;;
2201     * )
2202         break;;
2203   esac
2204 done
2205 test "$ac_cv_exeext" = no && ac_cv_exeext=
2206
2207 else
2208   echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2210
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215    { (exit 77); exit 77; }; }
2216 fi
2217
2218 ac_exeext=$ac_cv_exeext
2219 { echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6; }
2221
2222 # Check that the compiler produces executables we can run.  If not, either
2223 # the compiler is broken, or we cross compile.
2224 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229   if { ac_try='./$ac_file'
2230   { (case "(($ac_try" in
2231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232   *) ac_try_echo=$ac_try;;
2233 esac
2234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2235   (eval "$ac_try") 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239     cross_compiling=no
2240   else
2241     if test "$cross_compiling" = maybe; then
2242         cross_compiling=yes
2243     else
2244         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250    { (exit 1); exit 1; }; }
2251     fi
2252   fi
2253 fi
2254 { echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6; }
2256
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check that the compiler produces executables we can run.  If not, either
2260 # the compiler is broken, or we cross compile.
2261 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2263 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6; }
2265
2266 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2268 if { (ac_try="$ac_link"
2269 case "(($ac_try" in
2270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271   *) ac_try_echo=$ac_try;;
2272 esac
2273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274   (eval "$ac_link") 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; then
2278   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2280 # work properly (i.e., refer to `conftest.exe'), while it won't with
2281 # `rm'.
2282 for ac_file in conftest.exe conftest conftest.*; do
2283   test -f "$ac_file" || continue
2284   case $ac_file in
2285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2286     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287           break;;
2288     * ) break;;
2289   esac
2290 done
2291 else
2292   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296    { (exit 1); exit 1; }; }
2297 fi
2298
2299 rm -f conftest$ac_cv_exeext
2300 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2302
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2305 ac_exeext=$EXEEXT
2306 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2308 if test "${ac_cv_objext+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 rm -f conftest.o conftest.obj
2327 if { (ac_try="$ac_compile"
2328 case "(($ac_try" in
2329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330   *) ac_try_echo=$ac_try;;
2331 esac
2332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333   (eval "$ac_compile") 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; then
2337   for ac_file in conftest.o conftest.obj conftest.*; do
2338   test -f "$ac_file" || continue;
2339   case $ac_file in
2340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2341     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342        break;;
2343   esac
2344 done
2345 else
2346   echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&2;}
2353    { (exit 1); exit 1; }; }
2354 fi
2355
2356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2357 fi
2358 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359 echo "${ECHO_T}$ac_cv_objext" >&6; }
2360 OBJEXT=$ac_cv_objext
2361 ac_objext=$OBJEXT
2362 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2363 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2364 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h.  */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h.  */
2373
2374 int
2375 main ()
2376 {
2377 #ifndef __GNUC__
2378        choke me
2379 #endif
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.$ac_objext
2386 if { (ac_try="$ac_compile"
2387 case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392   (eval "$ac_compile") 2>conftest.er1
2393   ac_status=$?
2394   grep -v '^ *+' conftest.er1 >conftest.err
2395   rm -f conftest.er1
2396   cat conftest.err >&5
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); } &&
2399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2400   { (case "(($ac_try" in
2401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402   *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405   (eval "$ac_try") 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; } &&
2409          { ac_try='test -s conftest.$ac_objext'
2410   { (case "(($ac_try" in
2411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412   *) ac_try_echo=$ac_try;;
2413 esac
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415   (eval "$ac_try") 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; }; then
2419   ac_compiler_gnu=yes
2420 else
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424         ac_compiler_gnu=no
2425 fi
2426
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2429
2430 fi
2431 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2433 GCC=`test $ac_compiler_gnu = yes && echo yes`
2434 ac_test_CFLAGS=${CFLAGS+set}
2435 ac_save_CFLAGS=$CFLAGS
2436 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2437 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_cc_g+set}" = set; then
2439   echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441   ac_save_c_werror_flag=$ac_c_werror_flag
2442    ac_c_werror_flag=yes
2443    ac_cv_prog_cc_g=no
2444    CFLAGS="-g"
2445    cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.$ac_objext
2461 if { (ac_try="$ac_compile"
2462 case "(($ac_try" in
2463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464   *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467   (eval "$ac_compile") 2>conftest.er1
2468   ac_status=$?
2469   grep -v '^ *+' conftest.er1 >conftest.err
2470   rm -f conftest.er1
2471   cat conftest.err >&5
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2475   { (case "(($ac_try" in
2476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477   *) ac_try_echo=$ac_try;;
2478 esac
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480   (eval "$ac_try") 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; } &&
2484          { ac_try='test -s conftest.$ac_objext'
2485   { (case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490   (eval "$ac_try") 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494   ac_cv_prog_cc_g=yes
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499         CFLAGS=""
2500       cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h.  */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h.  */
2506
2507 int
2508 main ()
2509 {
2510
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 rm -f conftest.$ac_objext
2516 if { (ac_try="$ac_compile"
2517 case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_compile") 2>conftest.er1
2523   ac_status=$?
2524   grep -v '^ *+' conftest.er1 >conftest.err
2525   rm -f conftest.er1
2526   cat conftest.err >&5
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530   { (case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535   (eval "$ac_try") 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; } &&
2539          { ac_try='test -s conftest.$ac_objext'
2540   { (case "(($ac_try" in
2541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542   *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545   (eval "$ac_try") 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; }; then
2549   :
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554         ac_c_werror_flag=$ac_save_c_werror_flag
2555          CFLAGS="-g"
2556          cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562
2563 int
2564 main ()
2565 {
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (ac_try="$ac_compile"
2573 case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578   (eval "$ac_compile") 2>conftest.er1
2579   ac_status=$?
2580   grep -v '^ *+' conftest.er1 >conftest.err
2581   rm -f conftest.er1
2582   cat conftest.err >&5
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); } &&
2585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2586   { (case "(($ac_try" in
2587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588   *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591   (eval "$ac_try") 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; } &&
2595          { ac_try='test -s conftest.$ac_objext'
2596   { (case "(($ac_try" in
2597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598   *) ac_try_echo=$ac_try;;
2599 esac
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601   (eval "$ac_try") 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; }; then
2605   ac_cv_prog_cc_g=yes
2606 else
2607   echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610
2611 fi
2612
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620    ac_c_werror_flag=$ac_save_c_werror_flag
2621 fi
2622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2623 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2624 if test "$ac_test_CFLAGS" = set; then
2625   CFLAGS=$ac_save_CFLAGS
2626 elif test $ac_cv_prog_cc_g = yes; then
2627   if test "$GCC" = yes; then
2628     CFLAGS="-g -O2"
2629   else
2630     CFLAGS="-g"
2631   fi
2632 else
2633   if test "$GCC" = yes; then
2634     CFLAGS="-O2"
2635   else
2636     CFLAGS=
2637   fi
2638 fi
2639 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2640 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_cc_c89+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   ac_cv_prog_cc_c89=no
2645 ac_save_CC=$CC
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h.  */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h.  */
2652 #include <stdarg.h>
2653 #include <stdio.h>
2654 #include <sys/types.h>
2655 #include <sys/stat.h>
2656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2657 struct buf { int x; };
2658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2659 static char *e (p, i)
2660      char **p;
2661      int i;
2662 {
2663   return p[i];
2664 }
2665 static char *f (char * (*g) (char **, int), char **p, ...)
2666 {
2667   char *s;
2668   va_list v;
2669   va_start (v,p);
2670   s = g (p, va_arg (v,int));
2671   va_end (v);
2672   return s;
2673 }
2674
2675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2676    function prototypes and stuff, but not '\xHH' hex character constants.
2677    These don't provoke an error unfortunately, instead are silently treated
2678    as 'x'.  The following induces an error, until -std is added to get
2679    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2680    array size at least.  It's necessary to write '\x00'==0 to get something
2681    that's true only with -std.  */
2682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2683
2684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2685    inside strings and character constants.  */
2686 #define FOO(x) 'x'
2687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2688
2689 int test (int i, double x);
2690 struct s1 {int (*f) (int a);};
2691 struct s2 {int (*f) (double a);};
2692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693 int argc;
2694 char **argv;
2695 int
2696 main ()
2697 {
2698 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2704         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2705 do
2706   CC="$ac_save_CC $ac_arg"
2707   rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_compile") 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722   { (case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_try") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; } &&
2731          { ac_try='test -s conftest.$ac_objext'
2732   { (case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_try") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   ac_cv_prog_cc_c89=$ac_arg
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746
2747 fi
2748
2749 rm -f core conftest.err conftest.$ac_objext
2750   test "x$ac_cv_prog_cc_c89" != "xno" && break
2751 done
2752 rm -f conftest.$ac_ext
2753 CC=$ac_save_CC
2754
2755 fi
2756 # AC_CACHE_VAL
2757 case "x$ac_cv_prog_cc_c89" in
2758   x)
2759     { echo "$as_me:$LINENO: result: none needed" >&5
2760 echo "${ECHO_T}none needed" >&6; } ;;
2761   xno)
2762     { echo "$as_me:$LINENO: result: unsupported" >&5
2763 echo "${ECHO_T}unsupported" >&6; } ;;
2764   *)
2765     CC="$CC $ac_cv_prog_cc_c89"
2766     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2767 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2768 esac
2769
2770
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777 ac_ext=cpp
2778 ac_cpp='$CXXCPP $CPPFLAGS'
2779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2782 if test -z "$CXX"; then
2783   if test -n "$CCC"; then
2784     CXX=$CCC
2785   else
2786     if test -n "$ac_tool_prefix"; then
2787   for ac_prog in clang++ llvm-g++ g++
2788   do
2789     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2793 if test "${ac_cv_prog_CXX+set}" = set; then
2794   echo $ECHO_N "(cached) $ECHO_C" >&6
2795 else
2796   if test -n "$CXX"; then
2797   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802   IFS=$as_save_IFS
2803   test -z "$as_dir" && as_dir=.
2804   for ac_exec_ext in '' $ac_executable_extensions; do
2805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2806     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808     break 2
2809   fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CXX=$ac_cv_prog_CXX
2817 if test -n "$CXX"; then
2818   { echo "$as_me:$LINENO: result: $CXX" >&5
2819 echo "${ECHO_T}$CXX" >&6; }
2820 else
2821   { echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6; }
2823 fi
2824
2825
2826     test -n "$CXX" && break
2827   done
2828 fi
2829 if test -z "$CXX"; then
2830   ac_ct_CXX=$CXX
2831   for ac_prog in clang++ llvm-g++ g++
2832 do
2833   # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   if test -n "$ac_ct_CXX"; then
2841   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2850     ac_cv_prog_ac_ct_CXX="$ac_prog"
2851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2861 if test -n "$ac_ct_CXX"; then
2862   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2863 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2864 else
2865   { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2867 fi
2868
2869
2870   test -n "$ac_ct_CXX" && break
2871 done
2872
2873   if test "x$ac_ct_CXX" = x; then
2874     CXX="g++"
2875   else
2876     case $cross_compiling:$ac_tool_warned in
2877 yes:)
2878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet.  If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&5
2881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet.  If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886     CXX=$ac_ct_CXX
2887   fi
2888 fi
2889
2890   fi
2891 fi
2892 # Provide some information about the compiler.
2893 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2894 ac_compiler=`set X $ac_compile; echo $2`
2895 { (ac_try="$ac_compiler --version >&5"
2896 case "(($ac_try" in
2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898   *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901   (eval "$ac_compiler --version >&5") 2>&5
2902   ac_status=$?
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }
2905 { (ac_try="$ac_compiler -v >&5"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_compiler -v >&5") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }
2915 { (ac_try="$ac_compiler -V >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler -V >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925
2926 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2927 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 int
2939 main ()
2940 {
2941 #ifndef __GNUC__
2942        choke me
2943 #endif
2944
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_compile") 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } &&
2963          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2964   { (case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_try") 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; } &&
2973          { ac_try='test -s conftest.$ac_objext'
2974   { (case "(($ac_try" in
2975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976   *) ac_try_echo=$ac_try;;
2977 esac
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979   (eval "$ac_try") 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   ac_compiler_gnu=yes
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988         ac_compiler_gnu=no
2989 fi
2990
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2993
2994 fi
2995 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2997 GXX=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CXXFLAGS=${CXXFLAGS+set}
2999 ac_save_CXXFLAGS=$CXXFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3001 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cxx_g+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3006    ac_cxx_werror_flag=yes
3007    ac_cv_prog_cxx_g=no
3008    CXXFLAGS="-g"
3009    cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_compile") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } &&
3038          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3039   { (case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_try") 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; } &&
3048          { ac_try='test -s conftest.$ac_objext'
3049   { (case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_try") 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; }; then
3058   ac_cv_prog_cxx_g=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063         CXXFLAGS=""
3064       cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070
3071 int
3072 main ()
3073 {
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_compile") 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } &&
3093          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; } &&
3103          { ac_try='test -s conftest.$ac_objext'
3104   { (case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_try") 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   :
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3119          CXXFLAGS="-g"
3120          cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } &&
3149          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   ac_cv_prog_cxx_g=yes
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3185 fi
3186 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3188 if test "$ac_test_CXXFLAGS" = set; then
3189   CXXFLAGS=$ac_save_CXXFLAGS
3190 elif test $ac_cv_prog_cxx_g = yes; then
3191   if test "$GXX" = yes; then
3192     CXXFLAGS="-g -O2"
3193   else
3194     CXXFLAGS="-g"
3195   fi
3196 else
3197   if test "$GXX" = yes; then
3198     CXXFLAGS="-O2"
3199   else
3200     CXXFLAGS=
3201   fi
3202 fi
3203 ac_ext=c
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208
3209 ac_ext=c
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3215 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3216 # On Suns, sometimes $CPP names a directory.
3217 if test -n "$CPP" && test -d "$CPP"; then
3218   CPP=
3219 fi
3220 if test -z "$CPP"; then
3221   if test "${ac_cv_prog_CPP+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224       # Double quotes because CPP needs to be expanded
3225     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3226     do
3227       ac_preproc_ok=false
3228 for ac_c_preproc_warn_flag in '' yes
3229 do
3230   # Use a header file that comes with gcc, so configuring glibc
3231   # with a fresh cross-compiler works.
3232   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233   # <limits.h> exists even on freestanding compilers.
3234   # On the NeXT, cc -E runs the code through the compiler's parser,
3235   # not just through cpp. "Syntax error" is here to catch this case.
3236   cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h.  */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h.  */
3242 #ifdef __STDC__
3243 # include <limits.h>
3244 #else
3245 # include <assert.h>
3246 #endif
3247                      Syntax error
3248 _ACEOF
3249 if { (ac_try="$ac_cpp conftest.$ac_ext"
3250 case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3256   ac_status=$?
3257   grep -v '^ *+' conftest.er1 >conftest.err
3258   rm -f conftest.er1
3259   cat conftest.err >&5
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); } >/dev/null; then
3262   if test -s conftest.err; then
3263     ac_cpp_err=$ac_c_preproc_warn_flag
3264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265   else
3266     ac_cpp_err=
3267   fi
3268 else
3269   ac_cpp_err=yes
3270 fi
3271 if test -z "$ac_cpp_err"; then
3272   :
3273 else
3274   echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277   # Broken: fails on valid input.
3278 continue
3279 fi
3280
3281 rm -f conftest.err conftest.$ac_ext
3282
3283   # OK, works on sane cases.  Now check whether nonexistent headers
3284   # can be detected and how.
3285   cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h.  */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h.  */
3291 #include <ac_nonexistent.h>
3292 _ACEOF
3293 if { (ac_try="$ac_cpp conftest.$ac_ext"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3300   ac_status=$?
3301   grep -v '^ *+' conftest.er1 >conftest.err
3302   rm -f conftest.er1
3303   cat conftest.err >&5
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); } >/dev/null; then
3306   if test -s conftest.err; then
3307     ac_cpp_err=$ac_c_preproc_warn_flag
3308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3309   else
3310     ac_cpp_err=
3311   fi
3312 else
3313   ac_cpp_err=yes
3314 fi
3315 if test -z "$ac_cpp_err"; then
3316   # Broken: success on invalid input.
3317 continue
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322   # Passes both tests.
3323 ac_preproc_ok=:
3324 break
3325 fi
3326
3327 rm -f conftest.err conftest.$ac_ext
3328
3329 done
3330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331 rm -f conftest.err conftest.$ac_ext
3332 if $ac_preproc_ok; then
3333   break
3334 fi
3335
3336     done
3337     ac_cv_prog_CPP=$CPP
3338
3339 fi
3340   CPP=$ac_cv_prog_CPP
3341 else
3342   ac_cv_prog_CPP=$CPP
3343 fi
3344 { echo "$as_me:$LINENO: result: $CPP" >&5
3345 echo "${ECHO_T}$CPP" >&6; }
3346 ac_preproc_ok=false
3347 for ac_c_preproc_warn_flag in '' yes
3348 do
3349   # Use a header file that comes with gcc, so configuring glibc
3350   # with a fresh cross-compiler works.
3351   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352   # <limits.h> exists even on freestanding compilers.
3353   # On the NeXT, cc -E runs the code through the compiler's parser,
3354   # not just through cpp. "Syntax error" is here to catch this case.
3355   cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h.  */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h.  */
3361 #ifdef __STDC__
3362 # include <limits.h>
3363 #else
3364 # include <assert.h>
3365 #endif
3366                      Syntax error
3367 _ACEOF
3368 if { (ac_try="$ac_cpp conftest.$ac_ext"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3375   ac_status=$?
3376   grep -v '^ *+' conftest.er1 >conftest.err
3377   rm -f conftest.er1
3378   cat conftest.err >&5
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); } >/dev/null; then
3381   if test -s conftest.err; then
3382     ac_cpp_err=$ac_c_preproc_warn_flag
3383     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384   else
3385     ac_cpp_err=
3386   fi
3387 else
3388   ac_cpp_err=yes
3389 fi
3390 if test -z "$ac_cpp_err"; then
3391   :
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396   # Broken: fails on valid input.
3397 continue
3398 fi
3399
3400 rm -f conftest.err conftest.$ac_ext
3401
3402   # OK, works on sane cases.  Now check whether nonexistent headers
3403   # can be detected and how.
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410 #include <ac_nonexistent.h>
3411 _ACEOF
3412 if { (ac_try="$ac_cpp conftest.$ac_ext"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } >/dev/null; then
3425   if test -s conftest.err; then
3426     ac_cpp_err=$ac_c_preproc_warn_flag
3427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428   else
3429     ac_cpp_err=
3430   fi
3431 else
3432   ac_cpp_err=yes
3433 fi
3434 if test -z "$ac_cpp_err"; then
3435   # Broken: success on invalid input.
3436 continue
3437 else
3438   echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441   # Passes both tests.
3442 ac_preproc_ok=:
3443 break
3444 fi
3445
3446 rm -f conftest.err conftest.$ac_ext
3447
3448 done
3449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450 rm -f conftest.err conftest.$ac_ext
3451 if $ac_preproc_ok; then
3452   :
3453 else
3454   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details." >&5
3456 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3457 See \`config.log' for more details." >&2;}
3458    { (exit 1); exit 1; }; }
3459 fi
3460
3461 ac_ext=c
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467
3468
3469
3470 if test -d ${srcdir}/projects/llvm-gcc ; then
3471   subdirs="$subdirs projects/llvm-gcc"
3472
3473 fi
3474
3475 if test -d ${srcdir}/projects/test-suite ; then
3476   subdirs="$subdirs projects/test-suite"
3477
3478 fi
3479
3480 if test -d ${srcdir}/projects/llvm-test ; then
3481   subdirs="$subdirs projects/llvm-test"
3482
3483 fi
3484
3485 if test -d ${srcdir}/projects/poolalloc ; then
3486   subdirs="$subdirs projects/poolalloc"
3487
3488 fi
3489
3490 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3491   subdirs="$subdirs projects/llvm-poolalloc"
3492
3493 fi
3494
3495 for i in `ls ${srcdir}/projects`
3496 do
3497   if test -d ${srcdir}/projects/${i} ; then
3498     case ${i} in
3499       sample)       subdirs="$subdirs projects/sample"
3500     ;;
3501       privbracket)  subdirs="$subdirs projects/privbracket"
3502  ;;
3503       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3504  ;;
3505       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3506 ;;
3507       llvm-java)    subdirs="$subdirs projects/llvm-java"
3508  ;;
3509       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3510    ;;
3511       safecode)     subdirs="$subdirs projects/safecode"
3512  ;;
3513       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3514  ;;
3515       compiler-rt)       ;;
3516       llvm-gcc)       ;;
3517       test-suite)     ;;
3518       llvm-test)      ;;
3519       poolalloc)      ;;
3520       llvm-poolalloc) ;;
3521       *)
3522         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3523 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3524         ;;
3525     esac
3526   fi
3527 done
3528
3529 # Check whether --enable-polly was given.
3530 if test "${enable_polly+set}" = set; then
3531   enableval=$enable_polly;
3532 else
3533   enableval=default
3534 fi
3535
3536 case "$enableval" in
3537   yes) ENABLE_POLLY=1
3538  ;;
3539   no)  ENABLE_POLLY=0
3540  ;;
3541   default) ENABLE_POLLY=1
3542  ;;
3543   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3544 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3545    { (exit 1); exit 1; }; } ;;
3546 esac
3547
3548
3549 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3550   LLVM_HAS_POLLY=1
3551
3552   subdirs="$subdirs tools/polly"
3553
3554 fi
3555
3556
3557 # Make sure we can run config.sub.
3558 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3559   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3560 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3561    { (exit 1); exit 1; }; }
3562
3563 { echo "$as_me:$LINENO: checking build system type" >&5
3564 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3565 if test "${ac_cv_build+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   ac_build_alias=$build_alias
3569 test "x$ac_build_alias" = x &&
3570   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3571 test "x$ac_build_alias" = x &&
3572   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3574    { (exit 1); exit 1; }; }
3575 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3576   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3577 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3578    { (exit 1); exit 1; }; }
3579
3580 fi
3581 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3582 echo "${ECHO_T}$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3584 *-*-*) ;;
3585 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3586 echo "$as_me: error: invalid value of canonical build" >&2;}
3587    { (exit 1); exit 1; }; };;
3588 esac
3589 build=$ac_cv_build
3590 ac_save_IFS=$IFS; IFS='-'
3591 set x $ac_cv_build
3592 shift
3593 build_cpu=$1
3594 build_vendor=$2
3595 shift; shift
3596 # Remember, the first character of IFS is used to create $*,
3597 # except with old shells:
3598 build_os=$*
3599 IFS=$ac_save_IFS
3600 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3601
3602
3603 { echo "$as_me:$LINENO: checking host system type" >&5
3604 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3605 if test "${ac_cv_host+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   if test "x$host_alias" = x; then
3609   ac_cv_host=$ac_cv_build
3610 else
3611   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3612     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3613 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3614    { (exit 1); exit 1; }; }
3615 fi
3616
3617 fi
3618 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3619 echo "${ECHO_T}$ac_cv_host" >&6; }
3620 case $ac_cv_host in
3621 *-*-*) ;;
3622 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3623 echo "$as_me: error: invalid value of canonical host" >&2;}
3624    { (exit 1); exit 1; }; };;
3625 esac
3626 host=$ac_cv_host
3627 ac_save_IFS=$IFS; IFS='-'
3628 set x $ac_cv_host
3629 shift
3630 host_cpu=$1
3631 host_vendor=$2
3632 shift; shift
3633 # Remember, the first character of IFS is used to create $*,
3634 # except with old shells:
3635 host_os=$*
3636 IFS=$ac_save_IFS
3637 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3638
3639
3640 { echo "$as_me:$LINENO: checking target system type" >&5
3641 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3642 if test "${ac_cv_target+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   if test "x$target_alias" = x; then
3646   ac_cv_target=$ac_cv_host
3647 else
3648   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3649     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3650 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3651    { (exit 1); exit 1; }; }
3652 fi
3653
3654 fi
3655 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3656 echo "${ECHO_T}$ac_cv_target" >&6; }
3657 case $ac_cv_target in
3658 *-*-*) ;;
3659 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3660 echo "$as_me: error: invalid value of canonical target" >&2;}
3661    { (exit 1); exit 1; }; };;
3662 esac
3663 target=$ac_cv_target
3664 ac_save_IFS=$IFS; IFS='-'
3665 set x $ac_cv_target
3666 shift
3667 target_cpu=$1
3668 target_vendor=$2
3669 shift; shift
3670 # Remember, the first character of IFS is used to create $*,
3671 # except with old shells:
3672 target_os=$*
3673 IFS=$ac_save_IFS
3674 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3675
3676
3677 # The aliases save the names the user supplied, while $host etc.
3678 # will get canonicalized.
3679 test -n "$target_alias" &&
3680   test "$program_prefix$program_suffix$program_transform_name" = \
3681     NONENONEs,x,x, &&
3682   program_prefix=${target_alias}-
3683
3684 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3685 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3686 if test "${llvm_cv_os_type+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   case $host in
3690   *-*-aix*)
3691     llvm_cv_link_all_option="-Wl,--whole-archive"
3692     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693     llvm_cv_os_type="AIX"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-irix*)
3696     llvm_cv_link_all_option="-Wl,--whole-archive"
3697     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698     llvm_cv_os_type="IRIX"
3699     llvm_cv_platform_type="Unix" ;;
3700   *-*-cygwin*)
3701     llvm_cv_link_all_option="-Wl,--whole-archive"
3702     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703     llvm_cv_os_type="Cygwin"
3704     llvm_cv_platform_type="Unix" ;;
3705   *-*-darwin*)
3706     llvm_cv_link_all_option="-Wl,-all_load"
3707     llvm_cv_no_link_all_option="-Wl,-noall_load"
3708     llvm_cv_os_type="Darwin"
3709     llvm_cv_platform_type="Unix" ;;
3710   *-*-minix*)
3711     llvm_cv_link_all_option="-Wl,-all_load"
3712     llvm_cv_no_link_all_option="-Wl,-noall_load"
3713     llvm_cv_os_type="Minix"
3714     llvm_cv_platform_type="Unix" ;;
3715   *-*-freebsd* | *-*-kfreebsd-gnu)
3716     llvm_cv_link_all_option="-Wl,--whole-archive"
3717     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718     llvm_cv_os_type="FreeBSD"
3719     llvm_cv_platform_type="Unix" ;;
3720   *-*-openbsd*)
3721     llvm_cv_link_all_option="-Wl,--whole-archive"
3722     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723     llvm_cv_os_type="OpenBSD"
3724     llvm_cv_platform_type="Unix" ;;
3725   *-*-netbsd*)
3726     llvm_cv_link_all_option="-Wl,--whole-archive"
3727     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728     llvm_cv_os_type="NetBSD"
3729     llvm_cv_platform_type="Unix" ;;
3730   *-*-dragonfly*)
3731     llvm_cv_link_all_option="-Wl,--whole-archive"
3732     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733     llvm_cv_os_type="DragonFly"
3734     llvm_cv_platform_type="Unix" ;;
3735   *-*-hpux*)
3736     llvm_cv_link_all_option="-Wl,--whole-archive"
3737     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738     llvm_cv_os_type="HP-UX"
3739     llvm_cv_platform_type="Unix" ;;
3740   *-*-interix*)
3741     llvm_cv_link_all_option="-Wl,--whole-archive"
3742     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743     llvm_cv_os_type="Interix"
3744     llvm_cv_platform_type="Unix" ;;
3745   *-*-linux*)
3746     llvm_cv_link_all_option="-Wl,--whole-archive"
3747     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748     llvm_cv_os_type="Linux"
3749     llvm_cv_platform_type="Unix" ;;
3750   *-*-gnu*)
3751     llvm_cv_link_all_option="-Wl,--whole-archive"
3752     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753     llvm_cv_os_type="GNU"
3754     llvm_cv_platform_type="Unix" ;;
3755   *-*-solaris*)
3756     llvm_cv_link_all_option="-Wl,-z,allextract"
3757     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3758     llvm_cv_os_type="SunOS"
3759     llvm_cv_platform_type="Unix" ;;
3760   *-*-auroraux*)
3761     llvm_cv_link_all_option="-Wl,-z,allextract"
3762     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3763     llvm_cv_os_type="AuroraUX"
3764     llvm_cv_platform_type="Unix" ;;
3765   *-*-win32*)
3766     llvm_cv_link_all_option="-Wl,--whole-archive"
3767     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768     llvm_cv_os_type="Win32"
3769     llvm_cv_platform_type="Win32" ;;
3770   *-*-mingw*)
3771     llvm_cv_link_all_option="-Wl,--whole-archive"
3772     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773     llvm_cv_os_type="MingW"
3774     llvm_cv_platform_type="Win32" ;;
3775   *-*-haiku*)
3776     llvm_cv_link_all_option="-Wl,--whole-archive"
3777     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3778     llvm_cv_os_type="Haiku"
3779     llvm_cv_platform_type="Unix" ;;
3780   *-unknown-eabi*)
3781     llvm_cv_link_all_option="-Wl,--whole-archive"
3782     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3783     llvm_cv_os_type="Freestanding"
3784     llvm_cv_platform_type="Unix" ;;
3785   *-unknown-elf*)
3786     llvm_cv_link_all_option="-Wl,--whole-archive"
3787     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3788     llvm_cv_os_type="Freestanding"
3789     llvm_cv_platform_type="Unix" ;;
3790   *)
3791     llvm_cv_link_all_option=""
3792     llvm_cv_no_link_all_option=""
3793     llvm_cv_os_type="Unknown"
3794     llvm_cv_platform_type="Unknown" ;;
3795 esac
3796 fi
3797 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3798 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3799
3800 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3801 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3802 if test "${llvm_cv_target_os_type+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   case $target in
3806   *-*-aix*)
3807     llvm_cv_target_os_type="AIX" ;;
3808   *-*-irix*)
3809     llvm_cv_target_os_type="IRIX" ;;
3810   *-*-cygwin*)
3811     llvm_cv_target_os_type="Cygwin" ;;
3812   *-*-darwin*)
3813     llvm_cv_target_os_type="Darwin" ;;
3814   *-*-minix*)
3815     llvm_cv_target_os_type="Minix" ;;
3816   *-*-freebsd* | *-*-kfreebsd-gnu)
3817     llvm_cv_target_os_type="FreeBSD" ;;
3818   *-*-openbsd*)
3819     llvm_cv_target_os_type="OpenBSD" ;;
3820   *-*-netbsd*)
3821     llvm_cv_target_os_type="NetBSD" ;;
3822   *-*-dragonfly*)
3823     llvm_cv_target_os_type="DragonFly" ;;
3824   *-*-hpux*)
3825     llvm_cv_target_os_type="HP-UX" ;;
3826   *-*-interix*)
3827     llvm_cv_target_os_type="Interix" ;;
3828   *-*-linux*)
3829     llvm_cv_target_os_type="Linux" ;;
3830   *-*-gnu*)
3831     llvm_cv_target_os_type="GNU" ;;
3832   *-*-solaris*)
3833     llvm_cv_target_os_type="SunOS" ;;
3834   *-*-auroraux*)
3835     llvm_cv_target_os_type="AuroraUX" ;;
3836   *-*-win32*)
3837     llvm_cv_target_os_type="Win32" ;;
3838   *-*-mingw*)
3839     llvm_cv_target_os_type="MingW" ;;
3840   *-*-haiku*)
3841     llvm_cv_target_os_type="Haiku" ;;
3842   *-*-rtems*)
3843     llvm_cv_target_os_type="RTEMS" ;;
3844   *-*-nacl*)
3845     llvm_cv_target_os_type="NativeClient" ;;
3846   *-unknown-eabi*)
3847     llvm_cv_target_os_type="Freestanding" ;;
3848   *)
3849     llvm_cv_target_os_type="Unknown" ;;
3850 esac
3851 fi
3852 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3853 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3854
3855 if test "$llvm_cv_os_type" = "Unknown" ; then
3856   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3857 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3858    { (exit 1); exit 1; }; }
3859 fi
3860
3861 OS=$llvm_cv_os_type
3862
3863 HOST_OS=$llvm_cv_os_type
3864
3865 TARGET_OS=$llvm_cv_target_os_type
3866
3867
3868 LINKALL=$llvm_cv_link_all_option
3869
3870 NOLINKALL=$llvm_cv_no_link_all_option
3871
3872
3873 case $llvm_cv_platform_type in
3874   Unix)
3875
3876 cat >>confdefs.h <<\_ACEOF
3877 #define LLVM_ON_UNIX 1
3878 _ACEOF
3879
3880     LLVM_ON_UNIX=1
3881
3882     LLVM_ON_WIN32=0
3883
3884     ;;
3885   Win32)
3886
3887 cat >>confdefs.h <<\_ACEOF
3888 #define LLVM_ON_WIN32 1
3889 _ACEOF
3890
3891     LLVM_ON_UNIX=0
3892
3893     LLVM_ON_WIN32=1
3894
3895     ;;
3896 esac
3897
3898 { echo "$as_me:$LINENO: checking target architecture" >&5
3899 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3900 if test "${llvm_cv_target_arch+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   case $target in
3904   i?86-*)                 llvm_cv_target_arch="x86" ;;
3905   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3906   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3907   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3908   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3909   mips-*)                 llvm_cv_target_arch="Mips" ;;
3910   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3911   xcore-*)                llvm_cv_target_arch="XCore" ;;
3912   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3913   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3914   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3915   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3916   *)                      llvm_cv_target_arch="Unknown" ;;
3917 esac
3918 fi
3919 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3920 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3921
3922 if test "$llvm_cv_target_arch" = "Unknown" ; then
3923   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3924 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3925 fi
3926
3927 case "$llvm_cv_target_arch" in
3928     x86)     LLVM_NATIVE_ARCH="X86" ;;
3929     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3930     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3931 esac
3932
3933 ARCH=$llvm_cv_target_arch
3934
3935
3936 case $host in
3937   i?86-*)                 host_arch="x86" ;;
3938   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3939   sparc*-*)               host_arch="Sparc" ;;
3940   powerpc*-*)             host_arch="PowerPC" ;;
3941   arm*-*)                 host_arch="ARM" ;;
3942   mips-*)                 host_arch="Mips" ;;
3943   mipsel-*)               host_arch="Mips" ;;
3944   xcore-*)                host_arch="XCore" ;;
3945   msp430-*)               host_arch="MSP430" ;;
3946   hexagon-*)              host_arch="Hexagon" ;;
3947   mblaze-*)               host_arch="MBlaze" ;;
3948   *)                      host_arch="Unknown" ;;
3949 esac
3950
3951 if test "$host_arch" = "Unknown" ; then
3952   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3953 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3954 fi
3955
3956 HOST_ARCH=$host_arch
3957
3958
3959
3960
3961 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3962 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3963 if test "${ac_cv_path_GREP+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   # Extract the first word of "grep ggrep" to use in msg output
3967 if test -z "$GREP"; then
3968 set dummy grep ggrep; ac_prog_name=$2
3969 if test "${ac_cv_path_GREP+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_path_GREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_prog in grep ggrep; do
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3983     # Check for GNU ac_path_GREP and select it if it is found.
3984   # Check for GNU $ac_path_GREP
3985 case `"$ac_path_GREP" --version 2>&1` in
3986 *GNU*)
3987   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 *)
3989   ac_count=0
3990   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991   while :
3992   do
3993     cat "conftest.in" "conftest.in" >"conftest.tmp"
3994     mv "conftest.tmp" "conftest.in"
3995     cp "conftest.in" "conftest.nl"
3996     echo 'GREP' >> "conftest.nl"
3997     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999     ac_count=`expr $ac_count + 1`
4000     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001       # Best one so far, save it but keep looking for a better one
4002       ac_cv_path_GREP="$ac_path_GREP"
4003       ac_path_GREP_max=$ac_count
4004     fi
4005     # 10*(2^10) chars as input seems more than enough
4006     test $ac_count -gt 10 && break
4007   done
4008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4010
4011
4012     $ac_path_GREP_found && break 3
4013   done
4014 done
4015
4016 done
4017 IFS=$as_save_IFS
4018
4019
4020 fi
4021
4022 GREP="$ac_cv_path_GREP"
4023 if test -z "$GREP"; then
4024   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 else
4030   ac_cv_path_GREP=$GREP
4031 fi
4032
4033
4034 fi
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4037  GREP="$ac_cv_path_GREP"
4038
4039
4040 { echo "$as_me:$LINENO: checking for egrep" >&5
4041 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046    then ac_cv_path_EGREP="$GREP -E"
4047    else
4048      # Extract the first word of "egrep" to use in msg output
4049 if test -z "$EGREP"; then
4050 set dummy egrep; ac_prog_name=$2
4051 if test "${ac_cv_path_EGREP+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   ac_path_EGREP_found=false
4055 # Loop through the user's path and test for each of PROGNAME-LIST
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_prog in egrep; do
4062   for ac_exec_ext in '' $ac_executable_extensions; do
4063     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4065     # Check for GNU ac_path_EGREP and select it if it is found.
4066   # Check for GNU $ac_path_EGREP
4067 case `"$ac_path_EGREP" --version 2>&1` in
4068 *GNU*)
4069   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 *)
4071   ac_count=0
4072   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073   while :
4074   do
4075     cat "conftest.in" "conftest.in" >"conftest.tmp"
4076     mv "conftest.tmp" "conftest.in"
4077     cp "conftest.in" "conftest.nl"
4078     echo 'EGREP' >> "conftest.nl"
4079     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081     ac_count=`expr $ac_count + 1`
4082     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083       # Best one so far, save it but keep looking for a better one
4084       ac_cv_path_EGREP="$ac_path_EGREP"
4085       ac_path_EGREP_max=$ac_count
4086     fi
4087     # 10*(2^10) chars as input seems more than enough
4088     test $ac_count -gt 10 && break
4089   done
4090   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 esac
4092
4093
4094     $ac_path_EGREP_found && break 3
4095   done
4096 done
4097
4098 done
4099 IFS=$as_save_IFS
4100
4101
4102 fi
4103
4104 EGREP="$ac_cv_path_EGREP"
4105 if test -z "$EGREP"; then
4106   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108    { (exit 1); exit 1; }; }
4109 fi
4110
4111 else
4112   ac_cv_path_EGREP=$EGREP
4113 fi
4114
4115
4116    fi
4117 fi
4118 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4119 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4120  EGREP="$ac_cv_path_EGREP"
4121
4122
4123 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4124 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4125 if test "${ac_cv_header_stdc+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 #include <stdlib.h>
4135 #include <stdarg.h>
4136 #include <string.h>
4137 #include <float.h>
4138
4139 int
4140 main ()
4141 {
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4149 case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154   (eval "$ac_compile") 2>conftest.er1
4155   ac_status=$?
4156   grep -v '^ *+' conftest.er1 >conftest.err
4157   rm -f conftest.er1
4158   cat conftest.err >&5
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); } &&
4161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4162   { (case "(($ac_try" in
4163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164   *) ac_try_echo=$ac_try;;
4165 esac
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167   (eval "$ac_try") 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; } &&
4171          { ac_try='test -s conftest.$ac_objext'
4172   { (case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177   (eval "$ac_try") 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; }; then
4181   ac_cv_header_stdc=yes
4182 else
4183   echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186         ac_cv_header_stdc=no
4187 fi
4188
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190
4191 if test $ac_cv_header_stdc = yes; then
4192   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4193   cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 #include <string.h>
4200
4201 _ACEOF
4202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4203   $EGREP "memchr" >/dev/null 2>&1; then
4204   :
4205 else
4206   ac_cv_header_stdc=no
4207 fi
4208 rm -f conftest*
4209
4210 fi
4211
4212 if test $ac_cv_header_stdc = yes; then
4213   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4214   cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220 #include <stdlib.h>
4221
4222 _ACEOF
4223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4224   $EGREP "free" >/dev/null 2>&1; then
4225   :
4226 else
4227   ac_cv_header_stdc=no
4228 fi
4229 rm -f conftest*
4230
4231 fi
4232
4233 if test $ac_cv_header_stdc = yes; then
4234   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4235   if test "$cross_compiling" = yes; then
4236   :
4237 else
4238   cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h.  */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h.  */
4244 #include <ctype.h>
4245 #include <stdlib.h>
4246 #if ((' ' & 0x0FF) == 0x020)
4247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4249 #else
4250 # define ISLOWER(c) \
4251                    (('a' <= (c) && (c) <= 'i') \
4252                      || ('j' <= (c) && (c) <= 'r') \
4253                      || ('s' <= (c) && (c) <= 'z'))
4254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4255 #endif
4256
4257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4258 int
4259 main ()
4260 {
4261   int i;
4262   for (i = 0; i < 256; i++)
4263     if (XOR (islower (i), ISLOWER (i))
4264         || toupper (i) != TOUPPER (i))
4265       return 2;
4266   return 0;
4267 }
4268 _ACEOF
4269 rm -f conftest$ac_exeext
4270 if { (ac_try="$ac_link"
4271 case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276   (eval "$ac_link") 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280   { (case "(($ac_try" in
4281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282   *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285   (eval "$ac_try") 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; }; then
4289   :
4290 else
4291   echo "$as_me: program exited with status $ac_status" >&5
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 ( exit $ac_status )
4296 ac_cv_header_stdc=no
4297 fi
4298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4299 fi
4300
4301
4302 fi
4303 fi
4304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4306 if test $ac_cv_header_stdc = yes; then
4307
4308 cat >>confdefs.h <<\_ACEOF
4309 #define STDC_HEADERS 1
4310 _ACEOF
4311
4312 fi
4313
4314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4325                   inttypes.h stdint.h unistd.h
4326 do
4327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h.  */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h.  */
4339 $ac_includes_default
4340
4341 #include <$ac_header>
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4345 case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350   (eval "$ac_compile") 2>conftest.er1
4351   ac_status=$?
4352   grep -v '^ *+' conftest.er1 >conftest.err
4353   rm -f conftest.er1
4354   cat conftest.err >&5
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); } &&
4357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4358   { (case "(($ac_try" in
4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360   *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363   (eval "$ac_try") 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; } &&
4367          { ac_try='test -s conftest.$ac_objext'
4368   { (case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373   (eval "$ac_try") 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   eval "$as_ac_Header=yes"
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382         eval "$as_ac_Header=no"
4383 fi
4384
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 fi
4387 ac_res=`eval echo '${'$as_ac_Header'}'`
4388                { echo "$as_me:$LINENO: result: $ac_res" >&5
4389 echo "${ECHO_T}$ac_res" >&6; }
4390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4391   cat >>confdefs.h <<_ACEOF
4392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4393 _ACEOF
4394
4395 fi
4396
4397 done
4398
4399
4400 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4401 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4402 if test "${ac_cv_c_bigendian+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   # See if sys/param.h defines the BYTE_ORDER macro.
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h.  */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h.  */
4412 #include <sys/types.h>
4413 #include <sys/param.h>
4414
4415 int
4416 main ()
4417 {
4418 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4419  bogus endian macros
4420 #endif
4421
4422   ;
4423   return 0;
4424 }
4425 _ACEOF
4426 rm -f conftest.$ac_objext
4427 if { (ac_try="$ac_compile"
4428 case "(($ac_try" in
4429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430   *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433   (eval "$ac_compile") 2>conftest.er1
4434   ac_status=$?
4435   grep -v '^ *+' conftest.er1 >conftest.err
4436   rm -f conftest.er1
4437   cat conftest.err >&5
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); } &&
4440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4441   { (case "(($ac_try" in
4442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443   *) ac_try_echo=$ac_try;;
4444 esac
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446   (eval "$ac_try") 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); }; } &&
4450          { ac_try='test -s conftest.$ac_objext'
4451   { (case "(($ac_try" in
4452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453   *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456   (eval "$ac_try") 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; }; then
4460   # It does; now see whether it defined to BIG_ENDIAN or not.
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h.  */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h.  */
4467 #include <sys/types.h>
4468 #include <sys/param.h>
4469
4470 int
4471 main ()
4472 {
4473 #if BYTE_ORDER != BIG_ENDIAN
4474  not big endian
4475 #endif
4476
4477   ;
4478   return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (ac_try="$ac_compile"
4483 case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_compile") 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } &&
4495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4496   { (case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501   (eval "$ac_try") 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; } &&
4505          { ac_try='test -s conftest.$ac_objext'
4506   { (case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511   (eval "$ac_try") 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); }; }; then
4515   ac_cv_c_bigendian=yes
4516 else
4517   echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520         ac_cv_c_bigendian=no
4521 fi
4522
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 else
4525   echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528         # It does not; compile a test program.
4529 if test "$cross_compiling" = yes; then
4530   # try to guess the endianness by grepping values into an object file
4531   ac_cv_c_bigendian=unknown
4532   cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4539 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4540 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4541 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4542 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4543 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4544 int
4545 main ()
4546 {
4547  _ascii (); _ebcdic ();
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4554 case "(($ac_try" in
4555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556   *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559   (eval "$ac_compile") 2>conftest.er1
4560   ac_status=$?
4561   grep -v '^ *+' conftest.er1 >conftest.err
4562   rm -f conftest.er1
4563   cat conftest.err >&5
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); } &&
4566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567   { (case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572   (eval "$ac_try") 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; } &&
4576          { ac_try='test -s conftest.$ac_objext'
4577   { (case "(($ac_try" in
4578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579   *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582   (eval "$ac_try") 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }; }; then
4586   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4587   ac_cv_c_bigendian=yes
4588 fi
4589 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4590   if test "$ac_cv_c_bigendian" = unknown; then
4591     ac_cv_c_bigendian=no
4592   else
4593     # finding both strings is unlikely to happen, but who knows?
4594     ac_cv_c_bigendian=unknown
4595   fi
4596 fi
4597 else
4598   echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4600
4601
4602 fi
4603
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 else
4606   cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612 $ac_includes_default
4613 int
4614 main ()
4615 {
4616
4617   /* Are we little or big endian?  From Harbison&Steele.  */
4618   union
4619   {
4620     long int l;
4621     char c[sizeof (long int)];
4622   } u;
4623   u.l = 1;
4624   return u.c[sizeof (long int) - 1] == 1;
4625
4626   ;
4627   return 0;
4628 }
4629 _ACEOF
4630 rm -f conftest$ac_exeext
4631 if { (ac_try="$ac_link"
4632 case "(($ac_try" in
4633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634   *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637   (eval "$ac_link") 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4641   { (case "(($ac_try" in
4642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643   *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646   (eval "$ac_try") 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; }; then
4650   ac_cv_c_bigendian=no
4651 else
4652   echo "$as_me: program exited with status $ac_status" >&5
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656 ( exit $ac_status )
4657 ac_cv_c_bigendian=yes
4658 fi
4659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4660 fi
4661
4662
4663 fi
4664
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 fi
4667 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4668 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4669 case $ac_cv_c_bigendian in
4670   yes)
4671     ENDIAN=big
4672  ;;
4673   no)
4674     ENDIAN=little
4675  ;;
4676   *)
4677     { { echo "$as_me:$LINENO: error: unknown endianness
4678 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4679 echo "$as_me: error: unknown endianness
4680 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4681    { (exit 1); exit 1; }; } ;;
4682 esac
4683
4684
4685 if test "$cross_compiling" = yes; then
4686   LLVM_CROSS_COMPILING=1
4687
4688
4689 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4690 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4691 if test "${ac_cv_build_exeext+set}" = set; then
4692   echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4695   ac_cv_build_exeext=.exe
4696 else
4697   ac_build_prefix=${build_alias}-
4698
4699   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4700 set dummy ${ac_build_prefix}gcc; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4704   echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706   if test -n "$BUILD_CC"; then
4707   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 BUILD_CC=$ac_cv_prog_BUILD_CC
4727 if test -n "$BUILD_CC"; then
4728   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729 echo "${ECHO_T}$BUILD_CC" >&6; }
4730 else
4731   { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4733 fi
4734
4735
4736   if test -z "$BUILD_CC"; then
4737      # Extract the first word of "gcc", so it can be a program name with args.
4738 set dummy gcc; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   if test -n "$BUILD_CC"; then
4745   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752   for ac_exec_ext in '' $ac_executable_extensions; do
4753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4754     ac_cv_prog_BUILD_CC="gcc"
4755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759 done
4760 IFS=$as_save_IFS
4761
4762 fi
4763 fi
4764 BUILD_CC=$ac_cv_prog_BUILD_CC
4765 if test -n "$BUILD_CC"; then
4766   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4767 echo "${ECHO_T}$BUILD_CC" >&6; }
4768 else
4769   { echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6; }
4771 fi
4772
4773
4774      if test -z "$BUILD_CC"; then
4775        # Extract the first word of "cc", so it can be a program name with args.
4776 set dummy cc; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   if test -n "$BUILD_CC"; then
4783   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4784 else
4785   ac_prog_rejected=no
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791   for ac_exec_ext in '' $ac_executable_extensions; do
4792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4793     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4794        ac_prog_rejected=yes
4795        continue
4796      fi
4797     ac_cv_prog_BUILD_CC="cc"
4798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799     break 2
4800   fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805 if test $ac_prog_rejected = yes; then
4806   # We found a bogon in the path, so make sure we never use it.
4807   set dummy $ac_cv_prog_BUILD_CC
4808   shift
4809   if test $# != 0; then
4810     # We chose a different compiler from the bogus one.
4811     # However, it has the same basename, so the bogon will be chosen
4812     # first if we set BUILD_CC to just the basename; use the full file name.
4813     shift
4814     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4815   fi
4816 fi
4817 fi
4818 fi
4819 BUILD_CC=$ac_cv_prog_BUILD_CC
4820 if test -n "$BUILD_CC"; then
4821   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4822 echo "${ECHO_T}$BUILD_CC" >&6; }
4823 else
4824   { echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6; }
4826 fi
4827
4828
4829      fi
4830   fi
4831   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4832 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4833    { (exit 1); exit 1; }; }
4834   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4835   rm -f conftest*
4836   echo 'int main () { return 0; }' > conftest.$ac_ext
4837   ac_cv_build_exeext=
4838   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4839   (eval $ac_build_link) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; then
4843     for file in conftest.*; do
4844       case $file in
4845       *.c | *.o | *.obj | *.dSYM) ;;
4846       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4847       esac
4848     done
4849   else
4850     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4851 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4852    { (exit 1); exit 1; }; }
4853   fi
4854   rm -f conftest*
4855   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4856 fi
4857 fi
4858
4859 BUILD_EXEEXT=""
4860 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4861 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4862 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4863 ac_build_exeext=$BUILD_EXEEXT
4864
4865   ac_build_prefix=${build_alias}-
4866   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4867 set dummy ${ac_build_prefix}g++; ac_word=$2
4868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   if test -n "$BUILD_CXX"; then
4874   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894 if test -n "$BUILD_CXX"; then
4895   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896 echo "${ECHO_T}$BUILD_CXX" >&6; }
4897 else
4898   { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4900 fi
4901
4902
4903   if test -z "$BUILD_CXX"; then
4904      # Extract the first word of "g++", so it can be a program name with args.
4905 set dummy g++; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   if test -n "$BUILD_CXX"; then
4912   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4921     ac_cv_prog_BUILD_CXX="g++"
4922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 fi
4930 fi
4931 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4932 if test -n "$BUILD_CXX"; then
4933   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4934 echo "${ECHO_T}$BUILD_CXX" >&6; }
4935 else
4936   { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4938 fi
4939
4940
4941      if test -z "$BUILD_CXX"; then
4942        # Extract the first word of "c++", so it can be a program name with args.
4943 set dummy c++; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   if test -n "$BUILD_CXX"; then
4950   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4951 else
4952   ac_prog_rejected=no
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958   for ac_exec_ext in '' $ac_executable_extensions; do
4959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4960     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4961        ac_prog_rejected=yes
4962        continue
4963      fi
4964     ac_cv_prog_BUILD_CXX="c++"
4965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969 done
4970 IFS=$as_save_IFS
4971
4972 if test $ac_prog_rejected = yes; then
4973   # We found a bogon in the path, so make sure we never use it.
4974   set dummy $ac_cv_prog_BUILD_CXX
4975   shift
4976   if test $# != 0; then
4977     # We chose a different compiler from the bogus one.
4978     # However, it has the same basename, so the bogon will be chosen
4979     # first if we set BUILD_CXX to just the basename; use the full file name.
4980     shift
4981     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4982   fi
4983 fi
4984 fi
4985 fi
4986 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4987 if test -n "$BUILD_CXX"; then
4988   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4989 echo "${ECHO_T}$BUILD_CXX" >&6; }
4990 else
4991   { echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6; }
4993 fi
4994
4995
4996      fi
4997   fi
4998 else
4999   LLVM_CROSS_COMPILING=0
5000
5001 fi
5002
5003 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5004   cvsbuild="yes"
5005   optimize="no"
5006   CVSBUILD=CVSBUILD=1
5007
5008 else
5009   cvsbuild="no"
5010   optimize="yes"
5011 fi
5012
5013
5014 # Check whether --enable-libcpp was given.
5015 if test "${enable_libcpp+set}" = set; then
5016   enableval=$enable_libcpp;
5017 else
5018   enableval=default
5019 fi
5020
5021 case "$enableval" in
5022   yes) ENABLE_LIBCPP=1
5023  ;;
5024   no)  ENABLE_LIBCPP=0
5025  ;;
5026   default) ENABLE_LIBCPP=0
5027 ;;
5028   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5029 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5030    { (exit 1); exit 1; }; } ;;
5031 esac
5032
5033 # Check whether --enable-cxx11 was given.
5034 if test "${enable_cxx11+set}" = set; then
5035   enableval=$enable_cxx11;
5036 else
5037   enableval=default
5038 fi
5039
5040 case "$enableval" in
5041   yes) ENABLE_CXX11=1
5042  ;;
5043   no)  ENABLE_CXX11=0
5044  ;;
5045   default) ENABLE_CXX11=0
5046 ;;
5047   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5048 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5049    { (exit 1); exit 1; }; } ;;
5050 esac
5051
5052 # Check whether --enable-optimized was given.
5053 if test "${enable_optimized+set}" = set; then
5054   enableval=$enable_optimized;
5055 else
5056   enableval=$optimize
5057 fi
5058
5059 if test ${enableval} = "no" ; then
5060   ENABLE_OPTIMIZED=
5061
5062 else
5063   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5064
5065 fi
5066
5067 # Check whether --enable-profiling was given.
5068 if test "${enable_profiling+set}" = set; then
5069   enableval=$enable_profiling;
5070 else
5071   enableval="no"
5072 fi
5073
5074 if test ${enableval} = "no" ; then
5075   ENABLE_PROFILING=
5076
5077 else
5078   ENABLE_PROFILING=ENABLE_PROFILING=1
5079
5080 fi
5081
5082 # Check whether --enable-assertions was given.
5083 if test "${enable_assertions+set}" = set; then
5084   enableval=$enable_assertions;
5085 else
5086   enableval="yes"
5087 fi
5088
5089 if test ${enableval} = "yes" ; then
5090   DISABLE_ASSERTIONS=
5091
5092 else
5093   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5094
5095 fi
5096
5097 # Check whether --enable-werror was given.
5098 if test "${enable_werror+set}" = set; then
5099   enableval=$enable_werror;
5100 else
5101   enableval="no"
5102 fi
5103
5104 case "$enableval" in
5105   yes) ENABLE_WERROR=1
5106  ;;
5107   no)  ENABLE_WERROR=0
5108  ;;
5109   default) ENABLE_WERROR=0
5110 ;;
5111   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5113    { (exit 1); exit 1; }; } ;;
5114 esac
5115
5116 # Check whether --enable-expensive-checks was given.
5117 if test "${enable_expensive_checks+set}" = set; then
5118   enableval=$enable_expensive_checks;
5119 else
5120   enableval="no"
5121 fi
5122
5123 if test ${enableval} = "yes" ; then
5124   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5125
5126   EXPENSIVE_CHECKS=yes
5127
5128 else
5129   ENABLE_EXPENSIVE_CHECKS=
5130
5131   EXPENSIVE_CHECKS=no
5132
5133 fi
5134
5135 # Check whether --enable-debug-runtime was given.
5136 if test "${enable_debug_runtime+set}" = set; then
5137   enableval=$enable_debug_runtime;
5138 else
5139   enableval=no
5140 fi
5141
5142 if test ${enableval} = "no" ; then
5143   DEBUG_RUNTIME=
5144
5145 else
5146   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5147
5148 fi
5149
5150 # Check whether --enable-debug-symbols was given.
5151 if test "${enable_debug_symbols+set}" = set; then
5152   enableval=$enable_debug_symbols;
5153 else
5154   enableval=no
5155 fi
5156
5157 if test ${enableval} = "no" ; then
5158   DEBUG_SYMBOLS=
5159
5160 else
5161   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5162
5163 fi
5164
5165 # Check whether --enable-keep-symbols was given.
5166 if test "${enable_keep_symbols+set}" = set; then
5167   enableval=$enable_keep_symbols;
5168 else
5169   enableval=no
5170 fi
5171
5172 if test ${enableval} = "no" ; then
5173   KEEP_SYMBOLS=
5174
5175 else
5176   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5177
5178 fi
5179
5180 # Check whether --enable-jit was given.
5181 if test "${enable_jit+set}" = set; then
5182   enableval=$enable_jit;
5183 else
5184   enableval=default
5185 fi
5186
5187 if test ${enableval} = "no"
5188 then
5189   JIT=
5190
5191 else
5192   case "$llvm_cv_target_arch" in
5193     x86)         TARGET_HAS_JIT=1
5194  ;;
5195     Sparc)       TARGET_HAS_JIT=0
5196  ;;
5197     PowerPC)     TARGET_HAS_JIT=1
5198  ;;
5199     x86_64)      TARGET_HAS_JIT=1
5200  ;;
5201     ARM)         TARGET_HAS_JIT=1
5202  ;;
5203     Mips)        TARGET_HAS_JIT=1
5204  ;;
5205     XCore)       TARGET_HAS_JIT=0
5206  ;;
5207     MSP430)      TARGET_HAS_JIT=0
5208  ;;
5209     Hexagon)     TARGET_HAS_JIT=0
5210  ;;
5211     MBlaze)      TARGET_HAS_JIT=0
5212  ;;
5213     NVPTX)       TARGET_HAS_JIT=0
5214  ;;
5215     *)           TARGET_HAS_JIT=0
5216  ;;
5217   esac
5218 fi
5219
5220 # Check whether --enable-docs was given.
5221 if test "${enable_docs+set}" = set; then
5222   enableval=$enable_docs;
5223 else
5224   enableval=default
5225 fi
5226
5227 case "$enableval" in
5228   yes) ENABLE_DOCS=1
5229  ;;
5230   no)  ENABLE_DOCS=0
5231  ;;
5232   default) ENABLE_DOCS=1
5233  ;;
5234   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5236    { (exit 1); exit 1; }; } ;;
5237 esac
5238
5239 # Check whether --enable-doxygen was given.
5240 if test "${enable_doxygen+set}" = set; then
5241   enableval=$enable_doxygen;
5242 else
5243   enableval=default
5244 fi
5245
5246 case "$enableval" in
5247   yes) ENABLE_DOXYGEN=1
5248  ;;
5249   no)  ENABLE_DOXYGEN=0
5250  ;;
5251   default) ENABLE_DOXYGEN=0
5252  ;;
5253   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5255    { (exit 1); exit 1; }; } ;;
5256 esac
5257
5258 # Check whether --enable-threads was given.
5259 if test "${enable_threads+set}" = set; then
5260   enableval=$enable_threads;
5261 else
5262   enableval=default
5263 fi
5264
5265 case "$enableval" in
5266   yes) LLVM_ENABLE_THREADS=1
5267  ;;
5268   no)  LLVM_ENABLE_THREADS=0
5269  ;;
5270   default) LLVM_ENABLE_THREADS=1
5271  ;;
5272   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5274    { (exit 1); exit 1; }; } ;;
5275 esac
5276
5277 cat >>confdefs.h <<_ACEOF
5278 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5279 _ACEOF
5280
5281
5282 # Check whether --enable-pthreads was given.
5283 if test "${enable_pthreads+set}" = set; then
5284   enableval=$enable_pthreads;
5285 else
5286   enableval=default
5287 fi
5288
5289 case "$enableval" in
5290   yes) ENABLE_PTHREADS=1
5291  ;;
5292   no)  ENABLE_PTHREADS=0
5293  ;;
5294   default) ENABLE_PTHREADS=1
5295  ;;
5296   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5298    { (exit 1); exit 1; }; } ;;
5299 esac
5300
5301 # Check whether --enable-pic was given.
5302 if test "${enable_pic+set}" = set; then
5303   enableval=$enable_pic;
5304 else
5305   enableval=default
5306 fi
5307
5308 case "$enableval" in
5309   yes) ENABLE_PIC=1
5310  ;;
5311   no)  ENABLE_PIC=0
5312  ;;
5313   default) ENABLE_PIC=1
5314  ;;
5315   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5316 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5317    { (exit 1); exit 1; }; } ;;
5318 esac
5319
5320 cat >>confdefs.h <<_ACEOF
5321 #define ENABLE_PIC $ENABLE_PIC
5322 _ACEOF
5323
5324
5325 # Check whether --enable-shared was given.
5326 if test "${enable_shared+set}" = set; then
5327   enableval=$enable_shared;
5328 else
5329   enableval=default
5330 fi
5331
5332 case "$enableval" in
5333   yes) ENABLE_SHARED=1
5334  ;;
5335   no)  ENABLE_SHARED=0
5336  ;;
5337   default) ENABLE_SHARED=0
5338  ;;
5339   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5340 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5341    { (exit 1); exit 1; }; } ;;
5342 esac
5343
5344 # Check whether --enable-embed-stdcxx was given.
5345 if test "${enable_embed_stdcxx+set}" = set; then
5346   enableval=$enable_embed_stdcxx;
5347 else
5348   enableval=default
5349 fi
5350
5351 case "$enableval" in
5352   yes) ENABLE_EMBED_STDCXX=1
5353  ;;
5354   no)  ENABLE_EMBED_STDCXX=0
5355  ;;
5356   default) ENABLE_EMBED_STDCXX=0
5357  ;;
5358   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5359 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5360    { (exit 1); exit 1; }; } ;;
5361 esac
5362
5363 # Check whether --enable-timestamps was given.
5364 if test "${enable_timestamps+set}" = set; then
5365   enableval=$enable_timestamps;
5366 else
5367   enableval=default
5368 fi
5369
5370 case "$enableval" in
5371   yes) ENABLE_TIMESTAMPS=1
5372  ;;
5373   no)  ENABLE_TIMESTAMPS=0
5374  ;;
5375   default) ENABLE_TIMESTAMPS=1
5376  ;;
5377   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5378 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5379    { (exit 1); exit 1; }; } ;;
5380 esac
5381
5382 cat >>confdefs.h <<_ACEOF
5383 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5384 _ACEOF
5385
5386
5387
5388 # Check whether --enable-backtraces was given.
5389 if test "${enable_backtraces+set}" = set; then
5390   enableval=$enable_backtraces;
5391 else
5392   enableval=default
5393 fi
5394
5395 case "$enableval" in
5396   yes) ENABLE_TIMESTAMPS=1
5397  ;;
5398   no)  ENABLE_TIMESTAMPS=0
5399  ;;
5400   default) ENABLE_TIMESTAMPS=1
5401  ;;
5402   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5403 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5404    { (exit 1); exit 1; }; } ;;
5405 esac
5406
5407 cat >>confdefs.h <<_ACEOF
5408 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5409 _ACEOF
5410
5411
5412 TARGETS_TO_BUILD=""
5413 # Check whether --enable-targets was given.
5414 if test "${enable_targets+set}" = set; then
5415   enableval=$enable_targets;
5416 else
5417   enableval=all
5418 fi
5419
5420 if test "$enableval" = host-only ; then
5421   enableval=host
5422 fi
5423 case "$enableval" in
5424   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5425   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5426       case "$a_target" in
5427         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5428         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5429         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5430         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5431         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5432         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5433         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5434         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5435         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5436         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5437         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5438         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5439         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5440         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5441         host) case "$llvm_cv_target_arch" in
5442             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5443             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5444             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5445             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5446             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5447             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5448             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5449             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5450             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5451             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5452             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5453             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5454             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5455 echo "$as_me: error: Can not set target to build" >&2;}
5456    { (exit 1); exit 1; }; } ;;
5457           esac ;;
5458         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5459 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5460    { (exit 1); exit 1; }; } ;;
5461       esac
5462   done
5463   ;;
5464 esac
5465
5466 # Check whether --enable-experimental-targets was given.
5467 if test "${enable_experimental_targets+set}" = set; then
5468   enableval=$enable_experimental_targets;
5469 else
5470   enableval=disable
5471 fi
5472
5473
5474 if test ${enableval} != "disable"
5475 then
5476   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5477 fi
5478
5479 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5480
5481
5482 for a_target in $TARGETS_TO_BUILD; do
5483   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5484
5485 cat >>confdefs.h <<_ACEOF
5486 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5487 _ACEOF
5488
5489     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5490     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5491     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5492     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5493     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5494       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5495     fi
5496     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5497       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5498     fi
5499
5500 cat >>confdefs.h <<_ACEOF
5501 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5502 _ACEOF
5503
5504
5505 cat >>confdefs.h <<_ACEOF
5506 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5507 _ACEOF
5508
5509
5510 cat >>confdefs.h <<_ACEOF
5511 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5512 _ACEOF
5513
5514
5515 cat >>confdefs.h <<_ACEOF
5516 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5517 _ACEOF
5518
5519     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5520
5521 cat >>confdefs.h <<_ACEOF
5522 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5523 _ACEOF
5524
5525     fi
5526     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5527
5528 cat >>confdefs.h <<_ACEOF
5529 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5530 _ACEOF
5531
5532     fi
5533   fi
5534 done
5535
5536 LLVM_ENUM_TARGETS=""
5537 LLVM_ENUM_ASM_PRINTERS=""
5538 LLVM_ENUM_ASM_PARSERS=""
5539 LLVM_ENUM_DISASSEMBLERS=""
5540 for target_to_build in $TARGETS_TO_BUILD; do
5541   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5542   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5543     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5544   fi
5545   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5546     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5547   fi
5548   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5549     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5550   fi
5551 done
5552
5553
5554
5555
5556
5557
5558 # Check whether --with-optimize-option was given.
5559 if test "${with_optimize_option+set}" = set; then
5560   withval=$with_optimize_option;
5561 else
5562   withval=default
5563 fi
5564
5565 { echo "$as_me:$LINENO: checking optimization flags" >&5
5566 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5567 case "$withval" in
5568   default)
5569     case "$llvm_cv_os_type" in
5570     FreeBSD) optimize_option=-O2 ;;
5571     MingW) optimize_option=-O2 ;;
5572     *)     optimize_option=-O3 ;;
5573     esac ;;
5574   *) optimize_option="$withval" ;;
5575 esac
5576 OPTIMIZE_OPTION=$optimize_option
5577
5578 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5579 echo "${ECHO_T}$optimize_option" >&6; }
5580
5581
5582 # Check whether --with-extra-options was given.
5583 if test "${with_extra_options+set}" = set; then
5584   withval=$with_extra_options;
5585 else
5586   withval=default
5587 fi
5588
5589 case "$withval" in
5590   default) EXTRA_OPTIONS= ;;
5591   *) EXTRA_OPTIONS=$withval ;;
5592 esac
5593 EXTRA_OPTIONS=$EXTRA_OPTIONS
5594
5595
5596
5597 # Check whether --with-extra-ld-options was given.
5598 if test "${with_extra_ld_options+set}" = set; then
5599   withval=$with_extra_ld_options;
5600 else
5601   withval=default
5602 fi
5603
5604 case "$withval" in
5605   default) EXTRA_LD_OPTIONS= ;;
5606   *) EXTRA_LD_OPTIONS=$withval ;;
5607 esac
5608 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5609
5610
5611 # Check whether --enable-bindings was given.
5612 if test "${enable_bindings+set}" = set; then
5613   enableval=$enable_bindings;
5614 else
5615   enableval=default
5616 fi
5617
5618 BINDINGS_TO_BUILD=""
5619 case "$enableval" in
5620   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5621   all ) BINDINGS_TO_BUILD="ocaml" ;;
5622   none | no) BINDINGS_TO_BUILD="" ;;
5623   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5624       case "$a_binding" in
5625         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5626         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5627 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5628    { (exit 1); exit 1; }; } ;;
5629       esac
5630   done
5631   ;;
5632 esac
5633
5634
5635 # Check whether --with-ocaml-libdir was given.
5636 if test "${with_ocaml_libdir+set}" = set; then
5637   withval=$with_ocaml_libdir;
5638 else
5639   withval=auto
5640 fi
5641
5642 case "$withval" in
5643   auto) with_ocaml_libdir="$withval" ;;
5644   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5645   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5646 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5647    { (exit 1); exit 1; }; } ;;
5648 esac
5649
5650
5651 # Check whether --with-clang-srcdir was given.
5652 if test "${with_clang_srcdir+set}" = set; then
5653   withval=$with_clang_srcdir;
5654 else
5655   withval="-"
5656 fi
5657
5658 case "$withval" in
5659   -) clang_src_root="" ;;
5660   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5661   *) clang_src_root="$ac_pwd/$withval" ;;
5662 esac
5663 CLANG_SRC_ROOT=$clang_src_root
5664
5665
5666
5667 # Check whether --with-clang-resource-dir was given.
5668 if test "${with_clang_resource_dir+set}" = set; then
5669   withval=$with_clang_resource_dir;
5670 else
5671   withval=""
5672 fi
5673
5674
5675 cat >>confdefs.h <<_ACEOF
5676 #define CLANG_RESOURCE_DIR "$withval"
5677 _ACEOF
5678
5679
5680
5681 # Check whether --with-c-include-dirs was given.
5682 if test "${with_c_include_dirs+set}" = set; then
5683   withval=$with_c_include_dirs;
5684 else
5685   withval=""
5686 fi
5687
5688
5689 cat >>confdefs.h <<_ACEOF
5690 #define C_INCLUDE_DIRS "$withval"
5691 _ACEOF
5692
5693
5694 # Clang normally uses the system c++ headers and libraries. With this option,
5695 # clang will use the ones provided by a gcc installation instead. This option should
5696 # be passed the same value that was used with --prefix when configuring gcc.
5697
5698 # Check whether --with-gcc-toolchain was given.
5699 if test "${with_gcc_toolchain+set}" = set; then
5700   withval=$with_gcc_toolchain;
5701 else
5702   withval=""
5703 fi
5704
5705
5706 cat >>confdefs.h <<_ACEOF
5707 #define GCC_INSTALL_PREFIX "$withval"
5708 _ACEOF
5709
5710
5711
5712 # Check whether --with-default-sysroot was given.
5713 if test "${with_default_sysroot+set}" = set; then
5714   withval=$with_default_sysroot;
5715 else
5716   withval=""
5717 fi
5718
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define DEFAULT_SYSROOT "$withval"
5722 _ACEOF
5723
5724
5725
5726 # Check whether --with-binutils-include was given.
5727 if test "${with_binutils_include+set}" = set; then
5728   withval=$with_binutils_include;
5729 else
5730   withval=default
5731 fi
5732
5733 case "$withval" in
5734   default) WITH_BINUTILS_INCDIR=default ;;
5735   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5736   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5737 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5738    { (exit 1); exit 1; }; } ;;
5739 esac
5740 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5741   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5742
5743   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5744      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5745      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5746 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5747    { (exit 1); exit 1; }; };
5748   fi
5749 fi
5750
5751
5752 # Check whether --with-bug-report-url was given.
5753 if test "${with_bug_report_url+set}" = set; then
5754   withval=$with_bug_report_url;
5755 else
5756   withval="http://llvm.org/bugs/"
5757 fi
5758
5759
5760 cat >>confdefs.h <<_ACEOF
5761 #define BUG_REPORT_URL "$withval"
5762 _ACEOF
5763
5764
5765 # Check whether --enable-libffi was given.
5766 if test "${enable_libffi+set}" = set; then
5767   enableval=$enable_libffi; case "$enableval" in
5768     yes) llvm_cv_enable_libffi="yes" ;;
5769     no)  llvm_cv_enable_libffi="no"  ;;
5770     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5771 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5772    { (exit 1); exit 1; }; } ;;
5773   esac
5774 else
5775   llvm_cv_enable_libffi=no
5776 fi
5777
5778
5779
5780 # Check whether --with-internal-prefix was given.
5781 if test "${with_internal_prefix+set}" = set; then
5782   withval=$with_internal_prefix;
5783 else
5784   withval=""
5785 fi
5786
5787 INTERNAL_PREFIX=$withval
5788
5789
5790
5791 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5792 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5793 if test "${lt_cv_path_NM+set}" = set; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   if test -n "$NM"; then
5797   # Let the user override the test.
5798   lt_cv_path_NM="$NM"
5799 else
5800   lt_nm_to_check="${ac_tool_prefix}nm"
5801   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5802     lt_nm_to_check="$lt_nm_to_check nm"
5803   fi
5804   for lt_tmp_nm in $lt_nm_to_check; do
5805     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5806     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5807       IFS="$lt_save_ifs"
5808       test -z "$ac_dir" && ac_dir=.
5809       tmp_nm="$ac_dir/$lt_tmp_nm"
5810       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5811         # Check to see if the nm accepts a BSD-compat flag.
5812         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5813         #   nm: unknown option "B" ignored
5814         # Tru64's nm complains that /dev/null is an invalid object file
5815         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5816         */dev/null* | *'Invalid file or object type'*)
5817           lt_cv_path_NM="$tmp_nm -B"
5818           break
5819           ;;
5820         *)
5821           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5822           */dev/null*)
5823             lt_cv_path_NM="$tmp_nm -p"
5824             break
5825             ;;
5826           *)
5827             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5828             continue # so that we can try to find one that supports BSD flags
5829             ;;
5830           esac
5831           ;;
5832         esac
5833       fi
5834     done
5835     IFS="$lt_save_ifs"
5836   done
5837   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5838 fi
5839 fi
5840 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5841 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5842 NM="$lt_cv_path_NM"
5843
5844
5845
5846 { echo "$as_me:$LINENO: checking for GNU make" >&5
5847 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5848 if test "${llvm_cv_gnu_make_command+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   llvm_cv_gnu_make_command=''
5852  for a in "$MAKE" make gmake gnumake ; do
5853   if test -z "$a" ; then continue ; fi ;
5854   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5855   then
5856    llvm_cv_gnu_make_command=$a ;
5857    break;
5858   fi
5859  done
5860 fi
5861 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5862 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5863  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5864    ifGNUmake='' ;
5865  else
5866    ifGNUmake='#' ;
5867    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5868 echo "${ECHO_T}\"Not found\"" >&6; };
5869  fi
5870
5871
5872 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5873 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5874 LN_S=$as_ln_s
5875 if test "$LN_S" = "ln -s"; then
5876   { echo "$as_me:$LINENO: result: yes" >&5
5877 echo "${ECHO_T}yes" >&6; }
5878 else
5879   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5880 echo "${ECHO_T}no, using $LN_S" >&6; }
5881 fi
5882
5883 # Extract the first word of "cmp", so it can be a program name with args.
5884 set dummy cmp; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_path_CMP+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   case $CMP in
5891   [\\/]* | ?:[\\/]*)
5892   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5893   ;;
5894   *)
5895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5911   ;;
5912 esac
5913 fi
5914 CMP=$ac_cv_path_CMP
5915 if test -n "$CMP"; then
5916   { echo "$as_me:$LINENO: result: $CMP" >&5
5917 echo "${ECHO_T}$CMP" >&6; }
5918 else
5919   { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5921 fi
5922
5923
5924 # Extract the first word of "cp", so it can be a program name with args.
5925 set dummy cp; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_path_CP+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   case $CP in
5932   [\\/]* | ?:[\\/]*)
5933   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5934   ;;
5935   *)
5936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5943     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5951   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5952   ;;
5953 esac
5954 fi
5955 CP=$ac_cv_path_CP
5956 if test -n "$CP"; then
5957   { echo "$as_me:$LINENO: result: $CP" >&5
5958 echo "${ECHO_T}$CP" >&6; }
5959 else
5960   { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5962 fi
5963
5964
5965 # Extract the first word of "date", so it can be a program name with args.
5966 set dummy date; ac_word=$2
5967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969 if test "${ac_cv_path_DATE+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   case $DATE in
5973   [\\/]* | ?:[\\/]*)
5974   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5975   ;;
5976   *)
5977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982   for ac_exec_ext in '' $ac_executable_extensions; do
5983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5984     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5993   ;;
5994 esac
5995 fi
5996 DATE=$ac_cv_path_DATE
5997 if test -n "$DATE"; then
5998   { echo "$as_me:$LINENO: result: $DATE" >&5
5999 echo "${ECHO_T}$DATE" >&6; }
6000 else
6001   { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6003 fi
6004
6005
6006 # Extract the first word of "find", so it can be a program name with args.
6007 set dummy find; ac_word=$2
6008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6010 if test "${ac_cv_path_FIND+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   case $FIND in
6014   [\\/]* | ?:[\\/]*)
6015   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6016   ;;
6017   *)
6018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023   for ac_exec_ext in '' $ac_executable_extensions; do
6024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6025     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030 done
6031 IFS=$as_save_IFS
6032
6033   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6034   ;;
6035 esac
6036 fi
6037 FIND=$ac_cv_path_FIND
6038 if test -n "$FIND"; then
6039   { echo "$as_me:$LINENO: result: $FIND" >&5
6040 echo "${ECHO_T}$FIND" >&6; }
6041 else
6042   { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6044 fi
6045
6046
6047 # Extract the first word of "grep", so it can be a program name with args.
6048 set dummy grep; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_path_GREP+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   case $GREP in
6055   [\\/]* | ?:[\\/]*)
6056   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6057   ;;
6058   *)
6059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064   for ac_exec_ext in '' $ac_executable_extensions; do
6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6066     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6075   ;;
6076 esac
6077 fi
6078 GREP=$ac_cv_path_GREP
6079 if test -n "$GREP"; then
6080   { echo "$as_me:$LINENO: result: $GREP" >&5
6081 echo "${ECHO_T}$GREP" >&6; }
6082 else
6083   { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6085 fi
6086
6087
6088 # Extract the first word of "mkdir", so it can be a program name with args.
6089 set dummy mkdir; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_path_MKDIR+set}" = set; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   case $MKDIR in
6096   [\\/]* | ?:[\\/]*)
6097   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6098   ;;
6099   *)
6100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105   for ac_exec_ext in '' $ac_executable_extensions; do
6106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6116   ;;
6117 esac
6118 fi
6119 MKDIR=$ac_cv_path_MKDIR
6120 if test -n "$MKDIR"; then
6121   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6122 echo "${ECHO_T}$MKDIR" >&6; }
6123 else
6124   { echo "$as_me:$LINENO: result: no" >&5
6125 echo "${ECHO_T}no" >&6; }
6126 fi
6127
6128
6129 # Extract the first word of "mv", so it can be a program name with args.
6130 set dummy mv; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_path_MV+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   case $MV in
6137   [\\/]* | ?:[\\/]*)
6138   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6139   ;;
6140   *)
6141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144   IFS=$as_save_IFS
6145   test -z "$as_dir" && as_dir=.
6146   for ac_exec_ext in '' $ac_executable_extensions; do
6147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6148     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150     break 2
6151   fi
6152 done
6153 done
6154 IFS=$as_save_IFS
6155
6156   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6157   ;;
6158 esac
6159 fi
6160 MV=$ac_cv_path_MV
6161 if test -n "$MV"; then
6162   { echo "$as_me:$LINENO: result: $MV" >&5
6163 echo "${ECHO_T}$MV" >&6; }
6164 else
6165   { echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6; }
6167 fi
6168
6169
6170 if test -n "$ac_tool_prefix"; then
6171   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_RANLIB+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   if test -n "$RANLIB"; then
6179   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186   for ac_exec_ext in '' $ac_executable_extensions; do
6187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 RANLIB=$ac_cv_prog_RANLIB
6199 if test -n "$RANLIB"; then
6200   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6201 echo "${ECHO_T}$RANLIB" >&6; }
6202 else
6203   { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6205 fi
6206
6207
6208 fi
6209 if test -z "$ac_cv_prog_RANLIB"; then
6210   ac_ct_RANLIB=$RANLIB
6211   # Extract the first word of "ranlib", so it can be a program name with args.
6212 set dummy ranlib; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   if test -n "$ac_ct_RANLIB"; then
6219   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224   IFS=$as_save_IFS
6225   test -z "$as_dir" && as_dir=.
6226   for ac_exec_ext in '' $ac_executable_extensions; do
6227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228     ac_cv_prog_ac_ct_RANLIB="ranlib"
6229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230     break 2
6231   fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6239 if test -n "$ac_ct_RANLIB"; then
6240   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6241 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6242 else
6243   { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6245 fi
6246
6247   if test "x$ac_ct_RANLIB" = x; then
6248     RANLIB=":"
6249   else
6250     case $cross_compiling:$ac_tool_warned in
6251 yes:)
6252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6253 whose name does not start with the host triplet.  If you think this
6254 configuration is useful to you, please write to autoconf@gnu.org." >&5
6255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6256 whose name does not start with the host triplet.  If you think this
6257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6258 ac_tool_warned=yes ;;
6259 esac
6260     RANLIB=$ac_ct_RANLIB
6261   fi
6262 else
6263   RANLIB="$ac_cv_prog_RANLIB"
6264 fi
6265
6266 if test -n "$ac_tool_prefix"; then
6267   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6268 set dummy ${ac_tool_prefix}ar; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_prog_AR+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   if test -n "$AR"; then
6275   ac_cv_prog_AR="$AR" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282   for ac_exec_ext in '' $ac_executable_extensions; do
6283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284     ac_cv_prog_AR="${ac_tool_prefix}ar"
6285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 AR=$ac_cv_prog_AR
6295 if test -n "$AR"; then
6296   { echo "$as_me:$LINENO: result: $AR" >&5
6297 echo "${ECHO_T}$AR" >&6; }
6298 else
6299   { echo "$as_me:$LINENO: result: no" >&5
6300 echo "${ECHO_T}no" >&6; }
6301 fi
6302
6303
6304 fi
6305 if test -z "$ac_cv_prog_AR"; then
6306   ac_ct_AR=$AR
6307   # Extract the first word of "ar", so it can be a program name with args.
6308 set dummy ar; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   if test -n "$ac_ct_AR"; then
6315   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320   IFS=$as_save_IFS
6321   test -z "$as_dir" && as_dir=.
6322   for ac_exec_ext in '' $ac_executable_extensions; do
6323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6324     ac_cv_prog_ac_ct_AR="ar"
6325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326     break 2
6327   fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332 fi
6333 fi
6334 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6335 if test -n "$ac_ct_AR"; then
6336   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6337 echo "${ECHO_T}$ac_ct_AR" >&6; }
6338 else
6339   { echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6; }
6341 fi
6342
6343   if test "x$ac_ct_AR" = x; then
6344     AR="false"
6345   else
6346     case $cross_compiling:$ac_tool_warned in
6347 yes:)
6348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6349 whose name does not start with the host triplet.  If you think this
6350 configuration is useful to you, please write to autoconf@gnu.org." >&5
6351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6352 whose name does not start with the host triplet.  If you think this
6353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6354 ac_tool_warned=yes ;;
6355 esac
6356     AR=$ac_ct_AR
6357   fi
6358 else
6359   AR="$ac_cv_prog_AR"
6360 fi
6361
6362 # Extract the first word of "rm", so it can be a program name with args.
6363 set dummy rm; ac_word=$2
6364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366 if test "${ac_cv_path_RM+set}" = set; then
6367   echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369   case $RM in
6370   [\\/]* | ?:[\\/]*)
6371   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6372   ;;
6373   *)
6374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377   IFS=$as_save_IFS
6378   test -z "$as_dir" && as_dir=.
6379   for ac_exec_ext in '' $ac_executable_extensions; do
6380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6381     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383     break 2
6384   fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6390   ;;
6391 esac
6392 fi
6393 RM=$ac_cv_path_RM
6394 if test -n "$RM"; then
6395   { echo "$as_me:$LINENO: result: $RM" >&5
6396 echo "${ECHO_T}$RM" >&6; }
6397 else
6398   { echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6; }
6400 fi
6401
6402
6403 # Extract the first word of "sed", so it can be a program name with args.
6404 set dummy sed; ac_word=$2
6405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 if test "${ac_cv_path_SED+set}" = set; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   case $SED in
6411   [\\/]* | ?:[\\/]*)
6412   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6413   ;;
6414   *)
6415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418   IFS=$as_save_IFS
6419   test -z "$as_dir" && as_dir=.
6420   for ac_exec_ext in '' $ac_executable_extensions; do
6421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6422     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424     break 2
6425   fi
6426 done
6427 done
6428 IFS=$as_save_IFS
6429
6430   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6431   ;;
6432 esac
6433 fi
6434 SED=$ac_cv_path_SED
6435 if test -n "$SED"; then
6436   { echo "$as_me:$LINENO: result: $SED" >&5
6437 echo "${ECHO_T}$SED" >&6; }
6438 else
6439   { echo "$as_me:$LINENO: result: no" >&5
6440 echo "${ECHO_T}no" >&6; }
6441 fi
6442
6443
6444 # Extract the first word of "tar", so it can be a program name with args.
6445 set dummy tar; ac_word=$2
6446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6448 if test "${ac_cv_path_TAR+set}" = set; then
6449   echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451   case $TAR in
6452   [\\/]* | ?:[\\/]*)
6453   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6454   ;;
6455   *)
6456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461   for ac_exec_ext in '' $ac_executable_extensions; do
6462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6463     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6472   ;;
6473 esac
6474 fi
6475 TAR=$ac_cv_path_TAR
6476 if test -n "$TAR"; then
6477   { echo "$as_me:$LINENO: result: $TAR" >&5
6478 echo "${ECHO_T}$TAR" >&6; }
6479 else
6480   { echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6; }
6482 fi
6483
6484
6485 # Extract the first word of "pwd", so it can be a program name with args.
6486 set dummy pwd; ac_word=$2
6487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489 if test "${ac_cv_path_BINPWD+set}" = set; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492   case $BINPWD in
6493   [\\/]* | ?:[\\/]*)
6494   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6495   ;;
6496   *)
6497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6513   ;;
6514 esac
6515 fi
6516 BINPWD=$ac_cv_path_BINPWD
6517 if test -n "$BINPWD"; then
6518   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6519 echo "${ECHO_T}$BINPWD" >&6; }
6520 else
6521   { echo "$as_me:$LINENO: result: no" >&5
6522 echo "${ECHO_T}no" >&6; }
6523 fi
6524
6525
6526
6527 # Extract the first word of "Graphviz", so it can be a program name with args.
6528 set dummy Graphviz; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   case $GRAPHVIZ in
6535   [\\/]* | ?:[\\/]*)
6536   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6537   ;;
6538   *)
6539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542   IFS=$as_save_IFS
6543   test -z "$as_dir" && as_dir=.
6544   for ac_exec_ext in '' $ac_executable_extensions; do
6545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548     break 2
6549   fi
6550 done
6551 done
6552 IFS=$as_save_IFS
6553
6554   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6555   ;;
6556 esac
6557 fi
6558 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6559 if test -n "$GRAPHVIZ"; then
6560   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6561 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6562 else
6563   { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6565 fi
6566
6567
6568 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6569
6570 cat >>confdefs.h <<\_ACEOF
6571 #define HAVE_GRAPHVIZ 1
6572 _ACEOF
6573
6574     if test "$llvm_cv_os_type" = "MingW" ; then
6575     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6576   fi
6577
6578 cat >>confdefs.h <<_ACEOF
6579 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6580 _ACEOF
6581
6582 fi
6583 # Extract the first word of "dot", so it can be a program name with args.
6584 set dummy dot; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_path_DOT+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   case $DOT in
6591   [\\/]* | ?:[\\/]*)
6592   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6593   ;;
6594   *)
6595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6611   ;;
6612 esac
6613 fi
6614 DOT=$ac_cv_path_DOT
6615 if test -n "$DOT"; then
6616   { echo "$as_me:$LINENO: result: $DOT" >&5
6617 echo "${ECHO_T}$DOT" >&6; }
6618 else
6619   { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6621 fi
6622
6623
6624 if test "$DOT" != "echo dot" ; then
6625
6626 cat >>confdefs.h <<\_ACEOF
6627 #define HAVE_DOT 1
6628 _ACEOF
6629
6630     if test "$llvm_cv_os_type" = "MingW" ; then
6631     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6632   fi
6633
6634 cat >>confdefs.h <<_ACEOF
6635 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6636 _ACEOF
6637
6638 fi
6639 # Extract the first word of "fdp", so it can be a program name with args.
6640 set dummy fdp; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_FDP+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   case $FDP in
6647   [\\/]* | ?:[\\/]*)
6648   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6649   ;;
6650   *)
6651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656   for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6667   ;;
6668 esac
6669 fi
6670 FDP=$ac_cv_path_FDP
6671 if test -n "$FDP"; then
6672   { echo "$as_me:$LINENO: result: $FDP" >&5
6673 echo "${ECHO_T}$FDP" >&6; }
6674 else
6675   { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6677 fi
6678
6679
6680 if test "$FDP" != "echo fdp" ; then
6681
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_FDP 1
6684 _ACEOF
6685
6686     if test "$llvm_cv_os_type" = "MingW" ; then
6687     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6688   fi
6689
6690 cat >>confdefs.h <<_ACEOF
6691 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6692 _ACEOF
6693
6694 fi
6695 # Extract the first word of "neato", so it can be a program name with args.
6696 set dummy neato; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_NEATO+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   case $NEATO in
6703   [\\/]* | ?:[\\/]*)
6704   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6705   ;;
6706   *)
6707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6723   ;;
6724 esac
6725 fi
6726 NEATO=$ac_cv_path_NEATO
6727 if test -n "$NEATO"; then
6728   { echo "$as_me:$LINENO: result: $NEATO" >&5
6729 echo "${ECHO_T}$NEATO" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6733 fi
6734
6735
6736 if test "$NEATO" != "echo neato" ; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_NEATO 1
6740 _ACEOF
6741
6742     if test "$llvm_cv_os_type" = "MingW" ; then
6743     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744   fi
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6748 _ACEOF
6749
6750 fi
6751 # Extract the first word of "twopi", so it can be a program name with args.
6752 set dummy twopi; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_TWOPI+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758   case $TWOPI in
6759   [\\/]* | ?:[\\/]*)
6760   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6761   ;;
6762   *)
6763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   test -z "$as_dir" && as_dir=.
6768   for ac_exec_ext in '' $ac_executable_extensions; do
6769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773   fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6779   ;;
6780 esac
6781 fi
6782 TWOPI=$ac_cv_path_TWOPI
6783 if test -n "$TWOPI"; then
6784   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6785 echo "${ECHO_T}$TWOPI" >&6; }
6786 else
6787   { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6789 fi
6790
6791
6792 if test "$TWOPI" != "echo twopi" ; then
6793
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_TWOPI 1
6796 _ACEOF
6797
6798     if test "$llvm_cv_os_type" = "MingW" ; then
6799     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800   fi
6801
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6804 _ACEOF
6805
6806 fi
6807 # Extract the first word of "circo", so it can be a program name with args.
6808 set dummy circo; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_CIRCO+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   case $CIRCO in
6815   [\\/]* | ?:[\\/]*)
6816   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6817   ;;
6818   *)
6819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6835   ;;
6836 esac
6837 fi
6838 CIRCO=$ac_cv_path_CIRCO
6839 if test -n "$CIRCO"; then
6840   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6841 echo "${ECHO_T}$CIRCO" >&6; }
6842 else
6843   { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845 fi
6846
6847
6848 if test "$CIRCO" != "echo circo" ; then
6849
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_CIRCO 1
6852 _ACEOF
6853
6854     if test "$llvm_cv_os_type" = "MingW" ; then
6855     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856   fi
6857
6858 cat >>confdefs.h <<_ACEOF
6859 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6860 _ACEOF
6861
6862 fi
6863 for ac_prog in gv gsview32
6864 do
6865   # Extract the first word of "$ac_prog", so it can be a program name with args.
6866 set dummy $ac_prog; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_GV+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   case $GV in
6873   [\\/]* | ?:[\\/]*)
6874   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6875   ;;
6876   *)
6877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882   for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892   ;;
6893 esac
6894 fi
6895 GV=$ac_cv_path_GV
6896 if test -n "$GV"; then
6897   { echo "$as_me:$LINENO: result: $GV" >&5
6898 echo "${ECHO_T}$GV" >&6; }
6899 else
6900   { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6902 fi
6903
6904
6905   test -n "$GV" && break
6906 done
6907 test -n "$GV" || GV="echo gv"
6908
6909 if test "$GV" != "echo gv" ; then
6910
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_GV 1
6913 _ACEOF
6914
6915     if test "$llvm_cv_os_type" = "MingW" ; then
6916     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6917   fi
6918
6919 cat >>confdefs.h <<_ACEOF
6920 #define LLVM_PATH_GV "$GV${EXEEXT}"
6921 _ACEOF
6922
6923 fi
6924 # Extract the first word of "dotty", so it can be a program name with args.
6925 set dummy dotty; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_DOTTY+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   case $DOTTY in
6932   [\\/]* | ?:[\\/]*)
6933   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6934   ;;
6935   *)
6936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941   for ac_exec_ext in '' $ac_executable_extensions; do
6942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6952   ;;
6953 esac
6954 fi
6955 DOTTY=$ac_cv_path_DOTTY
6956 if test -n "$DOTTY"; then
6957   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6958 echo "${ECHO_T}$DOTTY" >&6; }
6959 else
6960   { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6962 fi
6963
6964
6965 if test "$DOTTY" != "echo dotty" ; then
6966
6967 cat >>confdefs.h <<\_ACEOF
6968 #define HAVE_DOTTY 1
6969 _ACEOF
6970
6971     if test "$llvm_cv_os_type" = "MingW" ; then
6972     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6973   fi
6974
6975 cat >>confdefs.h <<_ACEOF
6976 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6977 _ACEOF
6978
6979 fi
6980 # Extract the first word of "xdot.py", so it can be a program name with args.
6981 set dummy xdot.py; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   case $XDOT_PY in
6988   [\\/]* | ?:[\\/]*)
6989   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6990   ;;
6991   *)
6992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997   for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7008   ;;
7009 esac
7010 fi
7011 XDOT_PY=$ac_cv_path_XDOT_PY
7012 if test -n "$XDOT_PY"; then
7013   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7014 echo "${ECHO_T}$XDOT_PY" >&6; }
7015 else
7016   { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7018 fi
7019
7020
7021 if test "$XDOT_PY" != "echo xdot.py" ; then
7022
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_XDOT_PY 1
7025 _ACEOF
7026
7027     if test "$llvm_cv_os_type" = "MingW" ; then
7028     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7029   fi
7030
7031 cat >>confdefs.h <<_ACEOF
7032 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7033 _ACEOF
7034
7035 fi
7036
7037 # Find a good install program.  We prefer a C program (faster),
7038 # so one script is as good as another.  But avoid the broken or
7039 # incompatible versions:
7040 # SysV /etc/install, /usr/sbin/install
7041 # SunOS /usr/etc/install
7042 # IRIX /sbin/install
7043 # AIX /bin/install
7044 # AmigaOS /C/install, which installs bootblocks on floppy discs
7045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7048 # OS/2's system install, which has a completely different semantic
7049 # ./install, which can be erroneously created by make from ./install.sh.
7050 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7051 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7052 if test -z "$INSTALL"; then
7053 if test "${ac_cv_path_install+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061   # Account for people who put trailing slashes in PATH elements.
7062 case $as_dir/ in
7063   ./ | .// | /cC/* | \
7064   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7065   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7066   /usr/ucb/* ) ;;
7067   *)
7068     # OSF1 and SCO ODT 3.0 have their own names for install.
7069     # Don't use installbsd from OSF since it installs stuff as root
7070     # by default.
7071     for ac_prog in ginstall scoinst install; do
7072       for ac_exec_ext in '' $ac_executable_extensions; do
7073         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7074           if test $ac_prog = install &&
7075             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7076             # AIX install.  It has an incompatible calling convention.
7077             :
7078           elif test $ac_prog = install &&
7079             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7080             # program-specific install script used by HP pwplus--don't use.
7081             :
7082           else
7083             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7084             break 3
7085           fi
7086         fi
7087       done
7088     done
7089     ;;
7090 esac
7091 done
7092 IFS=$as_save_IFS
7093
7094
7095 fi
7096   if test "${ac_cv_path_install+set}" = set; then
7097     INSTALL=$ac_cv_path_install
7098   else
7099     # As a last resort, use the slow shell script.  Don't cache a
7100     # value for INSTALL within a source directory, because that will
7101     # break other packages using the cache if that directory is
7102     # removed, or if the value is a relative name.
7103     INSTALL=$ac_install_sh
7104   fi
7105 fi
7106 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7107 echo "${ECHO_T}$INSTALL" >&6; }
7108
7109 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7110 # It thinks the first close brace ends the variable substitution.
7111 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7112
7113 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7114
7115 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7116
7117 case "$INSTALL" in
7118  [\\/$]* | ?:[\\/]* ) ;;
7119  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7120 esac
7121
7122 # Extract the first word of "bzip2", so it can be a program name with args.
7123 set dummy bzip2; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_BZIP2+set}" = set; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   case $BZIP2 in
7130   [\\/]* | ?:[\\/]*)
7131   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7132   ;;
7133   *)
7134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149   ;;
7150 esac
7151 fi
7152 BZIP2=$ac_cv_path_BZIP2
7153 if test -n "$BZIP2"; then
7154   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7155 echo "${ECHO_T}$BZIP2" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 # Extract the first word of "cat", so it can be a program name with args.
7163 set dummy cat; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_CAT+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $CAT in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189   ;;
7190 esac
7191 fi
7192 CAT=$ac_cv_path_CAT
7193 if test -n "$CAT"; then
7194   { echo "$as_me:$LINENO: result: $CAT" >&5
7195 echo "${ECHO_T}$CAT" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201
7202 # Extract the first word of "doxygen", so it can be a program name with args.
7203 set dummy doxygen; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $DOXYGEN in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   ;;
7230 esac
7231 fi
7232 DOXYGEN=$ac_cv_path_DOXYGEN
7233 if test -n "$DOXYGEN"; then
7234   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7235 echo "${ECHO_T}$DOXYGEN" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241
7242 # Extract the first word of "groff", so it can be a program name with args.
7243 set dummy groff; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_GROFF+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   case $GROFF in
7250   [\\/]* | ?:[\\/]*)
7251   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7252   ;;
7253   *)
7254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259   for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269   ;;
7270 esac
7271 fi
7272 GROFF=$ac_cv_path_GROFF
7273 if test -n "$GROFF"; then
7274   { echo "$as_me:$LINENO: result: $GROFF" >&5
7275 echo "${ECHO_T}$GROFF" >&6; }
7276 else
7277   { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7279 fi
7280
7281
7282 # Extract the first word of "gzip", so it can be a program name with args.
7283 set dummy gzip; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   case $GZIPBIN in
7290   [\\/]* | ?:[\\/]*)
7291   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7292   ;;
7293   *)
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   for ac_exec_ext in '' $ac_executable_extensions; do
7300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309   ;;
7310 esac
7311 fi
7312 GZIPBIN=$ac_cv_path_GZIPBIN
7313 if test -n "$GZIPBIN"; then
7314   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7315 echo "${ECHO_T}$GZIPBIN" >&6; }
7316 else
7317   { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7319 fi
7320
7321
7322 # Extract the first word of "pdfroff", so it can be a program name with args.
7323 set dummy pdfroff; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_PDFROFF+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   case $PDFROFF in
7330   [\\/]* | ?:[\\/]*)
7331   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7332   ;;
7333   *)
7334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339   for ac_exec_ext in '' $ac_executable_extensions; do
7340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349   ;;
7350 esac
7351 fi
7352 PDFROFF=$ac_cv_path_PDFROFF
7353 if test -n "$PDFROFF"; then
7354   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7355 echo "${ECHO_T}$PDFROFF" >&6; }
7356 else
7357   { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7359 fi
7360
7361
7362 # Extract the first word of "zip", so it can be a program name with args.
7363 set dummy zip; ac_word=$2
7364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366 if test "${ac_cv_path_ZIP+set}" = set; then
7367   echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369   case $ZIP in
7370   [\\/]* | ?:[\\/]*)
7371   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7372   ;;
7373   *)
7374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379   for ac_exec_ext in '' $ac_executable_extensions; do
7380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7381     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386 done
7387 IFS=$as_save_IFS
7388
7389   ;;
7390 esac
7391 fi
7392 ZIP=$ac_cv_path_ZIP
7393 if test -n "$ZIP"; then
7394   { echo "$as_me:$LINENO: result: $ZIP" >&5
7395 echo "${ECHO_T}$ZIP" >&6; }
7396 else
7397   { echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6; }
7399 fi
7400
7401
7402 for ac_prog in ocamlc
7403 do
7404   # Extract the first word of "$ac_prog", so it can be a program name with args.
7405 set dummy $ac_prog; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_OCAMLC+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   case $OCAMLC in
7412   [\\/]* | ?:[\\/]*)
7413   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7414   ;;
7415   *)
7416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421   for ac_exec_ext in '' $ac_executable_extensions; do
7422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428 done
7429 IFS=$as_save_IFS
7430
7431   ;;
7432 esac
7433 fi
7434 OCAMLC=$ac_cv_path_OCAMLC
7435 if test -n "$OCAMLC"; then
7436   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7437 echo "${ECHO_T}$OCAMLC" >&6; }
7438 else
7439   { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7441 fi
7442
7443
7444   test -n "$OCAMLC" && break
7445 done
7446
7447 for ac_prog in ocamlopt
7448 do
7449   # Extract the first word of "$ac_prog", so it can be a program name with args.
7450 set dummy $ac_prog; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   case $OCAMLOPT in
7457   [\\/]* | ?:[\\/]*)
7458   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7459   ;;
7460   *)
7461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466   for ac_exec_ext in '' $ac_executable_extensions; do
7467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7468     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476   ;;
7477 esac
7478 fi
7479 OCAMLOPT=$ac_cv_path_OCAMLOPT
7480 if test -n "$OCAMLOPT"; then
7481   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7482 echo "${ECHO_T}$OCAMLOPT" >&6; }
7483 else
7484   { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7487
7488
7489   test -n "$OCAMLOPT" && break
7490 done
7491
7492 for ac_prog in ocamldep
7493 do
7494   # Extract the first word of "$ac_prog", so it can be a program name with args.
7495 set dummy $ac_prog; ac_word=$2
7496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   case $OCAMLDEP in
7502   [\\/]* | ?:[\\/]*)
7503   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7504   ;;
7505   *)
7506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511   for ac_exec_ext in '' $ac_executable_extensions; do
7512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7513     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515     break 2
7516   fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521   ;;
7522 esac
7523 fi
7524 OCAMLDEP=$ac_cv_path_OCAMLDEP
7525 if test -n "$OCAMLDEP"; then
7526   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7527 echo "${ECHO_T}$OCAMLDEP" >&6; }
7528 else
7529   { echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6; }
7531 fi
7532
7533
7534   test -n "$OCAMLDEP" && break
7535 done
7536
7537 for ac_prog in ocamldoc
7538 do
7539   # Extract the first word of "$ac_prog", so it can be a program name with args.
7540 set dummy $ac_prog; ac_word=$2
7541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   case $OCAMLDOC in
7547   [\\/]* | ?:[\\/]*)
7548   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7549   ;;
7550   *)
7551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556   for ac_exec_ext in '' $ac_executable_extensions; do
7557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7558     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566   ;;
7567 esac
7568 fi
7569 OCAMLDOC=$ac_cv_path_OCAMLDOC
7570 if test -n "$OCAMLDOC"; then
7571   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7572 echo "${ECHO_T}$OCAMLDOC" >&6; }
7573 else
7574   { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7576 fi
7577
7578
7579   test -n "$OCAMLDOC" && break
7580 done
7581
7582 for ac_prog in gas as
7583 do
7584   # Extract the first word of "$ac_prog", so it can be a program name with args.
7585 set dummy $ac_prog; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_path_GAS+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   case $GAS in
7592   [\\/]* | ?:[\\/]*)
7593   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7594   ;;
7595   *)
7596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601   for ac_exec_ext in '' $ac_executable_extensions; do
7602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7603     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611   ;;
7612 esac
7613 fi
7614 GAS=$ac_cv_path_GAS
7615 if test -n "$GAS"; then
7616   { echo "$as_me:$LINENO: result: $GAS" >&5
7617 echo "${ECHO_T}$GAS" >&6; }
7618 else
7619   { echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6; }
7621 fi
7622
7623
7624   test -n "$GAS" && break
7625 done
7626
7627
7628 { echo "$as_me:$LINENO: checking for linker version" >&5
7629 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7630 if test "${llvm_cv_link_version+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633
7634    version_string="$(ld -v 2>&1 | head -1)"
7635
7636    # Check for ld64.
7637    if (echo "$version_string" | grep -q "ld64"); then
7638      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7639    else
7640      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7641    fi
7642
7643 fi
7644 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7645 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7646
7647 cat >>confdefs.h <<_ACEOF
7648 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7649 _ACEOF
7650
7651
7652
7653 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7654 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7655 if test "${llvm_cv_link_use_r+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658    ac_ext=c
7659 ac_cpp='$CPP $CPPFLAGS'
7660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663
7664   oldcflags="$CFLAGS"
7665   CFLAGS="$CFLAGS -Wl,-R."
7666   cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672
7673 int
7674 main ()
7675 {
7676
7677   ;
7678   return 0;
7679 }
7680 _ACEOF
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (ac_try="$ac_link"
7683 case "(($ac_try" in
7684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685   *) ac_try_echo=$ac_try;;
7686 esac
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688   (eval "$ac_link") 2>conftest.er1
7689   ac_status=$?
7690   grep -v '^ *+' conftest.er1 >conftest.err
7691   rm -f conftest.er1
7692   cat conftest.err >&5
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); } &&
7695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7696   { (case "(($ac_try" in
7697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698   *) ac_try_echo=$ac_try;;
7699 esac
7700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7701   (eval "$ac_try") 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); }; } &&
7705          { ac_try='test -s conftest$ac_exeext'
7706   { (case "(($ac_try" in
7707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708   *) ac_try_echo=$ac_try;;
7709 esac
7710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7711   (eval "$ac_try") 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; }; then
7715   llvm_cv_link_use_r=yes
7716 else
7717   echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720         llvm_cv_link_use_r=no
7721 fi
7722
7723 rm -f core conftest.err conftest.$ac_objext \
7724       conftest$ac_exeext conftest.$ac_ext
7725   CFLAGS="$oldcflags"
7726   ac_ext=c
7727 ac_cpp='$CPP $CPPFLAGS'
7728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731
7732
7733 fi
7734 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7735 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7736 if test "$llvm_cv_link_use_r" = yes ; then
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_LINK_R 1
7740 _ACEOF
7741
7742   fi
7743
7744
7745 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7746 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7747 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750    ac_ext=c
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755
7756   oldcflags="$CFLAGS"
7757   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7758   cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h.  */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h.  */
7764
7765 int
7766 main ()
7767 {
7768
7769   ;
7770   return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (ac_try="$ac_link"
7775 case "(($ac_try" in
7776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777   *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780   (eval "$ac_link") 2>conftest.er1
7781   ac_status=$?
7782   grep -v '^ *+' conftest.er1 >conftest.err
7783   rm -f conftest.er1
7784   cat conftest.err >&5
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } &&
7787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7788   { (case "(($ac_try" in
7789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790   *) ac_try_echo=$ac_try;;
7791 esac
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793   (eval "$ac_try") 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); }; } &&
7797          { ac_try='test -s conftest$ac_exeext'
7798   { (case "(($ac_try" in
7799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800   *) ac_try_echo=$ac_try;;
7801 esac
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803   (eval "$ac_try") 2>&5
7804   ac_status=$?
7805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806   (exit $ac_status); }; }; then
7807   llvm_cv_link_use_export_dynamic=yes
7808 else
7809   echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7811
7812         llvm_cv_link_use_export_dynamic=no
7813 fi
7814
7815 rm -f core conftest.err conftest.$ac_objext \
7816       conftest$ac_exeext conftest.$ac_ext
7817   CFLAGS="$oldcflags"
7818   ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824
7825 fi
7826 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7827 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7828 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7829
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_LINK_EXPORT_DYNAMIC 1
7832 _ACEOF
7833
7834   fi
7835
7836
7837 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7838 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7839 if test "${llvm_cv_link_use_version_script+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842    ac_ext=c
7843 ac_cpp='$CPP $CPPFLAGS'
7844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847
7848   oldcflags="$CFLAGS"
7849
7850   # The following code is from the autoconf manual,
7851   # "11.13: Limitations of Usual Tools".
7852   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7853   # Use mktemp if possible; otherwise fall back on mkdir,
7854   # with $RANDOM to make collisions less likely.
7855   : ${TMPDIR=/tmp}
7856   {
7857     tmp=`
7858       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7859     ` &&
7860     test -n "$tmp" && test -d "$tmp"
7861   } || {
7862     tmp=$TMPDIR/foo$$-$RANDOM
7863     (umask 077 && mkdir "$tmp")
7864   } || exit $?
7865
7866   echo "{" > "$tmp/export.map"
7867   echo "  global: main;" >> "$tmp/export.map"
7868   echo "  local: *;" >> "$tmp/export.map"
7869   echo "};" >> "$tmp/export.map"
7870
7871   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7872   cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h.  */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h.  */
7878
7879 int
7880 main ()
7881 {
7882
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext conftest$ac_exeext
7888 if { (ac_try="$ac_link"
7889 case "(($ac_try" in
7890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891   *) ac_try_echo=$ac_try;;
7892 esac
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894   (eval "$ac_link") 2>conftest.er1
7895   ac_status=$?
7896   grep -v '^ *+' conftest.er1 >conftest.err
7897   rm -f conftest.er1
7898   cat conftest.err >&5
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); } &&
7901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7902   { (case "(($ac_try" in
7903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904   *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907   (eval "$ac_try") 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); }; } &&
7911          { ac_try='test -s conftest$ac_exeext'
7912   { (case "(($ac_try" in
7913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914   *) ac_try_echo=$ac_try;;
7915 esac
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917   (eval "$ac_try") 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; }; then
7921   llvm_cv_link_use_version_script=yes
7922 else
7923   echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7925
7926         llvm_cv_link_use_version_script=no
7927 fi
7928
7929 rm -f core conftest.err conftest.$ac_objext \
7930       conftest$ac_exeext conftest.$ac_ext
7931   rm "$tmp/export.map"
7932   rmdir "$tmp"
7933   CFLAGS="$oldcflags"
7934   ac_ext=c
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939
7940
7941 fi
7942 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7943 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7944 if test "$llvm_cv_link_use_version_script" = yes ; then
7945   HAVE_LINK_VERSION_SCRIPT=1
7946
7947   fi
7948
7949
7950
7951
7952 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7953 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7954 if test "${ac_cv_c_const+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h.  */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h.  */
7963
7964 int
7965 main ()
7966 {
7967 /* FIXME: Include the comments suggested by Paul. */
7968 #ifndef __cplusplus
7969   /* Ultrix mips cc rejects this.  */
7970   typedef int charset[2];
7971   const charset x;
7972   /* SunOS 4.1.1 cc rejects this.  */
7973   char const *const *ccp;
7974   char **p;
7975   /* NEC SVR4.0.2 mips cc rejects this.  */
7976   struct point {int x, y;};
7977   static struct point const zero = {0,0};
7978   /* AIX XL C 1.02.0.0 rejects this.
7979      It does not let you subtract one const X* pointer from another in
7980      an arm of an if-expression whose if-part is not a constant
7981      expression */
7982   const char *g = "string";
7983   ccp = &g + (g ? g-g : 0);
7984   /* HPUX 7.0 cc rejects these. */
7985   ++ccp;
7986   p = (char**) ccp;
7987   ccp = (char const *const *) p;
7988   { /* SCO 3.2v4 cc rejects this.  */
7989     char *t;
7990     char const *s = 0 ? (char *) 0 : (char const *) 0;
7991
7992     *t++ = 0;
7993     if (s) return 0;
7994   }
7995   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7996     int x[] = {25, 17};
7997     const int *foo = &x[0];
7998     ++foo;
7999   }
8000   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8001     typedef const int *iptr;
8002     iptr p = 0;
8003     ++p;
8004   }
8005   { /* AIX XL C 1.02.0.0 rejects this saying
8006        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8007     struct s { int j; const int *ap[3]; };
8008     struct s *b; b->j = 5;
8009   }
8010   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8011     const int foo = 10;
8012     if (!foo) return 0;
8013   }
8014   return !x[0] && !zero.x;
8015 #endif
8016
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8023 case "(($ac_try" in
8024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025   *) ac_try_echo=$ac_try;;
8026 esac
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028   (eval "$ac_compile") 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } &&
8035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036   { (case "(($ac_try" in
8037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038   *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041   (eval "$ac_try") 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; } &&
8045          { ac_try='test -s conftest.$ac_objext'
8046   { (case "(($ac_try" in
8047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048   *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051   (eval "$ac_try") 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; }; then
8055   ac_cv_c_const=yes
8056 else
8057   echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060         ac_cv_c_const=no
8061 fi
8062
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 fi
8065 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8066 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8067 if test $ac_cv_c_const = no; then
8068
8069 cat >>confdefs.h <<\_ACEOF
8070 #define const
8071 _ACEOF
8072
8073 fi
8074
8075
8076
8077
8078
8079
8080 ac_header_dirent=no
8081 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8082   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8083 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8084 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 #include <sys/types.h>
8095 #include <$ac_hdr>
8096
8097 int
8098 main ()
8099 {
8100 if ((DIR *) 0)
8101 return 0;
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113   (eval "$ac_compile") 2>conftest.er1
8114   ac_status=$?
8115   grep -v '^ *+' conftest.er1 >conftest.err
8116   rm -f conftest.er1
8117   cat conftest.err >&5
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); } &&
8120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121   { (case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_try") 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; } &&
8130          { ac_try='test -s conftest.$ac_objext'
8131   { (case "(($ac_try" in
8132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133   *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136   (eval "$ac_try") 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   eval "$as_ac_Header=yes"
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145         eval "$as_ac_Header=no"
8146 fi
8147
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 fi
8150 ac_res=`eval echo '${'$as_ac_Header'}'`
8151                { echo "$as_me:$LINENO: result: $ac_res" >&5
8152 echo "${ECHO_T}$ac_res" >&6; }
8153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8154   cat >>confdefs.h <<_ACEOF
8155 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8156 _ACEOF
8157
8158 ac_header_dirent=$ac_hdr; break
8159 fi
8160
8161 done
8162 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8163 if test $ac_header_dirent = dirent.h; then
8164   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8165 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8166 if test "${ac_cv_search_opendir+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   ac_func_search_save_LIBS=$LIBS
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h.  */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h.  */
8176
8177 /* Override any GCC internal prototype to avoid an error.
8178    Use char because int might match the return type of a GCC
8179    builtin and then its argument prototype would still apply.  */
8180 #ifdef __cplusplus
8181 extern "C"
8182 #endif
8183 char opendir ();
8184 int
8185 main ()
8186 {
8187 return opendir ();
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 for ac_lib in '' dir; do
8193   if test -z "$ac_lib"; then
8194     ac_res="none required"
8195   else
8196     ac_res=-l$ac_lib
8197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8198   fi
8199   rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (ac_try="$ac_link"
8201 case "(($ac_try" in
8202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203   *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206   (eval "$ac_link") 2>conftest.er1
8207   ac_status=$?
8208   grep -v '^ *+' conftest.er1 >conftest.err
8209   rm -f conftest.er1
8210   cat conftest.err >&5
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); } &&
8213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214   { (case "(($ac_try" in
8215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216   *) ac_try_echo=$ac_try;;
8217 esac
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219   (eval "$ac_try") 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; } &&
8223          { ac_try='test -s conftest$ac_exeext'
8224   { (case "(($ac_try" in
8225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226   *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229   (eval "$ac_try") 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; }; then
8233   ac_cv_search_opendir=$ac_res
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238
8239 fi
8240
8241 rm -f core conftest.err conftest.$ac_objext \
8242       conftest$ac_exeext
8243   if test "${ac_cv_search_opendir+set}" = set; then
8244   break
8245 fi
8246 done
8247 if test "${ac_cv_search_opendir+set}" = set; then
8248   :
8249 else
8250   ac_cv_search_opendir=no
8251 fi
8252 rm conftest.$ac_ext
8253 LIBS=$ac_func_search_save_LIBS
8254 fi
8255 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8256 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8257 ac_res=$ac_cv_search_opendir
8258 if test "$ac_res" != no; then
8259   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8260
8261 fi
8262
8263 else
8264   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8265 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8266 if test "${ac_cv_search_opendir+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   ac_func_search_save_LIBS=$LIBS
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h.  */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h.  */
8276
8277 /* Override any GCC internal prototype to avoid an error.
8278    Use char because int might match the return type of a GCC
8279    builtin and then its argument prototype would still apply.  */
8280 #ifdef __cplusplus
8281 extern "C"
8282 #endif
8283 char opendir ();
8284 int
8285 main ()
8286 {
8287 return opendir ();
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 for ac_lib in '' x; do
8293   if test -z "$ac_lib"; then
8294     ac_res="none required"
8295   else
8296     ac_res=-l$ac_lib
8297     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8298   fi
8299   rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (ac_try="$ac_link"
8301 case "(($ac_try" in
8302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303   *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306   (eval "$ac_link") 2>conftest.er1
8307   ac_status=$?
8308   grep -v '^ *+' conftest.er1 >conftest.err
8309   rm -f conftest.er1
8310   cat conftest.err >&5
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } &&
8313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8314   { (case "(($ac_try" in
8315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316   *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319   (eval "$ac_try") 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; } &&
8323          { ac_try='test -s conftest$ac_exeext'
8324   { (case "(($ac_try" in
8325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326   *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329   (eval "$ac_try") 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; }; then
8333   ac_cv_search_opendir=$ac_res
8334 else
8335   echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8337
8338
8339 fi
8340
8341 rm -f core conftest.err conftest.$ac_objext \
8342       conftest$ac_exeext
8343   if test "${ac_cv_search_opendir+set}" = set; then
8344   break
8345 fi
8346 done
8347 if test "${ac_cv_search_opendir+set}" = set; then
8348   :
8349 else
8350   ac_cv_search_opendir=no
8351 fi
8352 rm conftest.$ac_ext
8353 LIBS=$ac_func_search_save_LIBS
8354 fi
8355 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8356 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8357 ac_res=$ac_cv_search_opendir
8358 if test "$ac_res" != no; then
8359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8360
8361 fi
8362
8363 fi
8364
8365
8366 for ac_header in dlfcn.h
8367 do
8368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8373   echo $ECHO_N "(cached) $ECHO_C" >&6
8374 fi
8375 ac_res=`eval echo '${'$as_ac_Header'}'`
8376                { echo "$as_me:$LINENO: result: $ac_res" >&5
8377 echo "${ECHO_T}$ac_res" >&6; }
8378 else
8379   # Is the header compilable?
8380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388 $ac_includes_default
8389 #include <$ac_header>
8390 _ACEOF
8391 rm -f conftest.$ac_objext
8392 if { (ac_try="$ac_compile"
8393 case "(($ac_try" in
8394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395   *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398   (eval "$ac_compile") 2>conftest.er1
8399   ac_status=$?
8400   grep -v '^ *+' conftest.er1 >conftest.err
8401   rm -f conftest.er1
8402   cat conftest.err >&5
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8406   { (case "(($ac_try" in
8407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408   *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411   (eval "$ac_try") 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); }; } &&
8415          { ac_try='test -s conftest.$ac_objext'
8416   { (case "(($ac_try" in
8417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418   *) ac_try_echo=$ac_try;;
8419 esac
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421   (eval "$ac_try") 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; }; then
8425   ac_header_compiler=yes
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430         ac_header_compiler=no
8431 fi
8432
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8435 echo "${ECHO_T}$ac_header_compiler" >&6; }
8436
8437 # Is the header present?
8438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446 #include <$ac_header>
8447 _ACEOF
8448 if { (ac_try="$ac_cpp conftest.$ac_ext"
8449 case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8455   ac_status=$?
8456   grep -v '^ *+' conftest.er1 >conftest.err
8457   rm -f conftest.er1
8458   cat conftest.err >&5
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); } >/dev/null; then
8461   if test -s conftest.err; then
8462     ac_cpp_err=$ac_c_preproc_warn_flag
8463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8464   else
8465     ac_cpp_err=
8466   fi
8467 else
8468   ac_cpp_err=yes
8469 fi
8470 if test -z "$ac_cpp_err"; then
8471   ac_header_preproc=yes
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476   ac_header_preproc=no
8477 fi
8478
8479 rm -f conftest.err conftest.$ac_ext
8480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8481 echo "${ECHO_T}$ac_header_preproc" >&6; }
8482
8483 # So?  What about this header?
8484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8485   yes:no: )
8486     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8490     ac_header_preproc=yes
8491     ;;
8492   no:yes:* )
8493     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8495     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8496 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8497     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8499     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8500 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8503     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8505     ( cat <<\_ASBOX
8506 ## ------------------------------------ ##
8507 ## Report this to http://llvm.org/bugs/ ##
8508 ## ------------------------------------ ##
8509 _ASBOX
8510      ) | sed "s/^/$as_me: WARNING:     /" >&2
8511     ;;
8512 esac
8513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8516   echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518   eval "$as_ac_Header=\$ac_header_preproc"
8519 fi
8520 ac_res=`eval echo '${'$as_ac_Header'}'`
8521                { echo "$as_me:$LINENO: result: $ac_res" >&5
8522 echo "${ECHO_T}$ac_res" >&6; }
8523
8524 fi
8525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8526   cat >>confdefs.h <<_ACEOF
8527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8528 _ACEOF
8529
8530 fi
8531
8532 done
8533
8534 # Check whether --enable-ltdl-install was given.
8535 if test "${enable_ltdl_install+set}" = set; then
8536   enableval=$enable_ltdl_install;
8537 fi
8538
8539
8540
8541
8542 if test x"${enable_ltdl_install-no}" != xno; then
8543   INSTALL_LTDL_TRUE=
8544   INSTALL_LTDL_FALSE='#'
8545 else
8546   INSTALL_LTDL_TRUE='#'
8547   INSTALL_LTDL_FALSE=
8548 fi
8549
8550
8551
8552 if test x"${enable_ltdl_convenience-no}" != xno; then
8553   CONVENIENCE_LTDL_TRUE=
8554   CONVENIENCE_LTDL_FALSE='#'
8555 else
8556   CONVENIENCE_LTDL_TRUE='#'
8557   CONVENIENCE_LTDL_FALSE=
8558 fi
8559
8560
8561 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8562 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8563 library_names_spec=
8564 libname_spec='lib$name'
8565 soname_spec=
8566 shrext_cmds=".so"
8567 postinstall_cmds=
8568 postuninstall_cmds=
8569 finish_cmds=
8570 finish_eval=
8571 shlibpath_var=
8572 shlibpath_overrides_runpath=unknown
8573 version_type=none
8574 dynamic_linker="$host_os ld.so"
8575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8576 if test "$GCC" = yes; then
8577   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8578   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8579     # if the path contains ";" then we assume it to be the separator
8580     # otherwise default to the standard path separator (i.e. ":") - it is
8581     # assumed that no part of a normal pathname contains ";" but that should
8582     # okay in the real world where ";" in dirpaths is itself problematic.
8583     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8584   else
8585     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8586   fi
8587 else
8588   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8589 fi
8590 need_lib_prefix=unknown
8591 hardcode_into_libs=no
8592
8593 # when you set need_version to no, make sure it does not cause -set_version
8594 # flags to be left without arguments
8595 need_version=unknown
8596
8597 case $host_os in
8598 aix3*)
8599   version_type=linux
8600   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8601   shlibpath_var=LIBPATH
8602
8603   # AIX 3 has no versioning support, so we append a major version to the name.
8604   soname_spec='${libname}${release}${shared_ext}$major'
8605   ;;
8606
8607 aix4* | aix5*)
8608   version_type=linux
8609   need_lib_prefix=no
8610   need_version=no
8611   hardcode_into_libs=yes
8612   if test "$host_cpu" = ia64; then
8613     # AIX 5 supports IA64
8614     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8615     shlibpath_var=LD_LIBRARY_PATH
8616   else
8617     # With GCC up to 2.95.x, collect2 would create an import file
8618     # for dependence libraries.  The import file would start with
8619     # the line `#! .'.  This would cause the generated library to
8620     # depend on `.', always an invalid library.  This was fixed in
8621     # development snapshots of GCC prior to 3.0.
8622     case $host_os in
8623       aix4 | aix4.[01] | aix4.[01].*)
8624       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8625            echo ' yes '
8626            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8627         :
8628       else
8629         can_build_shared=no
8630       fi
8631       ;;
8632     esac
8633     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8634     # soname into executable. Probably we can add versioning support to
8635     # collect2, so additional links can be useful in future.
8636     if test "$aix_use_runtimelinking" = yes; then
8637       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8638       # instead of lib<name>.a to let people know that these are not
8639       # typical AIX shared libraries.
8640       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8641     else
8642       # We preserve .a as extension for shared libraries through AIX4.2
8643       # and later when we are not doing run time linking.
8644       library_names_spec='${libname}${release}.a $libname.a'
8645       soname_spec='${libname}${release}${shared_ext}$major'
8646     fi
8647     shlibpath_var=LIBPATH
8648   fi
8649   ;;
8650
8651 amigaos*)
8652   library_names_spec='$libname.ixlibrary $libname.a'
8653   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8654   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'
8655   ;;
8656
8657 beos*)
8658   library_names_spec='${libname}${shared_ext}'
8659   dynamic_linker="$host_os ld.so"
8660   shlibpath_var=LIBRARY_PATH
8661   ;;
8662
8663 bsdi[45]*)
8664   version_type=linux
8665   need_version=no
8666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8667   soname_spec='${libname}${release}${shared_ext}$major'
8668   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8669   shlibpath_var=LD_LIBRARY_PATH
8670   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8671   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8672   # the default ld.so.conf also contains /usr/contrib/lib and
8673   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8674   # libtool to hard-code these into programs
8675   ;;
8676
8677 cygwin* | mingw* | pw32*)
8678   version_type=windows
8679   shrext_cmds=".dll"
8680   need_version=no
8681   need_lib_prefix=no
8682
8683   case $GCC,$host_os in
8684   yes,cygwin* | yes,mingw* | yes,pw32*)
8685     library_names_spec='$libname.dll.a'
8686     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8687     postinstall_cmds='base_file=`basename \${file}`~
8688       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8689       dldir=$destdir/`dirname \$dlpath`~
8690       test -d \$dldir || mkdir -p \$dldir~
8691       $install_prog $dir/$dlname \$dldir/$dlname~
8692       chmod a+x \$dldir/$dlname'
8693     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8694       dlpath=$dir/\$dldll~
8695        $rm \$dlpath'
8696     shlibpath_overrides_runpath=yes
8697
8698     case $host_os in
8699     cygwin*)
8700       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8701       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8702       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8703       ;;
8704     mingw*)
8705       # MinGW DLLs use traditional 'lib' prefix
8706       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8707       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8708       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8709         # It is most probably a Windows format PATH printed by
8710         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8711         # path with ; separators, and with drive letters. We can handle the
8712         # drive letters (cygwin fileutils understands them), so leave them,
8713         # especially as we might pass files found there to a mingw objdump,
8714         # which wouldn't understand a cygwinified path. Ahh.
8715         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8716       else
8717         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8718       fi
8719       ;;
8720     pw32*)
8721       # pw32 DLLs use 'pw' prefix rather than 'lib'
8722       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8723       ;;
8724     esac
8725     ;;
8726
8727   *)
8728     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8729     ;;
8730   esac
8731   dynamic_linker='Win32 ld.exe'
8732   # FIXME: first we should search . and the directory the executable is in
8733   shlibpath_var=PATH
8734   ;;
8735
8736 darwin* | rhapsody*)
8737   dynamic_linker="$host_os dyld"
8738   version_type=darwin
8739   need_lib_prefix=no
8740   need_version=no
8741   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8742   soname_spec='${libname}${release}${major}$shared_ext'
8743   shlibpath_overrides_runpath=yes
8744   shlibpath_var=DYLD_LIBRARY_PATH
8745   shrext_cmds='.dylib'
8746   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8747   if test "$GCC" = yes; then
8748     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"`
8749   else
8750     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8751   fi
8752   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8753   ;;
8754
8755 dgux*)
8756   version_type=linux
8757   need_lib_prefix=no
8758   need_version=no
8759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8760   soname_spec='${libname}${release}${shared_ext}$major'
8761   shlibpath_var=LD_LIBRARY_PATH
8762   ;;
8763
8764 freebsd1.*)
8765   dynamic_linker=no
8766   ;;
8767
8768 kfreebsd*-gnu)
8769   version_type=linux
8770   need_lib_prefix=no
8771   need_version=no
8772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8773   soname_spec='${libname}${release}${shared_ext}$major'
8774   shlibpath_var=LD_LIBRARY_PATH
8775   shlibpath_overrides_runpath=no
8776   hardcode_into_libs=yes
8777   dynamic_linker='GNU ld.so'
8778   ;;
8779
8780 freebsd* | dragonfly*)
8781   # DragonFly does not have aout.  When/if they implement a new
8782   # versioning mechanism, adjust this.
8783   if test -x /usr/bin/objformat; then
8784     objformat=`/usr/bin/objformat`
8785   else
8786     case $host_os in
8787     freebsd[123].*) objformat=aout ;;
8788     *) objformat=elf ;;
8789     esac
8790   fi
8791   version_type=freebsd-$objformat
8792   case $version_type in
8793     freebsd-elf*)
8794       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8795       need_version=no
8796       need_lib_prefix=no
8797       ;;
8798     freebsd-*)
8799       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8800       need_version=yes
8801       ;;
8802   esac
8803   shlibpath_var=LD_LIBRARY_PATH
8804   case $host_os in
8805   freebsd2.*)
8806     shlibpath_overrides_runpath=yes
8807     ;;
8808   freebsd3.[01]* | freebsdelf3.[01]*)
8809     shlibpath_overrides_runpath=yes
8810     hardcode_into_libs=yes
8811     ;;
8812   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8813   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8814     shlibpath_overrides_runpath=no
8815     hardcode_into_libs=yes
8816     ;;
8817   freebsd*) # from 4.6 on
8818     shlibpath_overrides_runpath=yes
8819     hardcode_into_libs=yes
8820     ;;
8821   esac
8822   ;;
8823
8824 gnu*)
8825   version_type=linux
8826   need_lib_prefix=no
8827   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
8831   hardcode_into_libs=yes
8832   ;;
8833
8834 hpux9* | hpux10* | hpux11*)
8835   # Give a soname corresponding to the major version so that dld.sl refuses to
8836   # link against other versions.
8837   version_type=sunos
8838   need_lib_prefix=no
8839   need_version=no
8840   case $host_cpu in
8841   ia64*)
8842     shrext_cmds='.so'
8843     hardcode_into_libs=yes
8844     dynamic_linker="$host_os dld.so"
8845     shlibpath_var=LD_LIBRARY_PATH
8846     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848     soname_spec='${libname}${release}${shared_ext}$major'
8849     if test "X$HPUX_IA64_MODE" = X32; then
8850       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8851     else
8852       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8853     fi
8854     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8855     ;;
8856    hppa*64*)
8857      shrext_cmds='.sl'
8858      hardcode_into_libs=yes
8859      dynamic_linker="$host_os dld.sl"
8860      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8861      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8862      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863      soname_spec='${libname}${release}${shared_ext}$major'
8864      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8865      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866      ;;
8867    *)
8868     shrext_cmds='.sl'
8869     dynamic_linker="$host_os dld.sl"
8870     shlibpath_var=SHLIB_PATH
8871     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873     soname_spec='${libname}${release}${shared_ext}$major'
8874     ;;
8875   esac
8876   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8877   postinstall_cmds='chmod 555 $lib'
8878   ;;
8879
8880 interix3*)
8881   version_type=linux
8882   need_lib_prefix=no
8883   need_version=no
8884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885   soname_spec='${libname}${release}${shared_ext}$major'
8886   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8887   shlibpath_var=LD_LIBRARY_PATH
8888   shlibpath_overrides_runpath=no
8889   hardcode_into_libs=yes
8890   ;;
8891
8892 irix5* | irix6* | nonstopux*)
8893   case $host_os in
8894     nonstopux*) version_type=nonstopux ;;
8895     *)
8896         if test "$lt_cv_prog_gnu_ld" = yes; then
8897                 version_type=linux
8898         else
8899                 version_type=irix
8900         fi ;;
8901   esac
8902   need_lib_prefix=no
8903   need_version=no
8904   soname_spec='${libname}${release}${shared_ext}$major'
8905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8906   case $host_os in
8907   irix5* | nonstopux*)
8908     libsuff= shlibsuff=
8909     ;;
8910   *)
8911     case $LD in # libtool.m4 will add one of these switches to LD
8912     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8913       libsuff= shlibsuff= libmagic=32-bit;;
8914     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8915       libsuff=32 shlibsuff=N32 libmagic=N32;;
8916     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8917       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8918     *) libsuff= shlibsuff= libmagic=never-match;;
8919     esac
8920     ;;
8921   esac
8922   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8923   shlibpath_overrides_runpath=no
8924   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8925   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8926   hardcode_into_libs=yes
8927   ;;
8928
8929 # No shared lib support for Linux oldld, aout, or coff.
8930 linux*oldld* | linux*aout* | linux*coff*)
8931   dynamic_linker=no
8932   ;;
8933
8934 # This must be Linux ELF.
8935 linux*)
8936   version_type=linux
8937   need_lib_prefix=no
8938   need_version=no
8939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940   soname_spec='${libname}${release}${shared_ext}$major'
8941   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8942   shlibpath_var=LD_LIBRARY_PATH
8943   shlibpath_overrides_runpath=no
8944   # This implies no fast_install, which is unacceptable.
8945   # Some rework will be needed to allow for fast_install
8946   # before this can be enabled.
8947   hardcode_into_libs=yes
8948
8949   # Append ld.so.conf contents to the search path
8950   if test -f /etc/ld.so.conf; then
8951     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' ' '`
8952     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8953   fi
8954
8955   # We used to test for /lib/ld.so.1 and disable shared libraries on
8956   # powerpc, because MkLinux only supported shared libraries with the
8957   # GNU dynamic linker.  Since this was broken with cross compilers,
8958   # most powerpc-linux boxes support dynamic linking these days and
8959   # people can always --disable-shared, the test was removed, and we
8960   # assume the GNU/Linux dynamic linker is in use.
8961   dynamic_linker='GNU/Linux ld.so'
8962   ;;
8963
8964 knetbsd*-gnu)
8965   version_type=linux
8966   need_lib_prefix=no
8967   need_version=no
8968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969   soname_spec='${libname}${release}${shared_ext}$major'
8970   shlibpath_var=LD_LIBRARY_PATH
8971   shlibpath_overrides_runpath=no
8972   hardcode_into_libs=yes
8973   dynamic_linker='GNU ld.so'
8974   ;;
8975
8976 netbsd*)
8977   version_type=sunos
8978   need_lib_prefix=no
8979   need_version=no
8980   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8982     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8983     dynamic_linker='NetBSD (a.out) ld.so'
8984   else
8985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8986     soname_spec='${libname}${release}${shared_ext}$major'
8987     dynamic_linker='NetBSD ld.elf_so'
8988   fi
8989   shlibpath_var=LD_LIBRARY_PATH
8990   shlibpath_overrides_runpath=yes
8991   hardcode_into_libs=yes
8992   ;;
8993
8994 newsos6)
8995   version_type=linux
8996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997   shlibpath_var=LD_LIBRARY_PATH
8998   shlibpath_overrides_runpath=yes
8999   ;;
9000
9001 nto-qnx*)
9002   version_type=linux
9003   need_lib_prefix=no
9004   need_version=no
9005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006   soname_spec='${libname}${release}${shared_ext}$major'
9007   shlibpath_var=LD_LIBRARY_PATH
9008   shlibpath_overrides_runpath=yes
9009   ;;
9010
9011 openbsd* | bitrig*)
9012   version_type=sunos
9013   sys_lib_dlsearch_path_spec="/usr/lib"
9014   need_lib_prefix=no
9015   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9016   case $host_os in
9017     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9018     *)                         need_version=no  ;;
9019   esac
9020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9021   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9022   shlibpath_var=LD_LIBRARY_PATH
9023   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9024     case $host_os in
9025       openbsd2.[89] | openbsd2.[89].*)
9026         shlibpath_overrides_runpath=no
9027         ;;
9028       *)
9029         shlibpath_overrides_runpath=yes
9030         ;;
9031       esac
9032   else
9033     shlibpath_overrides_runpath=yes
9034   fi
9035   ;;
9036
9037 os2*)
9038   libname_spec='$name'
9039   shrext_cmds=".dll"
9040   need_lib_prefix=no
9041   library_names_spec='$libname${shared_ext} $libname.a'
9042   dynamic_linker='OS/2 ld.exe'
9043   shlibpath_var=LIBPATH
9044   ;;
9045
9046 osf3* | osf4* | osf5*)
9047   version_type=osf
9048   need_lib_prefix=no
9049   need_version=no
9050   soname_spec='${libname}${release}${shared_ext}$major'
9051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052   shlibpath_var=LD_LIBRARY_PATH
9053   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9054   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9055   ;;
9056
9057 solaris*)
9058   version_type=linux
9059   need_lib_prefix=no
9060   need_version=no
9061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062   soname_spec='${libname}${release}${shared_ext}$major'
9063   shlibpath_var=LD_LIBRARY_PATH
9064   shlibpath_overrides_runpath=yes
9065   hardcode_into_libs=yes
9066   # ldd complains unless libraries are executable
9067   postinstall_cmds='chmod +x $lib'
9068   ;;
9069
9070 sunos4*)
9071   version_type=sunos
9072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9073   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9074   shlibpath_var=LD_LIBRARY_PATH
9075   shlibpath_overrides_runpath=yes
9076   if test "$with_gnu_ld" = yes; then
9077     need_lib_prefix=no
9078   fi
9079   need_version=yes
9080   ;;
9081
9082 sysv4 | sysv4.3*)
9083   version_type=linux
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   shlibpath_var=LD_LIBRARY_PATH
9087   case $host_vendor in
9088     sni)
9089       shlibpath_overrides_runpath=no
9090       need_lib_prefix=no
9091       export_dynamic_flag_spec='${wl}-Blargedynsym'
9092       runpath_var=LD_RUN_PATH
9093       ;;
9094     siemens)
9095       need_lib_prefix=no
9096       ;;
9097     motorola)
9098       need_lib_prefix=no
9099       need_version=no
9100       shlibpath_overrides_runpath=no
9101       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9102       ;;
9103   esac
9104   ;;
9105
9106 sysv4*MP*)
9107   if test -d /usr/nec ;then
9108     version_type=linux
9109     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9110     soname_spec='$libname${shared_ext}.$major'
9111     shlibpath_var=LD_LIBRARY_PATH
9112   fi
9113   ;;
9114
9115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9116   version_type=freebsd-elf
9117   need_lib_prefix=no
9118   need_version=no
9119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9120   soname_spec='${libname}${release}${shared_ext}$major'
9121   shlibpath_var=LD_LIBRARY_PATH
9122   hardcode_into_libs=yes
9123   if test "$with_gnu_ld" = yes; then
9124     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9125     shlibpath_overrides_runpath=no
9126   else
9127     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9128     shlibpath_overrides_runpath=yes
9129     case $host_os in
9130       sco3.2v5*)
9131         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9132         ;;
9133     esac
9134   fi
9135   sys_lib_dlsearch_path_spec='/usr/lib'
9136   ;;
9137
9138 uts4*)
9139   version_type=linux
9140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141   soname_spec='${libname}${release}${shared_ext}$major'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   ;;
9144
9145 *)
9146   dynamic_linker=no
9147   ;;
9148 esac
9149 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9150 echo "${ECHO_T}$dynamic_linker" >&6; }
9151 test "$dynamic_linker" = no && can_build_shared=no
9152
9153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9154 if test "$GCC" = yes; then
9155   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9156 fi
9157
9158
9159 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9160 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9161 if test "${libltdl_cv_shlibext+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164
9165 module=yes
9166 eval libltdl_cv_shlibext=$shrext_cmds
9167
9168 fi
9169 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9170 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9171 if test -n "$libltdl_cv_shlibext"; then
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9175 _ACEOF
9176
9177 fi
9178
9179
9180 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9181 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9182 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9183   echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185   libltdl_cv_shlibpath_var="$shlibpath_var"
9186 fi
9187 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9188 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9189 if test -n "$libltdl_cv_shlibpath_var"; then
9190
9191 cat >>confdefs.h <<_ACEOF
9192 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9193 _ACEOF
9194
9195 fi
9196
9197
9198 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9199 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9200 if test "${libltdl_cv_sys_search_path+set}" = set; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9204 fi
9205 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9206 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9207 if test -n "$libltdl_cv_sys_search_path"; then
9208   sys_search_path=
9209   for dir in $libltdl_cv_sys_search_path; do
9210     if test -z "$sys_search_path"; then
9211       sys_search_path="$dir"
9212     else
9213       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9214     fi
9215   done
9216
9217 cat >>confdefs.h <<_ACEOF
9218 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9219 _ACEOF
9220
9221 fi
9222
9223 { echo "$as_me:$LINENO: checking for objdir" >&5
9224 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9225 if test "${libltdl_cv_objdir+set}" = set; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228   libltdl_cv_objdir="$objdir"
9229   if test -n "$objdir"; then
9230     :
9231   else
9232     rm -f .libs 2>/dev/null
9233     mkdir .libs 2>/dev/null
9234     if test -d .libs; then
9235       libltdl_cv_objdir=.libs
9236     else
9237       # MS-DOS does not allow filenames that begin with a dot.
9238       libltdl_cv_objdir=_libs
9239     fi
9240   rmdir .libs 2>/dev/null
9241   fi
9242
9243 fi
9244 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9245 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9246
9247 cat >>confdefs.h <<_ACEOF
9248 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9249 _ACEOF
9250
9251
9252
9253
9254
9255
9256 # Check for command to grab the raw symbol name followed by C symbol from nm.
9257 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9258 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9259 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9260   echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262
9263 # These are sane defaults that work on at least a few old systems.
9264 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9265
9266 # Character class describing NM global symbol codes.
9267 symcode='[BCDEGRST]'
9268
9269 # Regexp to match symbols that can be accessed directly from C.
9270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9271
9272 # Transform an extracted symbol line into a proper C declaration
9273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9274
9275 # Transform an extracted symbol line into symbol name and symbol address
9276 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'"
9277
9278 # Define system-specific variables.
9279 case $host_os in
9280 aix*)
9281   symcode='[BCDT]'
9282   ;;
9283 cygwin* | mingw* | pw32*)
9284   symcode='[ABCDGISTW]'
9285   ;;
9286 hpux*) # Its linker distinguishes data from code symbols
9287   if test "$host_cpu" = ia64; then
9288     symcode='[ABCDEGRST]'
9289   fi
9290   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9291   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'"
9292   ;;
9293 linux*)
9294   if test "$host_cpu" = ia64; then
9295     symcode='[ABCDGIRSTW]'
9296     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9297     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'"
9298   fi
9299   ;;
9300 irix* | nonstopux*)
9301   symcode='[BCDEGRST]'
9302   ;;
9303 osf*)
9304   symcode='[BCDEGQRST]'
9305   ;;
9306 solaris*)
9307   symcode='[BDRT]'
9308   ;;
9309 sco3.2v5*)
9310   symcode='[DT]'
9311   ;;
9312 sysv4.2uw2*)
9313   symcode='[DT]'
9314   ;;
9315 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9316   symcode='[ABDT]'
9317   ;;
9318 sysv4)
9319   symcode='[DFNSTU]'
9320   ;;
9321 esac
9322
9323 # Handle CRLF in mingw tool chain
9324 opt_cr=
9325 case $build_os in
9326 mingw*)
9327   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9328   ;;
9329 esac
9330
9331 # If we're using GNU nm, then use its standard symbol codes.
9332 case `$NM -V 2>&1` in
9333 *GNU* | *'with BFD'*)
9334   symcode='[ABCDGIRSTW]' ;;
9335 esac
9336
9337 # Try without a prefix undercore, then with it.
9338 for ac_symprfx in "" "_"; do
9339
9340   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9341   symxfrm="\\1 $ac_symprfx\\2 \\2"
9342
9343   # Write the raw and C identifiers.
9344   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9345
9346   # Check to see that the pipe works correctly.
9347   pipe_works=no
9348
9349   rm -f conftest*
9350   cat > conftest.$ac_ext <<EOF
9351 #ifdef __cplusplus
9352 extern "C" {
9353 #endif
9354 char nm_test_var;
9355 void nm_test_func(){}
9356 #ifdef __cplusplus
9357 }
9358 #endif
9359 int main(){nm_test_var='a';nm_test_func();return(0);}
9360 EOF
9361
9362   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9363   (eval $ac_compile) 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; then
9367     # Now try to grab the symbols.
9368     nlist=conftest.nm
9369     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9370   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); } && test -s "$nlist"; then
9374       # Try sorting and uniquifying the output.
9375       if sort "$nlist" | uniq > "$nlist"T; then
9376         mv -f "$nlist"T "$nlist"
9377       else
9378         rm -f "$nlist"T
9379       fi
9380
9381       # Make sure that we snagged all the symbols we need.
9382       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9383         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9384           cat <<EOF > conftest.$ac_ext
9385 #ifdef __cplusplus
9386 extern "C" {
9387 #endif
9388
9389 EOF
9390           # Now generate the symbol file.
9391           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9392
9393           cat <<EOF >> conftest.$ac_ext
9394 #if defined (__STDC__) && __STDC__
9395 # define lt_ptr_t void *
9396 #else
9397 # define lt_ptr_t char *
9398 # define const
9399 #endif
9400
9401 /* The mapping between symbol names and symbols. */
9402 const struct {
9403   const char *name;
9404   lt_ptr_t address;
9405 }
9406 lt_preloaded_symbols[] =
9407 {
9408 EOF
9409           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9410           cat <<\EOF >> conftest.$ac_ext
9411   {0, (lt_ptr_t) 0}
9412 };
9413
9414 #ifdef __cplusplus
9415 }
9416 #endif
9417 EOF
9418           # Now try linking the two files.
9419           mv conftest.$ac_objext conftstm.$ac_objext
9420           lt_save_LIBS="$LIBS"
9421           lt_save_CFLAGS="$CFLAGS"
9422           LIBS="conftstm.$ac_objext"
9423           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9424           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425   (eval $ac_link) 2>&5
9426   ac_status=$?
9427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9429             pipe_works=yes
9430           fi
9431           LIBS="$lt_save_LIBS"
9432           CFLAGS="$lt_save_CFLAGS"
9433         else
9434           echo "cannot find nm_test_func in $nlist" >&5
9435         fi
9436       else
9437         echo "cannot find nm_test_var in $nlist" >&5
9438       fi
9439     else
9440       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9441     fi
9442   else
9443     echo "$progname: failed program was:" >&5
9444     cat conftest.$ac_ext >&5
9445   fi
9446   rm -f conftest* conftst*
9447
9448   # Do not use the global_symbol_pipe unless it works.
9449   if test "$pipe_works" = yes; then
9450     break
9451   else
9452     lt_cv_sys_global_symbol_pipe=
9453   fi
9454 done
9455
9456 fi
9457
9458 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9459   lt_cv_sys_global_symbol_to_cdecl=
9460 fi
9461 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9462   { echo "$as_me:$LINENO: result: failed" >&5
9463 echo "${ECHO_T}failed" >&6; }
9464 else
9465   { echo "$as_me:$LINENO: result: ok" >&5
9466 echo "${ECHO_T}ok" >&6; }
9467 fi
9468
9469
9470 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9471 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9472 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9473   echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9476     libltdl_cv_preloaded_symbols=yes
9477   else
9478     libltdl_cv_preloaded_symbols=no
9479   fi
9480
9481 fi
9482 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9483 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9484 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9485
9486 cat >>confdefs.h <<\_ACEOF
9487 #define HAVE_PRELOADED_SYMBOLS 1
9488 _ACEOF
9489
9490 fi
9491
9492 LIBADD_DL=
9493
9494 ac_ext=c
9495 ac_cpp='$CPP $CPPFLAGS'
9496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9499
9500
9501 { echo "$as_me:$LINENO: checking for shl_load" >&5
9502 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9503 if test "${ac_cv_func_shl_load+set}" = set; then
9504   echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506   cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h.  */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h.  */
9512 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9514 #define shl_load innocuous_shl_load
9515
9516 /* System header to define __stub macros and hopefully few prototypes,
9517     which can conflict with char shl_load (); below.
9518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9519     <limits.h> exists even on freestanding compilers.  */
9520
9521 #ifdef __STDC__
9522 # include <limits.h>
9523 #else
9524 # include <assert.h>
9525 #endif
9526
9527 #undef shl_load
9528
9529 /* Override any GCC internal prototype to avoid an error.
9530    Use char because int might match the return type of a GCC
9531    builtin and then its argument prototype would still apply.  */
9532 #ifdef __cplusplus
9533 extern "C"
9534 #endif
9535 char shl_load ();
9536 /* The GNU C library defines this for functions which it implements
9537     to always fail with ENOSYS.  Some functions are actually named
9538     something starting with __ and the normal name is an alias.  */
9539 #if defined __stub_shl_load || defined __stub___shl_load
9540 choke me
9541 #endif
9542
9543 int
9544 main ()
9545 {
9546 return shl_load ();
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9553 case "(($ac_try" in
9554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555   *) ac_try_echo=$ac_try;;
9556 esac
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558   (eval "$ac_link") 2>conftest.er1
9559   ac_status=$?
9560   grep -v '^ *+' conftest.er1 >conftest.err
9561   rm -f conftest.er1
9562   cat conftest.err >&5
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9566   { (case "(($ac_try" in
9567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568   *) ac_try_echo=$ac_try;;
9569 esac
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571   (eval "$ac_try") 2>&5
9572   ac_status=$?
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); }; } &&
9575          { ac_try='test -s conftest$ac_exeext'
9576   { (case "(($ac_try" in
9577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578   *) ac_try_echo=$ac_try;;
9579 esac
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581   (eval "$ac_try") 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; }; then
9585   ac_cv_func_shl_load=yes
9586 else
9587   echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590         ac_cv_func_shl_load=no
9591 fi
9592
9593 rm -f core conftest.err conftest.$ac_objext \
9594       conftest$ac_exeext conftest.$ac_ext
9595 fi
9596 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9597 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9598 if test $ac_cv_func_shl_load = yes; then
9599
9600 cat >>confdefs.h <<\_ACEOF
9601 #define HAVE_SHL_LOAD 1
9602 _ACEOF
9603
9604 else
9605   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9606 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9607 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9608   echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610   ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-ldld  $LIBS"
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618
9619 /* Override any GCC internal prototype to avoid an error.
9620    Use char because int might match the return type of a GCC
9621    builtin and then its argument prototype would still apply.  */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 char shl_load ();
9626 int
9627 main ()
9628 {
9629 return shl_load ();
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638   *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641   (eval "$ac_link") 2>conftest.er1
9642   ac_status=$?
9643   grep -v '^ *+' conftest.er1 >conftest.err
9644   rm -f conftest.er1
9645   cat conftest.err >&5
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } &&
9648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9649   { (case "(($ac_try" in
9650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651   *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654   (eval "$ac_try") 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; } &&
9658          { ac_try='test -s conftest$ac_exeext'
9659   { (case "(($ac_try" in
9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661   *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664   (eval "$ac_try") 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; }; then
9668   ac_cv_lib_dld_shl_load=yes
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673         ac_cv_lib_dld_shl_load=no
9674 fi
9675
9676 rm -f core conftest.err conftest.$ac_objext \
9677       conftest$ac_exeext conftest.$ac_ext
9678 LIBS=$ac_check_lib_save_LIBS
9679 fi
9680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9682 if test $ac_cv_lib_dld_shl_load = yes; then
9683
9684 cat >>confdefs.h <<\_ACEOF
9685 #define HAVE_SHL_LOAD 1
9686 _ACEOF
9687
9688         LIBADD_DL="$LIBADD_DL -ldld"
9689 else
9690   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9691 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9692 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   ac_check_lib_save_LIBS=$LIBS
9696 LIBS="-ldl  $LIBS"
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703
9704 /* Override any GCC internal prototype to avoid an error.
9705    Use char because int might match the return type of a GCC
9706    builtin and then its argument prototype would still apply.  */
9707 #ifdef __cplusplus
9708 extern "C"
9709 #endif
9710 char dlopen ();
9711 int
9712 main ()
9713 {
9714 return dlopen ();
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9721 case "(($ac_try" in
9722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723   *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726   (eval "$ac_link") 2>conftest.er1
9727   ac_status=$?
9728   grep -v '^ *+' conftest.er1 >conftest.err
9729   rm -f conftest.er1
9730   cat conftest.err >&5
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } &&
9733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9734   { (case "(($ac_try" in
9735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736   *) ac_try_echo=$ac_try;;
9737 esac
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739   (eval "$ac_try") 2>&5
9740   ac_status=$?
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); }; } &&
9743          { ac_try='test -s conftest$ac_exeext'
9744   { (case "(($ac_try" in
9745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746   *) ac_try_echo=$ac_try;;
9747 esac
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749   (eval "$ac_try") 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753   ac_cv_lib_dl_dlopen=yes
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758         ac_cv_lib_dl_dlopen=no
9759 fi
9760
9761 rm -f core conftest.err conftest.$ac_objext \
9762       conftest$ac_exeext conftest.$ac_ext
9763 LIBS=$ac_check_lib_save_LIBS
9764 fi
9765 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9766 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9767 if test $ac_cv_lib_dl_dlopen = yes; then
9768
9769 cat >>confdefs.h <<\_ACEOF
9770 #define HAVE_LIBDL 1
9771 _ACEOF
9772
9773                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9774 else
9775   cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781 #if HAVE_DLFCN_H
9782 #  include <dlfcn.h>
9783 #endif
9784
9785 int
9786 main ()
9787 {
9788 dlopen(0, 0);
9789   ;
9790   return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (ac_try="$ac_link"
9795 case "(($ac_try" in
9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797   *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800   (eval "$ac_link") 2>conftest.er1
9801   ac_status=$?
9802   grep -v '^ *+' conftest.er1 >conftest.err
9803   rm -f conftest.er1
9804   cat conftest.err >&5
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); } &&
9807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9808   { (case "(($ac_try" in
9809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810   *) ac_try_echo=$ac_try;;
9811 esac
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813   (eval "$ac_try") 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; } &&
9817          { ac_try='test -s conftest$ac_exeext'
9818   { (case "(($ac_try" in
9819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820   *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823   (eval "$ac_try") 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; }; then
9827
9828 cat >>confdefs.h <<\_ACEOF
9829 #define HAVE_LIBDL 1
9830 _ACEOF
9831  libltdl_cv_func_dlopen="yes"
9832 else
9833   echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9835
9836         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9837 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9838 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9839   echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841   ac_check_lib_save_LIBS=$LIBS
9842 LIBS="-lsvld  $LIBS"
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849
9850 /* Override any GCC internal prototype to avoid an error.
9851    Use char because int might match the return type of a GCC
9852    builtin and then its argument prototype would still apply.  */
9853 #ifdef __cplusplus
9854 extern "C"
9855 #endif
9856 char dlopen ();
9857 int
9858 main ()
9859 {
9860 return dlopen ();
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
9867 case "(($ac_try" in
9868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869   *) ac_try_echo=$ac_try;;
9870 esac
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872   (eval "$ac_link") 2>conftest.er1
9873   ac_status=$?
9874   grep -v '^ *+' conftest.er1 >conftest.err
9875   rm -f conftest.er1
9876   cat conftest.err >&5
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880   { (case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_try") 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); }; } &&
9889          { ac_try='test -s conftest$ac_exeext'
9890   { (case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_try") 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; }; then
9899   ac_cv_lib_svld_dlopen=yes
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904         ac_cv_lib_svld_dlopen=no
9905 fi
9906
9907 rm -f core conftest.err conftest.$ac_objext \
9908       conftest$ac_exeext conftest.$ac_ext
9909 LIBS=$ac_check_lib_save_LIBS
9910 fi
9911 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9912 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9913 if test $ac_cv_lib_svld_dlopen = yes; then
9914
9915 cat >>confdefs.h <<\_ACEOF
9916 #define HAVE_LIBDL 1
9917 _ACEOF
9918
9919                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9920 else
9921   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9922 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9923 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   ac_check_lib_save_LIBS=$LIBS
9927 LIBS="-ldld  $LIBS"
9928 cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h.  */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h.  */
9934
9935 /* Override any GCC internal prototype to avoid an error.
9936    Use char because int might match the return type of a GCC
9937    builtin and then its argument prototype would still apply.  */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 char dld_link ();
9942 int
9943 main ()
9944 {
9945 return dld_link ();
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9952 case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_link") 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } &&
9964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9965   { (case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970   (eval "$ac_try") 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; } &&
9974          { ac_try='test -s conftest$ac_exeext'
9975   { (case "(($ac_try" in
9976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977   *) ac_try_echo=$ac_try;;
9978 esac
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980   (eval "$ac_try") 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); }; }; then
9984   ac_cv_lib_dld_dld_link=yes
9985 else
9986   echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989         ac_cv_lib_dld_dld_link=no
9990 fi
9991
9992 rm -f core conftest.err conftest.$ac_objext \
9993       conftest$ac_exeext conftest.$ac_ext
9994 LIBS=$ac_check_lib_save_LIBS
9995 fi
9996 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9997 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9998 if test $ac_cv_lib_dld_dld_link = yes; then
9999
10000 cat >>confdefs.h <<\_ACEOF
10001 #define HAVE_DLD 1
10002 _ACEOF
10003
10004                 LIBADD_DL="$LIBADD_DL -ldld"
10005 else
10006   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10007 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10008 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10009   echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011   cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h.  */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h.  */
10017 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10019 #define _dyld_func_lookup innocuous__dyld_func_lookup
10020
10021 /* System header to define __stub macros and hopefully few prototypes,
10022     which can conflict with char _dyld_func_lookup (); below.
10023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10024     <limits.h> exists even on freestanding compilers.  */
10025
10026 #ifdef __STDC__
10027 # include <limits.h>
10028 #else
10029 # include <assert.h>
10030 #endif
10031
10032 #undef _dyld_func_lookup
10033
10034 /* Override any GCC internal prototype to avoid an error.
10035    Use char because int might match the return type of a GCC
10036    builtin and then its argument prototype would still apply.  */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 char _dyld_func_lookup ();
10041 /* The GNU C library defines this for functions which it implements
10042     to always fail with ENOSYS.  Some functions are actually named
10043     something starting with __ and the normal name is an alias.  */
10044 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10045 choke me
10046 #endif
10047
10048 int
10049 main ()
10050 {
10051 return _dyld_func_lookup ();
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (ac_try="$ac_link"
10058 case "(($ac_try" in
10059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060   *) ac_try_echo=$ac_try;;
10061 esac
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063   (eval "$ac_link") 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10071   { (case "(($ac_try" in
10072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073   *) ac_try_echo=$ac_try;;
10074 esac
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076   (eval "$ac_try") 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }; } &&
10080          { ac_try='test -s conftest$ac_exeext'
10081   { (case "(($ac_try" in
10082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083   *) ac_try_echo=$ac_try;;
10084 esac
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086   (eval "$ac_try") 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); }; }; then
10090   ac_cv_func__dyld_func_lookup=yes
10091 else
10092   echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10094
10095         ac_cv_func__dyld_func_lookup=no
10096 fi
10097
10098 rm -f core conftest.err conftest.$ac_objext \
10099       conftest$ac_exeext conftest.$ac_ext
10100 fi
10101 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10102 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10103 if test $ac_cv_func__dyld_func_lookup = yes; then
10104
10105 cat >>confdefs.h <<\_ACEOF
10106 #define HAVE_DYLD 1
10107 _ACEOF
10108
10109 fi
10110
10111
10112 fi
10113
10114
10115 fi
10116
10117
10118 fi
10119
10120 rm -f core conftest.err conftest.$ac_objext \
10121       conftest$ac_exeext conftest.$ac_ext
10122
10123 fi
10124
10125
10126 fi
10127
10128
10129 fi
10130
10131
10132 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10133 then
10134   lt_save_LIBS="$LIBS"
10135   LIBS="$LIBS $LIBADD_DL"
10136
10137 for ac_func in dlerror
10138 do
10139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10143   echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145   cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h.  */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h.  */
10151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10153 #define $ac_func innocuous_$ac_func
10154
10155 /* System header to define __stub macros and hopefully few prototypes,
10156     which can conflict with char $ac_func (); below.
10157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158     <limits.h> exists even on freestanding compilers.  */
10159
10160 #ifdef __STDC__
10161 # include <limits.h>
10162 #else
10163 # include <assert.h>
10164 #endif
10165
10166 #undef $ac_func
10167
10168 /* Override any GCC internal prototype to avoid an error.
10169    Use char because int might match the return type of a GCC
10170    builtin and then its argument prototype would still apply.  */
10171 #ifdef __cplusplus
10172 extern "C"
10173 #endif
10174 char $ac_func ();
10175 /* The GNU C library defines this for functions which it implements
10176     to always fail with ENOSYS.  Some functions are actually named
10177     something starting with __ and the normal name is an alias.  */
10178 #if defined __stub_$ac_func || defined __stub___$ac_func
10179 choke me
10180 #endif
10181
10182 int
10183 main ()
10184 {
10185 return $ac_func ();
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197   (eval "$ac_link") 2>conftest.er1
10198   ac_status=$?
10199   grep -v '^ *+' conftest.er1 >conftest.err
10200   rm -f conftest.er1
10201   cat conftest.err >&5
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } &&
10204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205   { (case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_try") 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; } &&
10214          { ac_try='test -s conftest$ac_exeext'
10215   { (case "(($ac_try" in
10216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217   *) ac_try_echo=$ac_try;;
10218 esac
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220   (eval "$ac_try") 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; }; then
10224   eval "$as_ac_var=yes"
10225 else
10226   echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229         eval "$as_ac_var=no"
10230 fi
10231
10232 rm -f core conftest.err conftest.$ac_objext \
10233       conftest$ac_exeext conftest.$ac_ext
10234 fi
10235 ac_res=`eval echo '${'$as_ac_var'}'`
10236                { echo "$as_me:$LINENO: result: $ac_res" >&5
10237 echo "${ECHO_T}$ac_res" >&6; }
10238 if test `eval echo '${'$as_ac_var'}'` = yes; then
10239   cat >>confdefs.h <<_ACEOF
10240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10241 _ACEOF
10242
10243 fi
10244 done
10245
10246   LIBS="$lt_save_LIBS"
10247 fi
10248 ac_ext=c
10249 ac_cpp='$CPP $CPPFLAGS'
10250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10253
10254
10255
10256 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10257 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10258 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10259   echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261   ac_cv_sys_symbol_underscore=no
10262   cat > conftest.$ac_ext <<EOF
10263 void nm_test_func(){}
10264 int main(){nm_test_func;return 0;}
10265 EOF
10266   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267   (eval $ac_compile) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; then
10271     # Now try to grab the symbols.
10272     ac_nlist=conftest.nm
10273     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10274   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); } && test -s "$ac_nlist"; then
10278       # See whether the symbols have a leading underscore.
10279       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10280         ac_cv_sys_symbol_underscore=yes
10281       else
10282         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10283           :
10284         else
10285           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10286         fi
10287       fi
10288     else
10289       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10290     fi
10291   else
10292     echo "configure: failed program was:" >&5
10293     cat conftest.c >&5
10294   fi
10295   rm -rf conftest*
10296
10297 fi
10298 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10299 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10300
10301
10302 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10303   if test x"$libltdl_cv_func_dlopen" = xyes ||
10304      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10305         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10306 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10307 if test "${libltdl_cv_need_uscore+set}" = set; then
10308   echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310   libltdl_cv_need_uscore=unknown
10311           save_LIBS="$LIBS"
10312           LIBS="$LIBS $LIBADD_DL"
10313           if test "$cross_compiling" = yes; then :
10314   libltdl_cv_need_uscore=cross
10315 else
10316   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10317   lt_status=$lt_dlunknown
10318   cat > conftest.$ac_ext <<EOF
10319 #line 10319 "configure"
10320 #include "confdefs.h"
10321
10322 #if HAVE_DLFCN_H
10323 #include <dlfcn.h>
10324 #endif
10325
10326 #include <stdio.h>
10327
10328 #ifdef RTLD_GLOBAL
10329 #  define LT_DLGLOBAL           RTLD_GLOBAL
10330 #else
10331 #  ifdef DL_GLOBAL
10332 #    define LT_DLGLOBAL         DL_GLOBAL
10333 #  else
10334 #    define LT_DLGLOBAL         0
10335 #  endif
10336 #endif
10337
10338 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10339    find out it does not work in some platform. */
10340 #ifndef LT_DLLAZY_OR_NOW
10341 #  ifdef RTLD_LAZY
10342 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10343 #  else
10344 #    ifdef DL_LAZY
10345 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10346 #    else
10347 #      ifdef RTLD_NOW
10348 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10349 #      else
10350 #        ifdef DL_NOW
10351 #          define LT_DLLAZY_OR_NOW      DL_NOW
10352 #        else
10353 #          define LT_DLLAZY_OR_NOW      0
10354 #        endif
10355 #      endif
10356 #    endif
10357 #  endif
10358 #endif
10359
10360 #ifdef __cplusplus
10361 extern "C" void exit (int);
10362 #endif
10363
10364 void fnord() { int i=42;}
10365 int main ()
10366 {
10367   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10368   int status = $lt_dlunknown;
10369
10370   if (self)
10371     {
10372       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10373       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10374       /* dlclose (self); */
10375     }
10376   else
10377     puts (dlerror ());
10378
10379     exit (status);
10380 }
10381 EOF
10382   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383   (eval $ac_link) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10387     (./conftest; exit; ) >&5 2>/dev/null
10388     lt_status=$?
10389     case x$lt_status in
10390       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10391       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10392       x$lt_dlunknown|x*)  ;;
10393     esac
10394   else :
10395     # compilation failed
10396
10397   fi
10398 fi
10399 rm -fr conftest*
10400
10401           LIBS="$save_LIBS"
10402
10403 fi
10404 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10405 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10406   fi
10407 fi
10408
10409 if test x"$libltdl_cv_need_uscore" = xyes; then
10410
10411 cat >>confdefs.h <<\_ACEOF
10412 #define NEED_USCORE 1
10413 _ACEOF
10414
10415 fi
10416
10417
10418 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10419 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10420 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423   # PORTME does your system automatically load deplibs for dlopen?
10424   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10425   # For now, we just catch OSes we know something about -- in the
10426   # future, we'll try test this programmatically.
10427   libltdl_cv_sys_dlopen_deplibs=unknown
10428   case "$host_os" in
10429   aix3*|aix4.1.*|aix4.2.*)
10430     # Unknown whether this is true for these versions of AIX, but
10431     # we want this `case' here to explicitly catch those versions.
10432     libltdl_cv_sys_dlopen_deplibs=unknown
10433     ;;
10434   aix[45]*)
10435     libltdl_cv_sys_dlopen_deplibs=yes
10436     ;;
10437   darwin*)
10438     # Assuming the user has installed a libdl from somewhere, this is true
10439     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10440     libltdl_cv_sys_dlopen_deplibs=yes
10441     ;;
10442   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10443     # GNU and its variants, using gnu ld.so (Glibc)
10444     libltdl_cv_sys_dlopen_deplibs=yes
10445     ;;
10446   hpux10*|hpux11*)
10447     libltdl_cv_sys_dlopen_deplibs=yes
10448     ;;
10449   interix*)
10450     libltdl_cv_sys_dlopen_deplibs=yes
10451     ;;
10452   irix[12345]*|irix6.[01]*)
10453     # Catch all versions of IRIX before 6.2, and indicate that we don't
10454     # know how it worked for any of those versions.
10455     libltdl_cv_sys_dlopen_deplibs=unknown
10456     ;;
10457   irix*)
10458     # The case above catches anything before 6.2, and it's known that
10459     # at 6.2 and later dlopen does load deplibs.
10460     libltdl_cv_sys_dlopen_deplibs=yes
10461     ;;
10462   netbsd*)
10463     libltdl_cv_sys_dlopen_deplibs=yes
10464     ;;
10465   openbsd*)
10466     libltdl_cv_sys_dlopen_deplibs=yes
10467     ;;
10468   osf[1234]*)
10469     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10470     # it did *not* use an RPATH in a shared library to find objects the
10471     # library depends on, so we explicitly say `no'.
10472     libltdl_cv_sys_dlopen_deplibs=no
10473     ;;
10474   osf5.0|osf5.0a|osf5.1)
10475     # dlopen *does* load deplibs and with the right loader patch applied
10476     # it even uses RPATH in a shared library to search for shared objects
10477     # that the library depends on, but there's no easy way to know if that
10478     # patch is installed.  Since this is the case, all we can really
10479     # say is unknown -- it depends on the patch being installed.  If
10480     # it is, this changes to `yes'.  Without it, it would be `no'.
10481     libltdl_cv_sys_dlopen_deplibs=unknown
10482     ;;
10483   osf*)
10484     # the two cases above should catch all versions of osf <= 5.1.  Read
10485     # the comments above for what we know about them.
10486     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10487     # is used to find them so we can finally say `yes'.
10488     libltdl_cv_sys_dlopen_deplibs=yes
10489     ;;
10490   solaris*)
10491     libltdl_cv_sys_dlopen_deplibs=yes
10492     ;;
10493   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494     libltdl_cv_sys_dlopen_deplibs=yes
10495     ;;
10496   esac
10497
10498 fi
10499 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10500 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10501 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10502
10503 cat >>confdefs.h <<\_ACEOF
10504 #define LTDL_DLOPEN_DEPLIBS 1
10505 _ACEOF
10506
10507 fi
10508
10509
10510 for ac_header in argz.h
10511 do
10512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10517   echo $ECHO_N "(cached) $ECHO_C" >&6
10518 fi
10519 ac_res=`eval echo '${'$as_ac_Header'}'`
10520                { echo "$as_me:$LINENO: result: $ac_res" >&5
10521 echo "${ECHO_T}$ac_res" >&6; }
10522 else
10523   # Is the header compilable?
10524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h.  */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h.  */
10532 $ac_includes_default
10533 #include <$ac_header>
10534 _ACEOF
10535 rm -f conftest.$ac_objext
10536 if { (ac_try="$ac_compile"
10537 case "(($ac_try" in
10538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539   *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542   (eval "$ac_compile") 2>conftest.er1
10543   ac_status=$?
10544   grep -v '^ *+' conftest.er1 >conftest.err
10545   rm -f conftest.er1
10546   cat conftest.err >&5
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); } &&
10549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550   { (case "(($ac_try" in
10551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552   *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555   (eval "$ac_try") 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; } &&
10559          { ac_try='test -s conftest.$ac_objext'
10560   { (case "(($ac_try" in
10561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562   *) ac_try_echo=$ac_try;;
10563 esac
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565   (eval "$ac_try") 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; }; then
10569   ac_header_compiler=yes
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574         ac_header_compiler=no
10575 fi
10576
10577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579 echo "${ECHO_T}$ac_header_compiler" >&6; }
10580
10581 # Is the header present?
10582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 #include <$ac_header>
10591 _ACEOF
10592 if { (ac_try="$ac_cpp conftest.$ac_ext"
10593 case "(($ac_try" in
10594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595   *) ac_try_echo=$ac_try;;
10596 esac
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10599   ac_status=$?
10600   grep -v '^ *+' conftest.er1 >conftest.err
10601   rm -f conftest.er1
10602   cat conftest.err >&5
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } >/dev/null; then
10605   if test -s conftest.err; then
10606     ac_cpp_err=$ac_c_preproc_warn_flag
10607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10608   else
10609     ac_cpp_err=
10610   fi
10611 else
10612   ac_cpp_err=yes
10613 fi
10614 if test -z "$ac_cpp_err"; then
10615   ac_header_preproc=yes
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620   ac_header_preproc=no
10621 fi
10622
10623 rm -f conftest.err conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10625 echo "${ECHO_T}$ac_header_preproc" >&6; }
10626
10627 # So?  What about this header?
10628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10629   yes:no: )
10630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10634     ac_header_preproc=yes
10635     ;;
10636   no:yes:* )
10637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10649     ( cat <<\_ASBOX
10650 ## ------------------------------------ ##
10651 ## Report this to http://llvm.org/bugs/ ##
10652 ## ------------------------------------ ##
10653 _ASBOX
10654      ) | sed "s/^/$as_me: WARNING:     /" >&2
10655     ;;
10656 esac
10657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10660   echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662   eval "$as_ac_Header=\$ac_header_preproc"
10663 fi
10664 ac_res=`eval echo '${'$as_ac_Header'}'`
10665                { echo "$as_me:$LINENO: result: $ac_res" >&5
10666 echo "${ECHO_T}$ac_res" >&6; }
10667
10668 fi
10669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10670   cat >>confdefs.h <<_ACEOF
10671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10672 _ACEOF
10673
10674 fi
10675
10676 done
10677
10678
10679 { echo "$as_me:$LINENO: checking for error_t" >&5
10680 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10681 if test "${ac_cv_type_error_t+set}" = set; then
10682   echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684   cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h.  */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h.  */
10690 #if HAVE_ARGZ_H
10691 #  include <argz.h>
10692 #endif
10693
10694 typedef error_t ac__type_new_;
10695 int
10696 main ()
10697 {
10698 if ((ac__type_new_ *) 0)
10699   return 0;
10700 if (sizeof (ac__type_new_))
10701   return 0;
10702   ;
10703   return 0;
10704 }
10705 _ACEOF
10706 rm -f conftest.$ac_objext
10707 if { (ac_try="$ac_compile"
10708 case "(($ac_try" in
10709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710   *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713   (eval "$ac_compile") 2>conftest.er1
10714   ac_status=$?
10715   grep -v '^ *+' conftest.er1 >conftest.err
10716   rm -f conftest.er1
10717   cat conftest.err >&5
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } &&
10720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721   { (case "(($ac_try" in
10722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723   *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726   (eval "$ac_try") 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; } &&
10730          { ac_try='test -s conftest.$ac_objext'
10731   { (case "(($ac_try" in
10732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733   *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736   (eval "$ac_try") 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; }; then
10740   ac_cv_type_error_t=yes
10741 else
10742   echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745         ac_cv_type_error_t=no
10746 fi
10747
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 fi
10750 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10751 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10752 if test $ac_cv_type_error_t = yes; then
10753
10754 cat >>confdefs.h <<_ACEOF
10755 #define HAVE_ERROR_T 1
10756 _ACEOF
10757
10758
10759 else
10760
10761 cat >>confdefs.h <<\_ACEOF
10762 #define error_t int
10763 _ACEOF
10764
10765 fi
10766
10767
10768
10769
10770
10771
10772
10773 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10774 do
10775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10779   echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781   cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h.  */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h.  */
10787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10789 #define $ac_func innocuous_$ac_func
10790
10791 /* System header to define __stub macros and hopefully few prototypes,
10792     which can conflict with char $ac_func (); below.
10793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10794     <limits.h> exists even on freestanding compilers.  */
10795
10796 #ifdef __STDC__
10797 # include <limits.h>
10798 #else
10799 # include <assert.h>
10800 #endif
10801
10802 #undef $ac_func
10803
10804 /* Override any GCC internal prototype to avoid an error.
10805    Use char because int might match the return type of a GCC
10806    builtin and then its argument prototype would still apply.  */
10807 #ifdef __cplusplus
10808 extern "C"
10809 #endif
10810 char $ac_func ();
10811 /* The GNU C library defines this for functions which it implements
10812     to always fail with ENOSYS.  Some functions are actually named
10813     something starting with __ and the normal name is an alias.  */
10814 #if defined __stub_$ac_func || defined __stub___$ac_func
10815 choke me
10816 #endif
10817
10818 int
10819 main ()
10820 {
10821 return $ac_func ();
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830   *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833   (eval "$ac_link") 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } &&
10840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10841   { (case "(($ac_try" in
10842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843   *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846   (eval "$ac_try") 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; } &&
10850          { ac_try='test -s conftest$ac_exeext'
10851   { (case "(($ac_try" in
10852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853   *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856   (eval "$ac_try") 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; }; then
10860   eval "$as_ac_var=yes"
10861 else
10862   echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865         eval "$as_ac_var=no"
10866 fi
10867
10868 rm -f core conftest.err conftest.$ac_objext \
10869       conftest$ac_exeext conftest.$ac_ext
10870 fi
10871 ac_res=`eval echo '${'$as_ac_var'}'`
10872                { echo "$as_me:$LINENO: result: $ac_res" >&5
10873 echo "${ECHO_T}$ac_res" >&6; }
10874 if test `eval echo '${'$as_ac_var'}'` = yes; then
10875   cat >>confdefs.h <<_ACEOF
10876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10877 _ACEOF
10878
10879 fi
10880 done
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10910                   stdio.h unistd.h
10911 do
10912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10917   echo $ECHO_N "(cached) $ECHO_C" >&6
10918 fi
10919 ac_res=`eval echo '${'$as_ac_Header'}'`
10920                { echo "$as_me:$LINENO: result: $ac_res" >&5
10921 echo "${ECHO_T}$ac_res" >&6; }
10922 else
10923   # Is the header compilable?
10924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10926 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932 $ac_includes_default
10933 #include <$ac_header>
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939   *) ac_try_echo=$ac_try;;
10940 esac
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942   (eval "$ac_compile") 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } &&
10949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950   { (case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955   (eval "$ac_try") 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; } &&
10959          { ac_try='test -s conftest.$ac_objext'
10960   { (case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_try") 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; }; then
10969   ac_header_compiler=yes
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974         ac_header_compiler=no
10975 fi
10976
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10979 echo "${ECHO_T}$ac_header_compiler" >&6; }
10980
10981 # Is the header present?
10982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10984 cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h.  */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h.  */
10990 #include <$ac_header>
10991 _ACEOF
10992 if { (ac_try="$ac_cpp conftest.$ac_ext"
10993 case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } >/dev/null; then
11005   if test -s conftest.err; then
11006     ac_cpp_err=$ac_c_preproc_warn_flag
11007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11008   else
11009     ac_cpp_err=
11010   fi
11011 else
11012   ac_cpp_err=yes
11013 fi
11014 if test -z "$ac_cpp_err"; then
11015   ac_header_preproc=yes
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020   ac_header_preproc=no
11021 fi
11022
11023 rm -f conftest.err conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11025 echo "${ECHO_T}$ac_header_preproc" >&6; }
11026
11027 # So?  What about this header?
11028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11029   yes:no: )
11030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11034     ac_header_preproc=yes
11035     ;;
11036   no:yes:* )
11037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11049     ( cat <<\_ASBOX
11050 ## ------------------------------------ ##
11051 ## Report this to http://llvm.org/bugs/ ##
11052 ## ------------------------------------ ##
11053 _ASBOX
11054      ) | sed "s/^/$as_me: WARNING:     /" >&2
11055     ;;
11056 esac
11057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   eval "$as_ac_Header=\$ac_header_preproc"
11063 fi
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065                { echo "$as_me:$LINENO: result: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11067
11068 fi
11069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11070   cat >>confdefs.h <<_ACEOF
11071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11072 _ACEOF
11073
11074 fi
11075
11076 done
11077
11078
11079
11080
11081
11082 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11083 do
11084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11089   echo $ECHO_N "(cached) $ECHO_C" >&6
11090 fi
11091 ac_res=`eval echo '${'$as_ac_Header'}'`
11092                { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11094 else
11095   # Is the header compilable?
11096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h.  */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h.  */
11104 $ac_includes_default
11105 #include <$ac_header>
11106 _ACEOF
11107 rm -f conftest.$ac_objext
11108 if { (ac_try="$ac_compile"
11109 case "(($ac_try" in
11110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111   *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114   (eval "$ac_compile") 2>conftest.er1
11115   ac_status=$?
11116   grep -v '^ *+' conftest.er1 >conftest.err
11117   rm -f conftest.er1
11118   cat conftest.err >&5
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } &&
11121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11122   { (case "(($ac_try" in
11123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124   *) ac_try_echo=$ac_try;;
11125 esac
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127   (eval "$ac_try") 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; } &&
11131          { ac_try='test -s conftest.$ac_objext'
11132   { (case "(($ac_try" in
11133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134   *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137   (eval "$ac_try") 2>&5
11138   ac_status=$?
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); }; }; then
11141   ac_header_compiler=yes
11142 else
11143   echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146         ac_header_compiler=no
11147 fi
11148
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11151 echo "${ECHO_T}$ac_header_compiler" >&6; }
11152
11153 # Is the header present?
11154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11156 cat >conftest.$ac_ext <<_ACEOF
11157 /* confdefs.h.  */
11158 _ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h.  */
11162 #include <$ac_header>
11163 _ACEOF
11164 if { (ac_try="$ac_cpp conftest.$ac_ext"
11165 case "(($ac_try" in
11166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167   *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11171   ac_status=$?
11172   grep -v '^ *+' conftest.er1 >conftest.err
11173   rm -f conftest.er1
11174   cat conftest.err >&5
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); } >/dev/null; then
11177   if test -s conftest.err; then
11178     ac_cpp_err=$ac_c_preproc_warn_flag
11179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11180   else
11181     ac_cpp_err=
11182   fi
11183 else
11184   ac_cpp_err=yes
11185 fi
11186 if test -z "$ac_cpp_err"; then
11187   ac_header_preproc=yes
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192   ac_header_preproc=no
11193 fi
11194
11195 rm -f conftest.err conftest.$ac_ext
11196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11197 echo "${ECHO_T}$ac_header_preproc" >&6; }
11198
11199 # So?  What about this header?
11200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11201   yes:no: )
11202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11206     ac_header_preproc=yes
11207     ;;
11208   no:yes:* )
11209     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11211     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11212 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11216 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11219     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11221     ( cat <<\_ASBOX
11222 ## ------------------------------------ ##
11223 ## Report this to http://llvm.org/bugs/ ##
11224 ## ------------------------------------ ##
11225 _ASBOX
11226      ) | sed "s/^/$as_me: WARNING:     /" >&2
11227     ;;
11228 esac
11229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232   echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234   eval "$as_ac_Header=\$ac_header_preproc"
11235 fi
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237                { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11239
11240 fi
11241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11242   cat >>confdefs.h <<_ACEOF
11243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11244 _ACEOF
11245
11246 fi
11247
11248 done
11249
11250
11251
11252 for ac_header in string.h strings.h
11253 do
11254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 fi
11261 ac_res=`eval echo '${'$as_ac_Header'}'`
11262                { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11264 else
11265   # Is the header compilable?
11266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h.  */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h.  */
11274 $ac_includes_default
11275 #include <$ac_header>
11276 _ACEOF
11277 rm -f conftest.$ac_objext
11278 if { (ac_try="$ac_compile"
11279 case "(($ac_try" in
11280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281   *) ac_try_echo=$ac_try;;
11282 esac
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284   (eval "$ac_compile") 2>conftest.er1
11285   ac_status=$?
11286   grep -v '^ *+' conftest.er1 >conftest.err
11287   rm -f conftest.er1
11288   cat conftest.err >&5
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); } &&
11291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11292   { (case "(($ac_try" in
11293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294   *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297   (eval "$ac_try") 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }; } &&
11301          { ac_try='test -s conftest.$ac_objext'
11302   { (case "(($ac_try" in
11303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304   *) ac_try_echo=$ac_try;;
11305 esac
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307   (eval "$ac_try") 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }; then
11311   ac_header_compiler=yes
11312 else
11313   echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11315
11316         ac_header_compiler=no
11317 fi
11318
11319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11321 echo "${ECHO_T}$ac_header_compiler" >&6; }
11322
11323 # Is the header present?
11324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 #include <$ac_header>
11333 _ACEOF
11334 if { (ac_try="$ac_cpp conftest.$ac_ext"
11335 case "(($ac_try" in
11336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337   *) ac_try_echo=$ac_try;;
11338 esac
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11341   ac_status=$?
11342   grep -v '^ *+' conftest.er1 >conftest.err
11343   rm -f conftest.er1
11344   cat conftest.err >&5
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); } >/dev/null; then
11347   if test -s conftest.err; then
11348     ac_cpp_err=$ac_c_preproc_warn_flag
11349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11350   else
11351     ac_cpp_err=
11352   fi
11353 else
11354   ac_cpp_err=yes
11355 fi
11356 if test -z "$ac_cpp_err"; then
11357   ac_header_preproc=yes
11358 else
11359   echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362   ac_header_preproc=no
11363 fi
11364
11365 rm -f conftest.err conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11367 echo "${ECHO_T}$ac_header_preproc" >&6; }
11368
11369 # So?  What about this header?
11370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11371   yes:no: )
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11376     ac_header_preproc=yes
11377     ;;
11378   no:yes:* )
11379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11382 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11386 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11389     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11391     ( cat <<\_ASBOX
11392 ## ------------------------------------ ##
11393 ## Report this to http://llvm.org/bugs/ ##
11394 ## ------------------------------------ ##
11395 _ASBOX
11396      ) | sed "s/^/$as_me: WARNING:     /" >&2
11397     ;;
11398 esac
11399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   eval "$as_ac_Header=\$ac_header_preproc"
11405 fi
11406 ac_res=`eval echo '${'$as_ac_Header'}'`
11407                { echo "$as_me:$LINENO: result: $ac_res" >&5
11408 echo "${ECHO_T}$ac_res" >&6; }
11409
11410 fi
11411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11412   cat >>confdefs.h <<_ACEOF
11413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11414 _ACEOF
11415  break
11416 fi
11417
11418 done
11419
11420
11421
11422
11423 for ac_func in strchr index
11424 do
11425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11429   echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431   cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11439 #define $ac_func innocuous_$ac_func
11440
11441 /* System header to define __stub macros and hopefully few prototypes,
11442     which can conflict with char $ac_func (); below.
11443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444     <limits.h> exists even on freestanding compilers.  */
11445
11446 #ifdef __STDC__
11447 # include <limits.h>
11448 #else
11449 # include <assert.h>
11450 #endif
11451
11452 #undef $ac_func
11453
11454 /* Override any GCC internal prototype to avoid an error.
11455    Use char because int might match the return type of a GCC
11456    builtin and then its argument prototype would still apply.  */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char $ac_func ();
11461 /* The GNU C library defines this for functions which it implements
11462     to always fail with ENOSYS.  Some functions are actually named
11463     something starting with __ and the normal name is an alias.  */
11464 #if defined __stub_$ac_func || defined __stub___$ac_func
11465 choke me
11466 #endif
11467
11468 int
11469 main ()
11470 {
11471 return $ac_func ();
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 rm -f conftest.$ac_objext conftest$ac_exeext
11477 if { (ac_try="$ac_link"
11478 case "(($ac_try" in
11479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480   *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483   (eval "$ac_link") 2>conftest.er1
11484   ac_status=$?
11485   grep -v '^ *+' conftest.er1 >conftest.err
11486   rm -f conftest.er1
11487   cat conftest.err >&5
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); } &&
11490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11491   { (case "(($ac_try" in
11492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493   *) ac_try_echo=$ac_try;;
11494 esac
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496   (eval "$ac_try") 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; } &&
11500          { ac_try='test -s conftest$ac_exeext'
11501   { (case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_try") 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   eval "$as_ac_var=yes"
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515         eval "$as_ac_var=no"
11516 fi
11517
11518 rm -f core conftest.err conftest.$ac_objext \
11519       conftest$ac_exeext conftest.$ac_ext
11520 fi
11521 ac_res=`eval echo '${'$as_ac_var'}'`
11522                { echo "$as_me:$LINENO: result: $ac_res" >&5
11523 echo "${ECHO_T}$ac_res" >&6; }
11524 if test `eval echo '${'$as_ac_var'}'` = yes; then
11525   cat >>confdefs.h <<_ACEOF
11526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11527 _ACEOF
11528  break
11529 fi
11530 done
11531
11532
11533
11534 for ac_func in strrchr rindex
11535 do
11536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11540   echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542   cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h.  */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h.  */
11548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11550 #define $ac_func innocuous_$ac_func
11551
11552 /* System header to define __stub macros and hopefully few prototypes,
11553     which can conflict with char $ac_func (); below.
11554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11555     <limits.h> exists even on freestanding compilers.  */
11556
11557 #ifdef __STDC__
11558 # include <limits.h>
11559 #else
11560 # include <assert.h>
11561 #endif
11562
11563 #undef $ac_func
11564
11565 /* Override any GCC internal prototype to avoid an error.
11566    Use char because int might match the return type of a GCC
11567    builtin and then its argument prototype would still apply.  */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 char $ac_func ();
11572 /* The GNU C library defines this for functions which it implements
11573     to always fail with ENOSYS.  Some functions are actually named
11574     something starting with __ and the normal name is an alias.  */
11575 #if defined __stub_$ac_func || defined __stub___$ac_func
11576 choke me
11577 #endif
11578
11579 int
11580 main ()
11581 {
11582 return $ac_func ();
11583   ;
11584   return 0;
11585 }
11586 _ACEOF
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (ac_try="$ac_link"
11589 case "(($ac_try" in
11590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591   *) ac_try_echo=$ac_try;;
11592 esac
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594   (eval "$ac_link") 2>conftest.er1
11595   ac_status=$?
11596   grep -v '^ *+' conftest.er1 >conftest.err
11597   rm -f conftest.er1
11598   cat conftest.err >&5
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); } &&
11601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11602   { (case "(($ac_try" in
11603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604   *) ac_try_echo=$ac_try;;
11605 esac
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607   (eval "$ac_try") 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); }; } &&
11611          { ac_try='test -s conftest$ac_exeext'
11612   { (case "(($ac_try" in
11613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614   *) ac_try_echo=$ac_try;;
11615 esac
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617   (eval "$ac_try") 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; }; then
11621   eval "$as_ac_var=yes"
11622 else
11623   echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11625
11626         eval "$as_ac_var=no"
11627 fi
11628
11629 rm -f core conftest.err conftest.$ac_objext \
11630       conftest$ac_exeext conftest.$ac_ext
11631 fi
11632 ac_res=`eval echo '${'$as_ac_var'}'`
11633                { echo "$as_me:$LINENO: result: $ac_res" >&5
11634 echo "${ECHO_T}$ac_res" >&6; }
11635 if test `eval echo '${'$as_ac_var'}'` = yes; then
11636   cat >>confdefs.h <<_ACEOF
11637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11638 _ACEOF
11639  break
11640 fi
11641 done
11642
11643
11644
11645 for ac_func in memcpy bcopy
11646 do
11647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11661 #define $ac_func innocuous_$ac_func
11662
11663 /* System header to define __stub macros and hopefully few prototypes,
11664     which can conflict with char $ac_func (); below.
11665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666     <limits.h> exists even on freestanding compilers.  */
11667
11668 #ifdef __STDC__
11669 # include <limits.h>
11670 #else
11671 # include <assert.h>
11672 #endif
11673
11674 #undef $ac_func
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677    Use char because int might match the return type of a GCC
11678    builtin and then its argument prototype would still apply.  */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char $ac_func ();
11683 /* The GNU C library defines this for functions which it implements
11684     to always fail with ENOSYS.  Some functions are actually named
11685     something starting with __ and the normal name is an alias.  */
11686 #if defined __stub_$ac_func || defined __stub___$ac_func
11687 choke me
11688 #endif
11689
11690 int
11691 main ()
11692 {
11693 return $ac_func ();
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705   (eval "$ac_link") 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } &&
11712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713   { (case "(($ac_try" in
11714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715   *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718   (eval "$ac_try") 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; } &&
11722          { ac_try='test -s conftest$ac_exeext'
11723   { (case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_try") 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; }; then
11732   eval "$as_ac_var=yes"
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737         eval "$as_ac_var=no"
11738 fi
11739
11740 rm -f core conftest.err conftest.$ac_objext \
11741       conftest$ac_exeext conftest.$ac_ext
11742 fi
11743 ac_res=`eval echo '${'$as_ac_var'}'`
11744                { echo "$as_me:$LINENO: result: $ac_res" >&5
11745 echo "${ECHO_T}$ac_res" >&6; }
11746 if test `eval echo '${'$as_ac_var'}'` = yes; then
11747   cat >>confdefs.h <<_ACEOF
11748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11749 _ACEOF
11750  break
11751 fi
11752 done
11753
11754
11755
11756 for ac_func in memmove strcmp
11757 do
11758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h.  */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h.  */
11770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11772 #define $ac_func innocuous_$ac_func
11773
11774 /* System header to define __stub macros and hopefully few prototypes,
11775     which can conflict with char $ac_func (); below.
11776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11777     <limits.h> exists even on freestanding compilers.  */
11778
11779 #ifdef __STDC__
11780 # include <limits.h>
11781 #else
11782 # include <assert.h>
11783 #endif
11784
11785 #undef $ac_func
11786
11787 /* Override any GCC internal prototype to avoid an error.
11788    Use char because int might match the return type of a GCC
11789    builtin and then its argument prototype would still apply.  */
11790 #ifdef __cplusplus
11791 extern "C"
11792 #endif
11793 char $ac_func ();
11794 /* The GNU C library defines this for functions which it implements
11795     to always fail with ENOSYS.  Some functions are actually named
11796     something starting with __ and the normal name is an alias.  */
11797 #if defined __stub_$ac_func || defined __stub___$ac_func
11798 choke me
11799 #endif
11800
11801 int
11802 main ()
11803 {
11804 return $ac_func ();
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (ac_try="$ac_link"
11811 case "(($ac_try" in
11812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813   *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816   (eval "$ac_link") 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824   { (case "(($ac_try" in
11825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826   *) ac_try_echo=$ac_try;;
11827 esac
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829   (eval "$ac_try") 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; } &&
11833          { ac_try='test -s conftest$ac_exeext'
11834   { (case "(($ac_try" in
11835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836   *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839   (eval "$ac_try") 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; }; then
11843   eval "$as_ac_var=yes"
11844 else
11845   echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848         eval "$as_ac_var=no"
11849 fi
11850
11851 rm -f core conftest.err conftest.$ac_objext \
11852       conftest$ac_exeext conftest.$ac_ext
11853 fi
11854 ac_res=`eval echo '${'$as_ac_var'}'`
11855                { echo "$as_me:$LINENO: result: $ac_res" >&5
11856 echo "${ECHO_T}$ac_res" >&6; }
11857 if test `eval echo '${'$as_ac_var'}'` = yes; then
11858   cat >>confdefs.h <<_ACEOF
11859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11860 _ACEOF
11861
11862 fi
11863 done
11864
11865
11866
11867
11868 for ac_func in closedir opendir readdir
11869 do
11870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11884 #define $ac_func innocuous_$ac_func
11885
11886 /* System header to define __stub macros and hopefully few prototypes,
11887     which can conflict with char $ac_func (); below.
11888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889     <limits.h> exists even on freestanding compilers.  */
11890
11891 #ifdef __STDC__
11892 # include <limits.h>
11893 #else
11894 # include <assert.h>
11895 #endif
11896
11897 #undef $ac_func
11898
11899 /* Override any GCC internal prototype to avoid an error.
11900    Use char because int might match the return type of a GCC
11901    builtin and then its argument prototype would still apply.  */
11902 #ifdef __cplusplus
11903 extern "C"
11904 #endif
11905 char $ac_func ();
11906 /* The GNU C library defines this for functions which it implements
11907     to always fail with ENOSYS.  Some functions are actually named
11908     something starting with __ and the normal name is an alias.  */
11909 #if defined __stub_$ac_func || defined __stub___$ac_func
11910 choke me
11911 #endif
11912
11913 int
11914 main ()
11915 {
11916 return $ac_func ();
11917   ;
11918   return 0;
11919 }
11920 _ACEOF
11921 rm -f conftest.$ac_objext conftest$ac_exeext
11922 if { (ac_try="$ac_link"
11923 case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_link") 2>conftest.er1
11929   ac_status=$?
11930   grep -v '^ *+' conftest.er1 >conftest.err
11931   rm -f conftest.er1
11932   cat conftest.err >&5
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); } &&
11935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11936   { (case "(($ac_try" in
11937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938   *) ac_try_echo=$ac_try;;
11939 esac
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941   (eval "$ac_try") 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; } &&
11945          { ac_try='test -s conftest$ac_exeext'
11946   { (case "(($ac_try" in
11947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948   *) ac_try_echo=$ac_try;;
11949 esac
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951   (eval "$ac_try") 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; }; then
11955   eval "$as_ac_var=yes"
11956 else
11957   echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11959
11960         eval "$as_ac_var=no"
11961 fi
11962
11963 rm -f core conftest.err conftest.$ac_objext \
11964       conftest$ac_exeext conftest.$ac_ext
11965 fi
11966 ac_res=`eval echo '${'$as_ac_var'}'`
11967                { echo "$as_me:$LINENO: result: $ac_res" >&5
11968 echo "${ECHO_T}$ac_res" >&6; }
11969 if test `eval echo '${'$as_ac_var'}'` = yes; then
11970   cat >>confdefs.h <<_ACEOF
11971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11972 _ACEOF
11973
11974 fi
11975 done
11976
11977
11978
11979 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11980 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11981
11982 ICC=no
11983 IXX=no
11984 case $CC in
11985   icc*|icpc*)
11986     ICC=yes
11987     IXX=yes
11988     ;;
11989    *)
11990     ;;
11991 esac
11992
11993 if test "$GCC" != "yes" && test "$ICC" != "yes"
11994 then
11995   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11996 echo "$as_me: error: gcc|icc required but not found" >&2;}
11997    { (exit 1); exit 1; }; }
11998 fi
11999
12000 if test "$GXX" != "yes" && test "$IXX" != "yes"
12001 then
12002   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12003 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12004    { (exit 1); exit 1; }; }
12005 fi
12006
12007 if test "$GCC" = "yes"
12008 then
12009   cat >conftest.$ac_ext <<_ACEOF
12010 #if !defined(__GNUC__) || __GNUC__ < 3
12011 #error Unsupported GCC version
12012 #endif
12013
12014 _ACEOF
12015 rm -f conftest.$ac_objext
12016 if { (ac_try="$ac_compile"
12017 case "(($ac_try" in
12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019   *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022   (eval "$ac_compile") 2>conftest.er1
12023   ac_status=$?
12024   grep -v '^ *+' conftest.er1 >conftest.err
12025   rm -f conftest.er1
12026   cat conftest.err >&5
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030   { (case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035   (eval "$ac_try") 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; } &&
12039          { ac_try='test -s conftest.$ac_objext'
12040   { (case "(($ac_try" in
12041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042   *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045   (eval "$ac_try") 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); }; }; then
12049   :
12050 else
12051   echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12055 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12056    { (exit 1); exit 1; }; }
12057 fi
12058
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060 fi
12061
12062 if test -z "$llvm_cv_gnu_make_command"
12063 then
12064   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12065 echo "$as_me: error: GNU Make required but not found" >&2;}
12066    { (exit 1); exit 1; }; }
12067 fi
12068
12069 { echo "$as_me:$LINENO: result: ok" >&5
12070 echo "${ECHO_T}ok" >&6; }
12071
12072 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12073 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12074 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12075
12076 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12077
12078 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12079
12080 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12081 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12082
12083
12084
12085 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12086 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12087 if test "${ac_cv_lib_m_sin+set}" = set; then
12088   echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090   ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-lm  $LIBS"
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h.  */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h.  */
12098
12099 /* Override any GCC internal prototype to avoid an error.
12100    Use char because int might match the return type of a GCC
12101    builtin and then its argument prototype would still apply.  */
12102 #ifdef __cplusplus
12103 extern "C"
12104 #endif
12105 char sin ();
12106 int
12107 main ()
12108 {
12109 return sin ();
12110   ;
12111   return 0;
12112 }
12113 _ACEOF
12114 rm -f conftest.$ac_objext conftest$ac_exeext
12115 if { (ac_try="$ac_link"
12116 case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121   (eval "$ac_link") 2>conftest.er1
12122   ac_status=$?
12123   grep -v '^ *+' conftest.er1 >conftest.err
12124   rm -f conftest.er1
12125   cat conftest.err >&5
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } &&
12128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129   { (case "(($ac_try" in
12130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131   *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134   (eval "$ac_try") 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); }; } &&
12138          { ac_try='test -s conftest$ac_exeext'
12139   { (case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144   (eval "$ac_try") 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   ac_cv_lib_m_sin=yes
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153         ac_cv_lib_m_sin=no
12154 fi
12155
12156 rm -f core conftest.err conftest.$ac_objext \
12157       conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12159 fi
12160 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12161 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12162 if test $ac_cv_lib_m_sin = yes; then
12163   cat >>confdefs.h <<_ACEOF
12164 #define HAVE_LIBM 1
12165 _ACEOF
12166
12167   LIBS="-lm $LIBS"
12168
12169 fi
12170
12171 if test "$llvm_cv_os_type" = "MingW" ; then
12172
12173 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12174 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12175 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12176   echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178   ac_check_lib_save_LIBS=$LIBS
12179 LIBS="-limagehlp  $LIBS"
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h.  */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h.  */
12186
12187
12188 int
12189 main ()
12190 {
12191 return main ();
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200   *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203   (eval "$ac_link") 2>conftest.er1
12204   ac_status=$?
12205   grep -v '^ *+' conftest.er1 >conftest.err
12206   rm -f conftest.er1
12207   cat conftest.err >&5
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); } &&
12210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211   { (case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_try") 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; } &&
12220          { ac_try='test -s conftest$ac_exeext'
12221   { (case "(($ac_try" in
12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223   *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226   (eval "$ac_try") 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; }; then
12230   ac_cv_lib_imagehlp_main=yes
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235         ac_cv_lib_imagehlp_main=no
12236 fi
12237
12238 rm -f core conftest.err conftest.$ac_objext \
12239       conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12243 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12244 if test $ac_cv_lib_imagehlp_main = yes; then
12245   cat >>confdefs.h <<_ACEOF
12246 #define HAVE_LIBIMAGEHLP 1
12247 _ACEOF
12248
12249   LIBS="-limagehlp $LIBS"
12250
12251 fi
12252
12253
12254 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12255 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12256 if test "${ac_cv_lib_psapi_main+set}" = set; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259   ac_check_lib_save_LIBS=$LIBS
12260 LIBS="-lpsapi  $LIBS"
12261 cat >conftest.$ac_ext <<_ACEOF
12262 /* confdefs.h.  */
12263 _ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h.  */
12267
12268
12269 int
12270 main ()
12271 {
12272 return main ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_link") 2>conftest.er1
12285   ac_status=$?
12286   grep -v '^ *+' conftest.er1 >conftest.err
12287   rm -f conftest.er1
12288   cat conftest.err >&5
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); } &&
12291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12292   { (case "(($ac_try" in
12293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294   *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297   (eval "$ac_try") 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; } &&
12301          { ac_try='test -s conftest$ac_exeext'
12302   { (case "(($ac_try" in
12303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304   *) ac_try_echo=$ac_try;;
12305 esac
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307   (eval "$ac_try") 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; }; then
12311   ac_cv_lib_psapi_main=yes
12312 else
12313   echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316         ac_cv_lib_psapi_main=no
12317 fi
12318
12319 rm -f core conftest.err conftest.$ac_objext \
12320       conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12322 fi
12323 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12324 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12325 if test $ac_cv_lib_psapi_main = yes; then
12326   cat >>confdefs.h <<_ACEOF
12327 #define HAVE_LIBPSAPI 1
12328 _ACEOF
12329
12330   LIBS="-lpsapi $LIBS"
12331
12332 fi
12333
12334 fi
12335
12336 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12337 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12338 if test "${ac_cv_search_dlopen+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   ac_func_search_save_LIBS=$LIBS
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h.  */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h.  */
12348
12349 /* Override any GCC internal prototype to avoid an error.
12350    Use char because int might match the return type of a GCC
12351    builtin and then its argument prototype would still apply.  */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 char dlopen ();
12356 int
12357 main ()
12358 {
12359 return dlopen ();
12360   ;
12361   return 0;
12362 }
12363 _ACEOF
12364 for ac_lib in '' dl; do
12365   if test -z "$ac_lib"; then
12366     ac_res="none required"
12367   else
12368     ac_res=-l$ac_lib
12369     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12370   fi
12371   rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (ac_try="$ac_link"
12373 case "(($ac_try" in
12374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375   *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378   (eval "$ac_link") 2>conftest.er1
12379   ac_status=$?
12380   grep -v '^ *+' conftest.er1 >conftest.err
12381   rm -f conftest.er1
12382   cat conftest.err >&5
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); } &&
12385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12386   { (case "(($ac_try" in
12387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388   *) ac_try_echo=$ac_try;;
12389 esac
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391   (eval "$ac_try") 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; } &&
12395          { ac_try='test -s conftest$ac_exeext'
12396   { (case "(($ac_try" in
12397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398   *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401   (eval "$ac_try") 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); }; }; then
12405   ac_cv_search_dlopen=$ac_res
12406 else
12407   echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410
12411 fi
12412
12413 rm -f core conftest.err conftest.$ac_objext \
12414       conftest$ac_exeext
12415   if test "${ac_cv_search_dlopen+set}" = set; then
12416   break
12417 fi
12418 done
12419 if test "${ac_cv_search_dlopen+set}" = set; then
12420   :
12421 else
12422   ac_cv_search_dlopen=no
12423 fi
12424 rm conftest.$ac_ext
12425 LIBS=$ac_func_search_save_LIBS
12426 fi
12427 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12428 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12429 ac_res=$ac_cv_search_dlopen
12430 if test "$ac_res" != no; then
12431   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12432
12433 cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_DLOPEN 1
12435 _ACEOF
12436
12437 else
12438   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12439 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12440 fi
12441
12442
12443 if test "$llvm_cv_enable_libffi" = "yes" ; then
12444   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12445 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12446 if test "${ac_cv_search_ffi_call+set}" = set; then
12447   echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449   ac_func_search_save_LIBS=$LIBS
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12456
12457 /* Override any GCC internal prototype to avoid an error.
12458    Use char because int might match the return type of a GCC
12459    builtin and then its argument prototype would still apply.  */
12460 #ifdef __cplusplus
12461 extern "C"
12462 #endif
12463 char ffi_call ();
12464 int
12465 main ()
12466 {
12467 return ffi_call ();
12468   ;
12469   return 0;
12470 }
12471 _ACEOF
12472 for ac_lib in '' ffi; do
12473   if test -z "$ac_lib"; then
12474     ac_res="none required"
12475   else
12476     ac_res=-l$ac_lib
12477     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12478   fi
12479   rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (ac_try="$ac_link"
12481 case "(($ac_try" in
12482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483   *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486   (eval "$ac_link") 2>conftest.er1
12487   ac_status=$?
12488   grep -v '^ *+' conftest.er1 >conftest.err
12489   rm -f conftest.er1
12490   cat conftest.err >&5
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); } &&
12493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12494   { (case "(($ac_try" in
12495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496   *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499   (eval "$ac_try") 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; } &&
12503          { ac_try='test -s conftest$ac_exeext'
12504   { (case "(($ac_try" in
12505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506   *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509   (eval "$ac_try") 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; }; then
12513   ac_cv_search_ffi_call=$ac_res
12514 else
12515   echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518
12519 fi
12520
12521 rm -f core conftest.err conftest.$ac_objext \
12522       conftest$ac_exeext
12523   if test "${ac_cv_search_ffi_call+set}" = set; then
12524   break
12525 fi
12526 done
12527 if test "${ac_cv_search_ffi_call+set}" = set; then
12528   :
12529 else
12530   ac_cv_search_ffi_call=no
12531 fi
12532 rm conftest.$ac_ext
12533 LIBS=$ac_func_search_save_LIBS
12534 fi
12535 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12536 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12537 ac_res=$ac_cv_search_ffi_call
12538 if test "$ac_res" != no; then
12539   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12540
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_FFI_CALL 1
12543 _ACEOF
12544
12545 else
12546   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12547 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12548    { (exit 1); exit 1; }; }
12549 fi
12550
12551 fi
12552
12553 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12554 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12555 if test "${ac_cv_search_mallinfo+set}" = set; then
12556   echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558   ac_func_search_save_LIBS=$LIBS
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567    Use char because int might match the return type of a GCC
12568    builtin and then its argument prototype would still apply.  */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 char mallinfo ();
12573 int
12574 main ()
12575 {
12576 return mallinfo ();
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 for ac_lib in '' malloc; do
12582   if test -z "$ac_lib"; then
12583     ac_res="none required"
12584   else
12585     ac_res=-l$ac_lib
12586     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12587   fi
12588   rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592   *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595   (eval "$ac_link") 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
12599   cat conftest.err >&5
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } &&
12602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12603   { (case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608   (eval "$ac_try") 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); }; } &&
12612          { ac_try='test -s conftest$ac_exeext'
12613   { (case "(($ac_try" in
12614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615   *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618   (eval "$ac_try") 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; }; then
12622   ac_cv_search_mallinfo=$ac_res
12623 else
12624   echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627
12628 fi
12629
12630 rm -f core conftest.err conftest.$ac_objext \
12631       conftest$ac_exeext
12632   if test "${ac_cv_search_mallinfo+set}" = set; then
12633   break
12634 fi
12635 done
12636 if test "${ac_cv_search_mallinfo+set}" = set; then
12637   :
12638 else
12639   ac_cv_search_mallinfo=no
12640 fi
12641 rm conftest.$ac_ext
12642 LIBS=$ac_func_search_save_LIBS
12643 fi
12644 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12645 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12646 ac_res=$ac_cv_search_mallinfo
12647 if test "$ac_res" != no; then
12648   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12649
12650 cat >>confdefs.h <<\_ACEOF
12651 #define HAVE_MALLINFO 1
12652 _ACEOF
12653
12654 fi
12655
12656
12657 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12658
12659 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12660 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12661 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12662   echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664   ac_check_lib_save_LIBS=$LIBS
12665 LIBS="-lpthread  $LIBS"
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h.  */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h.  */
12672
12673 /* Override any GCC internal prototype to avoid an error.
12674    Use char because int might match the return type of a GCC
12675    builtin and then its argument prototype would still apply.  */
12676 #ifdef __cplusplus
12677 extern "C"
12678 #endif
12679 char pthread_mutex_init ();
12680 int
12681 main ()
12682 {
12683 return pthread_mutex_init ();
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (ac_try="$ac_link"
12690 case "(($ac_try" in
12691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692   *) ac_try_echo=$ac_try;;
12693 esac
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695   (eval "$ac_link") 2>conftest.er1
12696   ac_status=$?
12697   grep -v '^ *+' conftest.er1 >conftest.err
12698   rm -f conftest.er1
12699   cat conftest.err >&5
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); } &&
12702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703   { (case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708   (eval "$ac_try") 2>&5
12709   ac_status=$?
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); }; } &&
12712          { ac_try='test -s conftest$ac_exeext'
12713   { (case "(($ac_try" in
12714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715   *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718   (eval "$ac_try") 2>&5
12719   ac_status=$?
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; }; then
12722   ac_cv_lib_pthread_pthread_mutex_init=yes
12723 else
12724   echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727         ac_cv_lib_pthread_pthread_mutex_init=no
12728 fi
12729
12730 rm -f core conftest.err conftest.$ac_objext \
12731       conftest$ac_exeext conftest.$ac_ext
12732 LIBS=$ac_check_lib_save_LIBS
12733 fi
12734 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12735 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12736 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12737   cat >>confdefs.h <<_ACEOF
12738 #define HAVE_LIBPTHREAD 1
12739 _ACEOF
12740
12741   LIBS="-lpthread $LIBS"
12742
12743 fi
12744
12745   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12746 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12747 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12748   echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750   ac_func_search_save_LIBS=$LIBS
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h.  */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h.  */
12757
12758 /* Override any GCC internal prototype to avoid an error.
12759    Use char because int might match the return type of a GCC
12760    builtin and then its argument prototype would still apply.  */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char pthread_mutex_lock ();
12765 int
12766 main ()
12767 {
12768 return pthread_mutex_lock ();
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 for ac_lib in '' pthread; do
12774   if test -z "$ac_lib"; then
12775     ac_res="none required"
12776   else
12777     ac_res=-l$ac_lib
12778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12779   fi
12780   rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (ac_try="$ac_link"
12782 case "(($ac_try" in
12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784   *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787   (eval "$ac_link") 2>conftest.er1
12788   ac_status=$?
12789   grep -v '^ *+' conftest.er1 >conftest.err
12790   rm -f conftest.er1
12791   cat conftest.err >&5
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } &&
12794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12795   { (case "(($ac_try" in
12796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797   *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800   (eval "$ac_try") 2>&5
12801   ac_status=$?
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); }; } &&
12804          { ac_try='test -s conftest$ac_exeext'
12805   { (case "(($ac_try" in
12806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807   *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810   (eval "$ac_try") 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; }; then
12814   ac_cv_search_pthread_mutex_lock=$ac_res
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819
12820 fi
12821
12822 rm -f core conftest.err conftest.$ac_objext \
12823       conftest$ac_exeext
12824   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12825   break
12826 fi
12827 done
12828 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12829   :
12830 else
12831   ac_cv_search_pthread_mutex_lock=no
12832 fi
12833 rm conftest.$ac_ext
12834 LIBS=$ac_func_search_save_LIBS
12835 fi
12836 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12837 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12838 ac_res=$ac_cv_search_pthread_mutex_lock
12839 if test "$ac_res" != no; then
12840   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12841
12842 cat >>confdefs.h <<\_ACEOF
12843 #define HAVE_PTHREAD_MUTEX_LOCK 1
12844 _ACEOF
12845
12846 fi
12847
12848   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12849 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12850 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12851   echo $ECHO_N "(cached) $ECHO_C" >&6
12852 else
12853   ac_func_search_save_LIBS=$LIBS
12854 cat >conftest.$ac_ext <<_ACEOF
12855 /* confdefs.h.  */
12856 _ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h.  */
12860
12861 /* Override any GCC internal prototype to avoid an error.
12862    Use char because int might match the return type of a GCC
12863    builtin and then its argument prototype would still apply.  */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 char pthread_rwlock_init ();
12868 int
12869 main ()
12870 {
12871 return pthread_rwlock_init ();
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 for ac_lib in '' pthread; do
12877   if test -z "$ac_lib"; then
12878     ac_res="none required"
12879   else
12880     ac_res=-l$ac_lib
12881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12882   fi
12883   rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (ac_try="$ac_link"
12885 case "(($ac_try" in
12886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887   *) ac_try_echo=$ac_try;;
12888 esac
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890   (eval "$ac_link") 2>conftest.er1
12891   ac_status=$?
12892   grep -v '^ *+' conftest.er1 >conftest.err
12893   rm -f conftest.er1
12894   cat conftest.err >&5
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); } &&
12897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898   { (case "(($ac_try" in
12899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900   *) ac_try_echo=$ac_try;;
12901 esac
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903   (eval "$ac_try") 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; } &&
12907          { ac_try='test -s conftest$ac_exeext'
12908   { (case "(($ac_try" in
12909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910   *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913   (eval "$ac_try") 2>&5
12914   ac_status=$?
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); }; }; then
12917   ac_cv_search_pthread_rwlock_init=$ac_res
12918 else
12919   echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12921
12922
12923 fi
12924
12925 rm -f core conftest.err conftest.$ac_objext \
12926       conftest$ac_exeext
12927   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12928   break
12929 fi
12930 done
12931 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12932   :
12933 else
12934   ac_cv_search_pthread_rwlock_init=no
12935 fi
12936 rm conftest.$ac_ext
12937 LIBS=$ac_func_search_save_LIBS
12938 fi
12939 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12940 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12941 ac_res=$ac_cv_search_pthread_rwlock_init
12942 if test "$ac_res" != no; then
12943   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12944
12945 cat >>confdefs.h <<\_ACEOF
12946 #define HAVE_PTHREAD_RWLOCK_INIT 1
12947 _ACEOF
12948
12949 fi
12950
12951   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12952 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12953 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12954   echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956   ac_func_search_save_LIBS=$LIBS
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h.  */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h.  */
12963
12964 /* Override any GCC internal prototype to avoid an error.
12965    Use char because int might match the return type of a GCC
12966    builtin and then its argument prototype would still apply.  */
12967 #ifdef __cplusplus
12968 extern "C"
12969 #endif
12970 char pthread_getspecific ();
12971 int
12972 main ()
12973 {
12974 return pthread_getspecific ();
12975   ;
12976   return 0;
12977 }
12978 _ACEOF
12979 for ac_lib in '' pthread; do
12980   if test -z "$ac_lib"; then
12981     ac_res="none required"
12982   else
12983     ac_res=-l$ac_lib
12984     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12985   fi
12986   rm -f conftest.$ac_objext conftest$ac_exeext
12987 if { (ac_try="$ac_link"
12988 case "(($ac_try" in
12989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990   *) ac_try_echo=$ac_try;;
12991 esac
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993   (eval "$ac_link") 2>conftest.er1
12994   ac_status=$?
12995   grep -v '^ *+' conftest.er1 >conftest.err
12996   rm -f conftest.er1
12997   cat conftest.err >&5
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); } &&
13000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13001   { (case "(($ac_try" in
13002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003   *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006   (eval "$ac_try") 2>&5
13007   ac_status=$?
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); }; } &&
13010          { ac_try='test -s conftest$ac_exeext'
13011   { (case "(($ac_try" in
13012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013   *) ac_try_echo=$ac_try;;
13014 esac
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016   (eval "$ac_try") 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }; }; then
13020   ac_cv_search_pthread_getspecific=$ac_res
13021 else
13022   echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13024
13025
13026 fi
13027
13028 rm -f core conftest.err conftest.$ac_objext \
13029       conftest$ac_exeext
13030   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13031   break
13032 fi
13033 done
13034 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13035   :
13036 else
13037   ac_cv_search_pthread_getspecific=no
13038 fi
13039 rm conftest.$ac_ext
13040 LIBS=$ac_func_search_save_LIBS
13041 fi
13042 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13043 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13044 ac_res=$ac_cv_search_pthread_getspecific
13045 if test "$ac_res" != no; then
13046   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13047
13048 cat >>confdefs.h <<\_ACEOF
13049 #define HAVE_PTHREAD_GETSPECIFIC 1
13050 _ACEOF
13051
13052 fi
13053
13054 fi
13055
13056
13057 # Check whether --with-udis86 was given.
13058 if test "${with_udis86+set}" = set; then
13059   withval=$with_udis86;
13060       USE_UDIS86=1
13061
13062       case "$withval" in
13063         /usr/lib|yes) ;;
13064         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13065       esac
13066
13067 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13068 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13069 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13070   echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072   ac_check_lib_save_LIBS=$LIBS
13073 LIBS="-ludis86  $LIBS"
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h.  */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h.  */
13080
13081 /* Override any GCC internal prototype to avoid an error.
13082    Use char because int might match the return type of a GCC
13083    builtin and then its argument prototype would still apply.  */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char ud_init ();
13088 int
13089 main ()
13090 {
13091 return ud_init ();
13092   ;
13093   return 0;
13094 }
13095 _ACEOF
13096 rm -f conftest.$ac_objext conftest$ac_exeext
13097 if { (ac_try="$ac_link"
13098 case "(($ac_try" in
13099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100   *) ac_try_echo=$ac_try;;
13101 esac
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103   (eval "$ac_link") 2>conftest.er1
13104   ac_status=$?
13105   grep -v '^ *+' conftest.er1 >conftest.err
13106   rm -f conftest.er1
13107   cat conftest.err >&5
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); } &&
13110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13111   { (case "(($ac_try" in
13112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113   *) ac_try_echo=$ac_try;;
13114 esac
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116   (eval "$ac_try") 2>&5
13117   ac_status=$?
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); }; } &&
13120          { ac_try='test -s conftest$ac_exeext'
13121   { (case "(($ac_try" in
13122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123   *) ac_try_echo=$ac_try;;
13124 esac
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126   (eval "$ac_try") 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; }; then
13130   ac_cv_lib_udis86_ud_init=yes
13131 else
13132   echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135         ac_cv_lib_udis86_ud_init=no
13136 fi
13137
13138 rm -f core conftest.err conftest.$ac_objext \
13139       conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13141 fi
13142 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13143 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13144 if test $ac_cv_lib_udis86_ud_init = yes; then
13145   cat >>confdefs.h <<_ACEOF
13146 #define HAVE_LIBUDIS86 1
13147 _ACEOF
13148
13149   LIBS="-ludis86 $LIBS"
13150
13151 else
13152
13153         echo "Error! You need to have libudis86 around."
13154         exit -1
13155
13156 fi
13157
13158
13159 else
13160   USE_UDIS86=0
13161
13162 fi
13163
13164
13165 cat >>confdefs.h <<_ACEOF
13166 #define USE_UDIS86 $USE_UDIS86
13167 _ACEOF
13168
13169
13170
13171 # Check whether --with-oprofile was given.
13172 if test "${with_oprofile+set}" = set; then
13173   withval=$with_oprofile;
13174       USE_OPROFILE=1
13175
13176       case "$withval" in
13177         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13178         no) llvm_cv_oppath=
13179             USE_OPROFILE=0
13180  ;;
13181         *) llvm_cv_oppath="${withval}/lib/oprofile"
13182            CPPFLAGS="-I${withval}/include";;
13183       esac
13184       case $llvm_cv_os_type in
13185         Linux)
13186           if test -n "$llvm_cv_oppath" ; then
13187             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13188                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13189 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13190 if test "${ac_cv_search_bfd_init+set}" = set; then
13191   echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193   ac_func_search_save_LIBS=$LIBS
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h.  */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h.  */
13200
13201 /* Override any GCC internal prototype to avoid an error.
13202    Use char because int might match the return type of a GCC
13203    builtin and then its argument prototype would still apply.  */
13204 #ifdef __cplusplus
13205 extern "C"
13206 #endif
13207 char bfd_init ();
13208 int
13209 main ()
13210 {
13211 return bfd_init ();
13212   ;
13213   return 0;
13214 }
13215 _ACEOF
13216 for ac_lib in '' bfd; do
13217   if test -z "$ac_lib"; then
13218     ac_res="none required"
13219   else
13220     ac_res=-l$ac_lib
13221     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13222   fi
13223   rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227   *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230   (eval "$ac_link") 2>conftest.er1
13231   ac_status=$?
13232   grep -v '^ *+' conftest.er1 >conftest.err
13233   rm -f conftest.er1
13234   cat conftest.err >&5
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } &&
13237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238   { (case "(($ac_try" in
13239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240   *) ac_try_echo=$ac_try;;
13241 esac
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243   (eval "$ac_try") 2>&5
13244   ac_status=$?
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); }; } &&
13247          { ac_try='test -s conftest$ac_exeext'
13248   { (case "(($ac_try" in
13249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250   *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253   (eval "$ac_try") 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_cv_search_bfd_init=$ac_res
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262
13263 fi
13264
13265 rm -f core conftest.err conftest.$ac_objext \
13266       conftest$ac_exeext
13267   if test "${ac_cv_search_bfd_init+set}" = set; then
13268   break
13269 fi
13270 done
13271 if test "${ac_cv_search_bfd_init+set}" = set; then
13272   :
13273 else
13274   ac_cv_search_bfd_init=no
13275 fi
13276 rm conftest.$ac_ext
13277 LIBS=$ac_func_search_save_LIBS
13278 fi
13279 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13280 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13281 ac_res=$ac_cv_search_bfd_init
13282 if test "$ac_res" != no; then
13283   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13284
13285 fi
13286
13287             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13288 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13289 if test "${ac_cv_search_op_open_agent+set}" = set; then
13290   echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292   ac_func_search_save_LIBS=$LIBS
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299
13300 /* Override any GCC internal prototype to avoid an error.
13301    Use char because int might match the return type of a GCC
13302    builtin and then its argument prototype would still apply.  */
13303 #ifdef __cplusplus
13304 extern "C"
13305 #endif
13306 char op_open_agent ();
13307 int
13308 main ()
13309 {
13310 return op_open_agent ();
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 for ac_lib in '' opagent; do
13316   if test -z "$ac_lib"; then
13317     ac_res="none required"
13318   else
13319     ac_res=-l$ac_lib
13320     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13321   fi
13322   rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (ac_try="$ac_link"
13324 case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_link") 2>conftest.er1
13330   ac_status=$?
13331   grep -v '^ *+' conftest.er1 >conftest.err
13332   rm -f conftest.er1
13333   cat conftest.err >&5
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); } &&
13336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13337   { (case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_try") 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; } &&
13346          { ac_try='test -s conftest$ac_exeext'
13347   { (case "(($ac_try" in
13348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349   *) ac_try_echo=$ac_try;;
13350 esac
13351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352   (eval "$ac_try") 2>&5
13353   ac_status=$?
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); }; }; then
13356   ac_cv_search_op_open_agent=$ac_res
13357 else
13358   echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361
13362 fi
13363
13364 rm -f core conftest.err conftest.$ac_objext \
13365       conftest$ac_exeext
13366   if test "${ac_cv_search_op_open_agent+set}" = set; then
13367   break
13368 fi
13369 done
13370 if test "${ac_cv_search_op_open_agent+set}" = set; then
13371   :
13372 else
13373   ac_cv_search_op_open_agent=no
13374 fi
13375 rm conftest.$ac_ext
13376 LIBS=$ac_func_search_save_LIBS
13377 fi
13378 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13379 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13380 ac_res=$ac_cv_search_op_open_agent
13381 if test "$ac_res" != no; then
13382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13383
13384 else
13385
13386               echo "Error! You need to have libopagent around."
13387               exit -1
13388
13389 fi
13390
13391             if test "${ac_cv_header_opagent_h+set}" = set; then
13392   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13393 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13394 if test "${ac_cv_header_opagent_h+set}" = set; then
13395   echo $ECHO_N "(cached) $ECHO_C" >&6
13396 fi
13397 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13398 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13399 else
13400   # Is the header compilable?
13401 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13402 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h.  */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h.  */
13409 $ac_includes_default
13410 #include <opagent.h>
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_compile") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest.$ac_objext'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_header_compiler=yes
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451         ac_header_compiler=no
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13456 echo "${ECHO_T}$ac_header_compiler" >&6; }
13457
13458 # Is the header present?
13459 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13460 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h.  */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h.  */
13467 #include <opagent.h>
13468 _ACEOF
13469 if { (ac_try="$ac_cpp conftest.$ac_ext"
13470 case "(($ac_try" in
13471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472   *) ac_try_echo=$ac_try;;
13473 esac
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13476   ac_status=$?
13477   grep -v '^ *+' conftest.er1 >conftest.err
13478   rm -f conftest.er1
13479   cat conftest.err >&5
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); } >/dev/null; then
13482   if test -s conftest.err; then
13483     ac_cpp_err=$ac_c_preproc_warn_flag
13484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13485   else
13486     ac_cpp_err=
13487   fi
13488 else
13489   ac_cpp_err=yes
13490 fi
13491 if test -z "$ac_cpp_err"; then
13492   ac_header_preproc=yes
13493 else
13494   echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497   ac_header_preproc=no
13498 fi
13499
13500 rm -f conftest.err conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13502 echo "${ECHO_T}$ac_header_preproc" >&6; }
13503
13504 # So?  What about this header?
13505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13506   yes:no: )
13507     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13508 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13509     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13510 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13511     ac_header_preproc=yes
13512     ;;
13513   no:yes:* )
13514     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13515 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13516     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13517 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13518     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13519 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13520     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13521 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13522     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13523 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13524     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13525 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13526     ( cat <<\_ASBOX
13527 ## ------------------------------------ ##
13528 ## Report this to http://llvm.org/bugs/ ##
13529 ## ------------------------------------ ##
13530 _ASBOX
13531      ) | sed "s/^/$as_me: WARNING:     /" >&2
13532     ;;
13533 esac
13534 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13535 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13536 if test "${ac_cv_header_opagent_h+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   ac_cv_header_opagent_h=$ac_header_preproc
13540 fi
13541 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13542 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13543
13544 fi
13545 if test $ac_cv_header_opagent_h = yes; then
13546   :
13547 else
13548
13549               echo "Error! You need to have opagent.h around."
13550               exit -1
13551
13552 fi
13553
13554
13555           fi ;;
13556         *)
13557           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13558 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13559    { (exit 1); exit 1; }; } ;;
13560       esac
13561
13562 else
13563
13564       USE_OPROFILE=0
13565
13566
13567 fi
13568
13569
13570 cat >>confdefs.h <<_ACEOF
13571 #define LLVM_USE_OPROFILE $USE_OPROFILE
13572 _ACEOF
13573
13574
13575
13576 # Check whether --with-intel-jitevents was given.
13577 if test "${with_intel_jitevents+set}" = set; then
13578   withval=$with_intel_jitevents;
13579       case $llvm_cv_os_type in
13580         Linux|Win32|Cygwin|MingW) ;;
13581         *)
13582           { { echo "$as_me:$LINENO: error:
13583             Intel JIT API support is available on Linux and Windows only.\"" >&5
13584 echo "$as_me: error:
13585             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13586    { (exit 1); exit 1; }; } ;;
13587       esac
13588
13589       USE_INTEL_JITEVENTS=1
13590
13591       case "$llvm_cv_target_arch" in
13592         x86)    llvm_intel_jitevents_archdir="lib32";;
13593         x86_64) llvm_intel_jitevents_archdir="lib64";;
13594         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13595                 exit -1;;
13596       esac
13597       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13598       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13599       case "$withval" in
13600         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13601                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13602         *) ;;
13603       esac
13604
13605
13606
13607
13608       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13609       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13610
13611       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13612 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13613 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616   ac_func_search_save_LIBS=$LIBS
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623
13624 /* Override any GCC internal prototype to avoid an error.
13625    Use char because int might match the return type of a GCC
13626    builtin and then its argument prototype would still apply.  */
13627 #ifdef __cplusplus
13628 extern "C"
13629 #endif
13630 char iJIT_IsProfilingActive ();
13631 int
13632 main ()
13633 {
13634 return iJIT_IsProfilingActive ();
13635   ;
13636   return 0;
13637 }
13638 _ACEOF
13639 for ac_lib in '' jitprofiling; do
13640   if test -z "$ac_lib"; then
13641     ac_res="none required"
13642   else
13643     ac_res=-l$ac_lib
13644     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13645   fi
13646   rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_link") 2>conftest.er1
13654   ac_status=$?
13655   grep -v '^ *+' conftest.er1 >conftest.err
13656   rm -f conftest.er1
13657   cat conftest.err >&5
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } &&
13660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661   { (case "(($ac_try" in
13662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663   *) ac_try_echo=$ac_try;;
13664 esac
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666   (eval "$ac_try") 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; } &&
13670          { ac_try='test -s conftest$ac_exeext'
13671   { (case "(($ac_try" in
13672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673   *) ac_try_echo=$ac_try;;
13674 esac
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676   (eval "$ac_try") 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; }; then
13680   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685
13686 fi
13687
13688 rm -f core conftest.err conftest.$ac_objext \
13689       conftest$ac_exeext
13690   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13691   break
13692 fi
13693 done
13694 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13695   :
13696 else
13697   ac_cv_search_iJIT_IsProfilingActive=no
13698 fi
13699 rm conftest.$ac_ext
13700 LIBS=$ac_func_search_save_LIBS
13701 fi
13702 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13703 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13704 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13705 if test "$ac_res" != no; then
13706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13707
13708 else
13709
13710         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13711         exit -1
13712
13713 fi
13714
13715       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13716   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13717 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13718 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13719   echo $ECHO_N "(cached) $ECHO_C" >&6
13720 fi
13721 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13722 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13723 else
13724   # Is the header compilable?
13725 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13726 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13727 cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 $ac_includes_default
13734 #include <jitprofiling.h>
13735 _ACEOF
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743   (eval "$ac_compile") 2>conftest.er1
13744   ac_status=$?
13745   grep -v '^ *+' conftest.er1 >conftest.err
13746   rm -f conftest.er1
13747   cat conftest.err >&5
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); } &&
13750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13751   { (case "(($ac_try" in
13752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753   *) ac_try_echo=$ac_try;;
13754 esac
13755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756   (eval "$ac_try") 2>&5
13757   ac_status=$?
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); }; } &&
13760          { ac_try='test -s conftest.$ac_objext'
13761   { (case "(($ac_try" in
13762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763   *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766   (eval "$ac_try") 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; }; then
13770   ac_header_compiler=yes
13771 else
13772   echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13774
13775         ac_header_compiler=no
13776 fi
13777
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13780 echo "${ECHO_T}$ac_header_compiler" >&6; }
13781
13782 # Is the header present?
13783 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13784 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 #include <jitprofiling.h>
13792 _ACEOF
13793 if { (ac_try="$ac_cpp conftest.$ac_ext"
13794 case "(($ac_try" in
13795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796   *) ac_try_echo=$ac_try;;
13797 esac
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13800   ac_status=$?
13801   grep -v '^ *+' conftest.er1 >conftest.err
13802   rm -f conftest.er1
13803   cat conftest.err >&5
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); } >/dev/null; then
13806   if test -s conftest.err; then
13807     ac_cpp_err=$ac_c_preproc_warn_flag
13808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13809   else
13810     ac_cpp_err=
13811   fi
13812 else
13813   ac_cpp_err=yes
13814 fi
13815 if test -z "$ac_cpp_err"; then
13816   ac_header_preproc=yes
13817 else
13818   echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821   ac_header_preproc=no
13822 fi
13823
13824 rm -f conftest.err conftest.$ac_ext
13825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13826 echo "${ECHO_T}$ac_header_preproc" >&6; }
13827
13828 # So?  What about this header?
13829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13830   yes:no: )
13831     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13832 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13833     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13834 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13835     ac_header_preproc=yes
13836     ;;
13837   no:yes:* )
13838     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13839 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13840     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13841 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13842     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13843 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13844     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13845 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13846     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13847 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13848     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13849 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13850     ( cat <<\_ASBOX
13851 ## ------------------------------------ ##
13852 ## Report this to http://llvm.org/bugs/ ##
13853 ## ------------------------------------ ##
13854 _ASBOX
13855      ) | sed "s/^/$as_me: WARNING:     /" >&2
13856     ;;
13857 esac
13858 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13859 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13860 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13861   echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863   ac_cv_header_jitprofiling_h=$ac_header_preproc
13864 fi
13865 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13866 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13867
13868 fi
13869 if test $ac_cv_header_jitprofiling_h = yes; then
13870   :
13871 else
13872
13873         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13874         exit -1
13875
13876 fi
13877
13878
13879
13880
13881 else
13882
13883       USE_INTEL_JITEVENTS=0
13884
13885
13886 fi
13887
13888
13889 cat >>confdefs.h <<_ACEOF
13890 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13891 _ACEOF
13892
13893
13894 for ac_prog in xml2-config
13895 do
13896   # Extract the first word of "$ac_prog", so it can be a program name with args.
13897 set dummy $ac_prog; ac_word=$2
13898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13900 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13901   echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903   if test -n "$XML2CONFIG"; then
13904   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13905 else
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13908 do
13909   IFS=$as_save_IFS
13910   test -z "$as_dir" && as_dir=.
13911   for ac_exec_ext in '' $ac_executable_extensions; do
13912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13913     ac_cv_prog_XML2CONFIG="$ac_prog"
13914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13915     break 2
13916   fi
13917 done
13918 done
13919 IFS=$as_save_IFS
13920
13921 fi
13922 fi
13923 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13924 if test -n "$XML2CONFIG"; then
13925   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13926 echo "${ECHO_T}$XML2CONFIG" >&6; }
13927 else
13928   { echo "$as_me:$LINENO: result: no" >&5
13929 echo "${ECHO_T}no" >&6; }
13930 fi
13931
13932
13933   test -n "$XML2CONFIG" && break
13934 done
13935
13936
13937 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13938 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13939 if test "x$XML2CONFIG" = "x"; then
13940  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13941 echo "${ECHO_T}xml2-config not found" >&6; }
13942 else
13943  LIBXML2_INC=`$XML2CONFIG --cflags`
13944  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13945 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13946  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13947 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13948 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13949   echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951   ac_check_lib_save_LIBS=$LIBS
13952 LIBS="-lxml2  $LIBS"
13953 cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959
13960 /* Override any GCC internal prototype to avoid an error.
13961    Use char because int might match the return type of a GCC
13962    builtin and then its argument prototype would still apply.  */
13963 #ifdef __cplusplus
13964 extern "C"
13965 #endif
13966 char xmlReadFile ();
13967 int
13968 main ()
13969 {
13970 return xmlReadFile ();
13971   ;
13972   return 0;
13973 }
13974 _ACEOF
13975 rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (ac_try="$ac_link"
13977 case "(($ac_try" in
13978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979   *) ac_try_echo=$ac_try;;
13980 esac
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982   (eval "$ac_link") 2>conftest.er1
13983   ac_status=$?
13984   grep -v '^ *+' conftest.er1 >conftest.err
13985   rm -f conftest.er1
13986   cat conftest.err >&5
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); } &&
13989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13990   { (case "(($ac_try" in
13991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992   *) ac_try_echo=$ac_try;;
13993 esac
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995   (eval "$ac_try") 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; } &&
13999          { ac_try='test -s conftest$ac_exeext'
14000   { (case "(($ac_try" in
14001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002   *) ac_try_echo=$ac_try;;
14003 esac
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005   (eval "$ac_try") 2>&5
14006   ac_status=$?
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); }; }; then
14009   ac_cv_lib_xml2_xmlReadFile=yes
14010 else
14011   echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014         ac_cv_lib_xml2_xmlReadFile=no
14015 fi
14016
14017 rm -f core conftest.err conftest.$ac_objext \
14018       conftest$ac_exeext conftest.$ac_ext
14019 LIBS=$ac_check_lib_save_LIBS
14020 fi
14021 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14022 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14023 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14024
14025 cat >>confdefs.h <<\_ACEOF
14026 #define CLANG_HAVE_LIBXML 1
14027 _ACEOF
14028
14029                                 LIBXML2_LIBS="-lxml2"
14030 fi
14031
14032 fi
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042 ac_header_dirent=no
14043 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14044   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14045 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14046 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14048   echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050   cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h.  */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h.  */
14056 #include <sys/types.h>
14057 #include <$ac_hdr>
14058
14059 int
14060 main ()
14061 {
14062 if ((DIR *) 0)
14063 return 0;
14064   ;
14065   return 0;
14066 }
14067 _ACEOF
14068 rm -f conftest.$ac_objext
14069 if { (ac_try="$ac_compile"
14070 case "(($ac_try" in
14071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072   *) ac_try_echo=$ac_try;;
14073 esac
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075   (eval "$ac_compile") 2>conftest.er1
14076   ac_status=$?
14077   grep -v '^ *+' conftest.er1 >conftest.err
14078   rm -f conftest.er1
14079   cat conftest.err >&5
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); } &&
14082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14083   { (case "(($ac_try" in
14084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085   *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088   (eval "$ac_try") 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; } &&
14092          { ac_try='test -s conftest.$ac_objext'
14093   { (case "(($ac_try" in
14094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095   *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098   (eval "$ac_try") 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); }; }; then
14102   eval "$as_ac_Header=yes"
14103 else
14104   echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14106
14107         eval "$as_ac_Header=no"
14108 fi
14109
14110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111 fi
14112 ac_res=`eval echo '${'$as_ac_Header'}'`
14113                { echo "$as_me:$LINENO: result: $ac_res" >&5
14114 echo "${ECHO_T}$ac_res" >&6; }
14115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14116   cat >>confdefs.h <<_ACEOF
14117 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14118 _ACEOF
14119
14120 ac_header_dirent=$ac_hdr; break
14121 fi
14122
14123 done
14124 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14125 if test $ac_header_dirent = dirent.h; then
14126   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14128 if test "${ac_cv_search_opendir+set}" = set; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   ac_func_search_save_LIBS=$LIBS
14132 cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h.  */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h.  */
14138
14139 /* Override any GCC internal prototype to avoid an error.
14140    Use char because int might match the return type of a GCC
14141    builtin and then its argument prototype would still apply.  */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 char opendir ();
14146 int
14147 main ()
14148 {
14149 return opendir ();
14150   ;
14151   return 0;
14152 }
14153 _ACEOF
14154 for ac_lib in '' dir; do
14155   if test -z "$ac_lib"; then
14156     ac_res="none required"
14157   else
14158     ac_res=-l$ac_lib
14159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14160   fi
14161   rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (ac_try="$ac_link"
14163 case "(($ac_try" in
14164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165   *) ac_try_echo=$ac_try;;
14166 esac
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168   (eval "$ac_link") 2>conftest.er1
14169   ac_status=$?
14170   grep -v '^ *+' conftest.er1 >conftest.err
14171   rm -f conftest.er1
14172   cat conftest.err >&5
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } &&
14175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176   { (case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181   (eval "$ac_try") 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest$ac_exeext'
14186   { (case "(($ac_try" in
14187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188   *) ac_try_echo=$ac_try;;
14189 esac
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191   (eval "$ac_try") 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; }; then
14195   ac_cv_search_opendir=$ac_res
14196 else
14197   echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200
14201 fi
14202
14203 rm -f core conftest.err conftest.$ac_objext \
14204       conftest$ac_exeext
14205   if test "${ac_cv_search_opendir+set}" = set; then
14206   break
14207 fi
14208 done
14209 if test "${ac_cv_search_opendir+set}" = set; then
14210   :
14211 else
14212   ac_cv_search_opendir=no
14213 fi
14214 rm conftest.$ac_ext
14215 LIBS=$ac_func_search_save_LIBS
14216 fi
14217 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14218 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14219 ac_res=$ac_cv_search_opendir
14220 if test "$ac_res" != no; then
14221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14222
14223 fi
14224
14225 else
14226   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14227 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14228 if test "${ac_cv_search_opendir+set}" = set; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231   ac_func_search_save_LIBS=$LIBS
14232 cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238
14239 /* Override any GCC internal prototype to avoid an error.
14240    Use char because int might match the return type of a GCC
14241    builtin and then its argument prototype would still apply.  */
14242 #ifdef __cplusplus
14243 extern "C"
14244 #endif
14245 char opendir ();
14246 int
14247 main ()
14248 {
14249 return opendir ();
14250   ;
14251   return 0;
14252 }
14253 _ACEOF
14254 for ac_lib in '' x; do
14255   if test -z "$ac_lib"; then
14256     ac_res="none required"
14257   else
14258     ac_res=-l$ac_lib
14259     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14260   fi
14261   rm -f conftest.$ac_objext conftest$ac_exeext
14262 if { (ac_try="$ac_link"
14263 case "(($ac_try" in
14264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265   *) ac_try_echo=$ac_try;;
14266 esac
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268   (eval "$ac_link") 2>conftest.er1
14269   ac_status=$?
14270   grep -v '^ *+' conftest.er1 >conftest.err
14271   rm -f conftest.er1
14272   cat conftest.err >&5
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); } &&
14275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14276   { (case "(($ac_try" in
14277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278   *) ac_try_echo=$ac_try;;
14279 esac
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281   (eval "$ac_try") 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); }; } &&
14285          { ac_try='test -s conftest$ac_exeext'
14286   { (case "(($ac_try" in
14287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288   *) ac_try_echo=$ac_try;;
14289 esac
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291   (eval "$ac_try") 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; }; then
14295   ac_cv_search_opendir=$ac_res
14296 else
14297   echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14299
14300
14301 fi
14302
14303 rm -f core conftest.err conftest.$ac_objext \
14304       conftest$ac_exeext
14305   if test "${ac_cv_search_opendir+set}" = set; then
14306   break
14307 fi
14308 done
14309 if test "${ac_cv_search_opendir+set}" = set; then
14310   :
14311 else
14312   ac_cv_search_opendir=no
14313 fi
14314 rm conftest.$ac_ext
14315 LIBS=$ac_func_search_save_LIBS
14316 fi
14317 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14318 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14319 ac_res=$ac_cv_search_opendir
14320 if test "$ac_res" != no; then
14321   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14322
14323 fi
14324
14325 fi
14326
14327 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14328 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14329 if test "${ac_cv_header_mmap_anon+set}" = set; then
14330   echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332    ac_ext=c
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337
14338   cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h.  */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h.  */
14344 #include <sys/mman.h>
14345 #include <unistd.h>
14346 #include <fcntl.h>
14347 int
14348 main ()
14349 {
14350 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14351   ;
14352   return 0;
14353 }
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (ac_try="$ac_compile"
14357 case "(($ac_try" in
14358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359   *) ac_try_echo=$ac_try;;
14360 esac
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362   (eval "$ac_compile") 2>conftest.er1
14363   ac_status=$?
14364   grep -v '^ *+' conftest.er1 >conftest.err
14365   rm -f conftest.er1
14366   cat conftest.err >&5
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); } &&
14369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14370   { (case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_try") 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; } &&
14379          { ac_try='test -s conftest.$ac_objext'
14380   { (case "(($ac_try" in
14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382   *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385   (eval "$ac_try") 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; }; then
14389   ac_cv_header_mmap_anon=yes
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394         ac_cv_header_mmap_anon=no
14395 fi
14396
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398   ac_ext=c
14399 ac_cpp='$CPP $CPPFLAGS'
14400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14403
14404
14405 fi
14406 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14407 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14408 if test "$ac_cv_header_mmap_anon" = yes; then
14409
14410 cat >>confdefs.h <<\_ACEOF
14411 #define HAVE_MMAP_ANONYMOUS 1
14412 _ACEOF
14413
14414 fi
14415
14416 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14417 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14418 if test "${ac_cv_header_stat_broken+set}" = set; then
14419   echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421   cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h.  */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h.  */
14427 #include <sys/types.h>
14428 #include <sys/stat.h>
14429
14430 #if defined S_ISBLK && defined S_IFDIR
14431 # if S_ISBLK (S_IFDIR)
14432 You lose.
14433 # endif
14434 #endif
14435
14436 #if defined S_ISBLK && defined S_IFCHR
14437 # if S_ISBLK (S_IFCHR)
14438 You lose.
14439 # endif
14440 #endif
14441
14442 #if defined S_ISLNK && defined S_IFREG
14443 # if S_ISLNK (S_IFREG)
14444 You lose.
14445 # endif
14446 #endif
14447
14448 #if defined S_ISSOCK && defined S_IFREG
14449 # if S_ISSOCK (S_IFREG)
14450 You lose.
14451 # endif
14452 #endif
14453
14454 _ACEOF
14455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14456   $EGREP "You lose" >/dev/null 2>&1; then
14457   ac_cv_header_stat_broken=yes
14458 else
14459   ac_cv_header_stat_broken=no
14460 fi
14461 rm -f conftest*
14462
14463 fi
14464 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14465 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14466 if test $ac_cv_header_stat_broken = yes; then
14467
14468 cat >>confdefs.h <<\_ACEOF
14469 #define STAT_MACROS_BROKEN 1
14470 _ACEOF
14471
14472 fi
14473
14474 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14475 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14476 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 #include <sys/types.h>
14486 #include <sys/wait.h>
14487 #ifndef WEXITSTATUS
14488 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14489 #endif
14490 #ifndef WIFEXITED
14491 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14492 #endif
14493
14494 int
14495 main ()
14496 {
14497   int s;
14498   wait (&s);
14499   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 rm -f conftest.$ac_objext
14505 if { (ac_try="$ac_compile"
14506 case "(($ac_try" in
14507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508   *) ac_try_echo=$ac_try;;
14509 esac
14510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511   (eval "$ac_compile") 2>conftest.er1
14512   ac_status=$?
14513   grep -v '^ *+' conftest.er1 >conftest.err
14514   rm -f conftest.er1
14515   cat conftest.err >&5
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); } &&
14518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14519   { (case "(($ac_try" in
14520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521   *) ac_try_echo=$ac_try;;
14522 esac
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524   (eval "$ac_try") 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; } &&
14528          { ac_try='test -s conftest.$ac_objext'
14529   { (case "(($ac_try" in
14530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531   *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534   (eval "$ac_try") 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }; then
14538   ac_cv_header_sys_wait_h=yes
14539 else
14540   echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14542
14543         ac_cv_header_sys_wait_h=no
14544 fi
14545
14546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547 fi
14548 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14549 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14550 if test $ac_cv_header_sys_wait_h = yes; then
14551
14552 cat >>confdefs.h <<\_ACEOF
14553 #define HAVE_SYS_WAIT_H 1
14554 _ACEOF
14555
14556 fi
14557
14558 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14559 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14560 if test "${ac_cv_header_time+set}" = set; then
14561   echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563   cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569 #include <sys/types.h>
14570 #include <sys/time.h>
14571 #include <time.h>
14572
14573 int
14574 main ()
14575 {
14576 if ((struct tm *) 0)
14577 return 0;
14578   ;
14579   return 0;
14580 }
14581 _ACEOF
14582 rm -f conftest.$ac_objext
14583 if { (ac_try="$ac_compile"
14584 case "(($ac_try" in
14585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586   *) ac_try_echo=$ac_try;;
14587 esac
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589   (eval "$ac_compile") 2>conftest.er1
14590   ac_status=$?
14591   grep -v '^ *+' conftest.er1 >conftest.err
14592   rm -f conftest.er1
14593   cat conftest.err >&5
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } &&
14596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14597   { (case "(($ac_try" in
14598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599   *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602   (eval "$ac_try") 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); }; } &&
14606          { ac_try='test -s conftest.$ac_objext'
14607   { (case "(($ac_try" in
14608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609   *) ac_try_echo=$ac_try;;
14610 esac
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612   (eval "$ac_try") 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; }; then
14616   ac_cv_header_time=yes
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621         ac_cv_header_time=no
14622 fi
14623
14624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14625 fi
14626 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14627 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14628 if test $ac_cv_header_time = yes; then
14629
14630 cat >>confdefs.h <<\_ACEOF
14631 #define TIME_WITH_SYS_TIME 1
14632 _ACEOF
14633
14634 fi
14635
14636
14637
14638
14639
14640
14641
14642
14643 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14644 do
14645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14647   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14650   echo $ECHO_N "(cached) $ECHO_C" >&6
14651 fi
14652 ac_res=`eval echo '${'$as_ac_Header'}'`
14653                { echo "$as_me:$LINENO: result: $ac_res" >&5
14654 echo "${ECHO_T}$ac_res" >&6; }
14655 else
14656   # Is the header compilable?
14657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h.  */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h.  */
14665 $ac_includes_default
14666 #include <$ac_header>
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (ac_try="$ac_compile"
14670 case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_compile") 2>conftest.er1
14676   ac_status=$?
14677   grep -v '^ *+' conftest.er1 >conftest.err
14678   rm -f conftest.er1
14679   cat conftest.err >&5
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); } &&
14682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14683   { (case "(($ac_try" in
14684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685   *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688   (eval "$ac_try") 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); }; } &&
14692          { ac_try='test -s conftest.$ac_objext'
14693   { (case "(($ac_try" in
14694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695   *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698   (eval "$ac_try") 2>&5
14699   ac_status=$?
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); }; }; then
14702   ac_header_compiler=yes
14703 else
14704   echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707         ac_header_compiler=no
14708 fi
14709
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14712 echo "${ECHO_T}$ac_header_compiler" >&6; }
14713
14714 # Is the header present?
14715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723 #include <$ac_header>
14724 _ACEOF
14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728   *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14732   ac_status=$?
14733   grep -v '^ *+' conftest.er1 >conftest.err
14734   rm -f conftest.er1
14735   cat conftest.err >&5
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } >/dev/null; then
14738   if test -s conftest.err; then
14739     ac_cpp_err=$ac_c_preproc_warn_flag
14740     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14741   else
14742     ac_cpp_err=
14743   fi
14744 else
14745   ac_cpp_err=yes
14746 fi
14747 if test -z "$ac_cpp_err"; then
14748   ac_header_preproc=yes
14749 else
14750   echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753   ac_header_preproc=no
14754 fi
14755
14756 rm -f conftest.err conftest.$ac_ext
14757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14758 echo "${ECHO_T}$ac_header_preproc" >&6; }
14759
14760 # So?  What about this header?
14761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14762   yes:no: )
14763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14767     ac_header_preproc=yes
14768     ;;
14769   no:yes:* )
14770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14772     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14773 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14774     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14776     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14777 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14780     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14782     ( cat <<\_ASBOX
14783 ## ------------------------------------ ##
14784 ## Report this to http://llvm.org/bugs/ ##
14785 ## ------------------------------------ ##
14786 _ASBOX
14787      ) | sed "s/^/$as_me: WARNING:     /" >&2
14788     ;;
14789 esac
14790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793   echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795   eval "$as_ac_Header=\$ac_header_preproc"
14796 fi
14797 ac_res=`eval echo '${'$as_ac_Header'}'`
14798                { echo "$as_me:$LINENO: result: $ac_res" >&5
14799 echo "${ECHO_T}$ac_res" >&6; }
14800
14801 fi
14802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14803   cat >>confdefs.h <<_ACEOF
14804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14805 _ACEOF
14806
14807 fi
14808
14809 done
14810
14811
14812
14813
14814
14815
14816
14817 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14818 do
14819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14821   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 fi
14826 ac_res=`eval echo '${'$as_ac_Header'}'`
14827                { echo "$as_me:$LINENO: result: $ac_res" >&5
14828 echo "${ECHO_T}$ac_res" >&6; }
14829 else
14830   # Is the header compilable?
14831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14833 cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h.  */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h.  */
14839 $ac_includes_default
14840 #include <$ac_header>
14841 _ACEOF
14842 rm -f conftest.$ac_objext
14843 if { (ac_try="$ac_compile"
14844 case "(($ac_try" in
14845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846   *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849   (eval "$ac_compile") 2>conftest.er1
14850   ac_status=$?
14851   grep -v '^ *+' conftest.er1 >conftest.err
14852   rm -f conftest.er1
14853   cat conftest.err >&5
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); } &&
14856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857   { (case "(($ac_try" in
14858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859   *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862   (eval "$ac_try") 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; } &&
14866          { ac_try='test -s conftest.$ac_objext'
14867   { (case "(($ac_try" in
14868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869   *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872   (eval "$ac_try") 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }; }; then
14876   ac_header_compiler=yes
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881         ac_header_compiler=no
14882 fi
14883
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14886 echo "${ECHO_T}$ac_header_compiler" >&6; }
14887
14888 # Is the header present?
14889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14891 cat >conftest.$ac_ext <<_ACEOF
14892 /* confdefs.h.  */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h.  */
14897 #include <$ac_header>
14898 _ACEOF
14899 if { (ac_try="$ac_cpp conftest.$ac_ext"
14900 case "(($ac_try" in
14901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902   *) ac_try_echo=$ac_try;;
14903 esac
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14906   ac_status=$?
14907   grep -v '^ *+' conftest.er1 >conftest.err
14908   rm -f conftest.er1
14909   cat conftest.err >&5
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); } >/dev/null; then
14912   if test -s conftest.err; then
14913     ac_cpp_err=$ac_c_preproc_warn_flag
14914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14915   else
14916     ac_cpp_err=
14917   fi
14918 else
14919   ac_cpp_err=yes
14920 fi
14921 if test -z "$ac_cpp_err"; then
14922   ac_header_preproc=yes
14923 else
14924   echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927   ac_header_preproc=no
14928 fi
14929
14930 rm -f conftest.err conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932 echo "${ECHO_T}$ac_header_preproc" >&6; }
14933
14934 # So?  What about this header?
14935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14936   yes:no: )
14937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941     ac_header_preproc=yes
14942     ;;
14943   no:yes:* )
14944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14956     ( cat <<\_ASBOX
14957 ## ------------------------------------ ##
14958 ## Report this to http://llvm.org/bugs/ ##
14959 ## ------------------------------------ ##
14960 _ASBOX
14961      ) | sed "s/^/$as_me: WARNING:     /" >&2
14962     ;;
14963 esac
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967   echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969   eval "$as_ac_Header=\$ac_header_preproc"
14970 fi
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972                { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14974
14975 fi
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977   cat >>confdefs.h <<_ACEOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14979 _ACEOF
14980
14981 fi
14982
14983 done
14984
14985
14986
14987 for ac_header in utime.h windows.h
14988 do
14989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14991   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994   echo $ECHO_N "(cached) $ECHO_C" >&6
14995 fi
14996 ac_res=`eval echo '${'$as_ac_Header'}'`
14997                { echo "$as_me:$LINENO: result: $ac_res" >&5
14998 echo "${ECHO_T}$ac_res" >&6; }
14999 else
15000   # Is the header compilable?
15001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15003 cat >conftest.$ac_ext <<_ACEOF
15004 /* confdefs.h.  */
15005 _ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h.  */
15009 $ac_includes_default
15010 #include <$ac_header>
15011 _ACEOF
15012 rm -f conftest.$ac_objext
15013 if { (ac_try="$ac_compile"
15014 case "(($ac_try" in
15015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016   *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019   (eval "$ac_compile") 2>conftest.er1
15020   ac_status=$?
15021   grep -v '^ *+' conftest.er1 >conftest.err
15022   rm -f conftest.er1
15023   cat conftest.err >&5
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); } &&
15026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15027   { (case "(($ac_try" in
15028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029   *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032   (eval "$ac_try") 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); }; } &&
15036          { ac_try='test -s conftest.$ac_objext'
15037   { (case "(($ac_try" in
15038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039   *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042   (eval "$ac_try") 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; }; then
15046   ac_header_compiler=yes
15047 else
15048   echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051         ac_header_compiler=no
15052 fi
15053
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15056 echo "${ECHO_T}$ac_header_compiler" >&6; }
15057
15058 # Is the header present?
15059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h.  */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h.  */
15067 #include <$ac_header>
15068 _ACEOF
15069 if { (ac_try="$ac_cpp conftest.$ac_ext"
15070 case "(($ac_try" in
15071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072   *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15076   ac_status=$?
15077   grep -v '^ *+' conftest.er1 >conftest.err
15078   rm -f conftest.er1
15079   cat conftest.err >&5
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); } >/dev/null; then
15082   if test -s conftest.err; then
15083     ac_cpp_err=$ac_c_preproc_warn_flag
15084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15085   else
15086     ac_cpp_err=
15087   fi
15088 else
15089   ac_cpp_err=yes
15090 fi
15091 if test -z "$ac_cpp_err"; then
15092   ac_header_preproc=yes
15093 else
15094   echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097   ac_header_preproc=no
15098 fi
15099
15100 rm -f conftest.err conftest.$ac_ext
15101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15102 echo "${ECHO_T}$ac_header_preproc" >&6; }
15103
15104 # So?  What about this header?
15105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15106   yes:no: )
15107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15111     ac_header_preproc=yes
15112     ;;
15113   no:yes:* )
15114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15126     ( cat <<\_ASBOX
15127 ## ------------------------------------ ##
15128 ## Report this to http://llvm.org/bugs/ ##
15129 ## ------------------------------------ ##
15130 _ASBOX
15131      ) | sed "s/^/$as_me: WARNING:     /" >&2
15132     ;;
15133 esac
15134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 else
15139   eval "$as_ac_Header=\$ac_header_preproc"
15140 fi
15141 ac_res=`eval echo '${'$as_ac_Header'}'`
15142                { echo "$as_me:$LINENO: result: $ac_res" >&5
15143 echo "${ECHO_T}$ac_res" >&6; }
15144
15145 fi
15146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15147   cat >>confdefs.h <<_ACEOF
15148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15149 _ACEOF
15150
15151 fi
15152
15153 done
15154
15155
15156
15157
15158
15159
15160 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15161 do
15162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15164   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15167   echo $ECHO_N "(cached) $ECHO_C" >&6
15168 fi
15169 ac_res=`eval echo '${'$as_ac_Header'}'`
15170                { echo "$as_me:$LINENO: result: $ac_res" >&5
15171 echo "${ECHO_T}$ac_res" >&6; }
15172 else
15173   # Is the header compilable?
15174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182 $ac_includes_default
15183 #include <$ac_header>
15184 _ACEOF
15185 rm -f conftest.$ac_objext
15186 if { (ac_try="$ac_compile"
15187 case "(($ac_try" in
15188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189   *) ac_try_echo=$ac_try;;
15190 esac
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192   (eval "$ac_compile") 2>conftest.er1
15193   ac_status=$?
15194   grep -v '^ *+' conftest.er1 >conftest.err
15195   rm -f conftest.er1
15196   cat conftest.err >&5
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); } &&
15199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15200   { (case "(($ac_try" in
15201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202   *) ac_try_echo=$ac_try;;
15203 esac
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205   (eval "$ac_try") 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; } &&
15209          { ac_try='test -s conftest.$ac_objext'
15210   { (case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215   (eval "$ac_try") 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; }; then
15219   ac_header_compiler=yes
15220 else
15221   echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224         ac_header_compiler=no
15225 fi
15226
15227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15229 echo "${ECHO_T}$ac_header_compiler" >&6; }
15230
15231 # Is the header present?
15232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15234 cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h.  */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h.  */
15240 #include <$ac_header>
15241 _ACEOF
15242 if { (ac_try="$ac_cpp conftest.$ac_ext"
15243 case "(($ac_try" in
15244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245   *) ac_try_echo=$ac_try;;
15246 esac
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15249   ac_status=$?
15250   grep -v '^ *+' conftest.er1 >conftest.err
15251   rm -f conftest.er1
15252   cat conftest.err >&5
15253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); } >/dev/null; then
15255   if test -s conftest.err; then
15256     ac_cpp_err=$ac_c_preproc_warn_flag
15257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15258   else
15259     ac_cpp_err=
15260   fi
15261 else
15262   ac_cpp_err=yes
15263 fi
15264 if test -z "$ac_cpp_err"; then
15265   ac_header_preproc=yes
15266 else
15267   echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15269
15270   ac_header_preproc=no
15271 fi
15272
15273 rm -f conftest.err conftest.$ac_ext
15274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15275 echo "${ECHO_T}$ac_header_preproc" >&6; }
15276
15277 # So?  What about this header?
15278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15279   yes:no: )
15280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15284     ac_header_preproc=yes
15285     ;;
15286   no:yes:* )
15287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15299     ( cat <<\_ASBOX
15300 ## ------------------------------------ ##
15301 ## Report this to http://llvm.org/bugs/ ##
15302 ## ------------------------------------ ##
15303 _ASBOX
15304      ) | sed "s/^/$as_me: WARNING:     /" >&2
15305     ;;
15306 esac
15307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312   eval "$as_ac_Header=\$ac_header_preproc"
15313 fi
15314 ac_res=`eval echo '${'$as_ac_Header'}'`
15315                { echo "$as_me:$LINENO: result: $ac_res" >&5
15316 echo "${ECHO_T}$ac_res" >&6; }
15317
15318 fi
15319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15320   cat >>confdefs.h <<_ACEOF
15321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15322 _ACEOF
15323
15324 fi
15325
15326 done
15327
15328
15329
15330
15331
15332 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15333 do
15334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15339   echo $ECHO_N "(cached) $ECHO_C" >&6
15340 fi
15341 ac_res=`eval echo '${'$as_ac_Header'}'`
15342                { echo "$as_me:$LINENO: result: $ac_res" >&5
15343 echo "${ECHO_T}$ac_res" >&6; }
15344 else
15345   # Is the header compilable?
15346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354 $ac_includes_default
15355 #include <$ac_header>
15356 _ACEOF
15357 rm -f conftest.$ac_objext
15358 if { (ac_try="$ac_compile"
15359 case "(($ac_try" in
15360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361   *) ac_try_echo=$ac_try;;
15362 esac
15363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364   (eval "$ac_compile") 2>conftest.er1
15365   ac_status=$?
15366   grep -v '^ *+' conftest.er1 >conftest.err
15367   rm -f conftest.er1
15368   cat conftest.err >&5
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); } &&
15371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15372   { (case "(($ac_try" in
15373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374   *) ac_try_echo=$ac_try;;
15375 esac
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377   (eval "$ac_try") 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; } &&
15381          { ac_try='test -s conftest.$ac_objext'
15382   { (case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_try") 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); }; }; then
15391   ac_header_compiler=yes
15392 else
15393   echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15395
15396         ac_header_compiler=no
15397 fi
15398
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15401 echo "${ECHO_T}$ac_header_compiler" >&6; }
15402
15403 # Is the header present?
15404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 #include <$ac_header>
15413 _ACEOF
15414 if { (ac_try="$ac_cpp conftest.$ac_ext"
15415 case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15421   ac_status=$?
15422   grep -v '^ *+' conftest.er1 >conftest.err
15423   rm -f conftest.er1
15424   cat conftest.err >&5
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } >/dev/null; then
15427   if test -s conftest.err; then
15428     ac_cpp_err=$ac_c_preproc_warn_flag
15429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15430   else
15431     ac_cpp_err=
15432   fi
15433 else
15434   ac_cpp_err=yes
15435 fi
15436 if test -z "$ac_cpp_err"; then
15437   ac_header_preproc=yes
15438 else
15439   echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442   ac_header_preproc=no
15443 fi
15444
15445 rm -f conftest.err conftest.$ac_ext
15446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15447 echo "${ECHO_T}$ac_header_preproc" >&6; }
15448
15449 # So?  What about this header?
15450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15451   yes:no: )
15452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15456     ac_header_preproc=yes
15457     ;;
15458   no:yes:* )
15459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15471     ( cat <<\_ASBOX
15472 ## ------------------------------------ ##
15473 ## Report this to http://llvm.org/bugs/ ##
15474 ## ------------------------------------ ##
15475 _ASBOX
15476      ) | sed "s/^/$as_me: WARNING:     /" >&2
15477     ;;
15478 esac
15479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15482   echo $ECHO_N "(cached) $ECHO_C" >&6
15483 else
15484   eval "$as_ac_Header=\$ac_header_preproc"
15485 fi
15486 ac_res=`eval echo '${'$as_ac_Header'}'`
15487                { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15489
15490 fi
15491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492   cat >>confdefs.h <<_ACEOF
15493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494 _ACEOF
15495
15496 fi
15497
15498 done
15499
15500
15501 for ac_header in valgrind/valgrind.h
15502 do
15503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15508   echo $ECHO_N "(cached) $ECHO_C" >&6
15509 fi
15510 ac_res=`eval echo '${'$as_ac_Header'}'`
15511                { echo "$as_me:$LINENO: result: $ac_res" >&5
15512 echo "${ECHO_T}$ac_res" >&6; }
15513 else
15514   # Is the header compilable?
15515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h.  */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h.  */
15523 $ac_includes_default
15524 #include <$ac_header>
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (ac_try="$ac_compile"
15528 case "(($ac_try" in
15529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530   *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533   (eval "$ac_compile") 2>conftest.er1
15534   ac_status=$?
15535   grep -v '^ *+' conftest.er1 >conftest.err
15536   rm -f conftest.er1
15537   cat conftest.err >&5
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); } &&
15540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15541   { (case "(($ac_try" in
15542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543   *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546   (eval "$ac_try") 2>&5
15547   ac_status=$?
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); }; } &&
15550          { ac_try='test -s conftest.$ac_objext'
15551   { (case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556   (eval "$ac_try") 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; }; then
15560   ac_header_compiler=yes
15561 else
15562   echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15564
15565         ac_header_compiler=no
15566 fi
15567
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15570 echo "${ECHO_T}$ac_header_compiler" >&6; }
15571
15572 # Is the header present?
15573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h.  */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h.  */
15581 #include <$ac_header>
15582 _ACEOF
15583 if { (ac_try="$ac_cpp conftest.$ac_ext"
15584 case "(($ac_try" in
15585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586   *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15590   ac_status=$?
15591   grep -v '^ *+' conftest.er1 >conftest.err
15592   rm -f conftest.er1
15593   cat conftest.err >&5
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); } >/dev/null; then
15596   if test -s conftest.err; then
15597     ac_cpp_err=$ac_c_preproc_warn_flag
15598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15599   else
15600     ac_cpp_err=
15601   fi
15602 else
15603   ac_cpp_err=yes
15604 fi
15605 if test -z "$ac_cpp_err"; then
15606   ac_header_preproc=yes
15607 else
15608   echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611   ac_header_preproc=no
15612 fi
15613
15614 rm -f conftest.err conftest.$ac_ext
15615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15616 echo "${ECHO_T}$ac_header_preproc" >&6; }
15617
15618 # So?  What about this header?
15619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15620   yes:no: )
15621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15625     ac_header_preproc=yes
15626     ;;
15627   no:yes:* )
15628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15630     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15631 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15632     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15634     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15635 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15638     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15640     ( cat <<\_ASBOX
15641 ## ------------------------------------ ##
15642 ## Report this to http://llvm.org/bugs/ ##
15643 ## ------------------------------------ ##
15644 _ASBOX
15645      ) | sed "s/^/$as_me: WARNING:     /" >&2
15646     ;;
15647 esac
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651   echo $ECHO_N "(cached) $ECHO_C" >&6
15652 else
15653   eval "$as_ac_Header=\$ac_header_preproc"
15654 fi
15655 ac_res=`eval echo '${'$as_ac_Header'}'`
15656                { echo "$as_me:$LINENO: result: $ac_res" >&5
15657 echo "${ECHO_T}$ac_res" >&6; }
15658
15659 fi
15660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15661   cat >>confdefs.h <<_ACEOF
15662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15663 _ACEOF
15664
15665 fi
15666
15667 done
15668
15669
15670 for ac_header in fenv.h
15671 do
15672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15674   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15677   echo $ECHO_N "(cached) $ECHO_C" >&6
15678 fi
15679 ac_res=`eval echo '${'$as_ac_Header'}'`
15680                { echo "$as_me:$LINENO: result: $ac_res" >&5
15681 echo "${ECHO_T}$ac_res" >&6; }
15682 else
15683   # Is the header compilable?
15684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15686 cat >conftest.$ac_ext <<_ACEOF
15687 /* confdefs.h.  */
15688 _ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h.  */
15692 $ac_includes_default
15693 #include <$ac_header>
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699   *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702   (eval "$ac_compile") 2>conftest.er1
15703   ac_status=$?
15704   grep -v '^ *+' conftest.er1 >conftest.err
15705   rm -f conftest.er1
15706   cat conftest.err >&5
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } &&
15709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710   { (case "(($ac_try" in
15711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712   *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715   (eval "$ac_try") 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); }; } &&
15719          { ac_try='test -s conftest.$ac_objext'
15720   { (case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_try") 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; }; then
15729   ac_header_compiler=yes
15730 else
15731   echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15733
15734         ac_header_compiler=no
15735 fi
15736
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15739 echo "${ECHO_T}$ac_header_compiler" >&6; }
15740
15741 # Is the header present?
15742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15744 cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h.  */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h.  */
15750 #include <$ac_header>
15751 _ACEOF
15752 if { (ac_try="$ac_cpp conftest.$ac_ext"
15753 case "(($ac_try" in
15754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755   *) ac_try_echo=$ac_try;;
15756 esac
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } >/dev/null; then
15765   if test -s conftest.err; then
15766     ac_cpp_err=$ac_c_preproc_warn_flag
15767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15768   else
15769     ac_cpp_err=
15770   fi
15771 else
15772   ac_cpp_err=yes
15773 fi
15774 if test -z "$ac_cpp_err"; then
15775   ac_header_preproc=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780   ac_header_preproc=no
15781 fi
15782
15783 rm -f conftest.err conftest.$ac_ext
15784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 echo "${ECHO_T}$ac_header_preproc" >&6; }
15786
15787 # So?  What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789   yes:no: )
15790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15794     ac_header_preproc=yes
15795     ;;
15796   no:yes:* )
15797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15809     ( cat <<\_ASBOX
15810 ## ------------------------------------ ##
15811 ## Report this to http://llvm.org/bugs/ ##
15812 ## ------------------------------------ ##
15813 _ASBOX
15814      ) | sed "s/^/$as_me: WARNING:     /" >&2
15815     ;;
15816 esac
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820   echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822   eval "$as_ac_Header=\$ac_header_preproc"
15823 fi
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825                { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15827
15828 fi
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830   cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15832 _ACEOF
15833
15834 fi
15835
15836 done
15837
15838 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15839
15840 for ac_header in pthread.h
15841 do
15842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847   echo $ECHO_N "(cached) $ECHO_C" >&6
15848 fi
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850                { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15852 else
15853   # Is the header compilable?
15854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15856 cat >conftest.$ac_ext <<_ACEOF
15857 /* confdefs.h.  */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h.  */
15862 $ac_includes_default
15863 #include <$ac_header>
15864 _ACEOF
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872   (eval "$ac_compile") 2>conftest.er1
15873   ac_status=$?
15874   grep -v '^ *+' conftest.er1 >conftest.err
15875   rm -f conftest.er1
15876   cat conftest.err >&5
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); } &&
15879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15880   { (case "(($ac_try" in
15881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882   *) ac_try_echo=$ac_try;;
15883 esac
15884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885   (eval "$ac_try") 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); }; } &&
15889          { ac_try='test -s conftest.$ac_objext'
15890   { (case "(($ac_try" in
15891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892   *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895   (eval "$ac_try") 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   ac_header_compiler=yes
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904         ac_header_compiler=no
15905 fi
15906
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15909 echo "${ECHO_T}$ac_header_compiler" >&6; }
15910
15911 # Is the header present?
15912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15914 cat >conftest.$ac_ext <<_ACEOF
15915 /* confdefs.h.  */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h.  */
15920 #include <$ac_header>
15921 _ACEOF
15922 if { (ac_try="$ac_cpp conftest.$ac_ext"
15923 case "(($ac_try" in
15924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925   *) ac_try_echo=$ac_try;;
15926 esac
15927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15929   ac_status=$?
15930   grep -v '^ *+' conftest.er1 >conftest.err
15931   rm -f conftest.er1
15932   cat conftest.err >&5
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); } >/dev/null; then
15935   if test -s conftest.err; then
15936     ac_cpp_err=$ac_c_preproc_warn_flag
15937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15938   else
15939     ac_cpp_err=
15940   fi
15941 else
15942   ac_cpp_err=yes
15943 fi
15944 if test -z "$ac_cpp_err"; then
15945   ac_header_preproc=yes
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950   ac_header_preproc=no
15951 fi
15952
15953 rm -f conftest.err conftest.$ac_ext
15954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6; }
15956
15957 # So?  What about this header?
15958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15959   yes:no: )
15960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15964     ac_header_preproc=yes
15965     ;;
15966   no:yes:* )
15967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15979     ( cat <<\_ASBOX
15980 ## ------------------------------------ ##
15981 ## Report this to http://llvm.org/bugs/ ##
15982 ## ------------------------------------ ##
15983 _ASBOX
15984      ) | sed "s/^/$as_me: WARNING:     /" >&2
15985     ;;
15986 esac
15987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   eval "$as_ac_Header=\$ac_header_preproc"
15993 fi
15994 ac_res=`eval echo '${'$as_ac_Header'}'`
15995                { echo "$as_me:$LINENO: result: $ac_res" >&5
15996 echo "${ECHO_T}$ac_res" >&6; }
15997
15998 fi
15999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16000   cat >>confdefs.h <<_ACEOF
16001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16002 _ACEOF
16003  HAVE_PTHREAD=1
16004
16005 else
16006   HAVE_PTHREAD=0
16007
16008 fi
16009
16010 done
16011
16012 else
16013   HAVE_PTHREAD=0
16014
16015 fi
16016
16017 if test "$llvm_cv_enable_libffi" = "yes" ; then
16018
16019
16020 for ac_header in ffi.h ffi/ffi.h
16021 do
16022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16024   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027   echo $ECHO_N "(cached) $ECHO_C" >&6
16028 fi
16029 ac_res=`eval echo '${'$as_ac_Header'}'`
16030                { echo "$as_me:$LINENO: result: $ac_res" >&5
16031 echo "${ECHO_T}$ac_res" >&6; }
16032 else
16033   # Is the header compilable?
16034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042 $ac_includes_default
16043 #include <$ac_header>
16044 _ACEOF
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_compile") 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } &&
16059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060   { (case "(($ac_try" in
16061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062   *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065   (eval "$ac_try") 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; } &&
16069          { ac_try='test -s conftest.$ac_objext'
16070   { (case "(($ac_try" in
16071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072   *) ac_try_echo=$ac_try;;
16073 esac
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075   (eval "$ac_try") 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; }; then
16079   ac_header_compiler=yes
16080 else
16081   echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084         ac_header_compiler=no
16085 fi
16086
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16089 echo "${ECHO_T}$ac_header_compiler" >&6; }
16090
16091 # Is the header present?
16092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h.  */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h.  */
16100 #include <$ac_header>
16101 _ACEOF
16102 if { (ac_try="$ac_cpp conftest.$ac_ext"
16103 case "(($ac_try" in
16104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105   *) ac_try_echo=$ac_try;;
16106 esac
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16109   ac_status=$?
16110   grep -v '^ *+' conftest.er1 >conftest.err
16111   rm -f conftest.er1
16112   cat conftest.err >&5
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } >/dev/null; then
16115   if test -s conftest.err; then
16116     ac_cpp_err=$ac_c_preproc_warn_flag
16117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16118   else
16119     ac_cpp_err=
16120   fi
16121 else
16122   ac_cpp_err=yes
16123 fi
16124 if test -z "$ac_cpp_err"; then
16125   ac_header_preproc=yes
16126 else
16127   echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16129
16130   ac_header_preproc=no
16131 fi
16132
16133 rm -f conftest.err conftest.$ac_ext
16134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16135 echo "${ECHO_T}$ac_header_preproc" >&6; }
16136
16137 # So?  What about this header?
16138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16139   yes:no: )
16140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16144     ac_header_preproc=yes
16145     ;;
16146   no:yes:* )
16147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16159     ( cat <<\_ASBOX
16160 ## ------------------------------------ ##
16161 ## Report this to http://llvm.org/bugs/ ##
16162 ## ------------------------------------ ##
16163 _ASBOX
16164      ) | sed "s/^/$as_me: WARNING:     /" >&2
16165     ;;
16166 esac
16167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   eval "$as_ac_Header=\$ac_header_preproc"
16173 fi
16174 ac_res=`eval echo '${'$as_ac_Header'}'`
16175                { echo "$as_me:$LINENO: result: $ac_res" >&5
16176 echo "${ECHO_T}$ac_res" >&6; }
16177
16178 fi
16179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16180   cat >>confdefs.h <<_ACEOF
16181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16182 _ACEOF
16183
16184 fi
16185
16186 done
16187
16188 fi
16189
16190
16191 for ac_header in CrashReporterClient.h
16192 do
16193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198   echo $ECHO_N "(cached) $ECHO_C" >&6
16199 fi
16200 ac_res=`eval echo '${'$as_ac_Header'}'`
16201                { echo "$as_me:$LINENO: result: $ac_res" >&5
16202 echo "${ECHO_T}$ac_res" >&6; }
16203 else
16204   # Is the header compilable?
16205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213 $ac_includes_default
16214 #include <$ac_header>
16215 _ACEOF
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_compile") 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } &&
16230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231   { (case "(($ac_try" in
16232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233   *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236   (eval "$ac_try") 2>&5
16237   ac_status=$?
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); }; } &&
16240          { ac_try='test -s conftest.$ac_objext'
16241   { (case "(($ac_try" in
16242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243   *) ac_try_echo=$ac_try;;
16244 esac
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246   (eval "$ac_try") 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); }; }; then
16250   ac_header_compiler=yes
16251 else
16252   echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16254
16255         ac_header_compiler=no
16256 fi
16257
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16260 echo "${ECHO_T}$ac_header_compiler" >&6; }
16261
16262 # Is the header present?
16263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16265 cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271 #include <$ac_header>
16272 _ACEOF
16273 if { (ac_try="$ac_cpp conftest.$ac_ext"
16274 case "(($ac_try" in
16275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276   *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16280   ac_status=$?
16281   grep -v '^ *+' conftest.er1 >conftest.err
16282   rm -f conftest.er1
16283   cat conftest.err >&5
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); } >/dev/null; then
16286   if test -s conftest.err; then
16287     ac_cpp_err=$ac_c_preproc_warn_flag
16288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16289   else
16290     ac_cpp_err=
16291   fi
16292 else
16293   ac_cpp_err=yes
16294 fi
16295 if test -z "$ac_cpp_err"; then
16296   ac_header_preproc=yes
16297 else
16298   echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301   ac_header_preproc=no
16302 fi
16303
16304 rm -f conftest.err conftest.$ac_ext
16305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16306 echo "${ECHO_T}$ac_header_preproc" >&6; }
16307
16308 # So?  What about this header?
16309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16310   yes:no: )
16311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16315     ac_header_preproc=yes
16316     ;;
16317   no:yes:* )
16318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16330     ( cat <<\_ASBOX
16331 ## ------------------------------------ ##
16332 ## Report this to http://llvm.org/bugs/ ##
16333 ## ------------------------------------ ##
16334 _ASBOX
16335      ) | sed "s/^/$as_me: WARNING:     /" >&2
16336     ;;
16337 esac
16338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16341   echo $ECHO_N "(cached) $ECHO_C" >&6
16342 else
16343   eval "$as_ac_Header=\$ac_header_preproc"
16344 fi
16345 ac_res=`eval echo '${'$as_ac_Header'}'`
16346                { echo "$as_me:$LINENO: result: $ac_res" >&5
16347 echo "${ECHO_T}$ac_res" >&6; }
16348
16349 fi
16350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16351   cat >>confdefs.h <<_ACEOF
16352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16353 _ACEOF
16354
16355 fi
16356
16357 done
16358
16359
16360 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16361 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16362 cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h.  */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h.  */
16368 extern const char *__crashreporter_info__;
16369       int main() {
16370         __crashreporter_info__ = "test";
16371         return 0;
16372       }
16373
16374 _ACEOF
16375 rm -f conftest.$ac_objext conftest$ac_exeext
16376 if { (ac_try="$ac_link"
16377 case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_link") 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } &&
16389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16390   { (case "(($ac_try" in
16391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392   *) ac_try_echo=$ac_try;;
16393 esac
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395   (eval "$ac_try") 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; } &&
16399          { ac_try='test -s conftest$ac_exeext'
16400   { (case "(($ac_try" in
16401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402   *) ac_try_echo=$ac_try;;
16403 esac
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405   (eval "$ac_try") 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; }; then
16409   { echo "$as_me:$LINENO: result: yes" >&5
16410 echo "${ECHO_T}yes" >&6; }
16411
16412 cat >>confdefs.h <<\_ACEOF
16413 #define HAVE_CRASHREPORTER_INFO 1
16414 _ACEOF
16415
16416 else
16417   echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420         { echo "$as_me:$LINENO: result: no" >&5
16421 echo "${ECHO_T}no" >&6; }
16422
16423 cat >>confdefs.h <<\_ACEOF
16424 #define HAVE_CRASHREPORTER_INFO 0
16425 _ACEOF
16426
16427 fi
16428
16429 rm -f core conftest.err conftest.$ac_objext \
16430       conftest$ac_exeext conftest.$ac_ext
16431
16432
16433
16434
16435   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16436 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16437 if test "${ac_cv_huge_val_sanity+set}" = set; then
16438   echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440
16441     ac_ext=cpp
16442 ac_cpp='$CXXCPP $CPPFLAGS'
16443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16446
16447     ac_save_CXXFLAGS=$CXXFLAGS
16448     CXXFLAGS="$CXXFLAGS -pedantic"
16449     if test "$cross_compiling" = yes; then
16450   ac_cv_huge_val_sanity=yes
16451 else
16452   cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h.  */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h.  */
16458 #include <math.h>
16459 int
16460 main ()
16461 {
16462 double x = HUGE_VAL; return x != x;
16463   ;
16464   return 0;
16465 }
16466 _ACEOF
16467 rm -f conftest$ac_exeext
16468 if { (ac_try="$ac_link"
16469 case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_link") 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16478   { (case "(($ac_try" in
16479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480   *) ac_try_echo=$ac_try;;
16481 esac
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483   (eval "$ac_try") 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; }; then
16487   ac_cv_huge_val_sanity=yes
16488 else
16489   echo "$as_me: program exited with status $ac_status" >&5
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493 ( exit $ac_status )
16494 ac_cv_huge_val_sanity=no
16495 fi
16496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16497 fi
16498
16499
16500     CXXFLAGS=$ac_save_CXXFLAGS
16501     ac_ext=c
16502 ac_cpp='$CPP $CPPFLAGS'
16503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16506
16507
16508 fi
16509 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16510 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16511   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16512
16513
16514 { echo "$as_me:$LINENO: checking for pid_t" >&5
16515 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16516 if test "${ac_cv_type_pid_t+set}" = set; then
16517   echo $ECHO_N "(cached) $ECHO_C" >&6
16518 else
16519   cat >conftest.$ac_ext <<_ACEOF
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525 $ac_includes_default
16526 typedef pid_t ac__type_new_;
16527 int
16528 main ()
16529 {
16530 if ((ac__type_new_ *) 0)
16531   return 0;
16532 if (sizeof (ac__type_new_))
16533   return 0;
16534   ;
16535   return 0;
16536 }
16537 _ACEOF
16538 rm -f conftest.$ac_objext
16539 if { (ac_try="$ac_compile"
16540 case "(($ac_try" in
16541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542   *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545   (eval "$ac_compile") 2>conftest.er1
16546   ac_status=$?
16547   grep -v '^ *+' conftest.er1 >conftest.err
16548   rm -f conftest.er1
16549   cat conftest.err >&5
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); } &&
16552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16553   { (case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558   (eval "$ac_try") 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); }; } &&
16562          { ac_try='test -s conftest.$ac_objext'
16563   { (case "(($ac_try" in
16564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565   *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568   (eval "$ac_try") 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); }; }; then
16572   ac_cv_type_pid_t=yes
16573 else
16574   echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577         ac_cv_type_pid_t=no
16578 fi
16579
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 fi
16582 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16583 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16584 if test $ac_cv_type_pid_t = yes; then
16585   :
16586 else
16587
16588 cat >>confdefs.h <<_ACEOF
16589 #define pid_t int
16590 _ACEOF
16591
16592 fi
16593
16594 { echo "$as_me:$LINENO: checking for size_t" >&5
16595 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16596 if test "${ac_cv_type_size_t+set}" = set; then
16597   echo $ECHO_N "(cached) $ECHO_C" >&6
16598 else
16599   cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h.  */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h.  */
16605 $ac_includes_default
16606 typedef size_t ac__type_new_;
16607 int
16608 main ()
16609 {
16610 if ((ac__type_new_ *) 0)
16611   return 0;
16612 if (sizeof (ac__type_new_))
16613   return 0;
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622   *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625   (eval "$ac_compile") 2>conftest.er1
16626   ac_status=$?
16627   grep -v '^ *+' conftest.er1 >conftest.err
16628   rm -f conftest.er1
16629   cat conftest.err >&5
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } &&
16632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633   { (case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638   (eval "$ac_try") 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (case "(($ac_try" in
16644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645   *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648   (eval "$ac_try") 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); }; }; then
16652   ac_cv_type_size_t=yes
16653 else
16654   echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16656
16657         ac_cv_type_size_t=no
16658 fi
16659
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 fi
16662 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16663 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16664 if test $ac_cv_type_size_t = yes; then
16665   :
16666 else
16667
16668 cat >>confdefs.h <<_ACEOF
16669 #define size_t unsigned int
16670 _ACEOF
16671
16672 fi
16673
16674
16675 cat >>confdefs.h <<_ACEOF
16676 #define RETSIGTYPE void
16677 _ACEOF
16678
16679 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16680 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16681 if test "${ac_cv_struct_tm+set}" = set; then
16682   echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684   cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h.  */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h.  */
16690 #include <sys/types.h>
16691 #include <time.h>
16692
16693 int
16694 main ()
16695 {
16696 struct tm *tp; tp->tm_sec;
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext
16702 if { (ac_try="$ac_compile"
16703 case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708   (eval "$ac_compile") 2>conftest.er1
16709   ac_status=$?
16710   grep -v '^ *+' conftest.er1 >conftest.err
16711   rm -f conftest.er1
16712   cat conftest.err >&5
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } &&
16715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716   { (case "(($ac_try" in
16717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718   *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721   (eval "$ac_try") 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; } &&
16725          { ac_try='test -s conftest.$ac_objext'
16726   { (case "(($ac_try" in
16727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728   *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731   (eval "$ac_try") 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; }; then
16735   ac_cv_struct_tm=time.h
16736 else
16737   echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740         ac_cv_struct_tm=sys/time.h
16741 fi
16742
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16744 fi
16745 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16746 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16747 if test $ac_cv_struct_tm = sys/time.h; then
16748
16749 cat >>confdefs.h <<\_ACEOF
16750 #define TM_IN_SYS_TIME 1
16751 _ACEOF
16752
16753 fi
16754
16755 { echo "$as_me:$LINENO: checking for int64_t" >&5
16756 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16757 if test "${ac_cv_type_int64_t+set}" = set; then
16758   echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760   cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h.  */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h.  */
16766 $ac_includes_default
16767 typedef int64_t ac__type_new_;
16768 int
16769 main ()
16770 {
16771 if ((ac__type_new_ *) 0)
16772   return 0;
16773 if (sizeof (ac__type_new_))
16774   return 0;
16775   ;
16776   return 0;
16777 }
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (ac_try="$ac_compile"
16781 case "(($ac_try" in
16782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783   *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786   (eval "$ac_compile") 2>conftest.er1
16787   ac_status=$?
16788   grep -v '^ *+' conftest.er1 >conftest.err
16789   rm -f conftest.er1
16790   cat conftest.err >&5
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); } &&
16793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794   { (case "(($ac_try" in
16795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796   *) ac_try_echo=$ac_try;;
16797 esac
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799   (eval "$ac_try") 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; } &&
16803          { ac_try='test -s conftest.$ac_objext'
16804   { (case "(($ac_try" in
16805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806   *) ac_try_echo=$ac_try;;
16807 esac
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809   (eval "$ac_try") 2>&5
16810   ac_status=$?
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); }; }; then
16813   ac_cv_type_int64_t=yes
16814 else
16815   echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16817
16818         ac_cv_type_int64_t=no
16819 fi
16820
16821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16822 fi
16823 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16824 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16825 if test $ac_cv_type_int64_t = yes; then
16826
16827 cat >>confdefs.h <<_ACEOF
16828 #define HAVE_INT64_T 1
16829 _ACEOF
16830
16831
16832 else
16833   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16834 echo "$as_me: error: Type int64_t required but not found" >&2;}
16835    { (exit 1); exit 1; }; }
16836 fi
16837
16838 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16839 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16840 if test "${ac_cv_type_uint64_t+set}" = set; then
16841   echo $ECHO_N "(cached) $ECHO_C" >&6
16842 else
16843   cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849 $ac_includes_default
16850 typedef uint64_t ac__type_new_;
16851 int
16852 main ()
16853 {
16854 if ((ac__type_new_ *) 0)
16855   return 0;
16856 if (sizeof (ac__type_new_))
16857   return 0;
16858   ;
16859   return 0;
16860 }
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (ac_try="$ac_compile"
16864 case "(($ac_try" in
16865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866   *) ac_try_echo=$ac_try;;
16867 esac
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869   (eval "$ac_compile") 2>conftest.er1
16870   ac_status=$?
16871   grep -v '^ *+' conftest.er1 >conftest.err
16872   rm -f conftest.er1
16873   cat conftest.err >&5
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); } &&
16876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16877   { (case "(($ac_try" in
16878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879   *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882   (eval "$ac_try") 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; } &&
16886          { ac_try='test -s conftest.$ac_objext'
16887   { (case "(($ac_try" in
16888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889   *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892   (eval "$ac_try") 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; }; then
16896   ac_cv_type_uint64_t=yes
16897 else
16898   echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901         ac_cv_type_uint64_t=no
16902 fi
16903
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16905 fi
16906 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16907 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16908 if test $ac_cv_type_uint64_t = yes; then
16909
16910 cat >>confdefs.h <<_ACEOF
16911 #define HAVE_UINT64_T 1
16912 _ACEOF
16913
16914
16915 else
16916   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16917 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16918 if test "${ac_cv_type_u_int64_t+set}" = set; then
16919   echo $ECHO_N "(cached) $ECHO_C" >&6
16920 else
16921   cat >conftest.$ac_ext <<_ACEOF
16922 /* confdefs.h.  */
16923 _ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h.  */
16927 $ac_includes_default
16928 typedef u_int64_t ac__type_new_;
16929 int
16930 main ()
16931 {
16932 if ((ac__type_new_ *) 0)
16933   return 0;
16934 if (sizeof (ac__type_new_))
16935   return 0;
16936   ;
16937   return 0;
16938 }
16939 _ACEOF
16940 rm -f conftest.$ac_objext
16941 if { (ac_try="$ac_compile"
16942 case "(($ac_try" in
16943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944   *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947   (eval "$ac_compile") 2>conftest.er1
16948   ac_status=$?
16949   grep -v '^ *+' conftest.er1 >conftest.err
16950   rm -f conftest.er1
16951   cat conftest.err >&5
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } &&
16954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16955   { (case "(($ac_try" in
16956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957   *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960   (eval "$ac_try") 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); }; } &&
16964          { ac_try='test -s conftest.$ac_objext'
16965   { (case "(($ac_try" in
16966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967   *) ac_try_echo=$ac_try;;
16968 esac
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970   (eval "$ac_try") 2>&5
16971   ac_status=$?
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); }; }; then
16974   ac_cv_type_u_int64_t=yes
16975 else
16976   echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979         ac_cv_type_u_int64_t=no
16980 fi
16981
16982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983 fi
16984 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16985 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16986 if test $ac_cv_type_u_int64_t = yes; then
16987
16988 cat >>confdefs.h <<_ACEOF
16989 #define HAVE_U_INT64_T 1
16990 _ACEOF
16991
16992
16993 else
16994   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16995 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16996    { (exit 1); exit 1; }; }
16997 fi
16998
16999 fi
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17011 do
17012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17016   echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018   cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h.  */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h.  */
17024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17026 #define $ac_func innocuous_$ac_func
17027
17028 /* System header to define __stub macros and hopefully few prototypes,
17029     which can conflict with char $ac_func (); below.
17030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17031     <limits.h> exists even on freestanding compilers.  */
17032
17033 #ifdef __STDC__
17034 # include <limits.h>
17035 #else
17036 # include <assert.h>
17037 #endif
17038
17039 #undef $ac_func
17040
17041 /* Override any GCC internal prototype to avoid an error.
17042    Use char because int might match the return type of a GCC
17043    builtin and then its argument prototype would still apply.  */
17044 #ifdef __cplusplus
17045 extern "C"
17046 #endif
17047 char $ac_func ();
17048 /* The GNU C library defines this for functions which it implements
17049     to always fail with ENOSYS.  Some functions are actually named
17050     something starting with __ and the normal name is an alias.  */
17051 #if defined __stub_$ac_func || defined __stub___$ac_func
17052 choke me
17053 #endif
17054
17055 int
17056 main ()
17057 {
17058 return $ac_func ();
17059   ;
17060   return 0;
17061 }
17062 _ACEOF
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067   *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070   (eval "$ac_link") 2>conftest.er1
17071   ac_status=$?
17072   grep -v '^ *+' conftest.er1 >conftest.err
17073   rm -f conftest.er1
17074   cat conftest.err >&5
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); } &&
17077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078   { (case "(($ac_try" in
17079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080   *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083   (eval "$ac_try") 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; } &&
17087          { ac_try='test -s conftest$ac_exeext'
17088   { (case "(($ac_try" in
17089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090   *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093   (eval "$ac_try") 2>&5
17094   ac_status=$?
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); }; }; then
17097   eval "$as_ac_var=yes"
17098 else
17099   echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17101
17102         eval "$as_ac_var=no"
17103 fi
17104
17105 rm -f core conftest.err conftest.$ac_objext \
17106       conftest$ac_exeext conftest.$ac_ext
17107 fi
17108 ac_res=`eval echo '${'$as_ac_var'}'`
17109                { echo "$as_me:$LINENO: result: $ac_res" >&5
17110 echo "${ECHO_T}$ac_res" >&6; }
17111 if test `eval echo '${'$as_ac_var'}'` = yes; then
17112   cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17114 _ACEOF
17115
17116 fi
17117 done
17118
17119
17120
17121
17122
17123 for ac_func in powf fmodf strtof round
17124 do
17125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17126 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17128 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17129   echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131   cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h.  */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h.  */
17137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17139 #define $ac_func innocuous_$ac_func
17140
17141 /* System header to define __stub macros and hopefully few prototypes,
17142     which can conflict with char $ac_func (); below.
17143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17144     <limits.h> exists even on freestanding compilers.  */
17145
17146 #ifdef __STDC__
17147 # include <limits.h>
17148 #else
17149 # include <assert.h>
17150 #endif
17151
17152 #undef $ac_func
17153
17154 /* Override any GCC internal prototype to avoid an error.
17155    Use char because int might match the return type of a GCC
17156    builtin and then its argument prototype would still apply.  */
17157 #ifdef __cplusplus
17158 extern "C"
17159 #endif
17160 char $ac_func ();
17161 /* The GNU C library defines this for functions which it implements
17162     to always fail with ENOSYS.  Some functions are actually named
17163     something starting with __ and the normal name is an alias.  */
17164 #if defined __stub_$ac_func || defined __stub___$ac_func
17165 choke me
17166 #endif
17167
17168 int
17169 main ()
17170 {
17171 return $ac_func ();
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext conftest$ac_exeext
17177 if { (ac_try="$ac_link"
17178 case "(($ac_try" in
17179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180   *) ac_try_echo=$ac_try;;
17181 esac
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183   (eval "$ac_link") 2>conftest.er1
17184   ac_status=$?
17185   grep -v '^ *+' conftest.er1 >conftest.err
17186   rm -f conftest.er1
17187   cat conftest.err >&5
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); } &&
17190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17191   { (case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_try") 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; } &&
17200          { ac_try='test -s conftest$ac_exeext'
17201   { (case "(($ac_try" in
17202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203   *) ac_try_echo=$ac_try;;
17204 esac
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206   (eval "$ac_try") 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); }; }; then
17210   eval "$as_ac_var=yes"
17211 else
17212   echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215         eval "$as_ac_var=no"
17216 fi
17217
17218 rm -f core conftest.err conftest.$ac_objext \
17219       conftest$ac_exeext conftest.$ac_ext
17220 fi
17221 ac_res=`eval echo '${'$as_ac_var'}'`
17222                { echo "$as_me:$LINENO: result: $ac_res" >&5
17223 echo "${ECHO_T}$ac_res" >&6; }
17224 if test `eval echo '${'$as_ac_var'}'` = yes; then
17225   cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17227 _ACEOF
17228
17229 fi
17230 done
17231
17232
17233
17234
17235
17236
17237 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17238 do
17239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17243   echo $ECHO_N "(cached) $ECHO_C" >&6
17244 else
17245   cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h.  */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h.  */
17251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17253 #define $ac_func innocuous_$ac_func
17254
17255 /* System header to define __stub macros and hopefully few prototypes,
17256     which can conflict with char $ac_func (); below.
17257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17258     <limits.h> exists even on freestanding compilers.  */
17259
17260 #ifdef __STDC__
17261 # include <limits.h>
17262 #else
17263 # include <assert.h>
17264 #endif
17265
17266 #undef $ac_func
17267
17268 /* Override any GCC internal prototype to avoid an error.
17269    Use char because int might match the return type of a GCC
17270    builtin and then its argument prototype would still apply.  */
17271 #ifdef __cplusplus
17272 extern "C"
17273 #endif
17274 char $ac_func ();
17275 /* The GNU C library defines this for functions which it implements
17276     to always fail with ENOSYS.  Some functions are actually named
17277     something starting with __ and the normal name is an alias.  */
17278 #if defined __stub_$ac_func || defined __stub___$ac_func
17279 choke me
17280 #endif
17281
17282 int
17283 main ()
17284 {
17285 return $ac_func ();
17286   ;
17287   return 0;
17288 }
17289 _ACEOF
17290 rm -f conftest.$ac_objext conftest$ac_exeext
17291 if { (ac_try="$ac_link"
17292 case "(($ac_try" in
17293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294   *) ac_try_echo=$ac_try;;
17295 esac
17296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297   (eval "$ac_link") 2>conftest.er1
17298   ac_status=$?
17299   grep -v '^ *+' conftest.er1 >conftest.err
17300   rm -f conftest.er1
17301   cat conftest.err >&5
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); } &&
17304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17305   { (case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310   (eval "$ac_try") 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); }; } &&
17314          { ac_try='test -s conftest$ac_exeext'
17315   { (case "(($ac_try" in
17316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317   *) ac_try_echo=$ac_try;;
17318 esac
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320   (eval "$ac_try") 2>&5
17321   ac_status=$?
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); }; }; then
17324   eval "$as_ac_var=yes"
17325 else
17326   echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17328
17329         eval "$as_ac_var=no"
17330 fi
17331
17332 rm -f core conftest.err conftest.$ac_objext \
17333       conftest$ac_exeext conftest.$ac_ext
17334 fi
17335 ac_res=`eval echo '${'$as_ac_var'}'`
17336                { echo "$as_me:$LINENO: result: $ac_res" >&5
17337 echo "${ECHO_T}$ac_res" >&6; }
17338 if test `eval echo '${'$as_ac_var'}'` = yes; then
17339   cat >>confdefs.h <<_ACEOF
17340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17341 _ACEOF
17342
17343 fi
17344 done
17345
17346
17347
17348
17349 for ac_func in isatty mkdtemp mkstemp
17350 do
17351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17355   echo $ECHO_N "(cached) $ECHO_C" >&6
17356 else
17357   cat >conftest.$ac_ext <<_ACEOF
17358 /* confdefs.h.  */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h.  */
17363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17365 #define $ac_func innocuous_$ac_func
17366
17367 /* System header to define __stub macros and hopefully few prototypes,
17368     which can conflict with char $ac_func (); below.
17369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17370     <limits.h> exists even on freestanding compilers.  */
17371
17372 #ifdef __STDC__
17373 # include <limits.h>
17374 #else
17375 # include <assert.h>
17376 #endif
17377
17378 #undef $ac_func
17379
17380 /* Override any GCC internal prototype to avoid an error.
17381    Use char because int might match the return type of a GCC
17382    builtin and then its argument prototype would still apply.  */
17383 #ifdef __cplusplus
17384 extern "C"
17385 #endif
17386 char $ac_func ();
17387 /* The GNU C library defines this for functions which it implements
17388     to always fail with ENOSYS.  Some functions are actually named
17389     something starting with __ and the normal name is an alias.  */
17390 #if defined __stub_$ac_func || defined __stub___$ac_func
17391 choke me
17392 #endif
17393
17394 int
17395 main ()
17396 {
17397 return $ac_func ();
17398   ;
17399   return 0;
17400 }
17401 _ACEOF
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (ac_try="$ac_link"
17404 case "(($ac_try" in
17405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406   *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409   (eval "$ac_link") 2>conftest.er1
17410   ac_status=$?
17411   grep -v '^ *+' conftest.er1 >conftest.err
17412   rm -f conftest.er1
17413   cat conftest.err >&5
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); } &&
17416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17417   { (case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_try") 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); }; } &&
17426          { ac_try='test -s conftest$ac_exeext'
17427   { (case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432   (eval "$ac_try") 2>&5
17433   ac_status=$?
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); }; }; then
17436   eval "$as_ac_var=yes"
17437 else
17438   echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17440
17441         eval "$as_ac_var=no"
17442 fi
17443
17444 rm -f core conftest.err conftest.$ac_objext \
17445       conftest$ac_exeext conftest.$ac_ext
17446 fi
17447 ac_res=`eval echo '${'$as_ac_var'}'`
17448                { echo "$as_me:$LINENO: result: $ac_res" >&5
17449 echo "${ECHO_T}$ac_res" >&6; }
17450 if test `eval echo '${'$as_ac_var'}'` = yes; then
17451   cat >>confdefs.h <<_ACEOF
17452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17453 _ACEOF
17454
17455 fi
17456 done
17457
17458
17459
17460
17461
17462
17463
17464
17465 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17466 do
17467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17471   echo $ECHO_N "(cached) $ECHO_C" >&6
17472 else
17473   cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h.  */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h.  */
17479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17481 #define $ac_func innocuous_$ac_func
17482
17483 /* System header to define __stub macros and hopefully few prototypes,
17484     which can conflict with char $ac_func (); below.
17485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17486     <limits.h> exists even on freestanding compilers.  */
17487
17488 #ifdef __STDC__
17489 # include <limits.h>
17490 #else
17491 # include <assert.h>
17492 #endif
17493
17494 #undef $ac_func
17495
17496 /* Override any GCC internal prototype to avoid an error.
17497    Use char because int might match the return type of a GCC
17498    builtin and then its argument prototype would still apply.  */
17499 #ifdef __cplusplus
17500 extern "C"
17501 #endif
17502 char $ac_func ();
17503 /* The GNU C library defines this for functions which it implements
17504     to always fail with ENOSYS.  Some functions are actually named
17505     something starting with __ and the normal name is an alias.  */
17506 #if defined __stub_$ac_func || defined __stub___$ac_func
17507 choke me
17508 #endif
17509
17510 int
17511 main ()
17512 {
17513 return $ac_func ();
17514   ;
17515   return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_link") 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17533   { (case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_try") 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest$ac_exeext'
17543   { (case "(($ac_try" in
17544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545   *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548   (eval "$ac_try") 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552   eval "$as_ac_var=yes"
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557         eval "$as_ac_var=no"
17558 fi
17559
17560 rm -f core conftest.err conftest.$ac_objext \
17561       conftest$ac_exeext conftest.$ac_ext
17562 fi
17563 ac_res=`eval echo '${'$as_ac_var'}'`
17564                { echo "$as_me:$LINENO: result: $ac_res" >&5
17565 echo "${ECHO_T}$ac_res" >&6; }
17566 if test `eval echo '${'$as_ac_var'}'` = yes; then
17567   cat >>confdefs.h <<_ACEOF
17568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17569 _ACEOF
17570
17571 fi
17572 done
17573
17574
17575
17576
17577
17578 for ac_func in strerror strerror_r setenv arc4random
17579 do
17580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586   cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17594 #define $ac_func innocuous_$ac_func
17595
17596 /* System header to define __stub macros and hopefully few prototypes,
17597     which can conflict with char $ac_func (); below.
17598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599     <limits.h> exists even on freestanding compilers.  */
17600
17601 #ifdef __STDC__
17602 # include <limits.h>
17603 #else
17604 # include <assert.h>
17605 #endif
17606
17607 #undef $ac_func
17608
17609 /* Override any GCC internal prototype to avoid an error.
17610    Use char because int might match the return type of a GCC
17611    builtin and then its argument prototype would still apply.  */
17612 #ifdef __cplusplus
17613 extern "C"
17614 #endif
17615 char $ac_func ();
17616 /* The GNU C library defines this for functions which it implements
17617     to always fail with ENOSYS.  Some functions are actually named
17618     something starting with __ and the normal name is an alias.  */
17619 #if defined __stub_$ac_func || defined __stub___$ac_func
17620 choke me
17621 #endif
17622
17623 int
17624 main ()
17625 {
17626 return $ac_func ();
17627   ;
17628   return 0;
17629 }
17630 _ACEOF
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635   *) ac_try_echo=$ac_try;;
17636 esac
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638   (eval "$ac_link") 2>conftest.er1
17639   ac_status=$?
17640   grep -v '^ *+' conftest.er1 >conftest.err
17641   rm -f conftest.er1
17642   cat conftest.err >&5
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); } &&
17645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646   { (case "(($ac_try" in
17647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648   *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651   (eval "$ac_try") 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); }; } &&
17655          { ac_try='test -s conftest$ac_exeext'
17656   { (case "(($ac_try" in
17657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658   *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661   (eval "$ac_try") 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; }; then
17665   eval "$as_ac_var=yes"
17666 else
17667   echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670         eval "$as_ac_var=no"
17671 fi
17672
17673 rm -f core conftest.err conftest.$ac_objext \
17674       conftest$ac_exeext conftest.$ac_ext
17675 fi
17676 ac_res=`eval echo '${'$as_ac_var'}'`
17677                { echo "$as_me:$LINENO: result: $ac_res" >&5
17678 echo "${ECHO_T}$ac_res" >&6; }
17679 if test `eval echo '${'$as_ac_var'}'` = yes; then
17680   cat >>confdefs.h <<_ACEOF
17681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17682 _ACEOF
17683
17684 fi
17685 done
17686
17687
17688
17689
17690
17691 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17692 do
17693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17697   echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699   cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h.  */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h.  */
17705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17707 #define $ac_func innocuous_$ac_func
17708
17709 /* System header to define __stub macros and hopefully few prototypes,
17710     which can conflict with char $ac_func (); below.
17711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712     <limits.h> exists even on freestanding compilers.  */
17713
17714 #ifdef __STDC__
17715 # include <limits.h>
17716 #else
17717 # include <assert.h>
17718 #endif
17719
17720 #undef $ac_func
17721
17722 /* Override any GCC internal prototype to avoid an error.
17723    Use char because int might match the return type of a GCC
17724    builtin and then its argument prototype would still apply.  */
17725 #ifdef __cplusplus
17726 extern "C"
17727 #endif
17728 char $ac_func ();
17729 /* The GNU C library defines this for functions which it implements
17730     to always fail with ENOSYS.  Some functions are actually named
17731     something starting with __ and the normal name is an alias.  */
17732 #if defined __stub_$ac_func || defined __stub___$ac_func
17733 choke me
17734 #endif
17735
17736 int
17737 main ()
17738 {
17739 return $ac_func ();
17740   ;
17741   return 0;
17742 }
17743 _ACEOF
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (ac_try="$ac_link"
17746 case "(($ac_try" in
17747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748   *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751   (eval "$ac_link") 2>conftest.er1
17752   ac_status=$?
17753   grep -v '^ *+' conftest.er1 >conftest.err
17754   rm -f conftest.er1
17755   cat conftest.err >&5
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); } &&
17758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17759   { (case "(($ac_try" in
17760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761   *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764   (eval "$ac_try") 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; } &&
17768          { ac_try='test -s conftest$ac_exeext'
17769   { (case "(($ac_try" in
17770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771   *) ac_try_echo=$ac_try;;
17772 esac
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774   (eval "$ac_try") 2>&5
17775   ac_status=$?
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); }; }; then
17778   eval "$as_ac_var=yes"
17779 else
17780   echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17782
17783         eval "$as_ac_var=no"
17784 fi
17785
17786 rm -f core conftest.err conftest.$ac_objext \
17787       conftest$ac_exeext conftest.$ac_ext
17788 fi
17789 ac_res=`eval echo '${'$as_ac_var'}'`
17790                { echo "$as_me:$LINENO: result: $ac_res" >&5
17791 echo "${ECHO_T}$ac_res" >&6; }
17792 if test `eval echo '${'$as_ac_var'}'` = yes; then
17793   cat >>confdefs.h <<_ACEOF
17794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17795 _ACEOF
17796
17797 fi
17798 done
17799
17800
17801
17802
17803
17804
17805 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17806 do
17807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17811   echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813   cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h.  */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h.  */
17819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17821 #define $ac_func innocuous_$ac_func
17822
17823 /* System header to define __stub macros and hopefully few prototypes,
17824     which can conflict with char $ac_func (); below.
17825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17826     <limits.h> exists even on freestanding compilers.  */
17827
17828 #ifdef __STDC__
17829 # include <limits.h>
17830 #else
17831 # include <assert.h>
17832 #endif
17833
17834 #undef $ac_func
17835
17836 /* Override any GCC internal prototype to avoid an error.
17837    Use char because int might match the return type of a GCC
17838    builtin and then its argument prototype would still apply.  */
17839 #ifdef __cplusplus
17840 extern "C"
17841 #endif
17842 char $ac_func ();
17843 /* The GNU C library defines this for functions which it implements
17844     to always fail with ENOSYS.  Some functions are actually named
17845     something starting with __ and the normal name is an alias.  */
17846 #if defined __stub_$ac_func || defined __stub___$ac_func
17847 choke me
17848 #endif
17849
17850 int
17851 main ()
17852 {
17853 return $ac_func ();
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (ac_try="$ac_link"
17860 case "(($ac_try" in
17861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862   *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865   (eval "$ac_link") 2>conftest.er1
17866   ac_status=$?
17867   grep -v '^ *+' conftest.er1 >conftest.err
17868   rm -f conftest.er1
17869   cat conftest.err >&5
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); } &&
17872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17873   { (case "(($ac_try" in
17874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875   *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878   (eval "$ac_try") 2>&5
17879   ac_status=$?
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); }; } &&
17882          { ac_try='test -s conftest$ac_exeext'
17883   { (case "(($ac_try" in
17884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885   *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888   (eval "$ac_try") 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; }; then
17892   eval "$as_ac_var=yes"
17893 else
17894   echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897         eval "$as_ac_var=no"
17898 fi
17899
17900 rm -f core conftest.err conftest.$ac_objext \
17901       conftest$ac_exeext conftest.$ac_ext
17902 fi
17903 ac_res=`eval echo '${'$as_ac_var'}'`
17904                { echo "$as_me:$LINENO: result: $ac_res" >&5
17905 echo "${ECHO_T}$ac_res" >&6; }
17906 if test `eval echo '${'$as_ac_var'}'` = yes; then
17907   cat >>confdefs.h <<_ACEOF
17908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17909 _ACEOF
17910
17911 fi
17912 done
17913
17914 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17915 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17916 if test "${llvm_cv_c_printf_a+set}" = set; then
17917   echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919   ac_ext=c
17920 ac_cpp='$CPP $CPPFLAGS'
17921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17924
17925  if test "$cross_compiling" = yes; then
17926   llvmac_cv_c_printf_a=no
17927 else
17928   cat >conftest.$ac_ext <<_ACEOF
17929
17930   /* confdefs.h.  */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h.  */
17935
17936 #include <stdio.h>
17937 #include <stdlib.h>
17938
17939 int
17940 main ()
17941 {
17942
17943 volatile double A, B;
17944 char Buffer[100];
17945 A = 1;
17946 A /= 10.0;
17947 sprintf(Buffer, "%a", A);
17948 B = atof(Buffer);
17949 if (A != B)
17950   return (1);
17951 if (A != 0x1.999999999999ap-4)
17952   return (1);
17953 return (0);
17954   ;
17955   return 0;
17956 }
17957 _ACEOF
17958 rm -f conftest$ac_exeext
17959 if { (ac_try="$ac_link"
17960 case "(($ac_try" in
17961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962   *) ac_try_echo=$ac_try;;
17963 esac
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965   (eval "$ac_link") 2>&5
17966   ac_status=$?
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17969   { (case "(($ac_try" in
17970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971   *) ac_try_echo=$ac_try;;
17972 esac
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974   (eval "$ac_try") 2>&5
17975   ac_status=$?
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); }; }; then
17978   llvm_cv_c_printf_a=yes
17979 else
17980   echo "$as_me: program exited with status $ac_status" >&5
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984 ( exit $ac_status )
17985 llvmac_cv_c_printf_a=no
17986 fi
17987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17988 fi
17989
17990
17991  ac_ext=c
17992 ac_cpp='$CPP $CPPFLAGS'
17993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17996
17997 fi
17998 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17999 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18000  if test "$llvm_cv_c_printf_a" = "yes"; then
18001
18002 cat >>confdefs.h <<\_ACEOF
18003 #define HAVE_PRINTF_A 1
18004 _ACEOF
18005
18006  fi
18007
18008
18009 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18010 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18011 if test "${ac_cv_func_rand48+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   ac_ext=cpp
18015 ac_cpp='$CXXCPP $CPPFLAGS'
18016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18019
18020    cat >conftest.$ac_ext <<_ACEOF
18021 /* confdefs.h.  */
18022 _ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h.  */
18026 #include <stdlib.h>
18027 int
18028 main ()
18029 {
18030 srand48(0);lrand48();drand48();
18031   ;
18032   return 0;
18033 }
18034 _ACEOF
18035 rm -f conftest.$ac_objext
18036 if { (ac_try="$ac_compile"
18037 case "(($ac_try" in
18038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039   *) ac_try_echo=$ac_try;;
18040 esac
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042   (eval "$ac_compile") 2>conftest.er1
18043   ac_status=$?
18044   grep -v '^ *+' conftest.er1 >conftest.err
18045   rm -f conftest.er1
18046   cat conftest.err >&5
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); } &&
18049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18050   { (case "(($ac_try" in
18051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052   *) ac_try_echo=$ac_try;;
18053 esac
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055   (eval "$ac_try") 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); }; } &&
18059          { ac_try='test -s conftest.$ac_objext'
18060   { (case "(($ac_try" in
18061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062   *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065   (eval "$ac_try") 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; }; then
18069   ac_cv_func_rand48=yes
18070 else
18071   echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074         ac_cv_func_rand48=no
18075 fi
18076
18077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18078   ac_ext=c
18079 ac_cpp='$CPP $CPPFLAGS'
18080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18083
18084 fi
18085 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18086 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18087
18088 if test "$ac_cv_func_rand48" = "yes" ; then
18089
18090 cat >>confdefs.h <<\_ACEOF
18091 #define HAVE_RAND48 1
18092 _ACEOF
18093
18094 fi
18095
18096
18097 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18098 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18099 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18100   echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102   cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h.  */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h.  */
18108 $ac_includes_default
18109 int
18110 main ()
18111 {
18112 #ifndef strerror_s
18113   char *p = (char *) strerror_s;
18114   return !p;
18115 #endif
18116
18117   ;
18118   return 0;
18119 }
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (ac_try="$ac_compile"
18123 case "(($ac_try" in
18124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125   *) ac_try_echo=$ac_try;;
18126 esac
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128   (eval "$ac_compile") 2>conftest.er1
18129   ac_status=$?
18130   grep -v '^ *+' conftest.er1 >conftest.err
18131   rm -f conftest.er1
18132   cat conftest.err >&5
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } &&
18135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18136   { (case "(($ac_try" in
18137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138   *) ac_try_echo=$ac_try;;
18139 esac
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141   (eval "$ac_try") 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; } &&
18145          { ac_try='test -s conftest.$ac_objext'
18146   { (case "(($ac_try" in
18147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148   *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151   (eval "$ac_try") 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); }; }; then
18155   ac_cv_have_decl_strerror_s=yes
18156 else
18157   echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160         ac_cv_have_decl_strerror_s=no
18161 fi
18162
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164 fi
18165 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18166 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18167 if test $ac_cv_have_decl_strerror_s = yes; then
18168
18169 cat >>confdefs.h <<_ACEOF
18170 #define HAVE_DECL_STRERROR_S 1
18171 _ACEOF
18172
18173
18174 else
18175   cat >>confdefs.h <<_ACEOF
18176 #define HAVE_DECL_STRERROR_S 0
18177 _ACEOF
18178
18179
18180 fi
18181
18182
18183
18184 if test "$llvm_cv_os_type" = "MingW" ; then
18185   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18186 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18187 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18188   echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190   ac_check_lib_save_LIBS=$LIBS
18191 LIBS="-lgcc  $LIBS"
18192 cat >conftest.$ac_ext <<_ACEOF
18193 /* confdefs.h.  */
18194 _ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h.  */
18198
18199 /* Override any GCC internal prototype to avoid an error.
18200    Use char because int might match the return type of a GCC
18201    builtin and then its argument prototype would still apply.  */
18202 #ifdef __cplusplus
18203 extern "C"
18204 #endif
18205 char _alloca ();
18206 int
18207 main ()
18208 {
18209 return _alloca ();
18210   ;
18211   return 0;
18212 }
18213 _ACEOF
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218   *) ac_try_echo=$ac_try;;
18219 esac
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221   (eval "$ac_link") 2>conftest.er1
18222   ac_status=$?
18223   grep -v '^ *+' conftest.er1 >conftest.err
18224   rm -f conftest.er1
18225   cat conftest.err >&5
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); } &&
18228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229   { (case "(($ac_try" in
18230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231   *) ac_try_echo=$ac_try;;
18232 esac
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234   (eval "$ac_try") 2>&5
18235   ac_status=$?
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); }; } &&
18238          { ac_try='test -s conftest$ac_exeext'
18239   { (case "(($ac_try" in
18240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241   *) ac_try_echo=$ac_try;;
18242 esac
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244   (eval "$ac_try") 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; }; then
18248   ac_cv_lib_gcc__alloca=yes
18249 else
18250   echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253         ac_cv_lib_gcc__alloca=no
18254 fi
18255
18256 rm -f core conftest.err conftest.$ac_objext \
18257       conftest$ac_exeext conftest.$ac_ext
18258 LIBS=$ac_check_lib_save_LIBS
18259 fi
18260 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18261 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18262 if test $ac_cv_lib_gcc__alloca = yes; then
18263
18264 cat >>confdefs.h <<\_ACEOF
18265 #define HAVE__ALLOCA 1
18266 _ACEOF
18267
18268 fi
18269
18270   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18271 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18272 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18273   echo $ECHO_N "(cached) $ECHO_C" >&6
18274 else
18275   ac_check_lib_save_LIBS=$LIBS
18276 LIBS="-lgcc  $LIBS"
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h.  */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h.  */
18283
18284 /* Override any GCC internal prototype to avoid an error.
18285    Use char because int might match the return type of a GCC
18286    builtin and then its argument prototype would still apply.  */
18287 #ifdef __cplusplus
18288 extern "C"
18289 #endif
18290 char __alloca ();
18291 int
18292 main ()
18293 {
18294 return __alloca ();
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (ac_try="$ac_link"
18301 case "(($ac_try" in
18302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303   *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306   (eval "$ac_link") 2>conftest.er1
18307   ac_status=$?
18308   grep -v '^ *+' conftest.er1 >conftest.err
18309   rm -f conftest.er1
18310   cat conftest.err >&5
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); } &&
18313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18314   { (case "(($ac_try" in
18315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316   *) ac_try_echo=$ac_try;;
18317 esac
18318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319   (eval "$ac_try") 2>&5
18320   ac_status=$?
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); }; } &&
18323          { ac_try='test -s conftest$ac_exeext'
18324   { (case "(($ac_try" in
18325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326   *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329   (eval "$ac_try") 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; }; then
18333   ac_cv_lib_gcc___alloca=yes
18334 else
18335   echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18337
18338         ac_cv_lib_gcc___alloca=no
18339 fi
18340
18341 rm -f core conftest.err conftest.$ac_objext \
18342       conftest$ac_exeext conftest.$ac_ext
18343 LIBS=$ac_check_lib_save_LIBS
18344 fi
18345 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18346 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18347 if test $ac_cv_lib_gcc___alloca = yes; then
18348
18349 cat >>confdefs.h <<\_ACEOF
18350 #define HAVE___ALLOCA 1
18351 _ACEOF
18352
18353 fi
18354
18355   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18356 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18357 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18358   echo $ECHO_N "(cached) $ECHO_C" >&6
18359 else
18360   ac_check_lib_save_LIBS=$LIBS
18361 LIBS="-lgcc  $LIBS"
18362 cat >conftest.$ac_ext <<_ACEOF
18363 /* confdefs.h.  */
18364 _ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h.  */
18368
18369 /* Override any GCC internal prototype to avoid an error.
18370    Use char because int might match the return type of a GCC
18371    builtin and then its argument prototype would still apply.  */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 char __chkstk ();
18376 int
18377 main ()
18378 {
18379 return __chkstk ();
18380   ;
18381   return 0;
18382 }
18383 _ACEOF
18384 rm -f conftest.$ac_objext conftest$ac_exeext
18385 if { (ac_try="$ac_link"
18386 case "(($ac_try" in
18387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388   *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391   (eval "$ac_link") 2>conftest.er1
18392   ac_status=$?
18393   grep -v '^ *+' conftest.er1 >conftest.err
18394   rm -f conftest.er1
18395   cat conftest.err >&5
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); } &&
18398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18399   { (case "(($ac_try" in
18400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401   *) ac_try_echo=$ac_try;;
18402 esac
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404   (eval "$ac_try") 2>&5
18405   ac_status=$?
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); }; } &&
18408          { ac_try='test -s conftest$ac_exeext'
18409   { (case "(($ac_try" in
18410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411   *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414   (eval "$ac_try") 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); }; }; then
18418   ac_cv_lib_gcc___chkstk=yes
18419 else
18420   echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18422
18423         ac_cv_lib_gcc___chkstk=no
18424 fi
18425
18426 rm -f core conftest.err conftest.$ac_objext \
18427       conftest$ac_exeext conftest.$ac_ext
18428 LIBS=$ac_check_lib_save_LIBS
18429 fi
18430 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18431 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18432 if test $ac_cv_lib_gcc___chkstk = yes; then
18433
18434 cat >>confdefs.h <<\_ACEOF
18435 #define HAVE___CHKSTK 1
18436 _ACEOF
18437
18438 fi
18439
18440   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18441 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18442 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18443   echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445   ac_check_lib_save_LIBS=$LIBS
18446 LIBS="-lgcc  $LIBS"
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h.  */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h.  */
18453
18454 /* Override any GCC internal prototype to avoid an error.
18455    Use char because int might match the return type of a GCC
18456    builtin and then its argument prototype would still apply.  */
18457 #ifdef __cplusplus
18458 extern "C"
18459 #endif
18460 char ___chkstk ();
18461 int
18462 main ()
18463 {
18464 return ___chkstk ();
18465   ;
18466   return 0;
18467 }
18468 _ACEOF
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (ac_try="$ac_link"
18471 case "(($ac_try" in
18472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473   *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476   (eval "$ac_link") 2>conftest.er1
18477   ac_status=$?
18478   grep -v '^ *+' conftest.er1 >conftest.err
18479   rm -f conftest.er1
18480   cat conftest.err >&5
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); } &&
18483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18484   { (case "(($ac_try" in
18485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486   *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489   (eval "$ac_try") 2>&5
18490   ac_status=$?
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); }; } &&
18493          { ac_try='test -s conftest$ac_exeext'
18494   { (case "(($ac_try" in
18495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496   *) ac_try_echo=$ac_try;;
18497 esac
18498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499   (eval "$ac_try") 2>&5
18500   ac_status=$?
18501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502   (exit $ac_status); }; }; then
18503   ac_cv_lib_gcc____chkstk=yes
18504 else
18505   echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18507
18508         ac_cv_lib_gcc____chkstk=no
18509 fi
18510
18511 rm -f core conftest.err conftest.$ac_objext \
18512       conftest$ac_exeext conftest.$ac_ext
18513 LIBS=$ac_check_lib_save_LIBS
18514 fi
18515 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18516 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18517 if test $ac_cv_lib_gcc____chkstk = yes; then
18518
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE____CHKSTK 1
18521 _ACEOF
18522
18523 fi
18524
18525
18526   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18527 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18528 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18529   echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531   ac_check_lib_save_LIBS=$LIBS
18532 LIBS="-lgcc  $LIBS"
18533 cat >conftest.$ac_ext <<_ACEOF
18534 /* confdefs.h.  */
18535 _ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h.  */
18539
18540 /* Override any GCC internal prototype to avoid an error.
18541    Use char because int might match the return type of a GCC
18542    builtin and then its argument prototype would still apply.  */
18543 #ifdef __cplusplus
18544 extern "C"
18545 #endif
18546 char __ashldi3 ();
18547 int
18548 main ()
18549 {
18550 return __ashldi3 ();
18551   ;
18552   return 0;
18553 }
18554 _ACEOF
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (ac_try="$ac_link"
18557 case "(($ac_try" in
18558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559   *) ac_try_echo=$ac_try;;
18560 esac
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562   (eval "$ac_link") 2>conftest.er1
18563   ac_status=$?
18564   grep -v '^ *+' conftest.er1 >conftest.err
18565   rm -f conftest.er1
18566   cat conftest.err >&5
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); } &&
18569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18570   { (case "(($ac_try" in
18571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572   *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575   (eval "$ac_try") 2>&5
18576   ac_status=$?
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); }; } &&
18579          { ac_try='test -s conftest$ac_exeext'
18580   { (case "(($ac_try" in
18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582   *) ac_try_echo=$ac_try;;
18583 esac
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585   (eval "$ac_try") 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; }; then
18589   ac_cv_lib_gcc___ashldi3=yes
18590 else
18591   echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18593
18594         ac_cv_lib_gcc___ashldi3=no
18595 fi
18596
18597 rm -f core conftest.err conftest.$ac_objext \
18598       conftest$ac_exeext conftest.$ac_ext
18599 LIBS=$ac_check_lib_save_LIBS
18600 fi
18601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18602 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18603 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18604
18605 cat >>confdefs.h <<\_ACEOF
18606 #define HAVE___ASHLDI3 1
18607 _ACEOF
18608
18609 fi
18610
18611   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18612 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18613 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18614   echo $ECHO_N "(cached) $ECHO_C" >&6
18615 else
18616   ac_check_lib_save_LIBS=$LIBS
18617 LIBS="-lgcc  $LIBS"
18618 cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h.  */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h.  */
18624
18625 /* Override any GCC internal prototype to avoid an error.
18626    Use char because int might match the return type of a GCC
18627    builtin and then its argument prototype would still apply.  */
18628 #ifdef __cplusplus
18629 extern "C"
18630 #endif
18631 char __ashrdi3 ();
18632 int
18633 main ()
18634 {
18635 return __ashrdi3 ();
18636   ;
18637   return 0;
18638 }
18639 _ACEOF
18640 rm -f conftest.$ac_objext conftest$ac_exeext
18641 if { (ac_try="$ac_link"
18642 case "(($ac_try" in
18643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644   *) ac_try_echo=$ac_try;;
18645 esac
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647   (eval "$ac_link") 2>conftest.er1
18648   ac_status=$?
18649   grep -v '^ *+' conftest.er1 >conftest.err
18650   rm -f conftest.er1
18651   cat conftest.err >&5
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); } &&
18654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18655   { (case "(($ac_try" in
18656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657   *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660   (eval "$ac_try") 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); }; } &&
18664          { ac_try='test -s conftest$ac_exeext'
18665   { (case "(($ac_try" in
18666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667   *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670   (eval "$ac_try") 2>&5
18671   ac_status=$?
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); }; }; then
18674   ac_cv_lib_gcc___ashrdi3=yes
18675 else
18676   echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679         ac_cv_lib_gcc___ashrdi3=no
18680 fi
18681
18682 rm -f core conftest.err conftest.$ac_objext \
18683       conftest$ac_exeext conftest.$ac_ext
18684 LIBS=$ac_check_lib_save_LIBS
18685 fi
18686 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18687 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18688 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18689
18690 cat >>confdefs.h <<\_ACEOF
18691 #define HAVE___ASHRDI3 1
18692 _ACEOF
18693
18694 fi
18695
18696   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18697 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18698 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18699   echo $ECHO_N "(cached) $ECHO_C" >&6
18700 else
18701   ac_check_lib_save_LIBS=$LIBS
18702 LIBS="-lgcc  $LIBS"
18703 cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h.  */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h.  */
18709
18710 /* Override any GCC internal prototype to avoid an error.
18711    Use char because int might match the return type of a GCC
18712    builtin and then its argument prototype would still apply.  */
18713 #ifdef __cplusplus
18714 extern "C"
18715 #endif
18716 char __divdi3 ();
18717 int
18718 main ()
18719 {
18720 return __divdi3 ();
18721   ;
18722   return 0;
18723 }
18724 _ACEOF
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (ac_try="$ac_link"
18727 case "(($ac_try" in
18728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729   *) ac_try_echo=$ac_try;;
18730 esac
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732   (eval "$ac_link") 2>conftest.er1
18733   ac_status=$?
18734   grep -v '^ *+' conftest.er1 >conftest.err
18735   rm -f conftest.er1
18736   cat conftest.err >&5
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); } &&
18739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18740   { (case "(($ac_try" in
18741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742   *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745   (eval "$ac_try") 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); }; } &&
18749          { ac_try='test -s conftest$ac_exeext'
18750   { (case "(($ac_try" in
18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752   *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755   (eval "$ac_try") 2>&5
18756   ac_status=$?
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); }; }; then
18759   ac_cv_lib_gcc___divdi3=yes
18760 else
18761   echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764         ac_cv_lib_gcc___divdi3=no
18765 fi
18766
18767 rm -f core conftest.err conftest.$ac_objext \
18768       conftest$ac_exeext conftest.$ac_ext
18769 LIBS=$ac_check_lib_save_LIBS
18770 fi
18771 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18772 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18773 if test $ac_cv_lib_gcc___divdi3 = yes; then
18774
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE___DIVDI3 1
18777 _ACEOF
18778
18779 fi
18780
18781   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18782 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18783 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18784   echo $ECHO_N "(cached) $ECHO_C" >&6
18785 else
18786   ac_check_lib_save_LIBS=$LIBS
18787 LIBS="-lgcc  $LIBS"
18788 cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h.  */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h.  */
18794
18795 /* Override any GCC internal prototype to avoid an error.
18796    Use char because int might match the return type of a GCC
18797    builtin and then its argument prototype would still apply.  */
18798 #ifdef __cplusplus
18799 extern "C"
18800 #endif
18801 char __fixdfdi ();
18802 int
18803 main ()
18804 {
18805 return __fixdfdi ();
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814   *) ac_try_echo=$ac_try;;
18815 esac
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817   (eval "$ac_link") 2>conftest.er1
18818   ac_status=$?
18819   grep -v '^ *+' conftest.er1 >conftest.err
18820   rm -f conftest.er1
18821   cat conftest.err >&5
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); } &&
18824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825   { (case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_try") 2>&5
18831   ac_status=$?
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); }; } &&
18834          { ac_try='test -s conftest$ac_exeext'
18835   { (case "(($ac_try" in
18836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837   *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840   (eval "$ac_try") 2>&5
18841   ac_status=$?
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); }; }; then
18844   ac_cv_lib_gcc___fixdfdi=yes
18845 else
18846   echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849         ac_cv_lib_gcc___fixdfdi=no
18850 fi
18851
18852 rm -f core conftest.err conftest.$ac_objext \
18853       conftest$ac_exeext conftest.$ac_ext
18854 LIBS=$ac_check_lib_save_LIBS
18855 fi
18856 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18857 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18858 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18859
18860 cat >>confdefs.h <<\_ACEOF
18861 #define HAVE___FIXDFDI 1
18862 _ACEOF
18863
18864 fi
18865
18866   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18867 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18868 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18869   echo $ECHO_N "(cached) $ECHO_C" >&6
18870 else
18871   ac_check_lib_save_LIBS=$LIBS
18872 LIBS="-lgcc  $LIBS"
18873 cat >conftest.$ac_ext <<_ACEOF
18874 /* confdefs.h.  */
18875 _ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h.  */
18879
18880 /* Override any GCC internal prototype to avoid an error.
18881    Use char because int might match the return type of a GCC
18882    builtin and then its argument prototype would still apply.  */
18883 #ifdef __cplusplus
18884 extern "C"
18885 #endif
18886 char __fixsfdi ();
18887 int
18888 main ()
18889 {
18890 return __fixsfdi ();
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899   *) ac_try_echo=$ac_try;;
18900 esac
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902   (eval "$ac_link") 2>conftest.er1
18903   ac_status=$?
18904   grep -v '^ *+' conftest.er1 >conftest.err
18905   rm -f conftest.er1
18906   cat conftest.err >&5
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); } &&
18909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18910   { (case "(($ac_try" in
18911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912   *) ac_try_echo=$ac_try;;
18913 esac
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915   (eval "$ac_try") 2>&5
18916   ac_status=$?
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); }; } &&
18919          { ac_try='test -s conftest$ac_exeext'
18920   { (case "(($ac_try" in
18921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922   *) ac_try_echo=$ac_try;;
18923 esac
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925   (eval "$ac_try") 2>&5
18926   ac_status=$?
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); }; }; then
18929   ac_cv_lib_gcc___fixsfdi=yes
18930 else
18931   echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18933
18934         ac_cv_lib_gcc___fixsfdi=no
18935 fi
18936
18937 rm -f core conftest.err conftest.$ac_objext \
18938       conftest$ac_exeext conftest.$ac_ext
18939 LIBS=$ac_check_lib_save_LIBS
18940 fi
18941 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18942 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18943 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18944
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE___FIXSFDI 1
18947 _ACEOF
18948
18949 fi
18950
18951   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18952 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18953 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18954   echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956   ac_check_lib_save_LIBS=$LIBS
18957 LIBS="-lgcc  $LIBS"
18958 cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h.  */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h.  */
18964
18965 /* Override any GCC internal prototype to avoid an error.
18966    Use char because int might match the return type of a GCC
18967    builtin and then its argument prototype would still apply.  */
18968 #ifdef __cplusplus
18969 extern "C"
18970 #endif
18971 char __floatdidf ();
18972 int
18973 main ()
18974 {
18975 return __floatdidf ();
18976   ;
18977   return 0;
18978 }
18979 _ACEOF
18980 rm -f conftest.$ac_objext conftest$ac_exeext
18981 if { (ac_try="$ac_link"
18982 case "(($ac_try" in
18983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984   *) ac_try_echo=$ac_try;;
18985 esac
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987   (eval "$ac_link") 2>conftest.er1
18988   ac_status=$?
18989   grep -v '^ *+' conftest.er1 >conftest.err
18990   rm -f conftest.er1
18991   cat conftest.err >&5
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); } &&
18994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18995   { (case "(($ac_try" in
18996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997   *) ac_try_echo=$ac_try;;
18998 esac
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000   (eval "$ac_try") 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; } &&
19004          { ac_try='test -s conftest$ac_exeext'
19005   { (case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_try") 2>&5
19011   ac_status=$?
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); }; }; then
19014   ac_cv_lib_gcc___floatdidf=yes
19015 else
19016   echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19018
19019         ac_cv_lib_gcc___floatdidf=no
19020 fi
19021
19022 rm -f core conftest.err conftest.$ac_objext \
19023       conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19025 fi
19026 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19027 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19028 if test $ac_cv_lib_gcc___floatdidf = yes; then
19029
19030 cat >>confdefs.h <<\_ACEOF
19031 #define HAVE___FLOATDIDF 1
19032 _ACEOF
19033
19034 fi
19035
19036   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19037 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19038 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19039   echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041   ac_check_lib_save_LIBS=$LIBS
19042 LIBS="-lgcc  $LIBS"
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h.  */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h.  */
19049
19050 /* Override any GCC internal prototype to avoid an error.
19051    Use char because int might match the return type of a GCC
19052    builtin and then its argument prototype would still apply.  */
19053 #ifdef __cplusplus
19054 extern "C"
19055 #endif
19056 char __lshrdi3 ();
19057 int
19058 main ()
19059 {
19060 return __lshrdi3 ();
19061   ;
19062   return 0;
19063 }
19064 _ACEOF
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (ac_try="$ac_link"
19067 case "(($ac_try" in
19068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069   *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072   (eval "$ac_link") 2>conftest.er1
19073   ac_status=$?
19074   grep -v '^ *+' conftest.er1 >conftest.err
19075   rm -f conftest.er1
19076   cat conftest.err >&5
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); } &&
19079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19080   { (case "(($ac_try" in
19081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082   *) ac_try_echo=$ac_try;;
19083 esac
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085   (eval "$ac_try") 2>&5
19086   ac_status=$?
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); }; } &&
19089          { ac_try='test -s conftest$ac_exeext'
19090   { (case "(($ac_try" in
19091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092   *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095   (eval "$ac_try") 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); }; }; then
19099   ac_cv_lib_gcc___lshrdi3=yes
19100 else
19101   echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104         ac_cv_lib_gcc___lshrdi3=no
19105 fi
19106
19107 rm -f core conftest.err conftest.$ac_objext \
19108       conftest$ac_exeext conftest.$ac_ext
19109 LIBS=$ac_check_lib_save_LIBS
19110 fi
19111 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19112 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19113 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19114
19115 cat >>confdefs.h <<\_ACEOF
19116 #define HAVE___LSHRDI3 1
19117 _ACEOF
19118
19119 fi
19120
19121   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19122 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19123 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19124   echo $ECHO_N "(cached) $ECHO_C" >&6
19125 else
19126   ac_check_lib_save_LIBS=$LIBS
19127 LIBS="-lgcc  $LIBS"
19128 cat >conftest.$ac_ext <<_ACEOF
19129 /* confdefs.h.  */
19130 _ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h.  */
19134
19135 /* Override any GCC internal prototype to avoid an error.
19136    Use char because int might match the return type of a GCC
19137    builtin and then its argument prototype would still apply.  */
19138 #ifdef __cplusplus
19139 extern "C"
19140 #endif
19141 char __moddi3 ();
19142 int
19143 main ()
19144 {
19145 return __moddi3 ();
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext conftest$ac_exeext
19151 if { (ac_try="$ac_link"
19152 case "(($ac_try" in
19153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154   *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157   (eval "$ac_link") 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } &&
19164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19165   { (case "(($ac_try" in
19166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167   *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170   (eval "$ac_try") 2>&5
19171   ac_status=$?
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); }; } &&
19174          { ac_try='test -s conftest$ac_exeext'
19175   { (case "(($ac_try" in
19176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177   *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180   (eval "$ac_try") 2>&5
19181   ac_status=$?
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); }; }; then
19184   ac_cv_lib_gcc___moddi3=yes
19185 else
19186   echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19188
19189         ac_cv_lib_gcc___moddi3=no
19190 fi
19191
19192 rm -f core conftest.err conftest.$ac_objext \
19193       conftest$ac_exeext conftest.$ac_ext
19194 LIBS=$ac_check_lib_save_LIBS
19195 fi
19196 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19197 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19198 if test $ac_cv_lib_gcc___moddi3 = yes; then
19199
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE___MODDI3 1
19202 _ACEOF
19203
19204 fi
19205
19206   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19207 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19208 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 else
19211   ac_check_lib_save_LIBS=$LIBS
19212 LIBS="-lgcc  $LIBS"
19213 cat >conftest.$ac_ext <<_ACEOF
19214 /* confdefs.h.  */
19215 _ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h.  */
19219
19220 /* Override any GCC internal prototype to avoid an error.
19221    Use char because int might match the return type of a GCC
19222    builtin and then its argument prototype would still apply.  */
19223 #ifdef __cplusplus
19224 extern "C"
19225 #endif
19226 char __udivdi3 ();
19227 int
19228 main ()
19229 {
19230 return __udivdi3 ();
19231   ;
19232   return 0;
19233 }
19234 _ACEOF
19235 rm -f conftest.$ac_objext conftest$ac_exeext
19236 if { (ac_try="$ac_link"
19237 case "(($ac_try" in
19238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239   *) ac_try_echo=$ac_try;;
19240 esac
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242   (eval "$ac_link") 2>conftest.er1
19243   ac_status=$?
19244   grep -v '^ *+' conftest.er1 >conftest.err
19245   rm -f conftest.er1
19246   cat conftest.err >&5
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); } &&
19249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250   { (case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_try") 2>&5
19256   ac_status=$?
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); }; } &&
19259          { ac_try='test -s conftest$ac_exeext'
19260   { (case "(($ac_try" in
19261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262   *) ac_try_echo=$ac_try;;
19263 esac
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265   (eval "$ac_try") 2>&5
19266   ac_status=$?
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); }; }; then
19269   ac_cv_lib_gcc___udivdi3=yes
19270 else
19271   echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274         ac_cv_lib_gcc___udivdi3=no
19275 fi
19276
19277 rm -f core conftest.err conftest.$ac_objext \
19278       conftest$ac_exeext conftest.$ac_ext
19279 LIBS=$ac_check_lib_save_LIBS
19280 fi
19281 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19282 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19283 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19284
19285 cat >>confdefs.h <<\_ACEOF
19286 #define HAVE___UDIVDI3 1
19287 _ACEOF
19288
19289 fi
19290
19291   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19292 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19293 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19294   echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296   ac_check_lib_save_LIBS=$LIBS
19297 LIBS="-lgcc  $LIBS"
19298 cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h.  */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h.  */
19304
19305 /* Override any GCC internal prototype to avoid an error.
19306    Use char because int might match the return type of a GCC
19307    builtin and then its argument prototype would still apply.  */
19308 #ifdef __cplusplus
19309 extern "C"
19310 #endif
19311 char __umoddi3 ();
19312 int
19313 main ()
19314 {
19315 return __umoddi3 ();
19316   ;
19317   return 0;
19318 }
19319 _ACEOF
19320 rm -f conftest.$ac_objext conftest$ac_exeext
19321 if { (ac_try="$ac_link"
19322 case "(($ac_try" in
19323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324   *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327   (eval "$ac_link") 2>conftest.er1
19328   ac_status=$?
19329   grep -v '^ *+' conftest.er1 >conftest.err
19330   rm -f conftest.er1
19331   cat conftest.err >&5
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); } &&
19334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19335   { (case "(($ac_try" in
19336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337   *) ac_try_echo=$ac_try;;
19338 esac
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340   (eval "$ac_try") 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; } &&
19344          { ac_try='test -s conftest$ac_exeext'
19345   { (case "(($ac_try" in
19346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347   *) ac_try_echo=$ac_try;;
19348 esac
19349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350   (eval "$ac_try") 2>&5
19351   ac_status=$?
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); }; }; then
19354   ac_cv_lib_gcc___umoddi3=yes
19355 else
19356   echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19358
19359         ac_cv_lib_gcc___umoddi3=no
19360 fi
19361
19362 rm -f core conftest.err conftest.$ac_objext \
19363       conftest$ac_exeext conftest.$ac_ext
19364 LIBS=$ac_check_lib_save_LIBS
19365 fi
19366 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19367 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19368 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19369
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE___UMODDI3 1
19372 _ACEOF
19373
19374 fi
19375
19376
19377   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19378 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19379 if test "${ac_cv_lib_gcc___main+set}" = set; then
19380   echo $ECHO_N "(cached) $ECHO_C" >&6
19381 else
19382   ac_check_lib_save_LIBS=$LIBS
19383 LIBS="-lgcc  $LIBS"
19384 cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h.  */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h.  */
19390
19391 /* Override any GCC internal prototype to avoid an error.
19392    Use char because int might match the return type of a GCC
19393    builtin and then its argument prototype would still apply.  */
19394 #ifdef __cplusplus
19395 extern "C"
19396 #endif
19397 char __main ();
19398 int
19399 main ()
19400 {
19401 return __main ();
19402   ;
19403   return 0;
19404 }
19405 _ACEOF
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410   *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413   (eval "$ac_link") 2>conftest.er1
19414   ac_status=$?
19415   grep -v '^ *+' conftest.er1 >conftest.err
19416   rm -f conftest.er1
19417   cat conftest.err >&5
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } &&
19420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19421   { (case "(($ac_try" in
19422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423   *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426   (eval "$ac_try") 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; } &&
19430          { ac_try='test -s conftest$ac_exeext'
19431   { (case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_try") 2>&5
19437   ac_status=$?
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); }; }; then
19440   ac_cv_lib_gcc___main=yes
19441 else
19442   echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445         ac_cv_lib_gcc___main=no
19446 fi
19447
19448 rm -f core conftest.err conftest.$ac_objext \
19449       conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19451 fi
19452 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19453 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19454 if test $ac_cv_lib_gcc___main = yes; then
19455
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE___MAIN 1
19458 _ACEOF
19459
19460 fi
19461
19462   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19463 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19464 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19465   echo $ECHO_N "(cached) $ECHO_C" >&6
19466 else
19467   ac_check_lib_save_LIBS=$LIBS
19468 LIBS="-lgcc  $LIBS"
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475
19476 /* Override any GCC internal prototype to avoid an error.
19477    Use char because int might match the return type of a GCC
19478    builtin and then its argument prototype would still apply.  */
19479 #ifdef __cplusplus
19480 extern "C"
19481 #endif
19482 char __cmpdi2 ();
19483 int
19484 main ()
19485 {
19486 return __cmpdi2 ();
19487   ;
19488   return 0;
19489 }
19490 _ACEOF
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (ac_try="$ac_link"
19493 case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_link") 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } &&
19505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19506   { (case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_try") 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); }; } &&
19515          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19522   ac_status=$?
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); }; }; then
19525   ac_cv_lib_gcc___cmpdi2=yes
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530         ac_cv_lib_gcc___cmpdi2=no
19531 fi
19532
19533 rm -f core conftest.err conftest.$ac_objext \
19534       conftest$ac_exeext conftest.$ac_ext
19535 LIBS=$ac_check_lib_save_LIBS
19536 fi
19537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19538 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19539 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19540
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE___CMPDI2 1
19543 _ACEOF
19544
19545 fi
19546
19547 fi
19548
19549 if test "$llvm_cv_os_type" = "MingW" ; then
19550   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19551 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19552   cat >conftest.$ac_ext <<_ACEOF
19553 #include <windows.h>
19554 #include <imagehlp.h>
19555 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19556 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19557 _ACEOF
19558 rm -f conftest.$ac_objext
19559 if { (ac_try="$ac_compile"
19560 case "(($ac_try" in
19561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562   *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565   (eval "$ac_compile") 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } &&
19572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19573   { (case "(($ac_try" in
19574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575   *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578   (eval "$ac_try") 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); }; } &&
19582          { ac_try='test -s conftest.$ac_objext'
19583   { (case "(($ac_try" in
19584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585   *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588   (eval "$ac_try") 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; }; then
19592
19593   { echo "$as_me:$LINENO: result: yes" >&5
19594 echo "${ECHO_T}yes" >&6; }
19595   llvm_cv_win32_elmcb_pcstr="PCSTR"
19596
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601
19602   { echo "$as_me:$LINENO: result: no" >&5
19603 echo "${ECHO_T}no" >&6; }
19604   llvm_cv_win32_elmcb_pcstr="PSTR"
19605
19606 fi
19607
19608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609
19610 cat >>confdefs.h <<_ACEOF
19611 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19612 _ACEOF
19613
19614 fi
19615
19616
19617 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19618 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19619 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   ac_ext=cpp
19623 ac_cpp='$CXXCPP $CPPFLAGS'
19624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19627
19628    cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 #include <math.h>
19635 int
19636 main ()
19637 {
19638 float f; isnan(f);
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext
19644 if { (ac_try="$ac_compile"
19645 case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650   (eval "$ac_compile") 2>conftest.er1
19651   ac_status=$?
19652   grep -v '^ *+' conftest.er1 >conftest.err
19653   rm -f conftest.er1
19654   cat conftest.err >&5
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); } &&
19657          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19658   { (case "(($ac_try" in
19659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660   *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663   (eval "$ac_try") 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); }; } &&
19667          { ac_try='test -s conftest.$ac_objext'
19668   { (case "(($ac_try" in
19669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670   *) ac_try_echo=$ac_try;;
19671 esac
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673   (eval "$ac_try") 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; }; then
19677   ac_cv_func_isnan_in_math_h=yes
19678 else
19679   echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682         ac_cv_func_isnan_in_math_h=no
19683 fi
19684
19685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686   ac_ext=c
19687 ac_cpp='$CPP $CPPFLAGS'
19688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19691
19692 fi
19693 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19694 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19695
19696
19697 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19698
19699 cat >>confdefs.h <<\_ACEOF
19700 #define HAVE_ISNAN_IN_MATH_H 1
19701 _ACEOF
19702
19703 fi
19704
19705 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19706 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19707 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19708   echo $ECHO_N "(cached) $ECHO_C" >&6
19709 else
19710   ac_ext=cpp
19711 ac_cpp='$CXXCPP $CPPFLAGS'
19712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19715
19716    cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h.  */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h.  */
19722 #include <cmath>
19723 int
19724 main ()
19725 {
19726 float f; isnan(f);
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext
19732 if { (ac_try="$ac_compile"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_compile") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } &&
19745          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19746   { (case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_try") 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; } &&
19755          { ac_try='test -s conftest.$ac_objext'
19756   { (case "(($ac_try" in
19757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758   *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761   (eval "$ac_try") 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; }; then
19765   ac_cv_func_isnan_in_cmath=yes
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770         ac_cv_func_isnan_in_cmath=no
19771 fi
19772
19773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19774   ac_ext=c
19775 ac_cpp='$CPP $CPPFLAGS'
19776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19779
19780 fi
19781 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19782 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19783
19784 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19785
19786 cat >>confdefs.h <<\_ACEOF
19787 #define HAVE_ISNAN_IN_CMATH 1
19788 _ACEOF
19789
19790 fi
19791
19792 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19793 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19794 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19795   echo $ECHO_N "(cached) $ECHO_C" >&6
19796 else
19797   ac_ext=cpp
19798 ac_cpp='$CXXCPP $CPPFLAGS'
19799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19802
19803    cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h.  */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h.  */
19809 #include <cmath>
19810 int
19811 main ()
19812 {
19813 float f; std::isnan(f);
19814   ;
19815   return 0;
19816 }
19817 _ACEOF
19818 rm -f conftest.$ac_objext
19819 if { (ac_try="$ac_compile"
19820 case "(($ac_try" in
19821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822   *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825   (eval "$ac_compile") 2>conftest.er1
19826   ac_status=$?
19827   grep -v '^ *+' conftest.er1 >conftest.err
19828   rm -f conftest.er1
19829   cat conftest.err >&5
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); } &&
19832          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19833   { (case "(($ac_try" in
19834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835   *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838   (eval "$ac_try") 2>&5
19839   ac_status=$?
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); }; } &&
19842          { ac_try='test -s conftest.$ac_objext'
19843   { (case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_try") 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); }; }; then
19852   ac_cv_func_std_isnan_in_cmath=yes
19853 else
19854   echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19856
19857         ac_cv_func_std_isnan_in_cmath=no
19858 fi
19859
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861   ac_ext=c
19862 ac_cpp='$CPP $CPPFLAGS'
19863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19866
19867 fi
19868 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19869 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19870
19871 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19872
19873 cat >>confdefs.h <<\_ACEOF
19874 #define HAVE_STD_ISNAN_IN_CMATH 1
19875 _ACEOF
19876
19877 fi
19878
19879
19880 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19881 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19882 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19883   echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885   ac_ext=cpp
19886 ac_cpp='$CXXCPP $CPPFLAGS'
19887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19890
19891    cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h.  */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h.  */
19897 #include <math.h>
19898 int
19899 main ()
19900 {
19901 float f; isinf(f);
19902   ;
19903   return 0;
19904 }
19905 _ACEOF
19906 rm -f conftest.$ac_objext
19907 if { (ac_try="$ac_compile"
19908 case "(($ac_try" in
19909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910   *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913   (eval "$ac_compile") 2>conftest.er1
19914   ac_status=$?
19915   grep -v '^ *+' conftest.er1 >conftest.err
19916   rm -f conftest.er1
19917   cat conftest.err >&5
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); } &&
19920          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19921   { (case "(($ac_try" in
19922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923   *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926   (eval "$ac_try") 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; } &&
19930          { ac_try='test -s conftest.$ac_objext'
19931   { (case "(($ac_try" in
19932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933   *) ac_try_echo=$ac_try;;
19934 esac
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936   (eval "$ac_try") 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; }; then
19940   ac_cv_func_isinf_in_math_h=yes
19941 else
19942   echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19944
19945         ac_cv_func_isinf_in_math_h=no
19946 fi
19947
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949   ac_ext=c
19950 ac_cpp='$CPP $CPPFLAGS'
19951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19954
19955 fi
19956 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19957 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19958
19959 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19960
19961 cat >>confdefs.h <<\_ACEOF
19962 #define HAVE_ISINF_IN_MATH_H 1
19963 _ACEOF
19964
19965 fi
19966
19967 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19968 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19969 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19970   echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972   ac_ext=cpp
19973 ac_cpp='$CXXCPP $CPPFLAGS'
19974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19977
19978    cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h.  */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h.  */
19984 #include <cmath>
19985 int
19986 main ()
19987 {
19988 float f; isinf(f);
19989   ;
19990   return 0;
19991 }
19992 _ACEOF
19993 rm -f conftest.$ac_objext
19994 if { (ac_try="$ac_compile"
19995 case "(($ac_try" in
19996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997   *) ac_try_echo=$ac_try;;
19998 esac
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000   (eval "$ac_compile") 2>conftest.er1
20001   ac_status=$?
20002   grep -v '^ *+' conftest.er1 >conftest.err
20003   rm -f conftest.er1
20004   cat conftest.err >&5
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } &&
20007          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20008   { (case "(($ac_try" in
20009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010   *) ac_try_echo=$ac_try;;
20011 esac
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013   (eval "$ac_try") 2>&5
20014   ac_status=$?
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); }; } &&
20017          { ac_try='test -s conftest.$ac_objext'
20018   { (case "(($ac_try" in
20019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020   *) ac_try_echo=$ac_try;;
20021 esac
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023   (eval "$ac_try") 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); }; }; then
20027   ac_cv_func_isinf_in_cmath=yes
20028 else
20029   echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032         ac_cv_func_isinf_in_cmath=no
20033 fi
20034
20035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036   ac_ext=c
20037 ac_cpp='$CPP $CPPFLAGS'
20038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20041
20042 fi
20043 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20044 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20045
20046 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20047
20048 cat >>confdefs.h <<\_ACEOF
20049 #define HAVE_ISINF_IN_CMATH 1
20050 _ACEOF
20051
20052 fi
20053
20054 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20055 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20056 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20057   echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059   ac_ext=cpp
20060 ac_cpp='$CXXCPP $CPPFLAGS'
20061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20064
20065    cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h.  */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h.  */
20071 #include <cmath>
20072 int
20073 main ()
20074 {
20075 float f; std::isinf(f);
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (ac_try="$ac_compile"
20082 case "(($ac_try" in
20083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084   *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087   (eval "$ac_compile") 2>conftest.er1
20088   ac_status=$?
20089   grep -v '^ *+' conftest.er1 >conftest.err
20090   rm -f conftest.er1
20091   cat conftest.err >&5
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); } &&
20094          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20095   { (case "(($ac_try" in
20096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097   *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100   (eval "$ac_try") 2>&5
20101   ac_status=$?
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); }; } &&
20104          { ac_try='test -s conftest.$ac_objext'
20105   { (case "(($ac_try" in
20106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107   *) ac_try_echo=$ac_try;;
20108 esac
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110   (eval "$ac_try") 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; }; then
20114   ac_cv_func_std_isinf_in_cmath=yes
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119         ac_cv_func_std_isinf_in_cmath=no
20120 fi
20121
20122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20123   ac_ext=c
20124 ac_cpp='$CPP $CPPFLAGS'
20125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20128
20129 fi
20130 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20131 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20132
20133 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20134
20135 cat >>confdefs.h <<\_ACEOF
20136 #define HAVE_STD_ISINF_IN_CMATH 1
20137 _ACEOF
20138
20139 fi
20140
20141 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20142 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20143 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20144   echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146   ac_ext=cpp
20147 ac_cpp='$CXXCPP $CPPFLAGS'
20148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20151
20152    cat >conftest.$ac_ext <<_ACEOF
20153 /* confdefs.h.  */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h.  */
20158 #include <ieeefp.h>
20159 int
20160 main ()
20161 {
20162 float f; finite(f);
20163   ;
20164   return 0;
20165 }
20166 _ACEOF
20167 rm -f conftest.$ac_objext
20168 if { (ac_try="$ac_compile"
20169 case "(($ac_try" in
20170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171   *) ac_try_echo=$ac_try;;
20172 esac
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174   (eval "$ac_compile") 2>conftest.er1
20175   ac_status=$?
20176   grep -v '^ *+' conftest.er1 >conftest.err
20177   rm -f conftest.er1
20178   cat conftest.err >&5
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); } &&
20181          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20182   { (case "(($ac_try" in
20183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184   *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187   (eval "$ac_try") 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; } &&
20191          { ac_try='test -s conftest.$ac_objext'
20192   { (case "(($ac_try" in
20193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194   *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197   (eval "$ac_try") 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); }; }; then
20201   ac_cv_func_finite_in_ieeefp_h=yes
20202 else
20203   echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20205
20206         ac_cv_func_finite_in_ieeefp_h=no
20207 fi
20208
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210   ac_ext=c
20211 ac_cpp='$CPP $CPPFLAGS'
20212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20215
20216 fi
20217 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20218 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20219
20220 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20221
20222 cat >>confdefs.h <<\_ACEOF
20223 #define HAVE_FINITE_IN_IEEEFP_H 1
20224 _ACEOF
20225
20226 fi
20227
20228
20229
20230 if test "$llvm_cv_platform_type" = "Unix" ; then
20231
20232
20233 for ac_header in stdlib.h unistd.h
20234 do
20235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20237   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20240   echo $ECHO_N "(cached) $ECHO_C" >&6
20241 fi
20242 ac_res=`eval echo '${'$as_ac_Header'}'`
20243                { echo "$as_me:$LINENO: result: $ac_res" >&5
20244 echo "${ECHO_T}$ac_res" >&6; }
20245 else
20246   # Is the header compilable?
20247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 $ac_includes_default
20256 #include <$ac_header>
20257 _ACEOF
20258 rm -f conftest.$ac_objext
20259 if { (ac_try="$ac_compile"
20260 case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265   (eval "$ac_compile") 2>conftest.er1
20266   ac_status=$?
20267   grep -v '^ *+' conftest.er1 >conftest.err
20268   rm -f conftest.er1
20269   cat conftest.err >&5
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } &&
20272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273   { (case "(($ac_try" in
20274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275   *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278   (eval "$ac_try") 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; } &&
20282          { ac_try='test -s conftest.$ac_objext'
20283   { (case "(($ac_try" in
20284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285   *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288   (eval "$ac_try") 2>&5
20289   ac_status=$?
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); }; }; then
20292   ac_header_compiler=yes
20293 else
20294   echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20296
20297         ac_header_compiler=no
20298 fi
20299
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20302 echo "${ECHO_T}$ac_header_compiler" >&6; }
20303
20304 # Is the header present?
20305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20307 cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h.  */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h.  */
20313 #include <$ac_header>
20314 _ACEOF
20315 if { (ac_try="$ac_cpp conftest.$ac_ext"
20316 case "(($ac_try" in
20317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318   *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20322   ac_status=$?
20323   grep -v '^ *+' conftest.er1 >conftest.err
20324   rm -f conftest.er1
20325   cat conftest.err >&5
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); } >/dev/null; then
20328   if test -s conftest.err; then
20329     ac_cpp_err=$ac_c_preproc_warn_flag
20330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20331   else
20332     ac_cpp_err=
20333   fi
20334 else
20335   ac_cpp_err=yes
20336 fi
20337 if test -z "$ac_cpp_err"; then
20338   ac_header_preproc=yes
20339 else
20340   echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343   ac_header_preproc=no
20344 fi
20345
20346 rm -f conftest.err conftest.$ac_ext
20347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20348 echo "${ECHO_T}$ac_header_preproc" >&6; }
20349
20350 # So?  What about this header?
20351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20352   yes:no: )
20353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20357     ac_header_preproc=yes
20358     ;;
20359   no:yes:* )
20360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20372     ( cat <<\_ASBOX
20373 ## ------------------------------------ ##
20374 ## Report this to http://llvm.org/bugs/ ##
20375 ## ------------------------------------ ##
20376 _ASBOX
20377      ) | sed "s/^/$as_me: WARNING:     /" >&2
20378     ;;
20379 esac
20380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20383   echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385   eval "$as_ac_Header=\$ac_header_preproc"
20386 fi
20387 ac_res=`eval echo '${'$as_ac_Header'}'`
20388                { echo "$as_me:$LINENO: result: $ac_res" >&5
20389 echo "${ECHO_T}$ac_res" >&6; }
20390
20391 fi
20392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20393   cat >>confdefs.h <<_ACEOF
20394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20395 _ACEOF
20396
20397 fi
20398
20399 done
20400
20401
20402 for ac_func in getpagesize
20403 do
20404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20408   echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410   cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20418 #define $ac_func innocuous_$ac_func
20419
20420 /* System header to define __stub macros and hopefully few prototypes,
20421     which can conflict with char $ac_func (); below.
20422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20423     <limits.h> exists even on freestanding compilers.  */
20424
20425 #ifdef __STDC__
20426 # include <limits.h>
20427 #else
20428 # include <assert.h>
20429 #endif
20430
20431 #undef $ac_func
20432
20433 /* Override any GCC internal prototype to avoid an error.
20434    Use char because int might match the return type of a GCC
20435    builtin and then its argument prototype would still apply.  */
20436 #ifdef __cplusplus
20437 extern "C"
20438 #endif
20439 char $ac_func ();
20440 /* The GNU C library defines this for functions which it implements
20441     to always fail with ENOSYS.  Some functions are actually named
20442     something starting with __ and the normal name is an alias.  */
20443 #if defined __stub_$ac_func || defined __stub___$ac_func
20444 choke me
20445 #endif
20446
20447 int
20448 main ()
20449 {
20450 return $ac_func ();
20451   ;
20452   return 0;
20453 }
20454 _ACEOF
20455 rm -f conftest.$ac_objext conftest$ac_exeext
20456 if { (ac_try="$ac_link"
20457 case "(($ac_try" in
20458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459   *) ac_try_echo=$ac_try;;
20460 esac
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462   (eval "$ac_link") 2>conftest.er1
20463   ac_status=$?
20464   grep -v '^ *+' conftest.er1 >conftest.err
20465   rm -f conftest.er1
20466   cat conftest.err >&5
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); } &&
20469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20470   { (case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475   (eval "$ac_try") 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); }; } &&
20479          { ac_try='test -s conftest$ac_exeext'
20480   { (case "(($ac_try" in
20481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482   *) ac_try_echo=$ac_try;;
20483 esac
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485   (eval "$ac_try") 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; }; then
20489   eval "$as_ac_var=yes"
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494         eval "$as_ac_var=no"
20495 fi
20496
20497 rm -f core conftest.err conftest.$ac_objext \
20498       conftest$ac_exeext conftest.$ac_ext
20499 fi
20500 ac_res=`eval echo '${'$as_ac_var'}'`
20501                { echo "$as_me:$LINENO: result: $ac_res" >&5
20502 echo "${ECHO_T}$ac_res" >&6; }
20503 if test `eval echo '${'$as_ac_var'}'` = yes; then
20504   cat >>confdefs.h <<_ACEOF
20505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20506 _ACEOF
20507
20508 fi
20509 done
20510
20511 { echo "$as_me:$LINENO: checking for working mmap" >&5
20512 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20513 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20514   echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516   if test "$cross_compiling" = yes; then
20517   ac_cv_func_mmap_fixed_mapped=no
20518 else
20519   cat >conftest.$ac_ext <<_ACEOF
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525 $ac_includes_default
20526 /* malloc might have been renamed as rpl_malloc. */
20527 #undef malloc
20528
20529 /* Thanks to Mike Haertel and Jim Avera for this test.
20530    Here is a matrix of mmap possibilities:
20531         mmap private not fixed
20532         mmap private fixed at somewhere currently unmapped
20533         mmap private fixed at somewhere already mapped
20534         mmap shared not fixed
20535         mmap shared fixed at somewhere currently unmapped
20536         mmap shared fixed at somewhere already mapped
20537    For private mappings, we should verify that changes cannot be read()
20538    back from the file, nor mmap's back from the file at a different
20539    address.  (There have been systems where private was not correctly
20540    implemented like the infamous i386 svr4.0, and systems where the
20541    VM page cache was not coherent with the file system buffer cache
20542    like early versions of FreeBSD and possibly contemporary NetBSD.)
20543    For shared mappings, we should conversely verify that changes get
20544    propagated back to all the places they're supposed to be.
20545
20546    Grep wants private fixed already mapped.
20547    The main things grep needs to know about mmap are:
20548    * does it exist and is it safe to write into the mmap'd area
20549    * how to use it (BSD variants)  */
20550
20551 #include <fcntl.h>
20552 #include <sys/mman.h>
20553
20554 #if !STDC_HEADERS && !HAVE_STDLIB_H
20555 char *malloc ();
20556 #endif
20557
20558 /* This mess was copied from the GNU getpagesize.h.  */
20559 #if !HAVE_GETPAGESIZE
20560 /* Assume that all systems that can run configure have sys/param.h.  */
20561 # if !HAVE_SYS_PARAM_H
20562 #  define HAVE_SYS_PARAM_H 1
20563 # endif
20564
20565 # ifdef _SC_PAGESIZE
20566 #  define getpagesize() sysconf(_SC_PAGESIZE)
20567 # else /* no _SC_PAGESIZE */
20568 #  if HAVE_SYS_PARAM_H
20569 #   include <sys/param.h>
20570 #   ifdef EXEC_PAGESIZE
20571 #    define getpagesize() EXEC_PAGESIZE
20572 #   else /* no EXEC_PAGESIZE */
20573 #    ifdef NBPG
20574 #     define getpagesize() NBPG * CLSIZE
20575 #     ifndef CLSIZE
20576 #      define CLSIZE 1
20577 #     endif /* no CLSIZE */
20578 #    else /* no NBPG */
20579 #     ifdef NBPC
20580 #      define getpagesize() NBPC
20581 #     else /* no NBPC */
20582 #      ifdef PAGESIZE
20583 #       define getpagesize() PAGESIZE
20584 #      endif /* PAGESIZE */
20585 #     endif /* no NBPC */
20586 #    endif /* no NBPG */
20587 #   endif /* no EXEC_PAGESIZE */
20588 #  else /* no HAVE_SYS_PARAM_H */
20589 #   define getpagesize() 8192   /* punt totally */
20590 #  endif /* no HAVE_SYS_PARAM_H */
20591 # endif /* no _SC_PAGESIZE */
20592
20593 #endif /* no HAVE_GETPAGESIZE */
20594
20595 int
20596 main ()
20597 {
20598   char *data, *data2, *data3;
20599   int i, pagesize;
20600   int fd;
20601
20602   pagesize = getpagesize ();
20603
20604   /* First, make a file with some known garbage in it. */
20605   data = (char *) malloc (pagesize);
20606   if (!data)
20607     return 1;
20608   for (i = 0; i < pagesize; ++i)
20609     *(data + i) = rand ();
20610   umask (0);
20611   fd = creat ("conftest.mmap", 0600);
20612   if (fd < 0)
20613     return 1;
20614   if (write (fd, data, pagesize) != pagesize)
20615     return 1;
20616   close (fd);
20617
20618   /* Next, try to mmap the file at a fixed address which already has
20619      something else allocated at it.  If we can, also make sure that
20620      we see the same garbage.  */
20621   fd = open ("conftest.mmap", O_RDWR);
20622   if (fd < 0)
20623     return 1;
20624   data2 = (char *) malloc (2 * pagesize);
20625   if (!data2)
20626     return 1;
20627   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20628   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20629                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20630     return 1;
20631   for (i = 0; i < pagesize; ++i)
20632     if (*(data + i) != *(data2 + i))
20633       return 1;
20634
20635   /* Finally, make sure that changes to the mapped area do not
20636      percolate back to the file as seen by read().  (This is a bug on
20637      some variants of i386 svr4.0.)  */
20638   for (i = 0; i < pagesize; ++i)
20639     *(data2 + i) = *(data2 + i) + 1;
20640   data3 = (char *) malloc (pagesize);
20641   if (!data3)
20642     return 1;
20643   if (read (fd, data3, pagesize) != pagesize)
20644     return 1;
20645   for (i = 0; i < pagesize; ++i)
20646     if (*(data + i) != *(data3 + i))
20647       return 1;
20648   close (fd);
20649   return 0;
20650 }
20651 _ACEOF
20652 rm -f conftest$ac_exeext
20653 if { (ac_try="$ac_link"
20654 case "(($ac_try" in
20655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656   *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659   (eval "$ac_link") 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20663   { (case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_try") 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; }; then
20672   ac_cv_func_mmap_fixed_mapped=yes
20673 else
20674   echo "$as_me: program exited with status $ac_status" >&5
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 ( exit $ac_status )
20679 ac_cv_func_mmap_fixed_mapped=no
20680 fi
20681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20682 fi
20683
20684
20685 fi
20686 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20687 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20688 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20689
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_MMAP 1
20692 _ACEOF
20693
20694 fi
20695 rm -f conftest.mmap
20696
20697   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20698 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20699 if test "${ac_cv_func_mmap_file+set}" = set; then
20700   echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702    ac_ext=c
20703 ac_cpp='$CPP $CPPFLAGS'
20704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20707
20708   if test "$cross_compiling" = yes; then
20709   ac_cv_func_mmap_file=no
20710 else
20711   cat >conftest.$ac_ext <<_ACEOF
20712
20713     /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718
20719 #include <sys/types.h>
20720 #include <sys/mman.h>
20721 #include <fcntl.h>
20722
20723 int
20724 main ()
20725 {
20726
20727   int fd;
20728   fd = creat ("foo",0777);
20729   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20730   unlink ("foo");
20731   return (fd != (int) MAP_FAILED);
20732   ;
20733   return 0;
20734 }
20735 _ACEOF
20736 rm -f conftest$ac_exeext
20737 if { (ac_try="$ac_link"
20738 case "(($ac_try" in
20739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740   *) ac_try_echo=$ac_try;;
20741 esac
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743   (eval "$ac_link") 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20747   { (case "(($ac_try" in
20748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749   *) ac_try_echo=$ac_try;;
20750 esac
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752   (eval "$ac_try") 2>&5
20753   ac_status=$?
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); }; }; then
20756   ac_cv_func_mmap_file=yes
20757 else
20758   echo "$as_me: program exited with status $ac_status" >&5
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20761
20762 ( exit $ac_status )
20763 ac_cv_func_mmap_file=no
20764 fi
20765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20766 fi
20767
20768
20769   ac_ext=c
20770 ac_cpp='$CPP $CPPFLAGS'
20771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20774
20775
20776 fi
20777 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20778 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20779 if test "$ac_cv_func_mmap_file" = yes; then
20780
20781 cat >>confdefs.h <<\_ACEOF
20782 #define HAVE_MMAP_FILE
20783 _ACEOF
20784
20785    MMAP_FILE=yes
20786
20787 fi
20788
20789   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20790 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20791 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20792   echo $ECHO_N "(cached) $ECHO_C" >&6
20793 else
20794   if test "$llvm_cv_os_type" = "Interix" ; then
20795    ac_cv_need_dev_zero_for_mmap=yes
20796  else
20797    ac_cv_need_dev_zero_for_mmap=no
20798  fi
20799
20800 fi
20801 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20802 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20803 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20804
20805 cat >>confdefs.h <<\_ACEOF
20806 #define NEED_DEV_ZERO_FOR_MMAP 1
20807 _ACEOF
20808
20809 fi
20810
20811   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20812   then
20813     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20814 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20815   fi
20816   if test "$ac_cv_func_mmap_file" = "no"
20817   then
20818     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20819 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20820   fi
20821 fi
20822
20823 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20824 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20825 ac_ext=cpp
20826 ac_cpp='$CXXCPP $CPPFLAGS'
20827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20830
20831 cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h.  */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h.  */
20837 int main() {
20838         volatile unsigned long val = 1;
20839         __sync_synchronize();
20840         __sync_val_compare_and_swap(&val, 1, 0);
20841         __sync_add_and_fetch(&val, 1);
20842         __sync_sub_and_fetch(&val, 1);
20843         return 0;
20844       }
20845
20846 _ACEOF
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851   *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854   (eval "$ac_link") 2>conftest.er1
20855   ac_status=$?
20856   grep -v '^ *+' conftest.er1 >conftest.err
20857   rm -f conftest.er1
20858   cat conftest.err >&5
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); } &&
20861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20862   { (case "(($ac_try" in
20863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864   *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867   (eval "$ac_try") 2>&5
20868   ac_status=$?
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); }; } &&
20871          { ac_try='test -s conftest$ac_exeext'
20872   { (case "(($ac_try" in
20873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874   *) ac_try_echo=$ac_try;;
20875 esac
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877   (eval "$ac_try") 2>&5
20878   ac_status=$?
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); }; }; then
20881   ac_ext=c
20882 ac_cpp='$CPP $CPPFLAGS'
20883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886
20887   { echo "$as_me:$LINENO: result: yes" >&5
20888 echo "${ECHO_T}yes" >&6; }
20889
20890 cat >>confdefs.h <<\_ACEOF
20891 #define LLVM_HAS_ATOMICS 1
20892 _ACEOF
20893
20894 else
20895   echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898         { echo "$as_me:$LINENO: result: no" >&5
20899 echo "${ECHO_T}no" >&6; }
20900
20901 cat >>confdefs.h <<\_ACEOF
20902 #define LLVM_HAS_ATOMICS 0
20903 _ACEOF
20904
20905   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20906 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20907 fi
20908
20909 rm -f core conftest.err conftest.$ac_objext \
20910       conftest$ac_exeext conftest.$ac_ext
20911
20912
20913 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20914   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20915 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20916 if test "${llvm_cv_linux_mixed+set}" = set; then
20917   echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919    ac_ext=c
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
20925   cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h.  */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h.  */
20931 #ifndef __x86_64__
20932        error: Not x86-64 even if uname says so!
20933       #endif
20934
20935 int
20936 main ()
20937 {
20938
20939   ;
20940   return 0;
20941 }
20942 _ACEOF
20943 rm -f conftest.$ac_objext
20944 if { (ac_try="$ac_compile"
20945 case "(($ac_try" in
20946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947   *) ac_try_echo=$ac_try;;
20948 esac
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950   (eval "$ac_compile") 2>conftest.er1
20951   ac_status=$?
20952   grep -v '^ *+' conftest.er1 >conftest.err
20953   rm -f conftest.er1
20954   cat conftest.err >&5
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); } &&
20957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20958   { (case "(($ac_try" in
20959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960   *) ac_try_echo=$ac_try;;
20961 esac
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963   (eval "$ac_try") 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); }; } &&
20967          { ac_try='test -s conftest.$ac_objext'
20968   { (case "(($ac_try" in
20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970   *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973   (eval "$ac_try") 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); }; }; then
20977   llvm_cv_linux_mixed=no
20978 else
20979   echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20981
20982         llvm_cv_linux_mixed=yes
20983 fi
20984
20985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20986   ac_ext=c
20987 ac_cpp='$CPP $CPPFLAGS'
20988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20991
20992
20993 fi
20994 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20995 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20996
20997   if test "$llvm_cv_linux_mixed" = "yes"; then
20998     llvm_cv_target_arch="x86"
20999     ARCH="x86"
21000   fi
21001 fi
21002
21003
21004 for ac_func in __dso_handle
21005 do
21006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21010   echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012   cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h.  */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h.  */
21018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21020 #define $ac_func innocuous_$ac_func
21021
21022 /* System header to define __stub macros and hopefully few prototypes,
21023     which can conflict with char $ac_func (); below.
21024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21025     <limits.h> exists even on freestanding compilers.  */
21026
21027 #ifdef __STDC__
21028 # include <limits.h>
21029 #else
21030 # include <assert.h>
21031 #endif
21032
21033 #undef $ac_func
21034
21035 /* Override any GCC internal prototype to avoid an error.
21036    Use char because int might match the return type of a GCC
21037    builtin and then its argument prototype would still apply.  */
21038 #ifdef __cplusplus
21039 extern "C"
21040 #endif
21041 char $ac_func ();
21042 /* The GNU C library defines this for functions which it implements
21043     to always fail with ENOSYS.  Some functions are actually named
21044     something starting with __ and the normal name is an alias.  */
21045 #if defined __stub_$ac_func || defined __stub___$ac_func
21046 choke me
21047 #endif
21048
21049 int
21050 main ()
21051 {
21052 return $ac_func ();
21053   ;
21054   return 0;
21055 }
21056 _ACEOF
21057 rm -f conftest.$ac_objext conftest$ac_exeext
21058 if { (ac_try="$ac_link"
21059 case "(($ac_try" in
21060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061   *) ac_try_echo=$ac_try;;
21062 esac
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064   (eval "$ac_link") 2>conftest.er1
21065   ac_status=$?
21066   grep -v '^ *+' conftest.er1 >conftest.err
21067   rm -f conftest.er1
21068   cat conftest.err >&5
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); } &&
21071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21072   { (case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_try") 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; } &&
21081          { ac_try='test -s conftest$ac_exeext'
21082   { (case "(($ac_try" in
21083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084   *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087   (eval "$ac_try") 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); }; }; then
21091   eval "$as_ac_var=yes"
21092 else
21093   echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21095
21096         eval "$as_ac_var=no"
21097 fi
21098
21099 rm -f core conftest.err conftest.$ac_objext \
21100       conftest$ac_exeext conftest.$ac_ext
21101 fi
21102 ac_res=`eval echo '${'$as_ac_var'}'`
21103                { echo "$as_me:$LINENO: result: $ac_res" >&5
21104 echo "${ECHO_T}$ac_res" >&6; }
21105 if test `eval echo '${'$as_ac_var'}'` = yes; then
21106   cat >>confdefs.h <<_ACEOF
21107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21108 _ACEOF
21109
21110 fi
21111 done
21112
21113
21114 SHLIBEXT=$libltdl_cv_shlibext
21115
21116
21117 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21118
21119
21120 if test "${prefix}" = "NONE" ; then
21121   prefix="/usr/local"
21122 fi
21123 eval LLVM_PREFIX="${prefix}";
21124 eval LLVM_BINDIR="${prefix}/bin";
21125 eval LLVM_LIBDIR="${prefix}/lib";
21126 eval LLVM_DATADIR="${prefix}/share/llvm";
21127 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21128 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21129 eval LLVM_INCLUDEDIR="${prefix}/include";
21130 eval LLVM_INFODIR="${prefix}/info";
21131 eval LLVM_MANDIR="${prefix}/man";
21132 LLVM_CONFIGTIME=`date`
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21145   LLVM_CONFIGTIME="(timestamp not enabled)"
21146 fi
21147
21148
21149 cat >>confdefs.h <<_ACEOF
21150 #define LLVM_PREFIX "$LLVM_PREFIX"
21151 _ACEOF
21152
21153
21154 cat >>confdefs.h <<_ACEOF
21155 #define LLVM_BINDIR "$LLVM_BINDIR"
21156 _ACEOF
21157
21158
21159 cat >>confdefs.h <<_ACEOF
21160 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21161 _ACEOF
21162
21163
21164 cat >>confdefs.h <<_ACEOF
21165 #define LLVM_DATADIR "$LLVM_DATADIR"
21166 _ACEOF
21167
21168
21169 cat >>confdefs.h <<_ACEOF
21170 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21171 _ACEOF
21172
21173
21174 cat >>confdefs.h <<_ACEOF
21175 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21176 _ACEOF
21177
21178
21179 cat >>confdefs.h <<_ACEOF
21180 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21181 _ACEOF
21182
21183
21184 cat >>confdefs.h <<_ACEOF
21185 #define LLVM_INFODIR "$LLVM_INFODIR"
21186 _ACEOF
21187
21188
21189 cat >>confdefs.h <<_ACEOF
21190 #define LLVM_MANDIR "$LLVM_MANDIR"
21191 _ACEOF
21192
21193
21194 cat >>confdefs.h <<_ACEOF
21195 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21196 _ACEOF
21197
21198
21199 cat >>confdefs.h <<_ACEOF
21200 #define LLVM_HOSTTRIPLE "$host"
21201 _ACEOF
21202
21203
21204 cat >>confdefs.h <<_ACEOF
21205 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21206 _ACEOF
21207
21208
21209 if test "$BINDINGS_TO_BUILD" = auto ; then
21210   BINDINGS_TO_BUILD=""
21211   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21212     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21213   fi
21214 fi
21215 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21216
21217
21218 ALL_BINDINGS=ocaml
21219
21220
21221 binding_prereqs_failed=0
21222 for a_binding in $BINDINGS_TO_BUILD ; do
21223   case "$a_binding" in
21224   ocaml)
21225     if test "x$OCAMLC" = x ; then
21226       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21227 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21228       binding_prereqs_failed=1
21229     fi
21230     if test "x$OCAMLDEP" = x ; then
21231       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21232 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21233       binding_prereqs_failed=1
21234     fi
21235     if test "x$OCAMLOPT" = x ; then
21236       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21237 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21238           fi
21239     if test "x$with_ocaml_libdir" != xauto ; then
21240       OCAML_LIBDIR=$with_ocaml_libdir
21241
21242     else
21243       ocaml_stdlib="`"$OCAMLC" -where`"
21244       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21245       then
21246         # ocaml stdlib is beneath our prefix; use stdlib
21247         OCAML_LIBDIR=$ocaml_stdlib
21248
21249       else
21250         # ocaml stdlib is outside our prefix; use libdir/ocaml
21251         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21252
21253       fi
21254     fi
21255     ;;
21256   esac
21257 done
21258 if test "$binding_prereqs_failed" = 1 ; then
21259   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21260 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21261    { (exit 1); exit 1; }; }
21262 fi
21263
21264 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21265 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21266 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21267   echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269    ac_ext=cpp
21270 ac_cpp='$CXXCPP $CPPFLAGS'
21271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21274
21275   oldcxxflags="$CXXFLAGS"
21276   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21277   cat >conftest.$ac_ext <<_ACEOF
21278 /* confdefs.h.  */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h.  */
21283 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21284 int
21285 main ()
21286 {
21287 X<int>().f();
21288   ;
21289   return 0;
21290 }
21291 _ACEOF
21292 rm -f conftest.$ac_objext
21293 if { (ac_try="$ac_compile"
21294 case "(($ac_try" in
21295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296   *) ac_try_echo=$ac_try;;
21297 esac
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299   (eval "$ac_compile") 2>conftest.er1
21300   ac_status=$?
21301   grep -v '^ *+' conftest.er1 >conftest.err
21302   rm -f conftest.er1
21303   cat conftest.err >&5
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } &&
21306          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21307   { (case "(($ac_try" in
21308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309   *) ac_try_echo=$ac_try;;
21310 esac
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312   (eval "$ac_try") 2>&5
21313   ac_status=$?
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); }; } &&
21316          { ac_try='test -s conftest.$ac_objext'
21317   { (case "(($ac_try" in
21318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319   *) ac_try_echo=$ac_try;;
21320 esac
21321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21322   (eval "$ac_try") 2>&5
21323   ac_status=$?
21324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); }; }; then
21326   llvm_cv_cxx_visibility_inlines_hidden=yes
21327 else
21328   echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21330
21331         llvm_cv_cxx_visibility_inlines_hidden=no
21332 fi
21333
21334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335   CXXFLAGS="$oldcxxflags"
21336   ac_ext=c
21337 ac_cpp='$CPP $CPPFLAGS'
21338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21341
21342
21343 fi
21344 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21345 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21346 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21347   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21348
21349 else
21350   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21351
21352 fi
21353
21354
21355 if test "$llvm_cv_link_use_r" = "yes" ; then
21356   RPATH="-Wl,-R"
21357 else
21358   RPATH="-Wl,-rpath"
21359 fi
21360
21361
21362 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21363   RDYNAMIC="-Wl,-export-dynamic"
21364 else
21365   RDYNAMIC=""
21366 fi
21367
21368
21369
21370 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21371
21372
21373
21374
21375
21376
21377 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21378
21379 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21380
21381 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21382
21383 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21384
21385 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21386
21387
21388 ac_config_files="$ac_config_files Makefile.config"
21389
21390
21391 ac_config_files="$ac_config_files llvm.spec"
21392
21393
21394 ac_config_files="$ac_config_files docs/doxygen.cfg"
21395
21396
21397 if test "${clang_src_root}" = ""; then
21398   clang_src_root="$srcdir/tools/clang"
21399 fi
21400 if test -f ${clang_src_root}/README.txt; then
21401     configh="include/clang/Config/config.h"
21402   doxy="docs/doxygen.cfg"
21403   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21404
21405   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21406
21407 fi
21408
21409 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21410
21411
21412 ac_config_commands="$ac_config_commands setup"
21413
21414 ac_config_commands="$ac_config_commands Makefile"
21415
21416
21417 ac_config_commands="$ac_config_commands Makefile.common"
21418
21419
21420 ac_config_commands="$ac_config_commands examples/Makefile"
21421
21422
21423 ac_config_commands="$ac_config_commands lib/Makefile"
21424
21425
21426 ac_config_commands="$ac_config_commands runtime/Makefile"
21427
21428
21429 ac_config_commands="$ac_config_commands test/Makefile"
21430
21431
21432 ac_config_commands="$ac_config_commands test/Makefile.tests"
21433
21434
21435 ac_config_commands="$ac_config_commands unittests/Makefile"
21436
21437
21438 ac_config_commands="$ac_config_commands tools/Makefile"
21439
21440
21441 ac_config_commands="$ac_config_commands utils/Makefile"
21442
21443
21444 ac_config_commands="$ac_config_commands projects/Makefile"
21445
21446
21447 ac_config_commands="$ac_config_commands bindings/Makefile"
21448
21449
21450 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21451
21452
21453
21454 cat >confcache <<\_ACEOF
21455 # This file is a shell script that caches the results of configure
21456 # tests run on this system so they can be shared between configure
21457 # scripts and configure runs, see configure's option --config-cache.
21458 # It is not useful on other systems.  If it contains results you don't
21459 # want to keep, you may remove or edit it.
21460 #
21461 # config.status only pays attention to the cache file if you give it
21462 # the --recheck option to rerun configure.
21463 #
21464 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21465 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21466 # following values.
21467
21468 _ACEOF
21469
21470 # The following way of writing the cache mishandles newlines in values,
21471 # but we know of no workaround that is simple, portable, and efficient.
21472 # So, we kill variables containing newlines.
21473 # Ultrix sh set writes to stderr and can't be redirected directly,
21474 # and sets the high bit in the cache file unless we assign to the vars.
21475 (
21476   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21477     eval ac_val=\$$ac_var
21478     case $ac_val in #(
21479     *${as_nl}*)
21480       case $ac_var in #(
21481       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21482 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21483       esac
21484       case $ac_var in #(
21485       _ | IFS | as_nl) ;; #(
21486       *) $as_unset $ac_var ;;
21487       esac ;;
21488     esac
21489   done
21490
21491   (set) 2>&1 |
21492     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21493     *${as_nl}ac_space=\ *)
21494       # `set' does not quote correctly, so add quotes (double-quote
21495       # substitution turns \\\\ into \\, and sed turns \\ into \).
21496       sed -n \
21497         "s/'/'\\\\''/g;
21498           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21499       ;; #(
21500     *)
21501       # `set' quotes correctly as required by POSIX, so do not add quotes.
21502       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21503       ;;
21504     esac |
21505     sort
21506 ) |
21507   sed '
21508      /^ac_cv_env_/b end
21509      t clear
21510      :clear
21511      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21512      t end
21513      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21514      :end' >>confcache
21515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21516   if test -w "$cache_file"; then
21517     test "x$cache_file" != "x/dev/null" &&
21518       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21519 echo "$as_me: updating cache $cache_file" >&6;}
21520     cat confcache >$cache_file
21521   else
21522     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21523 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21524   fi
21525 fi
21526 rm -f confcache
21527
21528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21529 # Let make expand exec_prefix.
21530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21531
21532 DEFS=-DHAVE_CONFIG_H
21533
21534 ac_libobjs=
21535 ac_ltlibobjs=
21536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21537   # 1. Remove the extension, and $U if already installed.
21538   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21539   ac_i=`echo "$ac_i" | sed "$ac_script"`
21540   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21541   #    will be set to the directory where LIBOBJS objects are built.
21542   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21543   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21544 done
21545 LIBOBJS=$ac_libobjs
21546
21547 LTLIBOBJS=$ac_ltlibobjs
21548
21549
21550 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21551   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21552 Usually this means the macro was only invoked conditionally." >&5
21553 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21554 Usually this means the macro was only invoked conditionally." >&2;}
21555    { (exit 1); exit 1; }; }
21556 fi
21557 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21558   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21559 Usually this means the macro was only invoked conditionally." >&5
21560 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21561 Usually this means the macro was only invoked conditionally." >&2;}
21562    { (exit 1); exit 1; }; }
21563 fi
21564
21565 : ${CONFIG_STATUS=./config.status}
21566 ac_clean_files_save=$ac_clean_files
21567 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21568 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21569 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21570 cat >$CONFIG_STATUS <<_ACEOF
21571 #! $SHELL
21572 # Generated by $as_me.
21573 # Run this file to recreate the current configuration.
21574 # Compiler output produced by configure, useful for debugging
21575 # configure, is in config.log if it exists.
21576
21577 debug=false
21578 ac_cs_recheck=false
21579 ac_cs_silent=false
21580 SHELL=\${CONFIG_SHELL-$SHELL}
21581 _ACEOF
21582
21583 cat >>$CONFIG_STATUS <<\_ACEOF
21584 ## --------------------- ##
21585 ## M4sh Initialization.  ##
21586 ## --------------------- ##
21587
21588 # Be Bourne compatible
21589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21590   emulate sh
21591   NULLCMD=:
21592   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21593   # is contrary to our usage.  Disable this feature.
21594   alias -g '${1+"$@"}'='"$@"'
21595   setopt NO_GLOB_SUBST
21596 else
21597   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21598 fi
21599 BIN_SH=xpg4; export BIN_SH # for Tru64
21600 DUALCASE=1; export DUALCASE # for MKS sh
21601
21602
21603 # PATH needs CR
21604 # Avoid depending upon Character Ranges.
21605 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21606 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21607 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21608 as_cr_digits='0123456789'
21609 as_cr_alnum=$as_cr_Letters$as_cr_digits
21610
21611 # The user is always right.
21612 if test "${PATH_SEPARATOR+set}" != set; then
21613   echo "#! /bin/sh" >conf$$.sh
21614   echo  "exit 0"   >>conf$$.sh
21615   chmod +x conf$$.sh
21616   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21617     PATH_SEPARATOR=';'
21618   else
21619     PATH_SEPARATOR=:
21620   fi
21621   rm -f conf$$.sh
21622 fi
21623
21624 # Support unset when possible.
21625 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21626   as_unset=unset
21627 else
21628   as_unset=false
21629 fi
21630
21631
21632 # IFS
21633 # We need space, tab and new line, in precisely that order.  Quoting is
21634 # there to prevent editors from complaining about space-tab.
21635 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21636 # splitting by setting IFS to empty value.)
21637 as_nl='
21638 '
21639 IFS=" ""        $as_nl"
21640
21641 # Find who we are.  Look in the path if we contain no directory separator.
21642 case $0 in
21643   *[\\/]* ) as_myself=$0 ;;
21644   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21645 for as_dir in $PATH
21646 do
21647   IFS=$as_save_IFS
21648   test -z "$as_dir" && as_dir=.
21649   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21650 done
21651 IFS=$as_save_IFS
21652
21653      ;;
21654 esac
21655 # We did not find ourselves, most probably we were run as `sh COMMAND'
21656 # in which case we are not to be found in the path.
21657 if test "x$as_myself" = x; then
21658   as_myself=$0
21659 fi
21660 if test ! -f "$as_myself"; then
21661   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21662   { (exit 1); exit 1; }
21663 fi
21664
21665 # Work around bugs in pre-3.0 UWIN ksh.
21666 for as_var in ENV MAIL MAILPATH
21667 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21668 done
21669 PS1='$ '
21670 PS2='> '
21671 PS4='+ '
21672
21673 # NLS nuisances.
21674 for as_var in \
21675   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21676   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21677   LC_TELEPHONE LC_TIME
21678 do
21679   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21680     eval $as_var=C; export $as_var
21681   else
21682     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21683   fi
21684 done
21685
21686 # Required to use basename.
21687 if expr a : '\(a\)' >/dev/null 2>&1 &&
21688    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21689   as_expr=expr
21690 else
21691   as_expr=false
21692 fi
21693
21694 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21695   as_basename=basename
21696 else
21697   as_basename=false
21698 fi
21699
21700
21701 # Name of the executable.
21702 as_me=`$as_basename -- "$0" ||
21703 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21704          X"$0" : 'X\(//\)$' \| \
21705          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21706 echo X/"$0" |
21707     sed '/^.*\/\([^/][^/]*\)\/*$/{
21708             s//\1/
21709             q
21710           }
21711           /^X\/\(\/\/\)$/{
21712             s//\1/
21713             q
21714           }
21715           /^X\/\(\/\).*/{
21716             s//\1/
21717             q
21718           }
21719           s/.*/./; q'`
21720
21721 # CDPATH.
21722 $as_unset CDPATH
21723
21724
21725
21726   as_lineno_1=$LINENO
21727   as_lineno_2=$LINENO
21728   test "x$as_lineno_1" != "x$as_lineno_2" &&
21729   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21730
21731   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21732   # uniformly replaced by the line number.  The first 'sed' inserts a
21733   # line-number line after each line using $LINENO; the second 'sed'
21734   # does the real work.  The second script uses 'N' to pair each
21735   # line-number line with the line containing $LINENO, and appends
21736   # trailing '-' during substitution so that $LINENO is not a special
21737   # case at line end.
21738   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21739   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21740   # E. McMahon (1931-1989) for sed's syntax.  :-)
21741   sed -n '
21742     p
21743     /[$]LINENO/=
21744   ' <$as_myself |
21745     sed '
21746       s/[$]LINENO.*/&-/
21747       t lineno
21748       b
21749       :lineno
21750       N
21751       :loop
21752       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21753       t loop
21754       s/-\n.*//
21755     ' >$as_me.lineno &&
21756   chmod +x "$as_me.lineno" ||
21757     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21758    { (exit 1); exit 1; }; }
21759
21760   # Don't try to exec as it changes $[0], causing all sort of problems
21761   # (the dirname of $[0] is not the place where we might find the
21762   # original and so on.  Autoconf is especially sensitive to this).
21763   . "./$as_me.lineno"
21764   # Exit status is that of the last command.
21765   exit
21766 }
21767
21768
21769 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21770   as_dirname=dirname
21771 else
21772   as_dirname=false
21773 fi
21774
21775 ECHO_C= ECHO_N= ECHO_T=
21776 case `echo -n x` in
21777 -n*)
21778   case `echo 'x\c'` in
21779   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21780   *)   ECHO_C='\c';;
21781   esac;;
21782 *)
21783   ECHO_N='-n';;
21784 esac
21785
21786 if expr a : '\(a\)' >/dev/null 2>&1 &&
21787    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21788   as_expr=expr
21789 else
21790   as_expr=false
21791 fi
21792
21793 rm -f conf$$ conf$$.exe conf$$.file
21794 if test -d conf$$.dir; then
21795   rm -f conf$$.dir/conf$$.file
21796 else
21797   rm -f conf$$.dir
21798   mkdir conf$$.dir
21799 fi
21800 echo >conf$$.file
21801 if ln -s conf$$.file conf$$ 2>/dev/null; then
21802   as_ln_s='ln -s'
21803   # ... but there are two gotchas:
21804   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21805   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21806   # In both cases, we have to default to `cp -p'.
21807   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21808     as_ln_s='cp -p'
21809 elif ln conf$$.file conf$$ 2>/dev/null; then
21810   as_ln_s=ln
21811 else
21812   as_ln_s='cp -p'
21813 fi
21814 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21815 rmdir conf$$.dir 2>/dev/null
21816
21817 if mkdir -p . 2>/dev/null; then
21818   as_mkdir_p=:
21819 else
21820   test -d ./-p && rmdir ./-p
21821   as_mkdir_p=false
21822 fi
21823
21824 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21825 # systems may use methods other than mode bits to determine executability.
21826 cat >conf$$.file <<_ASEOF
21827 #! /bin/sh
21828 exit 0
21829 _ASEOF
21830 chmod +x conf$$.file
21831 if test -x conf$$.file >/dev/null 2>&1; then
21832   as_executable_p="test -x"
21833 else
21834   as_executable_p=:
21835 fi
21836 rm -f conf$$.file
21837
21838 # Sed expression to map a string onto a valid CPP name.
21839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21840
21841 # Sed expression to map a string onto a valid variable name.
21842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21843
21844
21845 exec 6>&1
21846
21847 # Save the log message, to keep $[0] and so on meaningful, and to
21848 # report actual input values of CONFIG_FILES etc. instead of their
21849 # values after options handling.
21850 ac_log="
21851 This file was extended by LLVM $as_me 3.2svn, which was
21852 generated by GNU Autoconf 2.60.  Invocation command line was
21853
21854   CONFIG_FILES    = $CONFIG_FILES
21855   CONFIG_HEADERS  = $CONFIG_HEADERS
21856   CONFIG_LINKS    = $CONFIG_LINKS
21857   CONFIG_COMMANDS = $CONFIG_COMMANDS
21858   $ $0 $@
21859
21860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21861 "
21862
21863 _ACEOF
21864
21865 cat >>$CONFIG_STATUS <<_ACEOF
21866 # Files that config.status was made for.
21867 config_files="$ac_config_files"
21868 config_headers="$ac_config_headers"
21869 config_commands="$ac_config_commands"
21870
21871 _ACEOF
21872
21873 cat >>$CONFIG_STATUS <<\_ACEOF
21874 ac_cs_usage="\
21875 \`$as_me' instantiates files from templates according to the
21876 current configuration.
21877
21878 Usage: $0 [OPTIONS] [FILE]...
21879
21880   -h, --help       print this help, then exit
21881   -V, --version    print version number, then exit
21882   -q, --quiet      do not print progress messages
21883   -d, --debug      don't remove temporary files
21884       --recheck    update $as_me by reconfiguring in the same conditions
21885   --file=FILE[:TEMPLATE]
21886                    instantiate the configuration file FILE
21887   --header=FILE[:TEMPLATE]
21888                    instantiate the configuration header FILE
21889
21890 Configuration files:
21891 $config_files
21892
21893 Configuration headers:
21894 $config_headers
21895
21896 Configuration commands:
21897 $config_commands
21898
21899 Report bugs to <bug-autoconf@gnu.org>."
21900
21901 _ACEOF
21902 cat >>$CONFIG_STATUS <<_ACEOF
21903 ac_cs_version="\\
21904 LLVM config.status 3.2svn
21905 configured by $0, generated by GNU Autoconf 2.60,
21906   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21907
21908 Copyright (C) 2006 Free Software Foundation, Inc.
21909 This config.status script is free software; the Free Software Foundation
21910 gives unlimited permission to copy, distribute and modify it."
21911
21912 ac_pwd='$ac_pwd'
21913 srcdir='$srcdir'
21914 INSTALL='$INSTALL'
21915 _ACEOF
21916
21917 cat >>$CONFIG_STATUS <<\_ACEOF
21918 # If no file are specified by the user, then we need to provide default
21919 # value.  By we need to know if files were specified by the user.
21920 ac_need_defaults=:
21921 while test $# != 0
21922 do
21923   case $1 in
21924   --*=*)
21925     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21926     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21927     ac_shift=:
21928     ;;
21929   *)
21930     ac_option=$1
21931     ac_optarg=$2
21932     ac_shift=shift
21933     ;;
21934   esac
21935
21936   case $ac_option in
21937   # Handling of the options.
21938   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21939     ac_cs_recheck=: ;;
21940   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21941     echo "$ac_cs_version"; exit ;;
21942   --debug | --debu | --deb | --de | --d | -d )
21943     debug=: ;;
21944   --file | --fil | --fi | --f )
21945     $ac_shift
21946     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21947     ac_need_defaults=false;;
21948   --header | --heade | --head | --hea )
21949     $ac_shift
21950     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21951     ac_need_defaults=false;;
21952   --he | --h)
21953     # Conflict between --help and --header
21954     { echo "$as_me: error: ambiguous option: $1
21955 Try \`$0 --help' for more information." >&2
21956    { (exit 1); exit 1; }; };;
21957   --help | --hel | -h )
21958     echo "$ac_cs_usage"; exit ;;
21959   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21960   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21961     ac_cs_silent=: ;;
21962
21963   # This is an error.
21964   -*) { echo "$as_me: error: unrecognized option: $1
21965 Try \`$0 --help' for more information." >&2
21966    { (exit 1); exit 1; }; } ;;
21967
21968   *) ac_config_targets="$ac_config_targets $1"
21969      ac_need_defaults=false ;;
21970
21971   esac
21972   shift
21973 done
21974
21975 ac_configure_extra_args=
21976
21977 if $ac_cs_silent; then
21978   exec 6>/dev/null
21979   ac_configure_extra_args="$ac_configure_extra_args --silent"
21980 fi
21981
21982 _ACEOF
21983 cat >>$CONFIG_STATUS <<_ACEOF
21984 if \$ac_cs_recheck; then
21985   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21986   CONFIG_SHELL=$SHELL
21987   export CONFIG_SHELL
21988   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21989 fi
21990
21991 _ACEOF
21992 cat >>$CONFIG_STATUS <<\_ACEOF
21993 exec 5>>config.log
21994 {
21995   echo
21996   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21997 ## Running $as_me. ##
21998 _ASBOX
21999   echo "$ac_log"
22000 } >&5
22001
22002 _ACEOF
22003 cat >>$CONFIG_STATUS <<_ACEOF
22004 #
22005 # INIT-COMMANDS
22006 #
22007 llvm_src="${srcdir}"
22008
22009 _ACEOF
22010
22011 cat >>$CONFIG_STATUS <<\_ACEOF
22012
22013 # Handling of arguments.
22014 for ac_config_target in $ac_config_targets
22015 do
22016   case $ac_config_target in
22017     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22018     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22019     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22020     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22021     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22022     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22023     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22024     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22025     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22026     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22027     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22028     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22029     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22030     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22031     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22032     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22033     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22034     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22035     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22036     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22037     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22038     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22039     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22040     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22041     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22042     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22043     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22044
22045   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22046 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22047    { (exit 1); exit 1; }; };;
22048   esac
22049 done
22050
22051
22052 # If the user did not use the arguments to specify the items to instantiate,
22053 # then the envvar interface is used.  Set only those that are not.
22054 # We use the long form for the default assignment because of an extremely
22055 # bizarre bug on SunOS 4.1.3.
22056 if $ac_need_defaults; then
22057   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22058   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22059   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22060 fi
22061
22062 # Have a temporary directory for convenience.  Make it in the build tree
22063 # simply because there is no reason against having it here, and in addition,
22064 # creating and moving files from /tmp can sometimes cause problems.
22065 # Hook for its removal unless debugging.
22066 # Note that there is a small window in which the directory will not be cleaned:
22067 # after its creation but before its name has been assigned to `$tmp'.
22068 $debug ||
22069 {
22070   tmp=
22071   trap 'exit_status=$?
22072   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22073 ' 0
22074   trap '{ (exit 1); exit 1; }' 1 2 13 15
22075 }
22076 # Create a (secure) tmp directory for tmp files.
22077
22078 {
22079   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22080   test -n "$tmp" && test -d "$tmp"
22081 }  ||
22082 {
22083   tmp=./conf$$-$RANDOM
22084   (umask 077 && mkdir "$tmp")
22085 } ||
22086 {
22087    echo "$me: cannot create a temporary directory in ." >&2
22088    { (exit 1); exit 1; }
22089 }
22090
22091 #
22092 # Set up the sed scripts for CONFIG_FILES section.
22093 #
22094
22095 # No need to generate the scripts if there are no CONFIG_FILES.
22096 # This happens for instance when ./config.status config.h
22097 if test -n "$CONFIG_FILES"; then
22098
22099 _ACEOF
22100
22101
22102
22103 ac_delim='%!_!# '
22104 for ac_last_try in false false false false false :; do
22105   cat >conf$$subs.sed <<_ACEOF
22106 SHELL!$SHELL$ac_delim
22107 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22108 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22109 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22110 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22111 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22112 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22113 exec_prefix!$exec_prefix$ac_delim
22114 prefix!$prefix$ac_delim
22115 program_transform_name!$program_transform_name$ac_delim
22116 bindir!$bindir$ac_delim
22117 sbindir!$sbindir$ac_delim
22118 libexecdir!$libexecdir$ac_delim
22119 datarootdir!$datarootdir$ac_delim
22120 datadir!$datadir$ac_delim
22121 sysconfdir!$sysconfdir$ac_delim
22122 sharedstatedir!$sharedstatedir$ac_delim
22123 localstatedir!$localstatedir$ac_delim
22124 includedir!$includedir$ac_delim
22125 oldincludedir!$oldincludedir$ac_delim
22126 docdir!$docdir$ac_delim
22127 infodir!$infodir$ac_delim
22128 htmldir!$htmldir$ac_delim
22129 dvidir!$dvidir$ac_delim
22130 pdfdir!$pdfdir$ac_delim
22131 psdir!$psdir$ac_delim
22132 libdir!$libdir$ac_delim
22133 localedir!$localedir$ac_delim
22134 mandir!$mandir$ac_delim
22135 DEFS!$DEFS$ac_delim
22136 ECHO_C!$ECHO_C$ac_delim
22137 ECHO_N!$ECHO_N$ac_delim
22138 ECHO_T!$ECHO_T$ac_delim
22139 LIBS!$LIBS$ac_delim
22140 build_alias!$build_alias$ac_delim
22141 host_alias!$host_alias$ac_delim
22142 target_alias!$target_alias$ac_delim
22143 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22144 CC!$CC$ac_delim
22145 CFLAGS!$CFLAGS$ac_delim
22146 LDFLAGS!$LDFLAGS$ac_delim
22147 CPPFLAGS!$CPPFLAGS$ac_delim
22148 ac_ct_CC!$ac_ct_CC$ac_delim
22149 EXEEXT!$EXEEXT$ac_delim
22150 OBJEXT!$OBJEXT$ac_delim
22151 CXX!$CXX$ac_delim
22152 CXXFLAGS!$CXXFLAGS$ac_delim
22153 ac_ct_CXX!$ac_ct_CXX$ac_delim
22154 CPP!$CPP$ac_delim
22155 subdirs!$subdirs$ac_delim
22156 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22157 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22158 build!$build$ac_delim
22159 build_cpu!$build_cpu$ac_delim
22160 build_vendor!$build_vendor$ac_delim
22161 build_os!$build_os$ac_delim
22162 host!$host$ac_delim
22163 host_cpu!$host_cpu$ac_delim
22164 host_vendor!$host_vendor$ac_delim
22165 host_os!$host_os$ac_delim
22166 target!$target$ac_delim
22167 target_cpu!$target_cpu$ac_delim
22168 target_vendor!$target_vendor$ac_delim
22169 target_os!$target_os$ac_delim
22170 OS!$OS$ac_delim
22171 HOST_OS!$HOST_OS$ac_delim
22172 TARGET_OS!$TARGET_OS$ac_delim
22173 LINKALL!$LINKALL$ac_delim
22174 NOLINKALL!$NOLINKALL$ac_delim
22175 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22176 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22177 ARCH!$ARCH$ac_delim
22178 HOST_ARCH!$HOST_ARCH$ac_delim
22179 ENDIAN!$ENDIAN$ac_delim
22180 GREP!$GREP$ac_delim
22181 EGREP!$EGREP$ac_delim
22182 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22183 BUILD_CC!$BUILD_CC$ac_delim
22184 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22185 BUILD_CXX!$BUILD_CXX$ac_delim
22186 CVSBUILD!$CVSBUILD$ac_delim
22187 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22188 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22189 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22190 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22191 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22192 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22193 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22194 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22195 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22196 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22197 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22198 JIT!$JIT$ac_delim
22199 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22200 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22201 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22202 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22203 _ACEOF
22204
22205   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22206     break
22207   elif $ac_last_try; then
22208     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22209 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22210    { (exit 1); exit 1; }; }
22211   else
22212     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22213   fi
22214 done
22215
22216 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22217 if test -n "$ac_eof"; then
22218   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22219   ac_eof=`expr $ac_eof + 1`
22220 fi
22221
22222 cat >>$CONFIG_STATUS <<_ACEOF
22223 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22225 _ACEOF
22226 sed '
22227 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22228 s/^/s,@/; s/!/@,|#_!!_#|/
22229 :n
22230 t n
22231 s/'"$ac_delim"'$/,g/; t
22232 s/$/\\/; p
22233 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22234 ' >>$CONFIG_STATUS <conf$$subs.sed
22235 rm -f conf$$subs.sed
22236 cat >>$CONFIG_STATUS <<_ACEOF
22237 CEOF$ac_eof
22238 _ACEOF
22239
22240
22241 ac_delim='%!_!# '
22242 for ac_last_try in false false false false false :; do
22243   cat >conf$$subs.sed <<_ACEOF
22244 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22245 ENABLE_PIC!$ENABLE_PIC$ac_delim
22246 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22247 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22248 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22249 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22250 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22251 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22252 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22253 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22254 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22255 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22256 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22257 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22258 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22259 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22260 NM!$NM$ac_delim
22261 ifGNUmake!$ifGNUmake$ac_delim
22262 LN_S!$LN_S$ac_delim
22263 CMP!$CMP$ac_delim
22264 CP!$CP$ac_delim
22265 DATE!$DATE$ac_delim
22266 FIND!$FIND$ac_delim
22267 MKDIR!$MKDIR$ac_delim
22268 MV!$MV$ac_delim
22269 RANLIB!$RANLIB$ac_delim
22270 AR!$AR$ac_delim
22271 RM!$RM$ac_delim
22272 SED!$SED$ac_delim
22273 TAR!$TAR$ac_delim
22274 BINPWD!$BINPWD$ac_delim
22275 GRAPHVIZ!$GRAPHVIZ$ac_delim
22276 DOT!$DOT$ac_delim
22277 FDP!$FDP$ac_delim
22278 NEATO!$NEATO$ac_delim
22279 TWOPI!$TWOPI$ac_delim
22280 CIRCO!$CIRCO$ac_delim
22281 GV!$GV$ac_delim
22282 DOTTY!$DOTTY$ac_delim
22283 XDOT_PY!$XDOT_PY$ac_delim
22284 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22285 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22286 INSTALL_DATA!$INSTALL_DATA$ac_delim
22287 BZIP2!$BZIP2$ac_delim
22288 CAT!$CAT$ac_delim
22289 DOXYGEN!$DOXYGEN$ac_delim
22290 GROFF!$GROFF$ac_delim
22291 GZIPBIN!$GZIPBIN$ac_delim
22292 PDFROFF!$PDFROFF$ac_delim
22293 ZIP!$ZIP$ac_delim
22294 OCAMLC!$OCAMLC$ac_delim
22295 OCAMLOPT!$OCAMLOPT$ac_delim
22296 OCAMLDEP!$OCAMLDEP$ac_delim
22297 OCAMLDOC!$OCAMLDOC$ac_delim
22298 GAS!$GAS$ac_delim
22299 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22300 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22301 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22302 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22303 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22304 LIBADD_DL!$LIBADD_DL$ac_delim
22305 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22306 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22307 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22308 USE_UDIS86!$USE_UDIS86$ac_delim
22309 USE_OPROFILE!$USE_OPROFILE$ac_delim
22310 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22311 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22312 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22313 XML2CONFIG!$XML2CONFIG$ac_delim
22314 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22315 LIBXML2_INC!$LIBXML2_INC$ac_delim
22316 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22317 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22318 MMAP_FILE!$MMAP_FILE$ac_delim
22319 SHLIBEXT!$SHLIBEXT$ac_delim
22320 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22321 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22322 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22323 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22324 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22325 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22326 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22327 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22328 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22329 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22330 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22331 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22332 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22333 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22334 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22335 RPATH!$RPATH$ac_delim
22336 RDYNAMIC!$RDYNAMIC$ac_delim
22337 LIBOBJS!$LIBOBJS$ac_delim
22338 LTLIBOBJS!$LTLIBOBJS$ac_delim
22339 _ACEOF
22340
22341   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
22342     break
22343   elif $ac_last_try; then
22344     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22345 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22346    { (exit 1); exit 1; }; }
22347   else
22348     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22349   fi
22350 done
22351
22352 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22353 if test -n "$ac_eof"; then
22354   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22355   ac_eof=`expr $ac_eof + 1`
22356 fi
22357
22358 cat >>$CONFIG_STATUS <<_ACEOF
22359 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22361 _ACEOF
22362 sed '
22363 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22364 s/^/s,@/; s/!/@,|#_!!_#|/
22365 :n
22366 t n
22367 s/'"$ac_delim"'$/,g/; t
22368 s/$/\\/; p
22369 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22370 ' >>$CONFIG_STATUS <conf$$subs.sed
22371 rm -f conf$$subs.sed
22372 cat >>$CONFIG_STATUS <<_ACEOF
22373 :end
22374 s/|#_!!_#|//g
22375 CEOF$ac_eof
22376 _ACEOF
22377
22378
22379 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22380 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22381 # trailing colons and then remove the whole line if VPATH becomes empty
22382 # (actually we leave an empty line to preserve line numbers).
22383 if test "x$srcdir" = x.; then
22384   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22385 s/:*\$(srcdir):*/:/
22386 s/:*\${srcdir}:*/:/
22387 s/:*@srcdir@:*/:/
22388 s/^\([^=]*=[     ]*\):*/\1/
22389 s/:*$//
22390 s/^[^=]*=[       ]*$//
22391 }'
22392 fi
22393
22394 cat >>$CONFIG_STATUS <<\_ACEOF
22395 fi # test -n "$CONFIG_FILES"
22396
22397
22398 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22399 do
22400   case $ac_tag in
22401   :[FHLC]) ac_mode=$ac_tag; continue;;
22402   esac
22403   case $ac_mode$ac_tag in
22404   :[FHL]*:*);;
22405   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22406 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22407    { (exit 1); exit 1; }; };;
22408   :[FH]-) ac_tag=-:-;;
22409   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22410   esac
22411   ac_save_IFS=$IFS
22412   IFS=:
22413   set x $ac_tag
22414   IFS=$ac_save_IFS
22415   shift
22416   ac_file=$1
22417   shift
22418
22419   case $ac_mode in
22420   :L) ac_source=$1;;
22421   :[FH])
22422     ac_file_inputs=
22423     for ac_f
22424     do
22425       case $ac_f in
22426       -) ac_f="$tmp/stdin";;
22427       *) # Look for the file first in the build tree, then in the source tree
22428          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22429          # because $ac_f cannot contain `:'.
22430          test -f "$ac_f" ||
22431            case $ac_f in
22432            [\\/$]*) false;;
22433            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22434            esac ||
22435            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22436 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22437    { (exit 1); exit 1; }; };;
22438       esac
22439       ac_file_inputs="$ac_file_inputs $ac_f"
22440     done
22441
22442     # Let's still pretend it is `configure' which instantiates (i.e., don't
22443     # use $as_me), people would be surprised to read:
22444     #    /* config.h.  Generated by config.status.  */
22445     configure_input="Generated from "`IFS=:
22446           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22447     if test x"$ac_file" != x-; then
22448       configure_input="$ac_file.  $configure_input"
22449       { echo "$as_me:$LINENO: creating $ac_file" >&5
22450 echo "$as_me: creating $ac_file" >&6;}
22451     fi
22452
22453     case $ac_tag in
22454     *:-:* | *:-) cat >"$tmp/stdin";;
22455     esac
22456     ;;
22457   esac
22458
22459   ac_dir=`$as_dirname -- "$ac_file" ||
22460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22461          X"$ac_file" : 'X\(//\)[^/]' \| \
22462          X"$ac_file" : 'X\(//\)$' \| \
22463          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22464 echo X"$ac_file" |
22465     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22466             s//\1/
22467             q
22468           }
22469           /^X\(\/\/\)[^/].*/{
22470             s//\1/
22471             q
22472           }
22473           /^X\(\/\/\)$/{
22474             s//\1/
22475             q
22476           }
22477           /^X\(\/\).*/{
22478             s//\1/
22479             q
22480           }
22481           s/.*/./; q'`
22482   { as_dir="$ac_dir"
22483   case $as_dir in #(
22484   -*) as_dir=./$as_dir;;
22485   esac
22486   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22487     as_dirs=
22488     while :; do
22489       case $as_dir in #(
22490       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22491       *) as_qdir=$as_dir;;
22492       esac
22493       as_dirs="'$as_qdir' $as_dirs"
22494       as_dir=`$as_dirname -- "$as_dir" ||
22495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22496          X"$as_dir" : 'X\(//\)[^/]' \| \
22497          X"$as_dir" : 'X\(//\)$' \| \
22498          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22499 echo X"$as_dir" |
22500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22501             s//\1/
22502             q
22503           }
22504           /^X\(\/\/\)[^/].*/{
22505             s//\1/
22506             q
22507           }
22508           /^X\(\/\/\)$/{
22509             s//\1/
22510             q
22511           }
22512           /^X\(\/\).*/{
22513             s//\1/
22514             q
22515           }
22516           s/.*/./; q'`
22517       test -d "$as_dir" && break
22518     done
22519     test -z "$as_dirs" || eval "mkdir $as_dirs"
22520   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22521 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22522    { (exit 1); exit 1; }; }; }
22523   ac_builddir=.
22524
22525 case "$ac_dir" in
22526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22527 *)
22528   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22529   # A ".." for each directory in $ac_dir_suffix.
22530   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22531   case $ac_top_builddir_sub in
22532   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22533   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22534   esac ;;
22535 esac
22536 ac_abs_top_builddir=$ac_pwd
22537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22538 # for backward compatibility:
22539 ac_top_builddir=$ac_top_build_prefix
22540
22541 case $srcdir in
22542   .)  # We are building in place.
22543     ac_srcdir=.
22544     ac_top_srcdir=$ac_top_builddir_sub
22545     ac_abs_top_srcdir=$ac_pwd ;;
22546   [\\/]* | ?:[\\/]* )  # Absolute name.
22547     ac_srcdir=$srcdir$ac_dir_suffix;
22548     ac_top_srcdir=$srcdir
22549     ac_abs_top_srcdir=$srcdir ;;
22550   *) # Relative name.
22551     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22552     ac_top_srcdir=$ac_top_build_prefix$srcdir
22553     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22554 esac
22555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22556
22557
22558   case $ac_mode in
22559   :F)
22560   #
22561   # CONFIG_FILE
22562   #
22563
22564   case $INSTALL in
22565   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22566   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22567   esac
22568 _ACEOF
22569
22570 cat >>$CONFIG_STATUS <<\_ACEOF
22571 # If the template does not know about datarootdir, expand it.
22572 # FIXME: This hack should be removed a few years after 2.60.
22573 ac_datarootdir_hack=; ac_datarootdir_seen=
22574
22575 case `sed -n '/datarootdir/ {
22576   p
22577   q
22578 }
22579 /@datadir@/p
22580 /@docdir@/p
22581 /@infodir@/p
22582 /@localedir@/p
22583 /@mandir@/p
22584 ' $ac_file_inputs` in
22585 *datarootdir*) ac_datarootdir_seen=yes;;
22586 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22587   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22588 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22589 _ACEOF
22590 cat >>$CONFIG_STATUS <<_ACEOF
22591   ac_datarootdir_hack='
22592   s&@datadir@&$datadir&g
22593   s&@docdir@&$docdir&g
22594   s&@infodir@&$infodir&g
22595   s&@localedir@&$localedir&g
22596   s&@mandir@&$mandir&g
22597     s&\\\${datarootdir}&$datarootdir&g' ;;
22598 esac
22599 _ACEOF
22600
22601 # Neutralize VPATH when `$srcdir' = `.'.
22602 # Shell code in configure.ac might set extrasub.
22603 # FIXME: do we really want to maintain this feature?
22604 cat >>$CONFIG_STATUS <<_ACEOF
22605   sed "$ac_vpsub
22606 $extrasub
22607 _ACEOF
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22609 :t
22610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22611 s&@configure_input@&$configure_input&;t t
22612 s&@top_builddir@&$ac_top_builddir_sub&;t t
22613 s&@srcdir@&$ac_srcdir&;t t
22614 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22615 s&@top_srcdir@&$ac_top_srcdir&;t t
22616 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22617 s&@builddir@&$ac_builddir&;t t
22618 s&@abs_builddir@&$ac_abs_builddir&;t t
22619 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22620 s&@INSTALL@&$ac_INSTALL&;t t
22621 $ac_datarootdir_hack
22622 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22623
22624 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22625   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22626   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22627   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22628 which seems to be undefined.  Please make sure it is defined." >&5
22629 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22630 which seems to be undefined.  Please make sure it is defined." >&2;}
22631
22632   rm -f "$tmp/stdin"
22633   case $ac_file in
22634   -) cat "$tmp/out"; rm -f "$tmp/out";;
22635   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22636   esac
22637  ;;
22638   :H)
22639   #
22640   # CONFIG_HEADER
22641   #
22642 _ACEOF
22643
22644 # Transform confdefs.h into a sed script `conftest.defines', that
22645 # substitutes the proper values into config.h.in to produce config.h.
22646 rm -f conftest.defines conftest.tail
22647 # First, append a space to every undef/define line, to ease matching.
22648 echo 's/$/ /' >conftest.defines
22649 # Then, protect against being on the right side of a sed subst, or in
22650 # an unquoted here document, in config.status.  If some macros were
22651 # called several times there might be several #defines for the same
22652 # symbol, which is useless.  But do not sort them, since the last
22653 # AC_DEFINE must be honored.
22654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22655 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22656 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22657 # PARAMS is the parameter list in the macro definition--in most cases, it's
22658 # just an empty string.
22659 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22660 ac_dB='\\)[      (].*,\\1define\\2'
22661 ac_dC=' '
22662 ac_dD=' ,'
22663
22664 uniq confdefs.h |
22665   sed -n '
22666         t rset
22667         :rset
22668         s/^[     ]*#[    ]*define[       ][      ]*//
22669         t ok
22670         d
22671         :ok
22672         s/[\\&,]/\\&/g
22673         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22674         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22675   ' >>conftest.defines
22676
22677 # Remove the space that was appended to ease matching.
22678 # Then replace #undef with comments.  This is necessary, for
22679 # example, in the case of _POSIX_SOURCE, which is predefined and required
22680 # on some systems where configure will not decide to define it.
22681 # (The regexp can be short, since the line contains either #define or #undef.)
22682 echo 's/ $//
22683 s,^[     #]*u.*,/* & */,' >>conftest.defines
22684
22685 # Break up conftest.defines:
22686 ac_max_sed_lines=50
22687
22688 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22689 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22690 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22691 # et cetera.
22692 ac_in='$ac_file_inputs'
22693 ac_out='"$tmp/out1"'
22694 ac_nxt='"$tmp/out2"'
22695
22696 while :
22697 do
22698   # Write a here document:
22699     cat >>$CONFIG_STATUS <<_ACEOF
22700     # First, check the format of the line:
22701     cat >"\$tmp/defines.sed" <<\\CEOF
22702 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22703 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22704 b
22705 :def
22706 _ACEOF
22707   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22708   echo 'CEOF
22709     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22710   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22711   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22712   grep . conftest.tail >/dev/null || break
22713   rm -f conftest.defines
22714   mv conftest.tail conftest.defines
22715 done
22716 rm -f conftest.defines conftest.tail
22717
22718 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22719 cat >>$CONFIG_STATUS <<\_ACEOF
22720   if test x"$ac_file" != x-; then
22721     echo "/* $configure_input  */" >"$tmp/config.h"
22722     cat "$ac_result" >>"$tmp/config.h"
22723     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22724       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22725 echo "$as_me: $ac_file is unchanged" >&6;}
22726     else
22727       rm -f $ac_file
22728       mv "$tmp/config.h" $ac_file
22729     fi
22730   else
22731     echo "/* $configure_input  */"
22732     cat "$ac_result"
22733   fi
22734   rm -f "$tmp/out12"
22735  ;;
22736
22737   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22738 echo "$as_me: executing $ac_file commands" >&6;}
22739  ;;
22740   esac
22741
22742
22743   case $ac_file$ac_mode in
22744     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22745    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22746     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22747    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22748     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22749    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22750     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22751    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22752     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22753    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22754     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22755    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22756     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22757    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22758     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22759    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22760     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22761    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22762     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22763    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22764     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22765    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22766     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22767    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22768     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22769    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22770
22771   esac
22772 done # for ac_tag
22773
22774
22775 { (exit 0); exit 0; }
22776 _ACEOF
22777 chmod +x $CONFIG_STATUS
22778 ac_clean_files=$ac_clean_files_save
22779
22780
22781 # configure is writing to config.log, and then calls config.status.
22782 # config.status does its own redirection, appending to config.log.
22783 # Unfortunately, on DOS this fails, as config.log is still kept open
22784 # by configure, so config.status won't be able to write to it; its
22785 # output is simply discarded.  So we exec the FD to /dev/null,
22786 # effectively closing config.log, so it can be properly (re)opened and
22787 # appended to by config.status.  When coming back to configure, we
22788 # need to make the FD available again.
22789 if test "$no_create" != yes; then
22790   ac_cs_success=:
22791   ac_config_status_args=
22792   test "$silent" = yes &&
22793     ac_config_status_args="$ac_config_status_args --quiet"
22794   exec 5>/dev/null
22795   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22796   exec 5>>config.log
22797   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22798   # would make configure fail if this is the last instruction.
22799   $ac_cs_success || { (exit 1); exit 1; }
22800 fi
22801
22802 #
22803 # CONFIG_SUBDIRS section.
22804 #
22805 if test "$no_recursion" != yes; then
22806
22807   # Remove --cache-file and --srcdir arguments so they do not pile up.
22808   ac_sub_configure_args=
22809   ac_prev=
22810   eval "set x $ac_configure_args"
22811   shift
22812   for ac_arg
22813   do
22814     if test -n "$ac_prev"; then
22815       ac_prev=
22816       continue
22817     fi
22818     case $ac_arg in
22819     -cache-file | --cache-file | --cache-fil | --cache-fi \
22820     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22821       ac_prev=cache_file ;;
22822     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22823     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22824     | --c=*)
22825       ;;
22826     --config-cache | -C)
22827       ;;
22828     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22829       ac_prev=srcdir ;;
22830     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22831       ;;
22832     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22833       ac_prev=prefix ;;
22834     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22835       ;;
22836     *)
22837       case $ac_arg in
22838       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22839       esac
22840       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22841     esac
22842   done
22843
22844   # Always prepend --prefix to ensure using the same prefix
22845   # in subdir configurations.
22846   ac_arg="--prefix=$prefix"
22847   case $ac_arg in
22848   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22849   esac
22850   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22851
22852   ac_popdir=`pwd`
22853   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22854
22855     # Do not complain, so a configure script can configure whichever
22856     # parts of a large source tree are present.
22857     test -d "$srcdir/$ac_dir" || continue
22858
22859     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22860     echo "$as_me:$LINENO: $ac_msg" >&5
22861     echo "$ac_msg" >&6
22862     { as_dir="$ac_dir"
22863   case $as_dir in #(
22864   -*) as_dir=./$as_dir;;
22865   esac
22866   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22867     as_dirs=
22868     while :; do
22869       case $as_dir in #(
22870       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22871       *) as_qdir=$as_dir;;
22872       esac
22873       as_dirs="'$as_qdir' $as_dirs"
22874       as_dir=`$as_dirname -- "$as_dir" ||
22875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22876          X"$as_dir" : 'X\(//\)[^/]' \| \
22877          X"$as_dir" : 'X\(//\)$' \| \
22878          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22879 echo X"$as_dir" |
22880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22881             s//\1/
22882             q
22883           }
22884           /^X\(\/\/\)[^/].*/{
22885             s//\1/
22886             q
22887           }
22888           /^X\(\/\/\)$/{
22889             s//\1/
22890             q
22891           }
22892           /^X\(\/\).*/{
22893             s//\1/
22894             q
22895           }
22896           s/.*/./; q'`
22897       test -d "$as_dir" && break
22898     done
22899     test -z "$as_dirs" || eval "mkdir $as_dirs"
22900   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22901 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22902    { (exit 1); exit 1; }; }; }
22903     ac_builddir=.
22904
22905 case "$ac_dir" in
22906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22907 *)
22908   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22909   # A ".." for each directory in $ac_dir_suffix.
22910   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22911   case $ac_top_builddir_sub in
22912   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22913   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22914   esac ;;
22915 esac
22916 ac_abs_top_builddir=$ac_pwd
22917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22918 # for backward compatibility:
22919 ac_top_builddir=$ac_top_build_prefix
22920
22921 case $srcdir in
22922   .)  # We are building in place.
22923     ac_srcdir=.
22924     ac_top_srcdir=$ac_top_builddir_sub
22925     ac_abs_top_srcdir=$ac_pwd ;;
22926   [\\/]* | ?:[\\/]* )  # Absolute name.
22927     ac_srcdir=$srcdir$ac_dir_suffix;
22928     ac_top_srcdir=$srcdir
22929     ac_abs_top_srcdir=$srcdir ;;
22930   *) # Relative name.
22931     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22932     ac_top_srcdir=$ac_top_build_prefix$srcdir
22933     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22934 esac
22935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22936
22937
22938     cd "$ac_dir"
22939
22940     # Check for guested configure; otherwise get Cygnus style configure.
22941     if test -f "$ac_srcdir/configure.gnu"; then
22942       ac_sub_configure=$ac_srcdir/configure.gnu
22943     elif test -f "$ac_srcdir/configure"; then
22944       ac_sub_configure=$ac_srcdir/configure
22945     elif test -f "$ac_srcdir/configure.in"; then
22946       # This should be Cygnus configure.
22947       ac_sub_configure=$ac_aux_dir/configure
22948     else
22949       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22951       ac_sub_configure=
22952     fi
22953
22954     # The recursion is here.
22955     if test -n "$ac_sub_configure"; then
22956       # Make the cache file name correct relative to the subdirectory.
22957       case $cache_file in
22958       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22959       *) # Relative name.
22960         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22961       esac
22962
22963       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22964 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22965       # The eval makes quoting arguments work.
22966       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22967            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22968         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22969 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22970    { (exit 1); exit 1; }; }
22971     fi
22972
22973     cd "$ac_popdir"
22974   done
22975 fi
22976