Cmake: add compiler option in a more idiomatic way
[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.4svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 LLVM_ENABLE_ZLIB
707 ENABLE_PIC
708 ENABLE_SHARED
709 ENABLE_EMBED_STDCXX
710 ENABLE_TIMESTAMPS
711 ENABLE_BACKTRACES
712 TARGETS_TO_BUILD
713 LLVM_ENUM_TARGETS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
717 OPTIMIZE_OPTION
718 EXTRA_OPTIONS
719 EXTRA_LD_OPTIONS
720 CLANG_SRC_ROOT
721 BINUTILS_INCDIR
722 INTERNAL_PREFIX
723 NM
724 ifGNUmake
725 LN_S
726 CMP
727 CP
728 DATE
729 FIND
730 MKDIR
731 MV
732 RANLIB
733 AR
734 RM
735 SED
736 TAR
737 BINPWD
738 GRAPHVIZ
739 DOT
740 FDP
741 NEATO
742 TWOPI
743 CIRCO
744 GV
745 DOTTY
746 XDOT_PY
747 INSTALL_PROGRAM
748 INSTALL_SCRIPT
749 INSTALL_DATA
750 BZIP2
751 CAT
752 DOXYGEN
753 GROFF
754 GZIPBIN
755 PDFROFF
756 ZIP
757 OCAMLC
758 OCAMLOPT
759 OCAMLDEP
760 OCAMLDOC
761 GAS
762 HAVE_LINK_VERSION_SCRIPT
763 INSTALL_LTDL_TRUE
764 INSTALL_LTDL_FALSE
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
767 LIBADD_DL
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 CXXCPP
781 HAVE_PTHREAD
782 HAVE_LIBZ
783 HUGE_VAL_SANITY
784 MMAP_FILE
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_DATADIR
790 LLVM_DOCSDIR
791 LLVM_ETCDIR
792 LLVM_INCLUDEDIR
793 LLVM_INFODIR
794 LLVM_MANDIR
795 LLVM_CONFIGTIME
796 BINDINGS_TO_BUILD
797 ALL_BINDINGS
798 OCAML_LIBDIR
799 ENABLE_VISIBILITY_INLINES_HIDDEN
800 RPATH
801 RDYNAMIC
802 program_prefix
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 CXX
814 CXXFLAGS
815 CCC
816 CPP
817 CXXCPP'
818 ac_subdirs_all='projects/llvm-gcc
819 projects/test-suite
820 projects/llvm-test
821 projects/poolalloc
822 projects/llvm-poolalloc
823 projects/sample
824 projects/privbracket
825 projects/llvm-stacker
826 projects/llvm-reopt
827 projects/llvm-java
828 projects/llvm-tv
829 projects/safecode
830 projects/llvm-kernel
831 tools/polly'
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883   # If the previous option needs an argument, assign it.
884   if test -n "$ac_prev"; then
885     eval $ac_prev=\$ac_option
886     ac_prev=
887     continue
888   fi
889
890   case $ac_option in
891   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892   *)    ac_optarg=yes ;;
893   esac
894
895   # Accept the important Cygnus configure options, so we can diagnose typos.
896
897   case $ac_dashdash$ac_option in
898   --)
899     ac_dashdash=yes ;;
900
901   -bindir | --bindir | --bindi | --bind | --bin | --bi)
902     ac_prev=bindir ;;
903   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904     bindir=$ac_optarg ;;
905
906   -build | --build | --buil | --bui | --bu)
907     ac_prev=build_alias ;;
908   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909     build_alias=$ac_optarg ;;
910
911   -cache-file | --cache-file | --cache-fil | --cache-fi \
912   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913     ac_prev=cache_file ;;
914   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916     cache_file=$ac_optarg ;;
917
918   --config-cache | -C)
919     cache_file=config.cache ;;
920
921   -datadir | --datadir | --datadi | --datad)
922     ac_prev=datadir ;;
923   -datadir=* | --datadir=* | --datadi=* | --datad=*)
924     datadir=$ac_optarg ;;
925
926   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927   | --dataroo | --dataro | --datar)
928     ac_prev=datarootdir ;;
929   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931     datarootdir=$ac_optarg ;;
932
933   -disable-* | --disable-*)
934     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935     # Reject names that are not valid shell variable names.
936     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938    { (exit 1); exit 1; }; }
939     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940     eval enable_$ac_feature=no ;;
941
942   -docdir | --docdir | --docdi | --doc | --do)
943     ac_prev=docdir ;;
944   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945     docdir=$ac_optarg ;;
946
947   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948     ac_prev=dvidir ;;
949   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950     dvidir=$ac_optarg ;;
951
952   -enable-* | --enable-*)
953     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954     # Reject names that are not valid shell variable names.
955     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957    { (exit 1); exit 1; }; }
958     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959     eval enable_$ac_feature=\$ac_optarg ;;
960
961   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963   | --exec | --exe | --ex)
964     ac_prev=exec_prefix ;;
965   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967   | --exec=* | --exe=* | --ex=*)
968     exec_prefix=$ac_optarg ;;
969
970   -gas | --gas | --ga | --g)
971     # Obsolete; use --with-gas.
972     with_gas=yes ;;
973
974   -help | --help | --hel | --he | -h)
975     ac_init_help=long ;;
976   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977     ac_init_help=recursive ;;
978   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979     ac_init_help=short ;;
980
981   -host | --host | --hos | --ho)
982     ac_prev=host_alias ;;
983   -host=* | --host=* | --hos=* | --ho=*)
984     host_alias=$ac_optarg ;;
985
986   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987     ac_prev=htmldir ;;
988   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989   | --ht=*)
990     htmldir=$ac_optarg ;;
991
992   -includedir | --includedir | --includedi | --included | --include \
993   | --includ | --inclu | --incl | --inc)
994     ac_prev=includedir ;;
995   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996   | --includ=* | --inclu=* | --incl=* | --inc=*)
997     includedir=$ac_optarg ;;
998
999   -infodir | --infodir | --infodi | --infod | --info | --inf)
1000     ac_prev=infodir ;;
1001   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002     infodir=$ac_optarg ;;
1003
1004   -libdir | --libdir | --libdi | --libd)
1005     ac_prev=libdir ;;
1006   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007     libdir=$ac_optarg ;;
1008
1009   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010   | --libexe | --libex | --libe)
1011     ac_prev=libexecdir ;;
1012   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013   | --libexe=* | --libex=* | --libe=*)
1014     libexecdir=$ac_optarg ;;
1015
1016   -localedir | --localedir | --localedi | --localed | --locale)
1017     ac_prev=localedir ;;
1018   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019     localedir=$ac_optarg ;;
1020
1021   -localstatedir | --localstatedir | --localstatedi | --localstated \
1022   | --localstate | --localstat | --localsta | --localst | --locals)
1023     ac_prev=localstatedir ;;
1024   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026     localstatedir=$ac_optarg ;;
1027
1028   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029     ac_prev=mandir ;;
1030   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031     mandir=$ac_optarg ;;
1032
1033   -nfp | --nfp | --nf)
1034     # Obsolete; use --without-fp.
1035     with_fp=no ;;
1036
1037   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038   | --no-cr | --no-c | -n)
1039     no_create=yes ;;
1040
1041   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043     no_recursion=yes ;;
1044
1045   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047   | --oldin | --oldi | --old | --ol | --o)
1048     ac_prev=oldincludedir ;;
1049   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052     oldincludedir=$ac_optarg ;;
1053
1054   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055     ac_prev=prefix ;;
1056   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057     prefix=$ac_optarg ;;
1058
1059   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060   | --program-pre | --program-pr | --program-p)
1061     ac_prev=program_prefix ;;
1062   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064     program_prefix=$ac_optarg ;;
1065
1066   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067   | --program-suf | --program-su | --program-s)
1068     ac_prev=program_suffix ;;
1069   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071     program_suffix=$ac_optarg ;;
1072
1073   -program-transform-name | --program-transform-name \
1074   | --program-transform-nam | --program-transform-na \
1075   | --program-transform-n | --program-transform- \
1076   | --program-transform | --program-transfor \
1077   | --program-transfo | --program-transf \
1078   | --program-trans | --program-tran \
1079   | --progr-tra | --program-tr | --program-t)
1080     ac_prev=program_transform_name ;;
1081   -program-transform-name=* | --program-transform-name=* \
1082   | --program-transform-nam=* | --program-transform-na=* \
1083   | --program-transform-n=* | --program-transform-=* \
1084   | --program-transform=* | --program-transfor=* \
1085   | --program-transfo=* | --program-transf=* \
1086   | --program-trans=* | --program-tran=* \
1087   | --progr-tra=* | --program-tr=* | --program-t=*)
1088     program_transform_name=$ac_optarg ;;
1089
1090   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091     ac_prev=pdfdir ;;
1092   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093     pdfdir=$ac_optarg ;;
1094
1095   -psdir | --psdir | --psdi | --psd | --ps)
1096     ac_prev=psdir ;;
1097   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098     psdir=$ac_optarg ;;
1099
1100   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101   | -silent | --silent | --silen | --sile | --sil)
1102     silent=yes ;;
1103
1104   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105     ac_prev=sbindir ;;
1106   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107   | --sbi=* | --sb=*)
1108     sbindir=$ac_optarg ;;
1109
1110   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112   | --sharedst | --shareds | --shared | --share | --shar \
1113   | --sha | --sh)
1114     ac_prev=sharedstatedir ;;
1115   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118   | --sha=* | --sh=*)
1119     sharedstatedir=$ac_optarg ;;
1120
1121   -site | --site | --sit)
1122     ac_prev=site ;;
1123   -site=* | --site=* | --sit=*)
1124     site=$ac_optarg ;;
1125
1126   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127     ac_prev=srcdir ;;
1128   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129     srcdir=$ac_optarg ;;
1130
1131   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132   | --syscon | --sysco | --sysc | --sys | --sy)
1133     ac_prev=sysconfdir ;;
1134   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136     sysconfdir=$ac_optarg ;;
1137
1138   -target | --target | --targe | --targ | --tar | --ta | --t)
1139     ac_prev=target_alias ;;
1140   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141     target_alias=$ac_optarg ;;
1142
1143   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144     verbose=yes ;;
1145
1146   -version | --version | --versio | --versi | --vers | -V)
1147     ac_init_version=: ;;
1148
1149   -with-* | --with-*)
1150     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1157
1158   -without-* | --without-*)
1159     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1162       { echo "$as_me: error: invalid package name: $ac_package" >&2
1163    { (exit 1); exit 1; }; }
1164     ac_package=`echo $ac_package | sed 's/-/_/g'`
1165     eval with_$ac_package=no ;;
1166
1167   --x)
1168     # Obsolete; use --with-x.
1169     with_x=yes ;;
1170
1171   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172   | --x-incl | --x-inc | --x-in | --x-i)
1173     ac_prev=x_includes ;;
1174   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176     x_includes=$ac_optarg ;;
1177
1178   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180     ac_prev=x_libraries ;;
1181   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183     x_libraries=$ac_optarg ;;
1184
1185   -*) { echo "$as_me: error: unrecognized option: $ac_option
1186 Try \`$0 --help' for more information." >&2
1187    { (exit 1); exit 1; }; }
1188     ;;
1189
1190   *=*)
1191     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195    { (exit 1); exit 1; }; }
1196     eval $ac_envvar=\$ac_optarg
1197     export $ac_envvar ;;
1198
1199   *)
1200     # FIXME: should be removed in autoconf 3.0.
1201     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205     ;;
1206
1207   esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212   { echo "$as_me: error: missing argument to $ac_option" >&2
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 # Be sure to have absolute directory names.
1217 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218                 datadir sysconfdir sharedstatedir localstatedir includedir \
1219                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220                 libdir localedir mandir
1221 do
1222   eval ac_val=\$$ac_var
1223   case $ac_val in
1224     [\\/$]* | ?:[\\/]* )  continue;;
1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226   esac
1227   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228    { (exit 1); exit 1; }; }
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240   if test "x$build_alias" = x; then
1241     cross_compiling=maybe
1242     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243     If a cross compiler is detected then cross compile mode will be used." >&2
1244   elif test "x$build_alias" != "x$host_alias"; then
1245     cross_compiling=yes
1246   fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258   { echo "$as_me: error: Working directory cannot be determined" >&2
1259    { (exit 1); exit 1; }; }
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261   { echo "$as_me: error: pwd does not report name of working directory" >&2
1262    { (exit 1); exit 1; }; }
1263
1264
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267   ac_srcdir_defaulted=yes
1268   # Try the directory containing this script, then the parent directory.
1269   ac_confdir=`$as_dirname -- "$0" ||
1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271          X"$0" : 'X\(//\)[^/]' \| \
1272          X"$0" : 'X\(//\)$' \| \
1273          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 echo X"$0" |
1275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)[^/].*/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\/\)$/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\).*/{
1288             s//\1/
1289             q
1290           }
1291           s/.*/./; q'`
1292   srcdir=$ac_confdir
1293   if test ! -r "$srcdir/$ac_unique_file"; then
1294     srcdir=..
1295   fi
1296 else
1297   ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302    { (exit 1); exit 1; }; }
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307    { (exit 1); exit 1; }; }
1308         pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311   srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321   eval ac_env_${ac_var}_value=\$${ac_var}
1322   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330   # Omit some internal or obsolete options to make the list less imposing.
1331   # This message is too long to be a string in the A/UX 3.1 sh.
1332   cat <<_ACEOF
1333 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343   -h, --help              display this help and exit
1344       --help=short        display options specific to this package
1345       --help=recursive    display the short help of all the included packages
1346   -V, --version           display version information and exit
1347   -q, --quiet, --silent   do not print \`checking...' messages
1348       --cache-file=FILE   cache test results in FILE [disabled]
1349   -C, --config-cache      alias for \`--cache-file=config.cache'
1350   -n, --no-create         do not create output files
1351       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354   --prefix=PREFIX         install architecture-independent files in PREFIX
1355                           [$ac_default_prefix]
1356   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                           [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367   --bindir=DIR           user executables [EPREFIX/bin]
1368   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1369   --libexecdir=DIR       program executables [EPREFIX/libexec]
1370   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1371   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1372   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1373   --libdir=DIR           object code libraries [EPREFIX/lib]
1374   --includedir=DIR       C header files [PREFIX/include]
1375   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1376   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1377   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1378   --infodir=DIR          info documentation [DATAROOTDIR/info]
1379   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1380   --mandir=DIR           man documentation [DATAROOTDIR/man]
1381   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1382   --htmldir=DIR          html documentation [DOCDIR]
1383   --dvidir=DIR           dvi documentation [DOCDIR]
1384   --pdfdir=DIR           pdf documentation [DOCDIR]
1385   --psdir=DIR            ps documentation [DOCDIR]
1386 _ACEOF
1387
1388   cat <<\_ACEOF
1389
1390 System types:
1391   --build=BUILD     configure for building on BUILD [guessed]
1392   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1393   --target=TARGET   configure for building compilers for TARGET [HOST]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398   case $ac_init_help in
1399      short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1400    esac
1401   cat <<\_ACEOF
1402
1403 Optional Features:
1404   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1405   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1406   --enable-polly          Use polly if available (default is YES)
1407   --enable-libcpp         Use libc++ if available (default is NO)
1408   --enable-cxx11          Use c++11 if available (default is NO)
1409   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1410   --enable-clang-static-analyzer
1411                           Enable building of clang Static Analyzer (default is
1412                           YES)
1413   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1414   --enable-optimized      Compile with optimizations enabled (default is NO)
1415   --enable-profiling      Compile with profiling enabled (default is NO)
1416   --enable-assertions     Compile with assertion checks enabled (default is
1417                           YES)
1418   --enable-werror         Compile with -Werror enabled (default is NO)
1419   --enable-expensive-checks
1420                           Compile with expensive debug checks enabled (default
1421                           is NO)
1422   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1423                           NO)
1424   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1425                           optimization is on and YES if it's off)
1426   --enable-keep-symbols   Do not strip installed executables)
1427   --enable-jit            Enable Just In Time Compiling (default is YES)
1428   --enable-docs           Build documents (default is YES)
1429   --enable-doxygen        Build doxygen documentation (default is NO)
1430   --enable-threads        Use threads if available (default is YES)
1431   --enable-pthreads       Use pthreads if available (default is YES)
1432   --enable-zlib           Use zlib for compression/decompression if available
1433                           (default is YES)
1434   --enable-pic            Build LLVM with Position Independent Code (default
1435                           is YES)
1436   --enable-shared         Build a shared library and link tools against it
1437                           (default is NO)
1438   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1439                           Win32 DLL (default is NO)
1440   --enable-timestamps     Enable embedding timestamp information in build
1441                           (default is YES)
1442   --enable-backtraces     Enable embedding backtraces on crash (default is
1443                           YES)
1444   --enable-targets        Build specific host targets: all or
1445                           target1,target2,... Valid targets are: host, x86,
1446                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1447                           xcore, msp430, nvptx, systemz, r600, and cpp
1448                           (default=all)
1449   --enable-experimental-targets
1450                           Build experimental host targets: disable or
1451                           target1,target2,... (default=disable)
1452   --enable-bindings       Build specific language bindings:
1453                           all,auto,none,{binding-name} (default=auto)
1454   --enable-libffi         Check for the presence of libffi (default is NO)
1455   --enable-ltdl-install   install libltdl
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-optimize-option  Select the compiler options to use for optimized
1461                           builds
1462   --with-extra-options    Specify additional options to compile LLVM with
1463   --with-extra-ld-options Specify additional options to link LLVM with
1464   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1465                           is stdlib)
1466   --with-clang-srcdir     Directory to the out-of-tree Clang source
1467   --with-clang-resource-dir
1468                           Relative directory from the Clang binary for
1469                           resource files
1470   --with-c-include-dirs   Colon separated list of directories clang will
1471                           search for headers
1472   --with-gcc-toolchain    Directory where gcc is installed.
1473   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1474   --with-binutils-include Specify path to binutils/include/ containing
1475                           plugin-api.h file for gold plugin.
1476   --with-bug-report-url   Specify the URL where bug reports should be
1477                           submitted (default=http://llvm.org/bugs/)
1478   --with-internal-prefix  Installation directory for internal files
1479   --with-python           path to python
1480   --with-udis86=<path>    Use udis86 external x86 disassembler library
1481   --with-oprofile=<prefix>
1482                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1483   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1484
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492               you have headers in a nonstandard directory <include dir>
1493   CXX         C++ compiler command
1494   CXXFLAGS    C++ compiler flags
1495   CPP         C preprocessor
1496   CXXCPP      C++ preprocessor
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to <http://llvm.org/bugs/>.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507   # If there are subdirs, report their specific --help.
1508   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509     test -d "$ac_dir" || continue
1510     ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516   # A ".." for each directory in $ac_dir_suffix.
1517   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518   case $ac_top_builddir_sub in
1519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521   esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529   .)  # We are building in place.
1530     ac_srcdir=.
1531     ac_top_srcdir=$ac_top_builddir_sub
1532     ac_abs_top_srcdir=$ac_pwd ;;
1533   [\\/]* | ?:[\\/]* )  # Absolute name.
1534     ac_srcdir=$srcdir$ac_dir_suffix;
1535     ac_top_srcdir=$srcdir
1536     ac_abs_top_srcdir=$srcdir ;;
1537   *) # Relative name.
1538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539     ac_top_srcdir=$ac_top_build_prefix$srcdir
1540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544     cd "$ac_dir" || { ac_status=$?; continue; }
1545     # Check for guested configure.
1546     if test -f "$ac_srcdir/configure.gnu"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549     elif test -f "$ac_srcdir/configure"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure" --help=recursive
1552     else
1553       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554     fi || ac_status=$?
1555     cd "$ac_pwd" || { ac_status=$?; break; }
1556   done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561   cat <<\_ACEOF
1562 LLVM configure 3.4svn
1563 generated by GNU Autoconf 2.60
1564
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569
1570 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by LLVM $as_me 3.4svn, which was
1579 generated by GNU Autoconf 2.60.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
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
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 4
1939 _ACEOF
1940
1941
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1943
1944
1945
1946
1947
1948
1949
1950 ac_aux_dir=
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952   if test -f "$ac_dir/install-sh"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/install-sh -c"
1955     break
1956   elif test -f "$ac_dir/install.sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install.sh -c"
1959     break
1960   elif test -f "$ac_dir/shtool"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/shtool install -c"
1963     break
1964   fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1979
1980
1981
1982 if test ${srcdir} != "." ; then
1983   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986    { (exit 1); exit 1; }; }
1987   fi
1988 fi
1989
1990 ${CFLAGS=}
1991 ${CXXFLAGS=}
1992
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999   for ac_prog in clang llvm-gcc gcc
2000   do
2001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$CC"; then
2009   ac_cv_prog_CC="$CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2032 else
2033   { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2035 fi
2036
2037
2038     test -n "$CC" && break
2039   done
2040 fi
2041 if test -z "$CC"; then
2042   ac_ct_CC=$CC
2043   for ac_prog in clang llvm-gcc gcc
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$ac_ct_CC"; then
2053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_prog_ac_ct_CC="$ac_prog"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070 fi
2071 fi
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082   test -n "$ac_ct_CC" && break
2083 done
2084
2085   if test "x$ac_ct_CC" = x; then
2086     CC=""
2087   else
2088     case $cross_compiling:$ac_tool_warned in
2089 yes:)
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet.  If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet.  If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2097 esac
2098     CC=$ac_ct_CC
2099   fi
2100 fi
2101
2102
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler -v >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -V >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2162 # of exeext.
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 #
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort.  b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2171 #
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions.  Remove them first so a
2174 # subsequent execution test works.
2175 ac_rmfiles=
2176 for ac_file in $ac_files
2177 do
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2181   esac
2182 done
2183 rm -f $ac_rmfiles
2184
2185 if { (ac_try="$ac_link_default"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191   (eval "$ac_link_default") 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }; then
2195   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2199 # Autoconf.
2200 for ac_file in $ac_files
2201 do
2202   test -f "$ac_file" || continue
2203   case $ac_file in
2204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2205         ;;
2206     [ab].out )
2207         # We found the default executable, but exeext='' is most
2208         # certainly right.
2209         break;;
2210     *.* )
2211         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2212         then :; else
2213            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214         fi
2215         # We set ac_cv_exeext here because the later test for it is not
2216         # safe: cross compilers may not add the suffix if given an `-o'
2217         # argument, so we may need to know it at that point already.
2218         # Even if this section looks crufty: it has the advantage of
2219         # actually working.
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2226
2227 else
2228   echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235    { (exit 77); exit 77; }; }
2236 fi
2237
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2241
2242 # Check that the compiler produces executables we can run.  If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249   if { ac_try='./$ac_file'
2250   { (case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_try") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259     cross_compiling=no
2260   else
2261     if test "$cross_compiling" = maybe; then
2262         cross_compiling=yes
2263     else
2264         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2271     fi
2272   fi
2273 fi
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run.  If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2285
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294   (eval "$ac_link") 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303   test -f "$ac_file" || continue
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307           break;;
2308     * ) break;;
2309   esac
2310 done
2311 else
2312   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2322
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2325 ac_exeext=$EXEEXT
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compile") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; then
2357   for ac_file in conftest.o conftest.obj conftest.*; do
2358   test -f "$ac_file" || continue;
2359   case $ac_file in
2360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2362        break;;
2363   esac
2364 done
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373    { (exit 1); exit 1; }; }
2374 fi
2375
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2377 fi
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2381 ac_objext=$OBJEXT
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397 #ifndef __GNUC__
2398        choke me
2399 #endif
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_compile") 2>conftest.er1
2413   ac_status=$?
2414   grep -v '^ *+' conftest.er1 >conftest.err
2415   rm -f conftest.er1
2416   cat conftest.err >&5
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); } &&
2419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420   { (case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_try") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_compiler_gnu=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444         ac_compiler_gnu=no
2445 fi
2446
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449
2450 fi
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   ac_save_c_werror_flag=$ac_c_werror_flag
2462    ac_c_werror_flag=yes
2463    ac_cv_prog_cc_g=no
2464    CFLAGS="-g"
2465    cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_compile") 2>conftest.er1
2488   ac_status=$?
2489   grep -v '^ *+' conftest.er1 >conftest.err
2490   rm -f conftest.er1
2491   cat conftest.err >&5
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } &&
2494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; }; then
2514   ac_cv_prog_cc_g=yes
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519         CFLAGS=""
2520       cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   :
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_c_werror_flag=$ac_save_c_werror_flag
2575          CFLAGS="-g"
2576          cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compile") 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606   { (case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_try") 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   ac_cv_prog_cc_g=yes
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630
2631 fi
2632
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
2638
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640    ac_c_werror_flag=$ac_save_c_werror_flag
2641 fi
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645   CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647   if test "$GCC" = yes; then
2648     CFLAGS="-g -O2"
2649   else
2650     CFLAGS="-g"
2651   fi
2652 else
2653   if test "$GCC" = yes; then
2654     CFLAGS="-O2"
2655   else
2656     CFLAGS=
2657   fi
2658 fi
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   ac_cv_prog_cc_c89=no
2665 ac_save_CC=$CC
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h.  */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h.  */
2672 #include <stdarg.h>
2673 #include <stdio.h>
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2680      char **p;
2681      int i;
2682 {
2683   return p[i];
2684 }
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2686 {
2687   char *s;
2688   va_list v;
2689   va_start (v,p);
2690   s = g (p, va_arg (v,int));
2691   va_end (v);
2692   return s;
2693 }
2694
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2696    function prototypes and stuff, but not '\xHH' hex character constants.
2697    These don't provoke an error unfortunately, instead are silently treated
2698    as 'x'.  The following induces an error, until -std is added to get
2699    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2700    array size at least.  It's necessary to write '\x00'==0 to get something
2701    that's true only with -std.  */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705    inside strings and character constants.  */
2706 #define FOO(x) 'x'
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2708
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713 int argc;
2714 char **argv;
2715 int
2716 main ()
2717 {
2718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726   CC="$ac_save_CC $ac_arg"
2727   rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_compile") 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   ac_cv_prog_cc_c89=$ac_arg
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext
2770   test "x$ac_cv_prog_cc_c89" != "xno" && break
2771 done
2772 rm -f conftest.$ac_ext
2773 CC=$ac_save_CC
2774
2775 fi
2776 # AC_CACHE_VAL
2777 case "x$ac_cv_prog_cc_c89" in
2778   x)
2779     { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2781   xno)
2782     { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2784   *)
2785     CC="$CC $ac_cv_prog_cc_c89"
2786     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2788 esac
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797 ac_ext=cpp
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803   if test -n "$CCC"; then
2804     CXX=$CCC
2805   else
2806     if test -n "$ac_tool_prefix"; then
2807   for ac_prog in clang++ llvm-g++ g++
2808   do
2809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CXX"; then
2817   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CXX=$ac_cv_prog_CXX
2837 if test -n "$CXX"; then
2838   { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846     test -n "$CXX" && break
2847   done
2848 fi
2849 if test -z "$CXX"; then
2850   ac_ct_CXX=$CXX
2851   for ac_prog in clang++ llvm-g++ g++
2852 do
2853   # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CXX"; then
2861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CXX="$ac_prog"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2884 else
2885   { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889
2890   test -n "$ac_ct_CXX" && break
2891 done
2892
2893   if test "x$ac_ct_CXX" = x; then
2894     CXX="g++"
2895   else
2896     case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet.  If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906     CXX=$ac_ct_CXX
2907   fi
2908 fi
2909
2910   fi
2911 fi
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler -v >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -V >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961 #ifndef __GNUC__
2962        choke me
2963 #endif
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_compiler_gnu=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008         ac_compiler_gnu=no
3009 fi
3010
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026    ac_cxx_werror_flag=yes
3027    ac_cv_prog_cxx_g=no
3028    CXXFLAGS="-g"
3029    cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; } &&
3068          { ac_try='test -s conftest.$ac_objext'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_cv_prog_cxx_g=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         CXXFLAGS=""
3084       cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3139          CXXFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189   ac_cv_prog_cxx_g=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209   CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211   if test "$GXX" = yes; then
3212     CXXFLAGS="-g -O2"
3213   else
3214     CXXFLAGS="-g"
3215   fi
3216 else
3217   if test "$GXX" = yes; then
3218     CXXFLAGS="-O2"
3219   else
3220     CXXFLAGS=
3221   fi
3222 fi
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238   CPP=
3239 fi
3240 if test -z "$CPP"; then
3241   if test "${ac_cv_prog_CPP+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244       # Double quotes because CPP needs to be expanded
3245     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246     do
3247       ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250   # Use a header file that comes with gcc, so configuring glibc
3251   # with a fresh cross-compiler works.
3252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253   # <limits.h> exists even on freestanding compilers.
3254   # On the NeXT, cc -E runs the code through the compiler's parser,
3255   # not just through cpp. "Syntax error" is here to catch this case.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null; then
3282   if test -s conftest.err; then
3283     ac_cpp_err=$ac_c_preproc_warn_flag
3284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   :
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297   # Broken: fails on valid input.
3298 continue
3299 fi
3300
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether nonexistent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346
3347 rm -f conftest.err conftest.$ac_ext
3348
3349 done
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3353   break
3354 fi
3355
3356     done
3357     ac_cv_prog_CPP=$CPP
3358
3359 fi
3360   CPP=$ac_cv_prog_CPP
3361 else
3362   ac_cv_prog_CPP=$CPP
3363 fi
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3366 ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null; then
3401   if test -s conftest.err; then
3402     ac_cpp_err=$ac_c_preproc_warn_flag
3403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404   else
3405     ac_cpp_err=
3406   fi
3407 else
3408   ac_cpp_err=yes
3409 fi
3410 if test -z "$ac_cpp_err"; then
3411   :
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3419
3420 rm -f conftest.err conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether nonexistent headers
3423   # can be detected and how.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   # Broken: success on invalid input.
3456 continue
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3465
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   :
3473 else
3474   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 if test "$CXX" = "clang++" ; then
3489   { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3491   ac_ext=cpp
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496
3497
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <limits>
3505 #if __has_include (<cxxabi.h>)
3506 #include <cxxabi.h>
3507 #endif
3508 #if __has_include (<unwind.h>)
3509 #include <unwind.h>
3510 #endif
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_compile") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } &&
3534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_try") 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; } &&
3544          { ac_try='test -s conftest.$ac_objext'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; }; then
3554
3555   { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3557
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563   { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3566 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572   ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578 fi
3579
3580
3581
3582 if test -d ${srcdir}/projects/llvm-gcc ; then
3583   subdirs="$subdirs projects/llvm-gcc"
3584
3585 fi
3586
3587 if test -d ${srcdir}/projects/test-suite ; then
3588   subdirs="$subdirs projects/test-suite"
3589
3590 fi
3591
3592 if test -d ${srcdir}/projects/llvm-test ; then
3593   subdirs="$subdirs projects/llvm-test"
3594
3595 fi
3596
3597 if test -d ${srcdir}/projects/poolalloc ; then
3598   subdirs="$subdirs projects/poolalloc"
3599
3600 fi
3601
3602 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3603   subdirs="$subdirs projects/llvm-poolalloc"
3604
3605 fi
3606
3607 for i in `ls ${srcdir}/projects`
3608 do
3609   if test -d ${srcdir}/projects/${i} ; then
3610     case ${i} in
3611       sample)       subdirs="$subdirs projects/sample"
3612     ;;
3613       privbracket)  subdirs="$subdirs projects/privbracket"
3614  ;;
3615       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3616  ;;
3617       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3618 ;;
3619       llvm-java)    subdirs="$subdirs projects/llvm-java"
3620  ;;
3621       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3622    ;;
3623       safecode)     subdirs="$subdirs projects/safecode"
3624  ;;
3625       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3626  ;;
3627       compiler-rt)       ;;
3628       llvm-gcc)       ;;
3629       test-suite)     ;;
3630       llvm-test)      ;;
3631       poolalloc)      ;;
3632       llvm-poolalloc) ;;
3633       *)
3634         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3635 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3636         ;;
3637     esac
3638   fi
3639 done
3640
3641 # Check whether --enable-polly was given.
3642 if test "${enable_polly+set}" = set; then
3643   enableval=$enable_polly;
3644 else
3645   enableval=default
3646 fi
3647
3648 case "$enableval" in
3649   yes) ENABLE_POLLY=1
3650  ;;
3651   no)  ENABLE_POLLY=0
3652  ;;
3653   default) ENABLE_POLLY=1
3654  ;;
3655   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3656 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3657    { (exit 1); exit 1; }; } ;;
3658 esac
3659
3660
3661 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3662   LLVM_HAS_POLLY=1
3663
3664   subdirs="$subdirs tools/polly"
3665
3666 fi
3667
3668
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673    { (exit 1); exit 1; }; }
3674
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686    { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690    { (exit 1); exit 1; }; }
3691
3692 fi
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3696 *-*-*) ;;
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699    { (exit 1); exit 1; }; };;
3700 esac
3701 build=$ac_cv_build
3702 ac_save_IFS=$IFS; IFS='-'
3703 set x $ac_cv_build
3704 shift
3705 build_cpu=$1
3706 build_vendor=$2
3707 shift; shift
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3710 build_os=$*
3711 IFS=$ac_save_IFS
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713
3714
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   if test "x$host_alias" = x; then
3721   ac_cv_host=$ac_cv_build
3722 else
3723   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726    { (exit 1); exit 1; }; }
3727 fi
3728
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3732 case $ac_cv_host in
3733 *-*-*) ;;
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736    { (exit 1); exit 1; }; };;
3737 esac
3738 host=$ac_cv_host
3739 ac_save_IFS=$IFS; IFS='-'
3740 set x $ac_cv_host
3741 shift
3742 host_cpu=$1
3743 host_vendor=$2
3744 shift; shift
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3747 host_os=$*
3748 IFS=$ac_save_IFS
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3750
3751
3752 { echo "$as_me:$LINENO: checking target system type" >&5
3753 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3754 if test "${ac_cv_target+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   if test "x$target_alias" = x; then
3758   ac_cv_target=$ac_cv_host
3759 else
3760   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3761     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3762 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3763    { (exit 1); exit 1; }; }
3764 fi
3765
3766 fi
3767 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3768 echo "${ECHO_T}$ac_cv_target" >&6; }
3769 case $ac_cv_target in
3770 *-*-*) ;;
3771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3772 echo "$as_me: error: invalid value of canonical target" >&2;}
3773    { (exit 1); exit 1; }; };;
3774 esac
3775 target=$ac_cv_target
3776 ac_save_IFS=$IFS; IFS='-'
3777 set x $ac_cv_target
3778 shift
3779 target_cpu=$1
3780 target_vendor=$2
3781 shift; shift
3782 # Remember, the first character of IFS is used to create $*,
3783 # except with old shells:
3784 target_os=$*
3785 IFS=$ac_save_IFS
3786 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3787
3788
3789 # The aliases save the names the user supplied, while $host etc.
3790 # will get canonicalized.
3791 test -n "$target_alias" &&
3792   test "$program_prefix$program_suffix$program_transform_name" = \
3793     NONENONEs,x,x, &&
3794   program_prefix=${target_alias}-
3795
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3797 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3798 if test "${llvm_cv_os_type+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   case $host in
3802   *-*-aix*)
3803     llvm_cv_link_all_option="-Wl,--whole-archive"
3804     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805     llvm_cv_os_type="AIX"
3806     llvm_cv_platform_type="Unix" ;;
3807   *-*-irix*)
3808     llvm_cv_link_all_option="-Wl,--whole-archive"
3809     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810     llvm_cv_os_type="IRIX"
3811     llvm_cv_platform_type="Unix" ;;
3812   *-*-cygwin*)
3813     llvm_cv_link_all_option="-Wl,--whole-archive"
3814     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815     llvm_cv_os_type="Cygwin"
3816     llvm_cv_platform_type="Unix" ;;
3817   *-*-darwin*)
3818     llvm_cv_link_all_option="-Wl,-all_load"
3819     llvm_cv_no_link_all_option="-Wl,-noall_load"
3820     llvm_cv_os_type="Darwin"
3821     llvm_cv_platform_type="Unix" ;;
3822   *-*-minix*)
3823     llvm_cv_link_all_option="-Wl,-all_load"
3824     llvm_cv_no_link_all_option="-Wl,-noall_load"
3825     llvm_cv_os_type="Minix"
3826     llvm_cv_platform_type="Unix" ;;
3827   *-*-freebsd* | *-*-kfreebsd-gnu)
3828     llvm_cv_link_all_option="-Wl,--whole-archive"
3829     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830     llvm_cv_os_type="FreeBSD"
3831     llvm_cv_platform_type="Unix" ;;
3832   *-*-openbsd*)
3833     llvm_cv_link_all_option="-Wl,--whole-archive"
3834     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835     llvm_cv_os_type="OpenBSD"
3836     llvm_cv_platform_type="Unix" ;;
3837   *-*-netbsd*)
3838     llvm_cv_link_all_option="-Wl,--whole-archive"
3839     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840     llvm_cv_os_type="NetBSD"
3841     llvm_cv_platform_type="Unix" ;;
3842   *-*-dragonfly*)
3843     llvm_cv_link_all_option="-Wl,--whole-archive"
3844     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845     llvm_cv_os_type="DragonFly"
3846     llvm_cv_platform_type="Unix" ;;
3847   *-*-hpux*)
3848     llvm_cv_link_all_option="-Wl,--whole-archive"
3849     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850     llvm_cv_os_type="HP-UX"
3851     llvm_cv_platform_type="Unix" ;;
3852   *-*-interix*)
3853     llvm_cv_link_all_option="-Wl,--whole-archive"
3854     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855     llvm_cv_os_type="Interix"
3856     llvm_cv_platform_type="Unix" ;;
3857   *-*-linux*)
3858     llvm_cv_link_all_option="-Wl,--whole-archive"
3859     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860     llvm_cv_os_type="Linux"
3861     llvm_cv_platform_type="Unix" ;;
3862   *-*-gnu*)
3863     llvm_cv_link_all_option="-Wl,--whole-archive"
3864     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865     llvm_cv_os_type="GNU"
3866     llvm_cv_platform_type="Unix" ;;
3867   *-*-solaris*)
3868     llvm_cv_link_all_option="-Wl,-z,allextract"
3869     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3870     llvm_cv_os_type="SunOS"
3871     llvm_cv_platform_type="Unix" ;;
3872   *-*-auroraux*)
3873     llvm_cv_link_all_option="-Wl,-z,allextract"
3874     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3875     llvm_cv_os_type="AuroraUX"
3876     llvm_cv_platform_type="Unix" ;;
3877   *-*-win32*)
3878     llvm_cv_link_all_option="-Wl,--whole-archive"
3879     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880     llvm_cv_os_type="Win32"
3881     llvm_cv_platform_type="Win32" ;;
3882   *-*-mingw*)
3883     llvm_cv_link_all_option="-Wl,--whole-archive"
3884     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885     llvm_cv_os_type="MingW"
3886     llvm_cv_platform_type="Win32" ;;
3887   *-*-haiku*)
3888     llvm_cv_link_all_option="-Wl,--whole-archive"
3889     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890     llvm_cv_os_type="Haiku"
3891     llvm_cv_platform_type="Unix" ;;
3892   *-unknown-eabi*)
3893     llvm_cv_link_all_option="-Wl,--whole-archive"
3894     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895     llvm_cv_os_type="Freestanding"
3896     llvm_cv_platform_type="Unix" ;;
3897   *-unknown-elf*)
3898     llvm_cv_link_all_option="-Wl,--whole-archive"
3899     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900     llvm_cv_os_type="Freestanding"
3901     llvm_cv_platform_type="Unix" ;;
3902   *)
3903     llvm_cv_link_all_option=""
3904     llvm_cv_no_link_all_option=""
3905     llvm_cv_os_type="Unknown"
3906     llvm_cv_platform_type="Unknown" ;;
3907 esac
3908 fi
3909 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3910 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3911
3912 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3913 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3914 if test "${llvm_cv_target_os_type+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   case $target in
3918   *-*-aix*)
3919     llvm_cv_target_os_type="AIX" ;;
3920   *-*-irix*)
3921     llvm_cv_target_os_type="IRIX" ;;
3922   *-*-cygwin*)
3923     llvm_cv_target_os_type="Cygwin" ;;
3924   *-*-darwin*)
3925     llvm_cv_target_os_type="Darwin" ;;
3926   *-*-minix*)
3927     llvm_cv_target_os_type="Minix" ;;
3928   *-*-freebsd* | *-*-kfreebsd-gnu)
3929     llvm_cv_target_os_type="FreeBSD" ;;
3930   *-*-openbsd*)
3931     llvm_cv_target_os_type="OpenBSD" ;;
3932   *-*-netbsd*)
3933     llvm_cv_target_os_type="NetBSD" ;;
3934   *-*-dragonfly*)
3935     llvm_cv_target_os_type="DragonFly" ;;
3936   *-*-hpux*)
3937     llvm_cv_target_os_type="HP-UX" ;;
3938   *-*-interix*)
3939     llvm_cv_target_os_type="Interix" ;;
3940   *-*-linux*)
3941     llvm_cv_target_os_type="Linux" ;;
3942   *-*-gnu*)
3943     llvm_cv_target_os_type="GNU" ;;
3944   *-*-solaris*)
3945     llvm_cv_target_os_type="SunOS" ;;
3946   *-*-auroraux*)
3947     llvm_cv_target_os_type="AuroraUX" ;;
3948   *-*-win32*)
3949     llvm_cv_target_os_type="Win32" ;;
3950   *-*-mingw*)
3951     llvm_cv_target_os_type="MingW" ;;
3952   *-*-haiku*)
3953     llvm_cv_target_os_type="Haiku" ;;
3954   *-*-rtems*)
3955     llvm_cv_target_os_type="RTEMS" ;;
3956   *-*-nacl*)
3957     llvm_cv_target_os_type="NativeClient" ;;
3958   *-unknown-eabi*)
3959     llvm_cv_target_os_type="Freestanding" ;;
3960   *)
3961     llvm_cv_target_os_type="Unknown" ;;
3962 esac
3963 fi
3964 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3965 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3966
3967 if test "$llvm_cv_os_type" = "Unknown" ; then
3968   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3969 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3970    { (exit 1); exit 1; }; }
3971 fi
3972
3973 OS=$llvm_cv_os_type
3974
3975 HOST_OS=$llvm_cv_os_type
3976
3977 TARGET_OS=$llvm_cv_target_os_type
3978
3979
3980 LINKALL=$llvm_cv_link_all_option
3981
3982 NOLINKALL=$llvm_cv_no_link_all_option
3983
3984
3985 case $llvm_cv_platform_type in
3986   Unix)
3987
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_UNIX 1
3990 _ACEOF
3991
3992     LLVM_ON_UNIX=1
3993
3994     LLVM_ON_WIN32=0
3995
3996     ;;
3997   Win32)
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_WIN32 1
4001 _ACEOF
4002
4003     LLVM_ON_UNIX=0
4004
4005     LLVM_ON_WIN32=1
4006
4007     ;;
4008 esac
4009
4010 { echo "$as_me:$LINENO: checking target architecture" >&5
4011 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4012 if test "${llvm_cv_target_arch+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   case $target in
4016   i?86-*)                 llvm_cv_target_arch="x86" ;;
4017   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4018   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4019   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4020   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4021   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4022   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4023   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4024   xcore-*)                llvm_cv_target_arch="XCore" ;;
4025   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4026   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4027   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4028   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4029   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4030   *)                      llvm_cv_target_arch="Unknown" ;;
4031 esac
4032 fi
4033 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4034 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4035
4036 if test "$llvm_cv_target_arch" = "Unknown" ; then
4037   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4038 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4039 fi
4040
4041 case "$llvm_cv_target_arch" in
4042     x86)     LLVM_NATIVE_ARCH="X86" ;;
4043     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4044     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4045 esac
4046
4047 ARCH=$llvm_cv_target_arch
4048
4049
4050 case $host in
4051   i?86-*)                 host_arch="x86" ;;
4052   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4053   sparc*-*)               host_arch="Sparc" ;;
4054   powerpc*-*)             host_arch="PowerPC" ;;
4055   arm*-*)                 host_arch="ARM" ;;
4056   aarch64*-*)             host_arch="AArch64" ;;
4057   mips-* | mips64-*)      host_arch="Mips" ;;
4058   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4059   xcore-*)                host_arch="XCore" ;;
4060   msp430-*)               host_arch="MSP430" ;;
4061   hexagon-*)              host_arch="Hexagon" ;;
4062   mblaze-*)               host_arch="MBlaze" ;;
4063   s390x-*)                host_arch="SystemZ" ;;
4064   *)                      host_arch="Unknown" ;;
4065 esac
4066
4067 if test "$host_arch" = "Unknown" ; then
4068   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4069 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4070 fi
4071
4072 HOST_ARCH=$host_arch
4073
4074
4075
4076
4077 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4078 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4079 if test "${ac_cv_path_GREP+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   # Extract the first word of "grep ggrep" to use in msg output
4083 if test -z "$GREP"; then
4084 set dummy grep ggrep; ac_prog_name=$2
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   ac_path_GREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095   for ac_prog in grep ggrep; do
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4098     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4099     # Check for GNU ac_path_GREP and select it if it is found.
4100   # Check for GNU $ac_path_GREP
4101 case `"$ac_path_GREP" --version 2>&1` in
4102 *GNU*)
4103   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4104 *)
4105   ac_count=0
4106   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4107   while :
4108   do
4109     cat "conftest.in" "conftest.in" >"conftest.tmp"
4110     mv "conftest.tmp" "conftest.in"
4111     cp "conftest.in" "conftest.nl"
4112     echo 'GREP' >> "conftest.nl"
4113     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115     ac_count=`expr $ac_count + 1`
4116     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117       # Best one so far, save it but keep looking for a better one
4118       ac_cv_path_GREP="$ac_path_GREP"
4119       ac_path_GREP_max=$ac_count
4120     fi
4121     # 10*(2^10) chars as input seems more than enough
4122     test $ac_count -gt 10 && break
4123   done
4124   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127
4128     $ac_path_GREP_found && break 3
4129   done
4130 done
4131
4132 done
4133 IFS=$as_save_IFS
4134
4135
4136 fi
4137
4138 GREP="$ac_cv_path_GREP"
4139 if test -z "$GREP"; then
4140   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4141 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4142    { (exit 1); exit 1; }; }
4143 fi
4144
4145 else
4146   ac_cv_path_GREP=$GREP
4147 fi
4148
4149
4150 fi
4151 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4152 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4153  GREP="$ac_cv_path_GREP"
4154
4155
4156 { echo "$as_me:$LINENO: checking for egrep" >&5
4157 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162    then ac_cv_path_EGREP="$GREP -E"
4163    else
4164      # Extract the first word of "egrep" to use in msg output
4165 if test -z "$EGREP"; then
4166 set dummy egrep; ac_prog_name=$2
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   ac_path_EGREP_found=false
4171 # Loop through the user's path and test for each of PROGNAME-LIST
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_prog in egrep; do
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4180     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4181     # Check for GNU ac_path_EGREP and select it if it is found.
4182   # Check for GNU $ac_path_EGREP
4183 case `"$ac_path_EGREP" --version 2>&1` in
4184 *GNU*)
4185   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4186 *)
4187   ac_count=0
4188   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4189   while :
4190   do
4191     cat "conftest.in" "conftest.in" >"conftest.tmp"
4192     mv "conftest.tmp" "conftest.in"
4193     cp "conftest.in" "conftest.nl"
4194     echo 'EGREP' >> "conftest.nl"
4195     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197     ac_count=`expr $ac_count + 1`
4198     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4199       # Best one so far, save it but keep looking for a better one
4200       ac_cv_path_EGREP="$ac_path_EGREP"
4201       ac_path_EGREP_max=$ac_count
4202     fi
4203     # 10*(2^10) chars as input seems more than enough
4204     test $ac_count -gt 10 && break
4205   done
4206   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207 esac
4208
4209
4210     $ac_path_EGREP_found && break 3
4211   done
4212 done
4213
4214 done
4215 IFS=$as_save_IFS
4216
4217
4218 fi
4219
4220 EGREP="$ac_cv_path_EGREP"
4221 if test -z "$EGREP"; then
4222   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4223 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4224    { (exit 1); exit 1; }; }
4225 fi
4226
4227 else
4228   ac_cv_path_EGREP=$EGREP
4229 fi
4230
4231
4232    fi
4233 fi
4234 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4235 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4236  EGREP="$ac_cv_path_EGREP"
4237
4238
4239 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4241 if test "${ac_cv_header_stdc+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 #include <stdlib.h>
4251 #include <stdarg.h>
4252 #include <string.h>
4253 #include <float.h>
4254
4255 int
4256 main ()
4257 {
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (ac_try="$ac_compile"
4265 case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270   (eval "$ac_compile") 2>conftest.er1
4271   ac_status=$?
4272   grep -v '^ *+' conftest.er1 >conftest.err
4273   rm -f conftest.er1
4274   cat conftest.err >&5
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } &&
4277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4278   { (case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283   (eval "$ac_try") 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; } &&
4287          { ac_try='test -s conftest.$ac_objext'
4288   { (case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_try") 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; }; then
4297   ac_cv_header_stdc=yes
4298 else
4299   echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302         ac_cv_header_stdc=no
4303 fi
4304
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306
4307 if test $ac_cv_header_stdc = yes; then
4308   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4309   cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 #include <string.h>
4316
4317 _ACEOF
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319   $EGREP "memchr" >/dev/null 2>&1; then
4320   :
4321 else
4322   ac_cv_header_stdc=no
4323 fi
4324 rm -f conftest*
4325
4326 fi
4327
4328 if test $ac_cv_header_stdc = yes; then
4329   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 #include <stdlib.h>
4337
4338 _ACEOF
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340   $EGREP "free" >/dev/null 2>&1; then
4341   :
4342 else
4343   ac_cv_header_stdc=no
4344 fi
4345 rm -f conftest*
4346
4347 fi
4348
4349 if test $ac_cv_header_stdc = yes; then
4350   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4351   if test "$cross_compiling" = yes; then
4352   :
4353 else
4354   cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 #include <ctype.h>
4361 #include <stdlib.h>
4362 #if ((' ' & 0x0FF) == 0x020)
4363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4365 #else
4366 # define ISLOWER(c) \
4367                    (('a' <= (c) && (c) <= 'i') \
4368                      || ('j' <= (c) && (c) <= 'r') \
4369                      || ('s' <= (c) && (c) <= 'z'))
4370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4371 #endif
4372
4373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4374 int
4375 main ()
4376 {
4377   int i;
4378   for (i = 0; i < 256; i++)
4379     if (XOR (islower (i), ISLOWER (i))
4380         || toupper (i) != TOUPPER (i))
4381       return 2;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4387 case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_link") 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396   { (case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_try") 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; }; then
4405   :
4406 else
4407   echo "$as_me: program exited with status $ac_status" >&5
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ( exit $ac_status )
4412 ac_cv_header_stdc=no
4413 fi
4414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4415 fi
4416
4417
4418 fi
4419 fi
4420 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4421 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4422 if test $ac_cv_header_stdc = yes; then
4423
4424 cat >>confdefs.h <<\_ACEOF
4425 #define STDC_HEADERS 1
4426 _ACEOF
4427
4428 fi
4429
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441                   inttypes.h stdint.h unistd.h
4442 do
4443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 $ac_includes_default
4456
4457 #include <$ac_header>
4458 _ACEOF
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4461 case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466   (eval "$ac_compile") 2>conftest.er1
4467   ac_status=$?
4468   grep -v '^ *+' conftest.er1 >conftest.err
4469   rm -f conftest.er1
4470   cat conftest.err >&5
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); } &&
4473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4474   { (case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_try") 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; } &&
4483          { ac_try='test -s conftest.$ac_objext'
4484   { (case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_try") 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; }; then
4493   eval "$as_ac_Header=yes"
4494 else
4495   echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498         eval "$as_ac_Header=no"
4499 fi
4500
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 fi
4503 ac_res=`eval echo '${'$as_ac_Header'}'`
4504                { echo "$as_me:$LINENO: result: $ac_res" >&5
4505 echo "${ECHO_T}$ac_res" >&6; }
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507   cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4509 _ACEOF
4510
4511 fi
4512
4513 done
4514
4515
4516 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4517 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4518 if test "${ac_cv_c_bigendian+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   # See if sys/param.h defines the BYTE_ORDER macro.
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 #include <sys/types.h>
4529 #include <sys/param.h>
4530
4531 int
4532 main ()
4533 {
4534 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4535  bogus endian macros
4536 #endif
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (ac_try="$ac_compile"
4544 case "(($ac_try" in
4545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546   *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549   (eval "$ac_compile") 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } &&
4556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4557   { (case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562   (eval "$ac_try") 2>&5
4563   ac_status=$?
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); }; } &&
4566          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4576   # It does; now see whether it defined to BIG_ENDIAN or not.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583 #include <sys/types.h>
4584 #include <sys/param.h>
4585
4586 int
4587 main ()
4588 {
4589 #if BYTE_ORDER != BIG_ENDIAN
4590  not big endian
4591 #endif
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_compile") 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4612   { (case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617   (eval "$ac_try") 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627   (eval "$ac_try") 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631   ac_cv_c_bigendian=yes
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636         ac_cv_c_bigendian=no
4637 fi
4638
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 else
4641   echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644         # It does not; compile a test program.
4645 if test "$cross_compiling" = yes; then
4646   # try to guess the endianness by grepping values into an object file
4647   ac_cv_c_bigendian=unknown
4648   cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h.  */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h.  */
4654 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4655 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4656 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4657 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4658 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4659 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4660 int
4661 main ()
4662 {
4663  _ascii (); _ebcdic ();
4664   ;
4665   return 0;
4666 }
4667 _ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (ac_try="$ac_compile"
4670 case "(($ac_try" in
4671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672   *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675   (eval "$ac_compile") 2>conftest.er1
4676   ac_status=$?
4677   grep -v '^ *+' conftest.er1 >conftest.err
4678   rm -f conftest.er1
4679   cat conftest.err >&5
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); } &&
4682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683   { (case "(($ac_try" in
4684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685   *) ac_try_echo=$ac_try;;
4686 esac
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688   (eval "$ac_try") 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; } &&
4692          { ac_try='test -s conftest.$ac_objext'
4693   { (case "(($ac_try" in
4694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695   *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698   (eval "$ac_try") 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; }; then
4702   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4703   ac_cv_c_bigendian=yes
4704 fi
4705 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4706   if test "$ac_cv_c_bigendian" = unknown; then
4707     ac_cv_c_bigendian=no
4708   else
4709     # finding both strings is unlikely to happen, but who knows?
4710     ac_cv_c_bigendian=unknown
4711   fi
4712 fi
4713 else
4714   echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717
4718 fi
4719
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 else
4722   cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 $ac_includes_default
4729 int
4730 main ()
4731 {
4732
4733   /* Are we little or big endian?  From Harbison&Steele.  */
4734   union
4735   {
4736     long int l;
4737     char c[sizeof (long int)];
4738   } u;
4739   u.l = 1;
4740   return u.c[sizeof (long int) - 1] == 1;
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest$ac_exeext
4747 if { (ac_try="$ac_link"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_link") 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4757   { (case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_try") 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   ac_cv_c_bigendian=no
4767 else
4768   echo "$as_me: program exited with status $ac_status" >&5
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ( exit $ac_status )
4773 ac_cv_c_bigendian=yes
4774 fi
4775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4776 fi
4777
4778
4779 fi
4780
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 fi
4783 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4784 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4785 case $ac_cv_c_bigendian in
4786   yes)
4787     ENDIAN=big
4788  ;;
4789   no)
4790     ENDIAN=little
4791  ;;
4792   *)
4793     { { echo "$as_me:$LINENO: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4795 echo "$as_me: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4797    { (exit 1); exit 1; }; } ;;
4798 esac
4799
4800
4801 if test "$cross_compiling" = yes; then
4802   LLVM_CROSS_COMPILING=1
4803
4804
4805 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4806 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4807 if test "${ac_cv_build_exeext+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4811   ac_cv_build_exeext=.exe
4812 else
4813   ac_build_prefix=${build_alias}-
4814
4815   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4816 set dummy ${ac_build_prefix}gcc; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$BUILD_CC"; then
4823   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 BUILD_CC=$ac_cv_prog_BUILD_CC
4843 if test -n "$BUILD_CC"; then
4844   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4845 echo "${ECHO_T}$BUILD_CC" >&6; }
4846 else
4847   { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4849 fi
4850
4851
4852   if test -z "$BUILD_CC"; then
4853      # Extract the first word of "gcc", so it can be a program name with args.
4854 set dummy gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$BUILD_CC"; then
4861   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_BUILD_CC="gcc"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 BUILD_CC=$ac_cv_prog_BUILD_CC
4881 if test -n "$BUILD_CC"; then
4882   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4883 echo "${ECHO_T}$BUILD_CC" >&6; }
4884 else
4885   { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4887 fi
4888
4889
4890      if test -z "$BUILD_CC"; then
4891        # Extract the first word of "cc", so it can be a program name with args.
4892 set dummy cc; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   if test -n "$BUILD_CC"; then
4899   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4900 else
4901   ac_prog_rejected=no
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907   for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910        ac_prog_rejected=yes
4911        continue
4912      fi
4913     ac_cv_prog_BUILD_CC="cc"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 if test $ac_prog_rejected = yes; then
4922   # We found a bogon in the path, so make sure we never use it.
4923   set dummy $ac_cv_prog_BUILD_CC
4924   shift
4925   if test $# != 0; then
4926     # We chose a different compiler from the bogus one.
4927     # However, it has the same basename, so the bogon will be chosen
4928     # first if we set BUILD_CC to just the basename; use the full file name.
4929     shift
4930     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4931   fi
4932 fi
4933 fi
4934 fi
4935 BUILD_CC=$ac_cv_prog_BUILD_CC
4936 if test -n "$BUILD_CC"; then
4937   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4938 echo "${ECHO_T}$BUILD_CC" >&6; }
4939 else
4940   { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4942 fi
4943
4944
4945      fi
4946   fi
4947   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4948 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4949    { (exit 1); exit 1; }; }
4950   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4951   rm -f conftest*
4952   echo 'int main () { return 0; }' > conftest.$ac_ext
4953   ac_cv_build_exeext=
4954   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4955   (eval $ac_build_link) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }; then
4959     for file in conftest.*; do
4960       case $file in
4961       *.c | *.o | *.obj | *.dSYM) ;;
4962       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4963       esac
4964     done
4965   else
4966     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4967 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4968    { (exit 1); exit 1; }; }
4969   fi
4970   rm -f conftest*
4971   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4972 fi
4973 fi
4974
4975 BUILD_EXEEXT=""
4976 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4977 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4978 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4979 ac_build_exeext=$BUILD_EXEEXT
4980
4981   ac_build_prefix=${build_alias}-
4982   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4983 set dummy ${ac_build_prefix}g++; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4987   echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989   if test -n "$BUILD_CXX"; then
4990   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5010 if test -n "$BUILD_CXX"; then
5011   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5012 echo "${ECHO_T}$BUILD_CXX" >&6; }
5013 else
5014   { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5016 fi
5017
5018
5019   if test -z "$BUILD_CXX"; then
5020      # Extract the first word of "g++", so it can be a program name with args.
5021 set dummy g++; ac_word=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   if test -n "$BUILD_CXX"; then
5028   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5037     ac_cv_prog_BUILD_CXX="g++"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045 fi
5046 fi
5047 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5048 if test -n "$BUILD_CXX"; then
5049   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5050 echo "${ECHO_T}$BUILD_CXX" >&6; }
5051 else
5052   { echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6; }
5054 fi
5055
5056
5057      if test -z "$BUILD_CXX"; then
5058        # Extract the first word of "c++", so it can be a program name with args.
5059 set dummy c++; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   if test -n "$BUILD_CXX"; then
5066   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5067 else
5068   ac_prog_rejected=no
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for ac_exec_ext in '' $ac_executable_extensions; do
5075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5076     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5077        ac_prog_rejected=yes
5078        continue
5079      fi
5080     ac_cv_prog_BUILD_CXX="c++"
5081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087
5088 if test $ac_prog_rejected = yes; then
5089   # We found a bogon in the path, so make sure we never use it.
5090   set dummy $ac_cv_prog_BUILD_CXX
5091   shift
5092   if test $# != 0; then
5093     # We chose a different compiler from the bogus one.
5094     # However, it has the same basename, so the bogon will be chosen
5095     # first if we set BUILD_CXX to just the basename; use the full file name.
5096     shift
5097     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5098   fi
5099 fi
5100 fi
5101 fi
5102 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5103 if test -n "$BUILD_CXX"; then
5104   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5105 echo "${ECHO_T}$BUILD_CXX" >&6; }
5106 else
5107   { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5109 fi
5110
5111
5112      fi
5113   fi
5114 else
5115   LLVM_CROSS_COMPILING=0
5116
5117 fi
5118
5119 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5120   cvsbuild="yes"
5121   optimize="no"
5122   CVSBUILD=CVSBUILD=1
5123
5124 else
5125   cvsbuild="no"
5126   optimize="yes"
5127 fi
5128
5129
5130 # Check whether --enable-libcpp was given.
5131 if test "${enable_libcpp+set}" = set; then
5132   enableval=$enable_libcpp;
5133 else
5134   enableval=default
5135 fi
5136
5137 case "$enableval" in
5138   yes) ENABLE_LIBCPP=1
5139  ;;
5140   no)  ENABLE_LIBCPP=0
5141  ;;
5142   default) ENABLE_LIBCPP=0
5143 ;;
5144   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5145 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5146    { (exit 1); exit 1; }; } ;;
5147 esac
5148
5149 # Check whether --enable-cxx11 was given.
5150 if test "${enable_cxx11+set}" = set; then
5151   enableval=$enable_cxx11;
5152 else
5153   enableval=default
5154 fi
5155
5156 case "$enableval" in
5157   yes) ENABLE_CXX11=1
5158  ;;
5159   no)  ENABLE_CXX11=0
5160  ;;
5161   default) ENABLE_CXX11=0
5162 ;;
5163   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5165    { (exit 1); exit 1; }; } ;;
5166 esac
5167
5168 clang_arcmt="yes"
5169 # Check whether --enable-clang-arcmt was given.
5170 if test "${enable_clang_arcmt+set}" = set; then
5171   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5172 else
5173   enableval="yes"
5174 fi
5175
5176 case "$enableval" in
5177   yes) ENABLE_CLANG_ARCMT=1
5178  ;;
5179   no)  ENABLE_CLANG_ARCMT=0
5180  ;;
5181   default) ENABLE_CLANG_ARCMT=1
5182 ;;
5183   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5185    { (exit 1); exit 1; }; } ;;
5186 esac
5187
5188 clang_static_analyzer="yes"
5189 # Check whether --enable-clang-static-analyzer was given.
5190 if test "${enable_clang_static_analyzer+set}" = set; then
5191   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5192 else
5193   enableval="yes"
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5198  ;;
5199   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5200  ;;
5201   default) ENABLE_CLANG_STATIC_ANALYZER=1
5202 ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 # Check whether --enable-clang-rewriter was given.
5209 if test "${enable_clang_rewriter+set}" = set; then
5210   enableval=$enable_clang_rewriter;
5211 else
5212   enableval="yes"
5213 fi
5214
5215 case "$enableval" in
5216   yes) ENABLE_CLANG_REWRITER=1
5217  ;;
5218   no)
5219     if test ${clang_arcmt} != "no" ; then
5220       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5221 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5222    { (exit 1); exit 1; }; }
5223     fi
5224     if test ${clang_static_analyzer} != "no" ; then
5225       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5226 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5227    { (exit 1); exit 1; }; }
5228     fi
5229     ENABLE_CLANG_REWRITER=0
5230
5231     ;;
5232   default) ENABLE_CLANG_REWRITER=1
5233 ;;
5234   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5236    { (exit 1); exit 1; }; } ;;
5237 esac
5238
5239 # Check whether --enable-optimized was given.
5240 if test "${enable_optimized+set}" = set; then
5241   enableval=$enable_optimized;
5242 else
5243   enableval=$optimize
5244 fi
5245
5246 if test ${enableval} = "no" ; then
5247   ENABLE_OPTIMIZED=
5248
5249 else
5250   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5251
5252 fi
5253
5254 # Check whether --enable-profiling was given.
5255 if test "${enable_profiling+set}" = set; then
5256   enableval=$enable_profiling;
5257 else
5258   enableval="no"
5259 fi
5260
5261 if test ${enableval} = "no" ; then
5262   ENABLE_PROFILING=
5263
5264 else
5265   ENABLE_PROFILING=ENABLE_PROFILING=1
5266
5267 fi
5268
5269 # Check whether --enable-assertions was given.
5270 if test "${enable_assertions+set}" = set; then
5271   enableval=$enable_assertions;
5272 else
5273   enableval="yes"
5274 fi
5275
5276 if test ${enableval} = "yes" ; then
5277   DISABLE_ASSERTIONS=
5278
5279 else
5280   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5281
5282 fi
5283
5284 # Check whether --enable-werror was given.
5285 if test "${enable_werror+set}" = set; then
5286   enableval=$enable_werror;
5287 else
5288   enableval="no"
5289 fi
5290
5291 case "$enableval" in
5292   yes) ENABLE_WERROR=1
5293  ;;
5294   no)  ENABLE_WERROR=0
5295  ;;
5296   default) ENABLE_WERROR=0
5297 ;;
5298   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5300    { (exit 1); exit 1; }; } ;;
5301 esac
5302
5303 # Check whether --enable-expensive-checks was given.
5304 if test "${enable_expensive_checks+set}" = set; then
5305   enableval=$enable_expensive_checks;
5306 else
5307   enableval="no"
5308 fi
5309
5310 if test ${enableval} = "yes" ; then
5311   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5312
5313   EXPENSIVE_CHECKS=yes
5314
5315 else
5316   ENABLE_EXPENSIVE_CHECKS=
5317
5318   EXPENSIVE_CHECKS=no
5319
5320 fi
5321
5322 # Check whether --enable-debug-runtime was given.
5323 if test "${enable_debug_runtime+set}" = set; then
5324   enableval=$enable_debug_runtime;
5325 else
5326   enableval=no
5327 fi
5328
5329 if test ${enableval} = "no" ; then
5330   DEBUG_RUNTIME=
5331
5332 else
5333   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5334
5335 fi
5336
5337 # Check whether --enable-debug-symbols was given.
5338 if test "${enable_debug_symbols+set}" = set; then
5339   enableval=$enable_debug_symbols;
5340 else
5341   enableval=no
5342 fi
5343
5344 if test ${enableval} = "no" ; then
5345   DEBUG_SYMBOLS=
5346
5347 else
5348   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5349
5350 fi
5351
5352 # Check whether --enable-keep-symbols was given.
5353 if test "${enable_keep_symbols+set}" = set; then
5354   enableval=$enable_keep_symbols;
5355 else
5356   enableval=no
5357 fi
5358
5359 if test ${enableval} = "no" ; then
5360   KEEP_SYMBOLS=
5361
5362 else
5363   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5364
5365 fi
5366
5367 # Check whether --enable-jit was given.
5368 if test "${enable_jit+set}" = set; then
5369   enableval=$enable_jit;
5370 else
5371   enableval=default
5372 fi
5373
5374 if test ${enableval} = "no"
5375 then
5376   JIT=
5377
5378 else
5379   case "$llvm_cv_target_arch" in
5380     x86)         TARGET_HAS_JIT=1
5381  ;;
5382     Sparc)       TARGET_HAS_JIT=0
5383  ;;
5384     PowerPC)     TARGET_HAS_JIT=1
5385  ;;
5386     x86_64)      TARGET_HAS_JIT=1
5387  ;;
5388     ARM)         TARGET_HAS_JIT=1
5389  ;;
5390     AArch64)     TARGET_HAS_JIT=0
5391  ;;
5392     Mips)        TARGET_HAS_JIT=1
5393  ;;
5394     XCore)       TARGET_HAS_JIT=0
5395  ;;
5396     MSP430)      TARGET_HAS_JIT=0
5397  ;;
5398     Hexagon)     TARGET_HAS_JIT=0
5399  ;;
5400     MBlaze)      TARGET_HAS_JIT=0
5401  ;;
5402     NVPTX)       TARGET_HAS_JIT=0
5403  ;;
5404     SystemZ)     TARGET_HAS_JIT=1
5405  ;;
5406     *)           TARGET_HAS_JIT=0
5407  ;;
5408   esac
5409 fi
5410
5411 # Check whether --enable-docs was given.
5412 if test "${enable_docs+set}" = set; then
5413   enableval=$enable_docs;
5414 else
5415   enableval=default
5416 fi
5417
5418 case "$enableval" in
5419   yes) ENABLE_DOCS=1
5420  ;;
5421   no)  ENABLE_DOCS=0
5422  ;;
5423   default) ENABLE_DOCS=1
5424  ;;
5425   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5426 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5427    { (exit 1); exit 1; }; } ;;
5428 esac
5429
5430 # Check whether --enable-doxygen was given.
5431 if test "${enable_doxygen+set}" = set; then
5432   enableval=$enable_doxygen;
5433 else
5434   enableval=default
5435 fi
5436
5437 case "$enableval" in
5438   yes) ENABLE_DOXYGEN=1
5439  ;;
5440   no)  ENABLE_DOXYGEN=0
5441  ;;
5442   default) ENABLE_DOXYGEN=0
5443  ;;
5444   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5445 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5446    { (exit 1); exit 1; }; } ;;
5447 esac
5448
5449 # Check whether --enable-threads was given.
5450 if test "${enable_threads+set}" = set; then
5451   enableval=$enable_threads;
5452 else
5453   enableval=default
5454 fi
5455
5456 case "$enableval" in
5457   yes) LLVM_ENABLE_THREADS=1
5458  ;;
5459   no)  LLVM_ENABLE_THREADS=0
5460  ;;
5461   default) LLVM_ENABLE_THREADS=1
5462  ;;
5463   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5465    { (exit 1); exit 1; }; } ;;
5466 esac
5467
5468 cat >>confdefs.h <<_ACEOF
5469 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5470 _ACEOF
5471
5472
5473 # Check whether --enable-pthreads was given.
5474 if test "${enable_pthreads+set}" = set; then
5475   enableval=$enable_pthreads;
5476 else
5477   enableval=default
5478 fi
5479
5480 case "$enableval" in
5481   yes) ENABLE_PTHREADS=1
5482  ;;
5483   no)  ENABLE_PTHREADS=0
5484  ;;
5485   default) ENABLE_PTHREADS=1
5486  ;;
5487   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5488 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5489    { (exit 1); exit 1; }; } ;;
5490 esac
5491
5492 # Check whether --enable-zlib was given.
5493 if test "${enable_zlib+set}" = set; then
5494   enableval=$enable_zlib;
5495 else
5496   enableval=default
5497 fi
5498
5499 case "$enableval" in
5500   yes) LLVM_ENABLE_ZLIB=1
5501  ;;
5502   no)  LLVM_ENABLE_ZLIB=0
5503  ;;
5504   default) LLVM_ENABLE_ZLIB=1
5505  ;;
5506   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5508    { (exit 1); exit 1; }; } ;;
5509 esac
5510
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5513 _ACEOF
5514
5515
5516 # Check whether --enable-pic was given.
5517 if test "${enable_pic+set}" = set; then
5518   enableval=$enable_pic;
5519 else
5520   enableval=default
5521 fi
5522
5523 case "$enableval" in
5524   yes) ENABLE_PIC=1
5525  ;;
5526   no)  ENABLE_PIC=0
5527  ;;
5528   default) ENABLE_PIC=1
5529  ;;
5530   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5532    { (exit 1); exit 1; }; } ;;
5533 esac
5534
5535 cat >>confdefs.h <<_ACEOF
5536 #define ENABLE_PIC $ENABLE_PIC
5537 _ACEOF
5538
5539
5540 # Check whether --enable-shared was given.
5541 if test "${enable_shared+set}" = set; then
5542   enableval=$enable_shared;
5543 else
5544   enableval=default
5545 fi
5546
5547 case "$enableval" in
5548   yes) ENABLE_SHARED=1
5549  ;;
5550   no)  ENABLE_SHARED=0
5551  ;;
5552   default) ENABLE_SHARED=0
5553  ;;
5554   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5556    { (exit 1); exit 1; }; } ;;
5557 esac
5558
5559 # Check whether --enable-embed-stdcxx was given.
5560 if test "${enable_embed_stdcxx+set}" = set; then
5561   enableval=$enable_embed_stdcxx;
5562 else
5563   enableval=default
5564 fi
5565
5566 case "$enableval" in
5567   yes) ENABLE_EMBED_STDCXX=1
5568  ;;
5569   no)  ENABLE_EMBED_STDCXX=0
5570  ;;
5571   default) ENABLE_EMBED_STDCXX=0
5572  ;;
5573   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5574 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5575    { (exit 1); exit 1; }; } ;;
5576 esac
5577
5578 # Check whether --enable-timestamps was given.
5579 if test "${enable_timestamps+set}" = set; then
5580   enableval=$enable_timestamps;
5581 else
5582   enableval=default
5583 fi
5584
5585 case "$enableval" in
5586   yes) ENABLE_TIMESTAMPS=1
5587  ;;
5588   no)  ENABLE_TIMESTAMPS=0
5589  ;;
5590   default) ENABLE_TIMESTAMPS=1
5591  ;;
5592   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5593 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5594    { (exit 1); exit 1; }; } ;;
5595 esac
5596
5597 cat >>confdefs.h <<_ACEOF
5598 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5599 _ACEOF
5600
5601
5602
5603 # Check whether --enable-backtraces was given.
5604 if test "${enable_backtraces+set}" = set; then
5605   enableval=$enable_backtraces;
5606 else
5607   enableval=default
5608 fi
5609
5610 case "$enableval" in
5611   yes) ENABLE_BACKTRACES=1
5612  ;;
5613   no)  ENABLE_BACKTRACES=0
5614  ;;
5615   default) ENABLE_BACKTRACES=1
5616  ;;
5617   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5619    { (exit 1); exit 1; }; } ;;
5620 esac
5621
5622 cat >>confdefs.h <<_ACEOF
5623 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5624 _ACEOF
5625
5626
5627 TARGETS_TO_BUILD=""
5628 # Check whether --enable-targets was given.
5629 if test "${enable_targets+set}" = set; then
5630   enableval=$enable_targets;
5631 else
5632   enableval=all
5633 fi
5634
5635 if test "$enableval" = host-only ; then
5636   enableval=host
5637 fi
5638 case "$enableval" in
5639   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5640   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5641       case "$a_target" in
5642         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5643         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5644         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5645         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5646         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5647         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5648         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5652         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5653         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5654         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5655         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5656         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5657         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5658         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5659         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5660         host) case "$llvm_cv_target_arch" in
5661             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5664             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5665             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5666             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5667             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5668             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5669             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5670             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5671             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5672             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5673             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5674             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5675 echo "$as_me: error: Can not set target to build" >&2;}
5676    { (exit 1); exit 1; }; } ;;
5677           esac ;;
5678         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5679 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5680    { (exit 1); exit 1; }; } ;;
5681       esac
5682   done
5683   ;;
5684 esac
5685
5686 # Check whether --enable-experimental-targets was given.
5687 if test "${enable_experimental_targets+set}" = set; then
5688   enableval=$enable_experimental_targets;
5689 else
5690   enableval=disable
5691 fi
5692
5693
5694 if test ${enableval} != "disable"
5695 then
5696   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5697 fi
5698
5699 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5700
5701
5702 for a_target in $TARGETS_TO_BUILD; do
5703   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5704
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5707 _ACEOF
5708
5709     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5710     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5711     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5712     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5713     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5714       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5715     fi
5716     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5717       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5718     fi
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5722 _ACEOF
5723
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5727 _ACEOF
5728
5729
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5732 _ACEOF
5733
5734
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5737 _ACEOF
5738
5739     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5743 _ACEOF
5744
5745     fi
5746     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5750 _ACEOF
5751
5752     fi
5753   fi
5754 done
5755
5756 LLVM_ENUM_TARGETS=""
5757 LLVM_ENUM_ASM_PRINTERS=""
5758 LLVM_ENUM_ASM_PARSERS=""
5759 LLVM_ENUM_DISASSEMBLERS=""
5760 for target_to_build in $TARGETS_TO_BUILD; do
5761   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5762   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5763     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5764   fi
5765   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5766     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5767   fi
5768   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5769     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5770   fi
5771 done
5772
5773
5774
5775
5776
5777
5778 # Check whether --with-optimize-option was given.
5779 if test "${with_optimize_option+set}" = set; then
5780   withval=$with_optimize_option;
5781 else
5782   withval=default
5783 fi
5784
5785 { echo "$as_me:$LINENO: checking optimization flags" >&5
5786 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5787 case "$withval" in
5788   default)
5789     case "$llvm_cv_os_type" in
5790     FreeBSD) optimize_option=-O2 ;;
5791     MingW) optimize_option=-O2 ;;
5792     *)     optimize_option=-O3 ;;
5793     esac ;;
5794   *) optimize_option="$withval" ;;
5795 esac
5796 OPTIMIZE_OPTION=$optimize_option
5797
5798 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5799 echo "${ECHO_T}$optimize_option" >&6; }
5800
5801
5802 # Check whether --with-extra-options was given.
5803 if test "${with_extra_options+set}" = set; then
5804   withval=$with_extra_options;
5805 else
5806   withval=default
5807 fi
5808
5809 case "$withval" in
5810   default) EXTRA_OPTIONS= ;;
5811   *) EXTRA_OPTIONS=$withval ;;
5812 esac
5813 EXTRA_OPTIONS=$EXTRA_OPTIONS
5814
5815
5816
5817 # Check whether --with-extra-ld-options was given.
5818 if test "${with_extra_ld_options+set}" = set; then
5819   withval=$with_extra_ld_options;
5820 else
5821   withval=default
5822 fi
5823
5824 case "$withval" in
5825   default) EXTRA_LD_OPTIONS= ;;
5826   *) EXTRA_LD_OPTIONS=$withval ;;
5827 esac
5828 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5829
5830
5831 # Check whether --enable-bindings was given.
5832 if test "${enable_bindings+set}" = set; then
5833   enableval=$enable_bindings;
5834 else
5835   enableval=default
5836 fi
5837
5838 BINDINGS_TO_BUILD=""
5839 case "$enableval" in
5840   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5841   all ) BINDINGS_TO_BUILD="ocaml" ;;
5842   none | no) BINDINGS_TO_BUILD="" ;;
5843   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5844       case "$a_binding" in
5845         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5846         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5847 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5848    { (exit 1); exit 1; }; } ;;
5849       esac
5850   done
5851   ;;
5852 esac
5853
5854
5855 # Check whether --with-ocaml-libdir was given.
5856 if test "${with_ocaml_libdir+set}" = set; then
5857   withval=$with_ocaml_libdir;
5858 else
5859   withval=auto
5860 fi
5861
5862 case "$withval" in
5863   auto) with_ocaml_libdir="$withval" ;;
5864   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5865   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5866 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5867    { (exit 1); exit 1; }; } ;;
5868 esac
5869
5870
5871 # Check whether --with-clang-srcdir was given.
5872 if test "${with_clang_srcdir+set}" = set; then
5873   withval=$with_clang_srcdir;
5874 else
5875   withval="-"
5876 fi
5877
5878 case "$withval" in
5879   -) clang_src_root="" ;;
5880   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5881   *) clang_src_root="$ac_pwd/$withval" ;;
5882 esac
5883 CLANG_SRC_ROOT=$clang_src_root
5884
5885
5886
5887 # Check whether --with-clang-resource-dir was given.
5888 if test "${with_clang_resource_dir+set}" = set; then
5889   withval=$with_clang_resource_dir;
5890 else
5891   withval=""
5892 fi
5893
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define CLANG_RESOURCE_DIR "$withval"
5897 _ACEOF
5898
5899
5900
5901 # Check whether --with-c-include-dirs was given.
5902 if test "${with_c_include_dirs+set}" = set; then
5903   withval=$with_c_include_dirs;
5904 else
5905   withval=""
5906 fi
5907
5908
5909 cat >>confdefs.h <<_ACEOF
5910 #define C_INCLUDE_DIRS "$withval"
5911 _ACEOF
5912
5913
5914 # Clang normally uses the system c++ headers and libraries. With this option,
5915 # clang will use the ones provided by a gcc installation instead. This option should
5916 # be passed the same value that was used with --prefix when configuring gcc.
5917
5918 # Check whether --with-gcc-toolchain was given.
5919 if test "${with_gcc_toolchain+set}" = set; then
5920   withval=$with_gcc_toolchain;
5921 else
5922   withval=""
5923 fi
5924
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define GCC_INSTALL_PREFIX "$withval"
5928 _ACEOF
5929
5930
5931
5932 # Check whether --with-default-sysroot was given.
5933 if test "${with_default_sysroot+set}" = set; then
5934   withval=$with_default_sysroot;
5935 else
5936   withval=""
5937 fi
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define DEFAULT_SYSROOT "$withval"
5942 _ACEOF
5943
5944
5945
5946 # Check whether --with-binutils-include was given.
5947 if test "${with_binutils_include+set}" = set; then
5948   withval=$with_binutils_include;
5949 else
5950   withval=default
5951 fi
5952
5953 case "$withval" in
5954   default) WITH_BINUTILS_INCDIR=default ;;
5955   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5956   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5957 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5958    { (exit 1); exit 1; }; } ;;
5959 esac
5960 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5961   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5962
5963   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5964      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5965      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5966 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5967    { (exit 1); exit 1; }; };
5968   fi
5969 fi
5970
5971
5972 # Check whether --with-bug-report-url was given.
5973 if test "${with_bug_report_url+set}" = set; then
5974   withval=$with_bug_report_url;
5975 else
5976   withval="http://llvm.org/bugs/"
5977 fi
5978
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define BUG_REPORT_URL "$withval"
5982 _ACEOF
5983
5984
5985 # Check whether --enable-libffi was given.
5986 if test "${enable_libffi+set}" = set; then
5987   enableval=$enable_libffi; case "$enableval" in
5988     yes) llvm_cv_enable_libffi="yes" ;;
5989     no)  llvm_cv_enable_libffi="no"  ;;
5990     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5991 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5992    { (exit 1); exit 1; }; } ;;
5993   esac
5994 else
5995   llvm_cv_enable_libffi=no
5996 fi
5997
5998
5999
6000 # Check whether --with-internal-prefix was given.
6001 if test "${with_internal_prefix+set}" = set; then
6002   withval=$with_internal_prefix;
6003 else
6004   withval=""
6005 fi
6006
6007 INTERNAL_PREFIX=$withval
6008
6009
6010
6011 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6012 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6013 if test "${lt_cv_path_NM+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   if test -n "$NM"; then
6017   # Let the user override the test.
6018   lt_cv_path_NM="$NM"
6019 else
6020   lt_nm_to_check="${ac_tool_prefix}nm"
6021   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6022     lt_nm_to_check="$lt_nm_to_check nm"
6023   fi
6024   for lt_tmp_nm in $lt_nm_to_check; do
6025     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6026     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6027       IFS="$lt_save_ifs"
6028       test -z "$ac_dir" && ac_dir=.
6029       tmp_nm="$ac_dir/$lt_tmp_nm"
6030       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6031         # Check to see if the nm accepts a BSD-compat flag.
6032         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6033         #   nm: unknown option "B" ignored
6034         # Tru64's nm complains that /dev/null is an invalid object file
6035         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6036         */dev/null* | *'Invalid file or object type'*)
6037           lt_cv_path_NM="$tmp_nm -B"
6038           break
6039           ;;
6040         *)
6041           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6042           */dev/null*)
6043             lt_cv_path_NM="$tmp_nm -p"
6044             break
6045             ;;
6046           *)
6047             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6048             continue # so that we can try to find one that supports BSD flags
6049             ;;
6050           esac
6051           ;;
6052         esac
6053       fi
6054     done
6055     IFS="$lt_save_ifs"
6056   done
6057   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6058 fi
6059 fi
6060 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6061 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6062 NM="$lt_cv_path_NM"
6063
6064
6065
6066 { echo "$as_me:$LINENO: checking for GNU make" >&5
6067 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6068 if test "${llvm_cv_gnu_make_command+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   llvm_cv_gnu_make_command=''
6072  for a in "$MAKE" make gmake gnumake ; do
6073   if test -z "$a" ; then continue ; fi ;
6074   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6075   then
6076    llvm_cv_gnu_make_command=$a ;
6077    break;
6078   fi
6079  done
6080 fi
6081 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6082 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6083  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6084    ifGNUmake='' ;
6085  else
6086    ifGNUmake='#' ;
6087    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6088 echo "${ECHO_T}\"Not found\"" >&6; };
6089  fi
6090
6091
6092 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6093 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6094 LN_S=$as_ln_s
6095 if test "$LN_S" = "ln -s"; then
6096   { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6098 else
6099   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6100 echo "${ECHO_T}no, using $LN_S" >&6; }
6101 fi
6102
6103 # Extract the first word of "cmp", so it can be a program name with args.
6104 set dummy cmp; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_path_CMP+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   case $CMP in
6111   [\\/]* | ?:[\\/]*)
6112   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6113   ;;
6114   *)
6115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120   for ac_exec_ext in '' $ac_executable_extensions; do
6121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6131   ;;
6132 esac
6133 fi
6134 CMP=$ac_cv_path_CMP
6135 if test -n "$CMP"; then
6136   { echo "$as_me:$LINENO: result: $CMP" >&5
6137 echo "${ECHO_T}$CMP" >&6; }
6138 else
6139   { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6141 fi
6142
6143
6144 # Extract the first word of "cp", so it can be a program name with args.
6145 set dummy cp; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_CP+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   case $CP in
6152   [\\/]* | ?:[\\/]*)
6153   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6154   ;;
6155   *)
6156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6172   ;;
6173 esac
6174 fi
6175 CP=$ac_cv_path_CP
6176 if test -n "$CP"; then
6177   { echo "$as_me:$LINENO: result: $CP" >&5
6178 echo "${ECHO_T}$CP" >&6; }
6179 else
6180   { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6182 fi
6183
6184
6185 # Extract the first word of "date", so it can be a program name with args.
6186 set dummy date; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_DATE+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   case $DATE in
6193   [\\/]* | ?:[\\/]*)
6194   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6195   ;;
6196   *)
6197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6213   ;;
6214 esac
6215 fi
6216 DATE=$ac_cv_path_DATE
6217 if test -n "$DATE"; then
6218   { echo "$as_me:$LINENO: result: $DATE" >&5
6219 echo "${ECHO_T}$DATE" >&6; }
6220 else
6221   { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6223 fi
6224
6225
6226 # Extract the first word of "find", so it can be a program name with args.
6227 set dummy find; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_FIND+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   case $FIND in
6234   [\\/]* | ?:[\\/]*)
6235   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6236   ;;
6237   *)
6238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6254   ;;
6255 esac
6256 fi
6257 FIND=$ac_cv_path_FIND
6258 if test -n "$FIND"; then
6259   { echo "$as_me:$LINENO: result: $FIND" >&5
6260 echo "${ECHO_T}$FIND" >&6; }
6261 else
6262   { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6264 fi
6265
6266
6267 # Extract the first word of "grep", so it can be a program name with args.
6268 set dummy grep; 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_path_GREP+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   case $GREP in
6275   [\\/]* | ?:[\\/]*)
6276   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6277   ;;
6278   *)
6279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284   for ac_exec_ext in '' $ac_executable_extensions; do
6285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6295   ;;
6296 esac
6297 fi
6298 GREP=$ac_cv_path_GREP
6299 if test -n "$GREP"; then
6300   { echo "$as_me:$LINENO: result: $GREP" >&5
6301 echo "${ECHO_T}$GREP" >&6; }
6302 else
6303   { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6305 fi
6306
6307
6308 # Extract the first word of "mkdir", so it can be a program name with args.
6309 set dummy mkdir; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_path_MKDIR+set}" = set; then
6313   echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315   case $MKDIR in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325   for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6336   ;;
6337 esac
6338 fi
6339 MKDIR=$ac_cv_path_MKDIR
6340 if test -n "$MKDIR"; then
6341   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6342 echo "${ECHO_T}$MKDIR" >&6; }
6343 else
6344   { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6346 fi
6347
6348
6349 # Extract the first word of "mv", so it can be a program name with args.
6350 set dummy mv; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_MV+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   case $MV in
6357   [\\/]* | ?:[\\/]*)
6358   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6359   ;;
6360   *)
6361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364   IFS=$as_save_IFS
6365   test -z "$as_dir" && as_dir=.
6366   for ac_exec_ext in '' $ac_executable_extensions; do
6367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370     break 2
6371   fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6377   ;;
6378 esac
6379 fi
6380 MV=$ac_cv_path_MV
6381 if test -n "$MV"; then
6382   { echo "$as_me:$LINENO: result: $MV" >&5
6383 echo "${ECHO_T}$MV" >&6; }
6384 else
6385   { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6387 fi
6388
6389
6390 if test -n "$ac_tool_prefix"; then
6391   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_RANLIB+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   if test -n "$RANLIB"; then
6399   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406   for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 RANLIB=$ac_cv_prog_RANLIB
6419 if test -n "$RANLIB"; then
6420   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6421 echo "${ECHO_T}$RANLIB" >&6; }
6422 else
6423   { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6425 fi
6426
6427
6428 fi
6429 if test -z "$ac_cv_prog_RANLIB"; then
6430   ac_ct_RANLIB=$RANLIB
6431   # Extract the first word of "ranlib", so it can be a program name with args.
6432 set dummy ranlib; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   if test -n "$ac_ct_RANLIB"; then
6439   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446   for ac_exec_ext in '' $ac_executable_extensions; do
6447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6448     ac_cv_prog_ac_ct_RANLIB="ranlib"
6449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459 if test -n "$ac_ct_RANLIB"; then
6460   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6461 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6462 else
6463   { echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6; }
6465 fi
6466
6467   if test "x$ac_ct_RANLIB" = x; then
6468     RANLIB=":"
6469   else
6470     case $cross_compiling:$ac_tool_warned in
6471 yes:)
6472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6473 whose name does not start with the host triplet.  If you think this
6474 configuration is useful to you, please write to autoconf@gnu.org." >&5
6475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6476 whose name does not start with the host triplet.  If you think this
6477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6478 ac_tool_warned=yes ;;
6479 esac
6480     RANLIB=$ac_ct_RANLIB
6481   fi
6482 else
6483   RANLIB="$ac_cv_prog_RANLIB"
6484 fi
6485
6486 if test -n "$ac_tool_prefix"; then
6487   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}ar; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_AR+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   if test -n "$AR"; then
6495   ac_cv_prog_AR="$AR" # Let the user override the test.
6496 else
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_prog_AR="${ac_tool_prefix}ar"
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 fi
6513 fi
6514 AR=$ac_cv_prog_AR
6515 if test -n "$AR"; then
6516   { echo "$as_me:$LINENO: result: $AR" >&5
6517 echo "${ECHO_T}$AR" >&6; }
6518 else
6519   { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6521 fi
6522
6523
6524 fi
6525 if test -z "$ac_cv_prog_AR"; then
6526   ac_ct_AR=$AR
6527   # Extract the first word of "ar", so it can be a program name with args.
6528 set dummy ar; 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_prog_ac_ct_AR+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   if test -n "$ac_ct_AR"; then
6535   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542   for ac_exec_ext in '' $ac_executable_extensions; do
6543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544     ac_cv_prog_ac_ct_AR="ar"
6545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549 done
6550 IFS=$as_save_IFS
6551
6552 fi
6553 fi
6554 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6555 if test -n "$ac_ct_AR"; then
6556   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6557 echo "${ECHO_T}$ac_ct_AR" >&6; }
6558 else
6559   { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6561 fi
6562
6563   if test "x$ac_ct_AR" = x; then
6564     AR="false"
6565   else
6566     case $cross_compiling:$ac_tool_warned in
6567 yes:)
6568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6569 whose name does not start with the host triplet.  If you think this
6570 configuration is useful to you, please write to autoconf@gnu.org." >&5
6571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6572 whose name does not start with the host triplet.  If you think this
6573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6574 ac_tool_warned=yes ;;
6575 esac
6576     AR=$ac_ct_AR
6577   fi
6578 else
6579   AR="$ac_cv_prog_AR"
6580 fi
6581
6582 # Extract the first word of "rm", so it can be a program name with args.
6583 set dummy rm; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_RM+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   case $RM in
6590   [\\/]* | ?:[\\/]*)
6591   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6592   ;;
6593   *)
6594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599   for ac_exec_ext in '' $ac_executable_extensions; do
6600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6610   ;;
6611 esac
6612 fi
6613 RM=$ac_cv_path_RM
6614 if test -n "$RM"; then
6615   { echo "$as_me:$LINENO: result: $RM" >&5
6616 echo "${ECHO_T}$RM" >&6; }
6617 else
6618   { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6620 fi
6621
6622
6623 # Extract the first word of "sed", so it can be a program name with args.
6624 set dummy sed; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_SED+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   case $SED in
6631   [\\/]* | ?:[\\/]*)
6632   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6633   ;;
6634   *)
6635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6651   ;;
6652 esac
6653 fi
6654 SED=$ac_cv_path_SED
6655 if test -n "$SED"; then
6656   { echo "$as_me:$LINENO: result: $SED" >&5
6657 echo "${ECHO_T}$SED" >&6; }
6658 else
6659   { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6661 fi
6662
6663
6664 # Extract the first word of "tar", so it can be a program name with args.
6665 set dummy tar; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_TAR+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   case $TAR in
6672   [\\/]* | ?:[\\/]*)
6673   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6674   ;;
6675   *)
6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6692   ;;
6693 esac
6694 fi
6695 TAR=$ac_cv_path_TAR
6696 if test -n "$TAR"; then
6697   { echo "$as_me:$LINENO: result: $TAR" >&5
6698 echo "${ECHO_T}$TAR" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6702 fi
6703
6704
6705 # Extract the first word of "pwd", so it can be a program name with args.
6706 set dummy pwd; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_BINPWD+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   case $BINPWD in
6713   [\\/]* | ?:[\\/]*)
6714   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6715   ;;
6716   *)
6717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722   for ac_exec_ext in '' $ac_executable_extensions; do
6723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726     break 2
6727   fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6733   ;;
6734 esac
6735 fi
6736 BINPWD=$ac_cv_path_BINPWD
6737 if test -n "$BINPWD"; then
6738   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6739 echo "${ECHO_T}$BINPWD" >&6; }
6740 else
6741   { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6743 fi
6744
6745
6746
6747 # Extract the first word of "Graphviz", so it can be a program name with args.
6748 set dummy Graphviz; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   case $GRAPHVIZ in
6755   [\\/]* | ?:[\\/]*)
6756   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6757   ;;
6758   *)
6759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764   for ac_exec_ext in '' $ac_executable_extensions; do
6765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6775   ;;
6776 esac
6777 fi
6778 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6779 if test -n "$GRAPHVIZ"; then
6780   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6781 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787
6788 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6789
6790 cat >>confdefs.h <<\_ACEOF
6791 #define HAVE_GRAPHVIZ 1
6792 _ACEOF
6793
6794     if test "$llvm_cv_os_type" = "MingW" ; then
6795     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6796   fi
6797
6798 cat >>confdefs.h <<_ACEOF
6799 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6800 _ACEOF
6801
6802 fi
6803 # Extract the first word of "dot", so it can be a program name with args.
6804 set dummy dot; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_DOT+set}" = set; then
6808   echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810   case $DOT in
6811   [\\/]* | ?:[\\/]*)
6812   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6813   ;;
6814   *)
6815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820   for ac_exec_ext in '' $ac_executable_extensions; do
6821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827 done
6828 IFS=$as_save_IFS
6829
6830   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6831   ;;
6832 esac
6833 fi
6834 DOT=$ac_cv_path_DOT
6835 if test -n "$DOT"; then
6836   { echo "$as_me:$LINENO: result: $DOT" >&5
6837 echo "${ECHO_T}$DOT" >&6; }
6838 else
6839   { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6841 fi
6842
6843
6844 if test "$DOT" != "echo dot" ; then
6845
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_DOT 1
6848 _ACEOF
6849
6850     if test "$llvm_cv_os_type" = "MingW" ; then
6851     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6852   fi
6853
6854 cat >>confdefs.h <<_ACEOF
6855 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6856 _ACEOF
6857
6858 fi
6859 # Extract the first word of "fdp", so it can be a program name with args.
6860 set dummy fdp; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_path_FDP+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   case $FDP in
6867   [\\/]* | ?:[\\/]*)
6868   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6869   ;;
6870   *)
6871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876   for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6887   ;;
6888 esac
6889 fi
6890 FDP=$ac_cv_path_FDP
6891 if test -n "$FDP"; then
6892   { echo "$as_me:$LINENO: result: $FDP" >&5
6893 echo "${ECHO_T}$FDP" >&6; }
6894 else
6895   { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6897 fi
6898
6899
6900 if test "$FDP" != "echo fdp" ; then
6901
6902 cat >>confdefs.h <<\_ACEOF
6903 #define HAVE_FDP 1
6904 _ACEOF
6905
6906     if test "$llvm_cv_os_type" = "MingW" ; then
6907     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6908   fi
6909
6910 cat >>confdefs.h <<_ACEOF
6911 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6912 _ACEOF
6913
6914 fi
6915 # Extract the first word of "neato", so it can be a program name with args.
6916 set dummy neato; ac_word=$2
6917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6919 if test "${ac_cv_path_NEATO+set}" = set; then
6920   echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922   case $NEATO in
6923   [\\/]* | ?:[\\/]*)
6924   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6925   ;;
6926   *)
6927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930   IFS=$as_save_IFS
6931   test -z "$as_dir" && as_dir=.
6932   for ac_exec_ext in '' $ac_executable_extensions; do
6933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6934     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936     break 2
6937   fi
6938 done
6939 done
6940 IFS=$as_save_IFS
6941
6942   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6943   ;;
6944 esac
6945 fi
6946 NEATO=$ac_cv_path_NEATO
6947 if test -n "$NEATO"; then
6948   { echo "$as_me:$LINENO: result: $NEATO" >&5
6949 echo "${ECHO_T}$NEATO" >&6; }
6950 else
6951   { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6953 fi
6954
6955
6956 if test "$NEATO" != "echo neato" ; then
6957
6958 cat >>confdefs.h <<\_ACEOF
6959 #define HAVE_NEATO 1
6960 _ACEOF
6961
6962     if test "$llvm_cv_os_type" = "MingW" ; then
6963     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6964   fi
6965
6966 cat >>confdefs.h <<_ACEOF
6967 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6968 _ACEOF
6969
6970 fi
6971 # Extract the first word of "twopi", so it can be a program name with args.
6972 set dummy twopi; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_TWOPI+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   case $TWOPI in
6979   [\\/]* | ?:[\\/]*)
6980   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6981   ;;
6982   *)
6983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988   for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6999   ;;
7000 esac
7001 fi
7002 TWOPI=$ac_cv_path_TWOPI
7003 if test -n "$TWOPI"; then
7004   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7005 echo "${ECHO_T}$TWOPI" >&6; }
7006 else
7007   { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7009 fi
7010
7011
7012 if test "$TWOPI" != "echo twopi" ; then
7013
7014 cat >>confdefs.h <<\_ACEOF
7015 #define HAVE_TWOPI 1
7016 _ACEOF
7017
7018     if test "$llvm_cv_os_type" = "MingW" ; then
7019     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7020   fi
7021
7022 cat >>confdefs.h <<_ACEOF
7023 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7024 _ACEOF
7025
7026 fi
7027 # Extract the first word of "circo", so it can be a program name with args.
7028 set dummy circo; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_path_CIRCO+set}" = set; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034   case $CIRCO in
7035   [\\/]* | ?:[\\/]*)
7036   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7037   ;;
7038   *)
7039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7055   ;;
7056 esac
7057 fi
7058 CIRCO=$ac_cv_path_CIRCO
7059 if test -n "$CIRCO"; then
7060   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7061 echo "${ECHO_T}$CIRCO" >&6; }
7062 else
7063   { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7065 fi
7066
7067
7068 if test "$CIRCO" != "echo circo" ; then
7069
7070 cat >>confdefs.h <<\_ACEOF
7071 #define HAVE_CIRCO 1
7072 _ACEOF
7073
7074     if test "$llvm_cv_os_type" = "MingW" ; then
7075     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7076   fi
7077
7078 cat >>confdefs.h <<_ACEOF
7079 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7080 _ACEOF
7081
7082 fi
7083 for ac_prog in gv gsview32
7084 do
7085   # Extract the first word of "$ac_prog", so it can be a program name with args.
7086 set dummy $ac_prog; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_GV+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   case $GV in
7093   [\\/]* | ?:[\\/]*)
7094   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7095   ;;
7096   *)
7097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102   for ac_exec_ext in '' $ac_executable_extensions; do
7103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112   ;;
7113 esac
7114 fi
7115 GV=$ac_cv_path_GV
7116 if test -n "$GV"; then
7117   { echo "$as_me:$LINENO: result: $GV" >&5
7118 echo "${ECHO_T}$GV" >&6; }
7119 else
7120   { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7122 fi
7123
7124
7125   test -n "$GV" && break
7126 done
7127 test -n "$GV" || GV="echo gv"
7128
7129 if test "$GV" != "echo gv" ; then
7130
7131 cat >>confdefs.h <<\_ACEOF
7132 #define HAVE_GV 1
7133 _ACEOF
7134
7135     if test "$llvm_cv_os_type" = "MingW" ; then
7136     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7137   fi
7138
7139 cat >>confdefs.h <<_ACEOF
7140 #define LLVM_PATH_GV "$GV${EXEEXT}"
7141 _ACEOF
7142
7143 fi
7144 # Extract the first word of "dotty", so it can be a program name with args.
7145 set dummy dotty; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_DOTTY+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   case $DOTTY in
7152   [\\/]* | ?:[\\/]*)
7153   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7154   ;;
7155   *)
7156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159   IFS=$as_save_IFS
7160   test -z "$as_dir" && as_dir=.
7161   for ac_exec_ext in '' $ac_executable_extensions; do
7162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165     break 2
7166   fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7172   ;;
7173 esac
7174 fi
7175 DOTTY=$ac_cv_path_DOTTY
7176 if test -n "$DOTTY"; then
7177   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7178 echo "${ECHO_T}$DOTTY" >&6; }
7179 else
7180   { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7182 fi
7183
7184
7185 if test "$DOTTY" != "echo dotty" ; then
7186
7187 cat >>confdefs.h <<\_ACEOF
7188 #define HAVE_DOTTY 1
7189 _ACEOF
7190
7191     if test "$llvm_cv_os_type" = "MingW" ; then
7192     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7193   fi
7194
7195 cat >>confdefs.h <<_ACEOF
7196 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7197 _ACEOF
7198
7199 fi
7200 # Extract the first word of "xdot.py", so it can be a program name with args.
7201 set dummy xdot.py; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   case $XDOT_PY in
7208   [\\/]* | ?:[\\/]*)
7209   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7210   ;;
7211   *)
7212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217   for ac_exec_ext in '' $ac_executable_extensions; do
7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7228   ;;
7229 esac
7230 fi
7231 XDOT_PY=$ac_cv_path_XDOT_PY
7232 if test -n "$XDOT_PY"; then
7233   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7234 echo "${ECHO_T}$XDOT_PY" >&6; }
7235 else
7236   { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7238 fi
7239
7240
7241 if test "$XDOT_PY" != "echo xdot.py" ; then
7242
7243 cat >>confdefs.h <<\_ACEOF
7244 #define HAVE_XDOT_PY 1
7245 _ACEOF
7246
7247     if test "$llvm_cv_os_type" = "MingW" ; then
7248     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7249   fi
7250
7251 cat >>confdefs.h <<_ACEOF
7252 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7253 _ACEOF
7254
7255 fi
7256
7257 # Find a good install program.  We prefer a C program (faster),
7258 # so one script is as good as another.  But avoid the broken or
7259 # incompatible versions:
7260 # SysV /etc/install, /usr/sbin/install
7261 # SunOS /usr/etc/install
7262 # IRIX /sbin/install
7263 # AIX /bin/install
7264 # AmigaOS /C/install, which installs bootblocks on floppy discs
7265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7268 # OS/2's system install, which has a completely different semantic
7269 # ./install, which can be erroneously created by make from ./install.sh.
7270 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7272 if test -z "$INSTALL"; then
7273 if test "${ac_cv_path_install+set}" = set; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279   IFS=$as_save_IFS
7280   test -z "$as_dir" && as_dir=.
7281   # Account for people who put trailing slashes in PATH elements.
7282 case $as_dir/ in
7283   ./ | .// | /cC/* | \
7284   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7285   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7286   /usr/ucb/* ) ;;
7287   *)
7288     # OSF1 and SCO ODT 3.0 have their own names for install.
7289     # Don't use installbsd from OSF since it installs stuff as root
7290     # by default.
7291     for ac_prog in ginstall scoinst install; do
7292       for ac_exec_ext in '' $ac_executable_extensions; do
7293         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7294           if test $ac_prog = install &&
7295             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7296             # AIX install.  It has an incompatible calling convention.
7297             :
7298           elif test $ac_prog = install &&
7299             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7300             # program-specific install script used by HP pwplus--don't use.
7301             :
7302           else
7303             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7304             break 3
7305           fi
7306         fi
7307       done
7308     done
7309     ;;
7310 esac
7311 done
7312 IFS=$as_save_IFS
7313
7314
7315 fi
7316   if test "${ac_cv_path_install+set}" = set; then
7317     INSTALL=$ac_cv_path_install
7318   else
7319     # As a last resort, use the slow shell script.  Don't cache a
7320     # value for INSTALL within a source directory, because that will
7321     # break other packages using the cache if that directory is
7322     # removed, or if the value is a relative name.
7323     INSTALL=$ac_install_sh
7324   fi
7325 fi
7326 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7327 echo "${ECHO_T}$INSTALL" >&6; }
7328
7329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7330 # It thinks the first close brace ends the variable substitution.
7331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7332
7333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7334
7335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7336
7337 case "$INSTALL" in
7338  [\\/$]* | ?:[\\/]* ) ;;
7339  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7340 esac
7341
7342 # Extract the first word of "bzip2", so it can be a program name with args.
7343 set dummy bzip2; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BZIP2+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   case $BZIP2 in
7350   [\\/]* | ?:[\\/]*)
7351   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7352   ;;
7353   *)
7354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359   for ac_exec_ext in '' $ac_executable_extensions; do
7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369   ;;
7370 esac
7371 fi
7372 BZIP2=$ac_cv_path_BZIP2
7373 if test -n "$BZIP2"; then
7374   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7375 echo "${ECHO_T}$BZIP2" >&6; }
7376 else
7377   { echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6; }
7379 fi
7380
7381
7382 # Extract the first word of "cat", so it can be a program name with args.
7383 set dummy cat; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_CAT+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   case $CAT in
7390   [\\/]* | ?:[\\/]*)
7391   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7392   ;;
7393   *)
7394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399   for ac_exec_ext in '' $ac_executable_extensions; do
7400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7401     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409   ;;
7410 esac
7411 fi
7412 CAT=$ac_cv_path_CAT
7413 if test -n "$CAT"; then
7414   { echo "$as_me:$LINENO: result: $CAT" >&5
7415 echo "${ECHO_T}$CAT" >&6; }
7416 else
7417   { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7419 fi
7420
7421
7422 # Extract the first word of "doxygen", so it can be a program name with args.
7423 set dummy doxygen; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   case $DOXYGEN in
7430   [\\/]* | ?:[\\/]*)
7431   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7432   ;;
7433   *)
7434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437   IFS=$as_save_IFS
7438   test -z "$as_dir" && as_dir=.
7439   for ac_exec_ext in '' $ac_executable_extensions; do
7440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443     break 2
7444   fi
7445 done
7446 done
7447 IFS=$as_save_IFS
7448
7449   ;;
7450 esac
7451 fi
7452 DOXYGEN=$ac_cv_path_DOXYGEN
7453 if test -n "$DOXYGEN"; then
7454   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7455 echo "${ECHO_T}$DOXYGEN" >&6; }
7456 else
7457   { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7459 fi
7460
7461
7462 # Extract the first word of "groff", so it can be a program name with args.
7463 set dummy groff; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_GROFF+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   case $GROFF in
7470   [\\/]* | ?:[\\/]*)
7471   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7472   ;;
7473   *)
7474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479   for ac_exec_ext in '' $ac_executable_extensions; do
7480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489   ;;
7490 esac
7491 fi
7492 GROFF=$ac_cv_path_GROFF
7493 if test -n "$GROFF"; then
7494   { echo "$as_me:$LINENO: result: $GROFF" >&5
7495 echo "${ECHO_T}$GROFF" >&6; }
7496 else
7497   { echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6; }
7499 fi
7500
7501
7502 # Extract the first word of "gzip", so it can be a program name with args.
7503 set dummy gzip; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   case $GZIPBIN in
7510   [\\/]* | ?:[\\/]*)
7511   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7512   ;;
7513   *)
7514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519   for ac_exec_ext in '' $ac_executable_extensions; do
7520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529   ;;
7530 esac
7531 fi
7532 GZIPBIN=$ac_cv_path_GZIPBIN
7533 if test -n "$GZIPBIN"; then
7534   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7535 echo "${ECHO_T}$GZIPBIN" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542 # Extract the first word of "pdfroff", so it can be a program name with args.
7543 set dummy pdfroff; ac_word=$2
7544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7546 if test "${ac_cv_path_PDFROFF+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549   case $PDFROFF in
7550   [\\/]* | ?:[\\/]*)
7551   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7552   ;;
7553   *)
7554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559   for ac_exec_ext in '' $ac_executable_extensions; do
7560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7561     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569   ;;
7570 esac
7571 fi
7572 PDFROFF=$ac_cv_path_PDFROFF
7573 if test -n "$PDFROFF"; then
7574   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7575 echo "${ECHO_T}$PDFROFF" >&6; }
7576 else
7577   { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7579 fi
7580
7581
7582 # Extract the first word of "zip", so it can be a program name with args.
7583 set dummy zip; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_ZIP+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   case $ZIP in
7590   [\\/]* | ?:[\\/]*)
7591   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7592   ;;
7593   *)
7594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609   ;;
7610 esac
7611 fi
7612 ZIP=$ac_cv_path_ZIP
7613 if test -n "$ZIP"; then
7614   { echo "$as_me:$LINENO: result: $ZIP" >&5
7615 echo "${ECHO_T}$ZIP" >&6; }
7616 else
7617   { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7619 fi
7620
7621
7622 for ac_prog in ocamlc
7623 do
7624   # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_OCAMLC+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   case $OCAMLC in
7632   [\\/]* | ?:[\\/]*)
7633   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7634   ;;
7635   *)
7636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641   for ac_exec_ext in '' $ac_executable_extensions; do
7642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651   ;;
7652 esac
7653 fi
7654 OCAMLC=$ac_cv_path_OCAMLC
7655 if test -n "$OCAMLC"; then
7656   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7657 echo "${ECHO_T}$OCAMLC" >&6; }
7658 else
7659   { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7661 fi
7662
7663
7664   test -n "$OCAMLC" && break
7665 done
7666
7667 for ac_prog in ocamlopt
7668 do
7669   # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   case $OCAMLOPT in
7677   [\\/]* | ?:[\\/]*)
7678   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7679   ;;
7680   *)
7681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696   ;;
7697 esac
7698 fi
7699 OCAMLOPT=$ac_cv_path_OCAMLOPT
7700 if test -n "$OCAMLOPT"; then
7701   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7702 echo "${ECHO_T}$OCAMLOPT" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7706 fi
7707
7708
7709   test -n "$OCAMLOPT" && break
7710 done
7711
7712 for ac_prog in ocamldep
7713 do
7714   # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   case $OCAMLDEP in
7722   [\\/]* | ?:[\\/]*)
7723   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7724   ;;
7725   *)
7726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729   IFS=$as_save_IFS
7730   test -z "$as_dir" && as_dir=.
7731   for ac_exec_ext in '' $ac_executable_extensions; do
7732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735     break 2
7736   fi
7737 done
7738 done
7739 IFS=$as_save_IFS
7740
7741   ;;
7742 esac
7743 fi
7744 OCAMLDEP=$ac_cv_path_OCAMLDEP
7745 if test -n "$OCAMLDEP"; then
7746   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7747 echo "${ECHO_T}$OCAMLDEP" >&6; }
7748 else
7749   { echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6; }
7751 fi
7752
7753
7754   test -n "$OCAMLDEP" && break
7755 done
7756
7757 for ac_prog in ocamldoc
7758 do
7759   # Extract the first word of "$ac_prog", so it can be a program name with args.
7760 set dummy $ac_prog; ac_word=$2
7761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7763 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7764   echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766   case $OCAMLDOC in
7767   [\\/]* | ?:[\\/]*)
7768   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7769   ;;
7770   *)
7771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776   for ac_exec_ext in '' $ac_executable_extensions; do
7777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7778     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786   ;;
7787 esac
7788 fi
7789 OCAMLDOC=$ac_cv_path_OCAMLDOC
7790 if test -n "$OCAMLDOC"; then
7791   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7792 echo "${ECHO_T}$OCAMLDOC" >&6; }
7793 else
7794   { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7796 fi
7797
7798
7799   test -n "$OCAMLDOC" && break
7800 done
7801
7802 for ac_prog in gas as
7803 do
7804   # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7808 if test "${ac_cv_path_GAS+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   case $GAS in
7812   [\\/]* | ?:[\\/]*)
7813   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7814   ;;
7815   *)
7816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819   IFS=$as_save_IFS
7820   test -z "$as_dir" && as_dir=.
7821   for ac_exec_ext in '' $ac_executable_extensions; do
7822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7823     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825     break 2
7826   fi
7827 done
7828 done
7829 IFS=$as_save_IFS
7830
7831   ;;
7832 esac
7833 fi
7834 GAS=$ac_cv_path_GAS
7835 if test -n "$GAS"; then
7836   { echo "$as_me:$LINENO: result: $GAS" >&5
7837 echo "${ECHO_T}$GAS" >&6; }
7838 else
7839   { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7841 fi
7842
7843
7844   test -n "$GAS" && break
7845 done
7846
7847
7848 { echo "$as_me:$LINENO: checking for linker version" >&5
7849 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7850 if test "${llvm_cv_link_version+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853
7854    version_string="$(ld -v 2>&1 | head -1)"
7855
7856    # Check for ld64.
7857    if (echo "$version_string" | grep -q "ld64"); then
7858      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7859    else
7860      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7861    fi
7862
7863 fi
7864 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7865 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7866
7867 cat >>confdefs.h <<_ACEOF
7868 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7869 _ACEOF
7870
7871
7872
7873 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7874 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7875 if test "${llvm_cv_link_use_r+set}" = set; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878    ac_ext=c
7879 ac_cpp='$CPP $CPPFLAGS'
7880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883
7884   oldcflags="$CFLAGS"
7885   CFLAGS="$CFLAGS -Wl,-R."
7886   cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h.  */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h.  */
7892
7893 int
7894 main ()
7895 {
7896
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7903 case "(($ac_try" in
7904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905   *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908   (eval "$ac_link") 2>conftest.er1
7909   ac_status=$?
7910   grep -v '^ *+' conftest.er1 >conftest.err
7911   rm -f conftest.er1
7912   cat conftest.err >&5
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); } &&
7915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7916   { (case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_try") 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; } &&
7925          { ac_try='test -s conftest$ac_exeext'
7926   { (case "(($ac_try" in
7927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928   *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931   (eval "$ac_try") 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); }; }; then
7935   llvm_cv_link_use_r=yes
7936 else
7937   echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940         llvm_cv_link_use_r=no
7941 fi
7942
7943 rm -f core conftest.err conftest.$ac_objext \
7944       conftest$ac_exeext conftest.$ac_ext
7945   CFLAGS="$oldcflags"
7946   ac_ext=c
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7951
7952
7953 fi
7954 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7955 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7956 if test "$llvm_cv_link_use_r" = yes ; then
7957
7958 cat >>confdefs.h <<\_ACEOF
7959 #define HAVE_LINK_R 1
7960 _ACEOF
7961
7962   fi
7963
7964
7965 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7966 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7967 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7968   echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970    ac_ext=c
7971 ac_cpp='$CPP $CPPFLAGS'
7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975
7976   oldcflags="$CFLAGS"
7977   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7978   cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h.  */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h.  */
7984
7985 int
7986 main ()
7987 {
7988
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (ac_try="$ac_link"
7995 case "(($ac_try" in
7996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997   *) ac_try_echo=$ac_try;;
7998 esac
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000   (eval "$ac_link") 2>conftest.er1
8001   ac_status=$?
8002   grep -v '^ *+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } &&
8007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8008   { (case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_try") 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; } &&
8017          { ac_try='test -s conftest$ac_exeext'
8018   { (case "(($ac_try" in
8019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020   *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023   (eval "$ac_try") 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); }; }; then
8027   llvm_cv_link_use_export_dynamic=yes
8028 else
8029   echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8031
8032         llvm_cv_link_use_export_dynamic=no
8033 fi
8034
8035 rm -f core conftest.err conftest.$ac_objext \
8036       conftest$ac_exeext conftest.$ac_ext
8037   CFLAGS="$oldcflags"
8038   ac_ext=c
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8043
8044
8045 fi
8046 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8047 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8048 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8049
8050 cat >>confdefs.h <<\_ACEOF
8051 #define HAVE_LINK_EXPORT_DYNAMIC 1
8052 _ACEOF
8053
8054   fi
8055
8056
8057 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8058 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8059 if test "${llvm_cv_link_use_version_script+set}" = set; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062    ac_ext=c
8063 ac_cpp='$CPP $CPPFLAGS'
8064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067
8068   oldcflags="$CFLAGS"
8069
8070   # The following code is from the autoconf manual,
8071   # "11.13: Limitations of Usual Tools".
8072   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8073   # Use mktemp if possible; otherwise fall back on mkdir,
8074   # with $RANDOM to make collisions less likely.
8075   : ${TMPDIR=/tmp}
8076   {
8077     tmp=`
8078       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8079     ` &&
8080     test -n "$tmp" && test -d "$tmp"
8081   } || {
8082     tmp=$TMPDIR/foo$$-$RANDOM
8083     (umask 077 && mkdir "$tmp")
8084   } || exit $?
8085
8086   echo "{" > "$tmp/export.map"
8087   echo "  global: main;" >> "$tmp/export.map"
8088   echo "  local: *;" >> "$tmp/export.map"
8089   echo "};" >> "$tmp/export.map"
8090
8091   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8092   cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098
8099 int
8100 main ()
8101 {
8102
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8109 case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_link") 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } &&
8121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; } &&
8131          { ac_try='test -s conftest$ac_exeext'
8132   { (case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_try") 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141   llvm_cv_link_use_version_script=yes
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146         llvm_cv_link_use_version_script=no
8147 fi
8148
8149 rm -f core conftest.err conftest.$ac_objext \
8150       conftest$ac_exeext conftest.$ac_ext
8151   rm "$tmp/export.map"
8152   rmdir "$tmp"
8153   CFLAGS="$oldcflags"
8154   ac_ext=c
8155 ac_cpp='$CPP $CPPFLAGS'
8156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8159
8160
8161 fi
8162 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8163 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8164 if test "$llvm_cv_link_use_version_script" = yes ; then
8165   HAVE_LINK_VERSION_SCRIPT=1
8166
8167   fi
8168
8169
8170
8171
8172 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8173 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8174 if test "${ac_cv_c_const+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183
8184 int
8185 main ()
8186 {
8187 /* FIXME: Include the comments suggested by Paul. */
8188 #ifndef __cplusplus
8189   /* Ultrix mips cc rejects this.  */
8190   typedef int charset[2];
8191   const charset x;
8192   /* SunOS 4.1.1 cc rejects this.  */
8193   char const *const *ccp;
8194   char **p;
8195   /* NEC SVR4.0.2 mips cc rejects this.  */
8196   struct point {int x, y;};
8197   static struct point const zero = {0,0};
8198   /* AIX XL C 1.02.0.0 rejects this.
8199      It does not let you subtract one const X* pointer from another in
8200      an arm of an if-expression whose if-part is not a constant
8201      expression */
8202   const char *g = "string";
8203   ccp = &g + (g ? g-g : 0);
8204   /* HPUX 7.0 cc rejects these. */
8205   ++ccp;
8206   p = (char**) ccp;
8207   ccp = (char const *const *) p;
8208   { /* SCO 3.2v4 cc rejects this.  */
8209     char *t;
8210     char const *s = 0 ? (char *) 0 : (char const *) 0;
8211
8212     *t++ = 0;
8213     if (s) return 0;
8214   }
8215   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8216     int x[] = {25, 17};
8217     const int *foo = &x[0];
8218     ++foo;
8219   }
8220   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8221     typedef const int *iptr;
8222     iptr p = 0;
8223     ++p;
8224   }
8225   { /* AIX XL C 1.02.0.0 rejects this saying
8226        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8227     struct s { int j; const int *ap[3]; };
8228     struct s *b; b->j = 5;
8229   }
8230   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8231     const int foo = 10;
8232     if (!foo) return 0;
8233   }
8234   return !x[0] && !zero.x;
8235 #endif
8236
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8243 case "(($ac_try" in
8244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245   *) ac_try_echo=$ac_try;;
8246 esac
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248   (eval "$ac_compile") 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256   { (case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_try") 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; } &&
8265          { ac_try='test -s conftest.$ac_objext'
8266   { (case "(($ac_try" in
8267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268   *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271   (eval "$ac_try") 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   ac_cv_c_const=yes
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280         ac_cv_c_const=no
8281 fi
8282
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 fi
8285 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8286 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8287 if test $ac_cv_c_const = no; then
8288
8289 cat >>confdefs.h <<\_ACEOF
8290 #define const
8291 _ACEOF
8292
8293 fi
8294
8295
8296
8297
8298
8299
8300 ac_header_dirent=no
8301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8302   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8303 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8304 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 #include <sys/types.h>
8315 #include <$ac_hdr>
8316
8317 int
8318 main ()
8319 {
8320 if ((DIR *) 0)
8321 return 0;
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333   (eval "$ac_compile") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341   { (case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_try") 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; } &&
8350          { ac_try='test -s conftest.$ac_objext'
8351   { (case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_try") 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; }; then
8360   eval "$as_ac_Header=yes"
8361 else
8362   echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365         eval "$as_ac_Header=no"
8366 fi
8367
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 fi
8370 ac_res=`eval echo '${'$as_ac_Header'}'`
8371                { echo "$as_me:$LINENO: result: $ac_res" >&5
8372 echo "${ECHO_T}$ac_res" >&6; }
8373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8374   cat >>confdefs.h <<_ACEOF
8375 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8376 _ACEOF
8377
8378 ac_header_dirent=$ac_hdr; break
8379 fi
8380
8381 done
8382 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8383 if test $ac_header_dirent = dirent.h; then
8384   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8385 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8386 if test "${ac_cv_search_opendir+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   ac_func_search_save_LIBS=$LIBS
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h.  */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h.  */
8396
8397 /* Override any GCC internal prototype to avoid an error.
8398    Use char because int might match the return type of a GCC
8399    builtin and then its argument prototype would still apply.  */
8400 #ifdef __cplusplus
8401 extern "C"
8402 #endif
8403 char opendir ();
8404 int
8405 main ()
8406 {
8407 return opendir ();
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 for ac_lib in '' dir; do
8413   if test -z "$ac_lib"; then
8414     ac_res="none required"
8415   else
8416     ac_res=-l$ac_lib
8417     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8418   fi
8419   rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (ac_try="$ac_link"
8421 case "(($ac_try" in
8422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423   *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426   (eval "$ac_link") 2>conftest.er1
8427   ac_status=$?
8428   grep -v '^ *+' conftest.er1 >conftest.err
8429   rm -f conftest.er1
8430   cat conftest.err >&5
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } &&
8433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434   { (case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_try") 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; } &&
8443          { ac_try='test -s conftest$ac_exeext'
8444   { (case "(($ac_try" in
8445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446   *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449   (eval "$ac_try") 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; }; then
8453   ac_cv_search_opendir=$ac_res
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458
8459 fi
8460
8461 rm -f core conftest.err conftest.$ac_objext \
8462       conftest$ac_exeext
8463   if test "${ac_cv_search_opendir+set}" = set; then
8464   break
8465 fi
8466 done
8467 if test "${ac_cv_search_opendir+set}" = set; then
8468   :
8469 else
8470   ac_cv_search_opendir=no
8471 fi
8472 rm conftest.$ac_ext
8473 LIBS=$ac_func_search_save_LIBS
8474 fi
8475 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8476 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8477 ac_res=$ac_cv_search_opendir
8478 if test "$ac_res" != no; then
8479   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8480
8481 fi
8482
8483 else
8484   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8486 if test "${ac_cv_search_opendir+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   ac_func_search_save_LIBS=$LIBS
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h.  */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h.  */
8496
8497 /* Override any GCC internal prototype to avoid an error.
8498    Use char because int might match the return type of a GCC
8499    builtin and then its argument prototype would still apply.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 char opendir ();
8504 int
8505 main ()
8506 {
8507 return opendir ();
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 for ac_lib in '' x; do
8513   if test -z "$ac_lib"; then
8514     ac_res="none required"
8515   else
8516     ac_res=-l$ac_lib
8517     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8518   fi
8519   rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (ac_try="$ac_link"
8521 case "(($ac_try" in
8522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523   *) ac_try_echo=$ac_try;;
8524 esac
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526   (eval "$ac_link") 2>conftest.er1
8527   ac_status=$?
8528   grep -v '^ *+' conftest.er1 >conftest.err
8529   rm -f conftest.er1
8530   cat conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } &&
8533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534   { (case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_try") 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest$ac_exeext'
8544   { (case "(($ac_try" in
8545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546   *) ac_try_echo=$ac_try;;
8547 esac
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549   (eval "$ac_try") 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }; }; then
8553   ac_cv_search_opendir=$ac_res
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558
8559 fi
8560
8561 rm -f core conftest.err conftest.$ac_objext \
8562       conftest$ac_exeext
8563   if test "${ac_cv_search_opendir+set}" = set; then
8564   break
8565 fi
8566 done
8567 if test "${ac_cv_search_opendir+set}" = set; then
8568   :
8569 else
8570   ac_cv_search_opendir=no
8571 fi
8572 rm conftest.$ac_ext
8573 LIBS=$ac_func_search_save_LIBS
8574 fi
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8580
8581 fi
8582
8583 fi
8584
8585
8586 for ac_header in dlfcn.h
8587 do
8588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8590   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 fi
8595 ac_res=`eval echo '${'$as_ac_Header'}'`
8596                { echo "$as_me:$LINENO: result: $ac_res" >&5
8597 echo "${ECHO_T}$ac_res" >&6; }
8598 else
8599   # Is the header compilable?
8600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h.  */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h.  */
8608 $ac_includes_default
8609 #include <$ac_header>
8610 _ACEOF
8611 rm -f conftest.$ac_objext
8612 if { (ac_try="$ac_compile"
8613 case "(($ac_try" in
8614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615   *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618   (eval "$ac_compile") 2>conftest.er1
8619   ac_status=$?
8620   grep -v '^ *+' conftest.er1 >conftest.err
8621   rm -f conftest.er1
8622   cat conftest.err >&5
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } &&
8625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626   { (case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_try") 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; } &&
8635          { ac_try='test -s conftest.$ac_objext'
8636   { (case "(($ac_try" in
8637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638   *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641   (eval "$ac_try") 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; }; then
8645   ac_header_compiler=yes
8646 else
8647   echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650         ac_header_compiler=no
8651 fi
8652
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8655 echo "${ECHO_T}$ac_header_compiler" >&6; }
8656
8657 # Is the header present?
8658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 #include <$ac_header>
8667 _ACEOF
8668 if { (ac_try="$ac_cpp conftest.$ac_ext"
8669 case "(($ac_try" in
8670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671   *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } >/dev/null; then
8681   if test -s conftest.err; then
8682     ac_cpp_err=$ac_c_preproc_warn_flag
8683     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8684   else
8685     ac_cpp_err=
8686   fi
8687 else
8688   ac_cpp_err=yes
8689 fi
8690 if test -z "$ac_cpp_err"; then
8691   ac_header_preproc=yes
8692 else
8693   echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696   ac_header_preproc=no
8697 fi
8698
8699 rm -f conftest.err conftest.$ac_ext
8700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701 echo "${ECHO_T}$ac_header_preproc" >&6; }
8702
8703 # So?  What about this header?
8704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8705   yes:no: )
8706     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8710     ac_header_preproc=yes
8711     ;;
8712   no:yes:* )
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8715     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8716 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8717     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8719     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8720 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8723     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8725     ( cat <<\_ASBOX
8726 ## ------------------------------------ ##
8727 ## Report this to http://llvm.org/bugs/ ##
8728 ## ------------------------------------ ##
8729 _ASBOX
8730      ) | sed "s/^/$as_me: WARNING:     /" >&2
8731     ;;
8732 esac
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   eval "$as_ac_Header=\$ac_header_preproc"
8739 fi
8740 ac_res=`eval echo '${'$as_ac_Header'}'`
8741                { echo "$as_me:$LINENO: result: $ac_res" >&5
8742 echo "${ECHO_T}$ac_res" >&6; }
8743
8744 fi
8745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746   cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8748 _ACEOF
8749
8750 fi
8751
8752 done
8753
8754 # Check whether --enable-ltdl-install was given.
8755 if test "${enable_ltdl_install+set}" = set; then
8756   enableval=$enable_ltdl_install;
8757 fi
8758
8759
8760
8761
8762 if test x"${enable_ltdl_install-no}" != xno; then
8763   INSTALL_LTDL_TRUE=
8764   INSTALL_LTDL_FALSE='#'
8765 else
8766   INSTALL_LTDL_TRUE='#'
8767   INSTALL_LTDL_FALSE=
8768 fi
8769
8770
8771
8772 if test x"${enable_ltdl_convenience-no}" != xno; then
8773   CONVENIENCE_LTDL_TRUE=
8774   CONVENIENCE_LTDL_FALSE='#'
8775 else
8776   CONVENIENCE_LTDL_TRUE='#'
8777   CONVENIENCE_LTDL_FALSE=
8778 fi
8779
8780
8781 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8783 library_names_spec=
8784 libname_spec='lib$name'
8785 soname_spec=
8786 shrext_cmds=".so"
8787 postinstall_cmds=
8788 postuninstall_cmds=
8789 finish_cmds=
8790 finish_eval=
8791 shlibpath_var=
8792 shlibpath_overrides_runpath=unknown
8793 version_type=none
8794 dynamic_linker="$host_os ld.so"
8795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8796 if test "$GCC" = yes; then
8797   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8799     # if the path contains ";" then we assume it to be the separator
8800     # otherwise default to the standard path separator (i.e. ":") - it is
8801     # assumed that no part of a normal pathname contains ";" but that should
8802     # okay in the real world where ";" in dirpaths is itself problematic.
8803     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8804   else
8805     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8806   fi
8807 else
8808   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8809 fi
8810 need_lib_prefix=unknown
8811 hardcode_into_libs=no
8812
8813 # when you set need_version to no, make sure it does not cause -set_version
8814 # flags to be left without arguments
8815 need_version=unknown
8816
8817 case $host_os in
8818 aix3*)
8819   version_type=linux
8820   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8821   shlibpath_var=LIBPATH
8822
8823   # AIX 3 has no versioning support, so we append a major version to the name.
8824   soname_spec='${libname}${release}${shared_ext}$major'
8825   ;;
8826
8827 aix4* | aix5*)
8828   version_type=linux
8829   need_lib_prefix=no
8830   need_version=no
8831   hardcode_into_libs=yes
8832   if test "$host_cpu" = ia64; then
8833     # AIX 5 supports IA64
8834     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8835     shlibpath_var=LD_LIBRARY_PATH
8836   else
8837     # With GCC up to 2.95.x, collect2 would create an import file
8838     # for dependence libraries.  The import file would start with
8839     # the line `#! .'.  This would cause the generated library to
8840     # depend on `.', always an invalid library.  This was fixed in
8841     # development snapshots of GCC prior to 3.0.
8842     case $host_os in
8843       aix4 | aix4.[01] | aix4.[01].*)
8844       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8845            echo ' yes '
8846            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8847         :
8848       else
8849         can_build_shared=no
8850       fi
8851       ;;
8852     esac
8853     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8854     # soname into executable. Probably we can add versioning support to
8855     # collect2, so additional links can be useful in future.
8856     if test "$aix_use_runtimelinking" = yes; then
8857       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8858       # instead of lib<name>.a to let people know that these are not
8859       # typical AIX shared libraries.
8860       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861     else
8862       # We preserve .a as extension for shared libraries through AIX4.2
8863       # and later when we are not doing run time linking.
8864       library_names_spec='${libname}${release}.a $libname.a'
8865       soname_spec='${libname}${release}${shared_ext}$major'
8866     fi
8867     shlibpath_var=LIBPATH
8868   fi
8869   ;;
8870
8871 amigaos*)
8872   library_names_spec='$libname.ixlibrary $libname.a'
8873   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8874   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'
8875   ;;
8876
8877 beos*)
8878   library_names_spec='${libname}${shared_ext}'
8879   dynamic_linker="$host_os ld.so"
8880   shlibpath_var=LIBRARY_PATH
8881   ;;
8882
8883 bsdi[45]*)
8884   version_type=linux
8885   need_version=no
8886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887   soname_spec='${libname}${release}${shared_ext}$major'
8888   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8889   shlibpath_var=LD_LIBRARY_PATH
8890   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8891   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8892   # the default ld.so.conf also contains /usr/contrib/lib and
8893   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8894   # libtool to hard-code these into programs
8895   ;;
8896
8897 cygwin* | mingw* | pw32*)
8898   version_type=windows
8899   shrext_cmds=".dll"
8900   need_version=no
8901   need_lib_prefix=no
8902
8903   case $GCC,$host_os in
8904   yes,cygwin* | yes,mingw* | yes,pw32*)
8905     library_names_spec='$libname.dll.a'
8906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8907     postinstall_cmds='base_file=`basename \${file}`~
8908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8909       dldir=$destdir/`dirname \$dlpath`~
8910       test -d \$dldir || mkdir -p \$dldir~
8911       $install_prog $dir/$dlname \$dldir/$dlname~
8912       chmod a+x \$dldir/$dlname'
8913     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8914       dlpath=$dir/\$dldll~
8915        $rm \$dlpath'
8916     shlibpath_overrides_runpath=yes
8917
8918     case $host_os in
8919     cygwin*)
8920       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8921       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8922       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8923       ;;
8924     mingw*)
8925       # MinGW DLLs use traditional 'lib' prefix
8926       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8927       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8928       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8929         # It is most probably a Windows format PATH printed by
8930         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8931         # path with ; separators, and with drive letters. We can handle the
8932         # drive letters (cygwin fileutils understands them), so leave them,
8933         # especially as we might pass files found there to a mingw objdump,
8934         # which wouldn't understand a cygwinified path. Ahh.
8935         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8936       else
8937         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8938       fi
8939       ;;
8940     pw32*)
8941       # pw32 DLLs use 'pw' prefix rather than 'lib'
8942       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8943       ;;
8944     esac
8945     ;;
8946
8947   *)
8948     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8949     ;;
8950   esac
8951   dynamic_linker='Win32 ld.exe'
8952   # FIXME: first we should search . and the directory the executable is in
8953   shlibpath_var=PATH
8954   ;;
8955
8956 darwin* | rhapsody*)
8957   dynamic_linker="$host_os dyld"
8958   version_type=darwin
8959   need_lib_prefix=no
8960   need_version=no
8961   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8962   soname_spec='${libname}${release}${major}$shared_ext'
8963   shlibpath_overrides_runpath=yes
8964   shlibpath_var=DYLD_LIBRARY_PATH
8965   shrext_cmds='.dylib'
8966   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8967   if test "$GCC" = yes; then
8968     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"`
8969   else
8970     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8971   fi
8972   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8973   ;;
8974
8975 dgux*)
8976   version_type=linux
8977   need_lib_prefix=no
8978   need_version=no
8979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8980   soname_spec='${libname}${release}${shared_ext}$major'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   ;;
8983
8984 freebsd1.*)
8985   dynamic_linker=no
8986   ;;
8987
8988 kfreebsd*-gnu)
8989   version_type=linux
8990   need_lib_prefix=no
8991   need_version=no
8992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993   soname_spec='${libname}${release}${shared_ext}$major'
8994   shlibpath_var=LD_LIBRARY_PATH
8995   shlibpath_overrides_runpath=no
8996   hardcode_into_libs=yes
8997   dynamic_linker='GNU ld.so'
8998   ;;
8999
9000 freebsd* | dragonfly*)
9001   # DragonFly does not have aout.  When/if they implement a new
9002   # versioning mechanism, adjust this.
9003   if test -x /usr/bin/objformat; then
9004     objformat=`/usr/bin/objformat`
9005   else
9006     case $host_os in
9007     freebsd[123].*) objformat=aout ;;
9008     *) objformat=elf ;;
9009     esac
9010   fi
9011   version_type=freebsd-$objformat
9012   case $version_type in
9013     freebsd-elf*)
9014       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9015       need_version=no
9016       need_lib_prefix=no
9017       ;;
9018     freebsd-*)
9019       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9020       need_version=yes
9021       ;;
9022   esac
9023   shlibpath_var=LD_LIBRARY_PATH
9024   case $host_os in
9025   freebsd2.*)
9026     shlibpath_overrides_runpath=yes
9027     ;;
9028   freebsd3.[01]* | freebsdelf3.[01]*)
9029     shlibpath_overrides_runpath=yes
9030     hardcode_into_libs=yes
9031     ;;
9032   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9033   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9034     shlibpath_overrides_runpath=no
9035     hardcode_into_libs=yes
9036     ;;
9037   freebsd*) # from 4.6 on
9038     shlibpath_overrides_runpath=yes
9039     hardcode_into_libs=yes
9040     ;;
9041   esac
9042   ;;
9043
9044 gnu*)
9045   version_type=linux
9046   need_lib_prefix=no
9047   need_version=no
9048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9049   soname_spec='${libname}${release}${shared_ext}$major'
9050   shlibpath_var=LD_LIBRARY_PATH
9051   hardcode_into_libs=yes
9052   ;;
9053
9054 hpux9* | hpux10* | hpux11*)
9055   # Give a soname corresponding to the major version so that dld.sl refuses to
9056   # link against other versions.
9057   version_type=sunos
9058   need_lib_prefix=no
9059   need_version=no
9060   case $host_cpu in
9061   ia64*)
9062     shrext_cmds='.so'
9063     hardcode_into_libs=yes
9064     dynamic_linker="$host_os dld.so"
9065     shlibpath_var=LD_LIBRARY_PATH
9066     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068     soname_spec='${libname}${release}${shared_ext}$major'
9069     if test "X$HPUX_IA64_MODE" = X32; then
9070       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9071     else
9072       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9073     fi
9074     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9075     ;;
9076    hppa*64*)
9077      shrext_cmds='.sl'
9078      hardcode_into_libs=yes
9079      dynamic_linker="$host_os dld.sl"
9080      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9081      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9082      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083      soname_spec='${libname}${release}${shared_ext}$major'
9084      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9085      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9086      ;;
9087    *)
9088     shrext_cmds='.sl'
9089     dynamic_linker="$host_os dld.sl"
9090     shlibpath_var=SHLIB_PATH
9091     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093     soname_spec='${libname}${release}${shared_ext}$major'
9094     ;;
9095   esac
9096   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9097   postinstall_cmds='chmod 555 $lib'
9098   ;;
9099
9100 interix3*)
9101   version_type=linux
9102   need_lib_prefix=no
9103   need_version=no
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9107   shlibpath_var=LD_LIBRARY_PATH
9108   shlibpath_overrides_runpath=no
9109   hardcode_into_libs=yes
9110   ;;
9111
9112 irix5* | irix6* | nonstopux*)
9113   case $host_os in
9114     nonstopux*) version_type=nonstopux ;;
9115     *)
9116         if test "$lt_cv_prog_gnu_ld" = yes; then
9117                 version_type=linux
9118         else
9119                 version_type=irix
9120         fi ;;
9121   esac
9122   need_lib_prefix=no
9123   need_version=no
9124   soname_spec='${libname}${release}${shared_ext}$major'
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9126   case $host_os in
9127   irix5* | nonstopux*)
9128     libsuff= shlibsuff=
9129     ;;
9130   *)
9131     case $LD in # libtool.m4 will add one of these switches to LD
9132     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9133       libsuff= shlibsuff= libmagic=32-bit;;
9134     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9135       libsuff=32 shlibsuff=N32 libmagic=N32;;
9136     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9137       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9138     *) libsuff= shlibsuff= libmagic=never-match;;
9139     esac
9140     ;;
9141   esac
9142   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9143   shlibpath_overrides_runpath=no
9144   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9145   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9146   hardcode_into_libs=yes
9147   ;;
9148
9149 # No shared lib support for Linux oldld, aout, or coff.
9150 linux*oldld* | linux*aout* | linux*coff*)
9151   dynamic_linker=no
9152   ;;
9153
9154 # This must be Linux ELF.
9155 linux*)
9156   version_type=linux
9157   need_lib_prefix=no
9158   need_version=no
9159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160   soname_spec='${libname}${release}${shared_ext}$major'
9161   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9162   shlibpath_var=LD_LIBRARY_PATH
9163   shlibpath_overrides_runpath=no
9164   # This implies no fast_install, which is unacceptable.
9165   # Some rework will be needed to allow for fast_install
9166   # before this can be enabled.
9167   hardcode_into_libs=yes
9168
9169   # Append ld.so.conf contents to the search path
9170   if test -f /etc/ld.so.conf; then
9171     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' ' '`
9172     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9173   fi
9174
9175   # We used to test for /lib/ld.so.1 and disable shared libraries on
9176   # powerpc, because MkLinux only supported shared libraries with the
9177   # GNU dynamic linker.  Since this was broken with cross compilers,
9178   # most powerpc-linux boxes support dynamic linking these days and
9179   # people can always --disable-shared, the test was removed, and we
9180   # assume the GNU/Linux dynamic linker is in use.
9181   dynamic_linker='GNU/Linux ld.so'
9182   ;;
9183
9184 knetbsd*-gnu)
9185   version_type=linux
9186   need_lib_prefix=no
9187   need_version=no
9188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9189   soname_spec='${libname}${release}${shared_ext}$major'
9190   shlibpath_var=LD_LIBRARY_PATH
9191   shlibpath_overrides_runpath=no
9192   hardcode_into_libs=yes
9193   dynamic_linker='GNU ld.so'
9194   ;;
9195
9196 netbsd*)
9197   version_type=sunos
9198   need_lib_prefix=no
9199   need_version=no
9200   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203     dynamic_linker='NetBSD (a.out) ld.so'
9204   else
9205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9206     soname_spec='${libname}${release}${shared_ext}$major'
9207     dynamic_linker='NetBSD ld.elf_so'
9208   fi
9209   shlibpath_var=LD_LIBRARY_PATH
9210   shlibpath_overrides_runpath=yes
9211   hardcode_into_libs=yes
9212   ;;
9213
9214 newsos6)
9215   version_type=linux
9216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   shlibpath_overrides_runpath=yes
9219   ;;
9220
9221 nto-qnx*)
9222   version_type=linux
9223   need_lib_prefix=no
9224   need_version=no
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226   soname_spec='${libname}${release}${shared_ext}$major'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   shlibpath_overrides_runpath=yes
9229   ;;
9230
9231 openbsd* | bitrig*)
9232   version_type=sunos
9233   sys_lib_dlsearch_path_spec="/usr/lib"
9234   need_lib_prefix=no
9235   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9236   case $host_os in
9237     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9238     *)                         need_version=no  ;;
9239   esac
9240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9241   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9242   shlibpath_var=LD_LIBRARY_PATH
9243   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9244     case $host_os in
9245       openbsd2.[89] | openbsd2.[89].*)
9246         shlibpath_overrides_runpath=no
9247         ;;
9248       *)
9249         shlibpath_overrides_runpath=yes
9250         ;;
9251       esac
9252   else
9253     shlibpath_overrides_runpath=yes
9254   fi
9255   ;;
9256
9257 os2*)
9258   libname_spec='$name'
9259   shrext_cmds=".dll"
9260   need_lib_prefix=no
9261   library_names_spec='$libname${shared_ext} $libname.a'
9262   dynamic_linker='OS/2 ld.exe'
9263   shlibpath_var=LIBPATH
9264   ;;
9265
9266 osf3* | osf4* | osf5*)
9267   version_type=osf
9268   need_lib_prefix=no
9269   need_version=no
9270   soname_spec='${libname}${release}${shared_ext}$major'
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272   shlibpath_var=LD_LIBRARY_PATH
9273   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9274   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9275   ;;
9276
9277 solaris*)
9278   version_type=linux
9279   need_lib_prefix=no
9280   need_version=no
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282   soname_spec='${libname}${release}${shared_ext}$major'
9283   shlibpath_var=LD_LIBRARY_PATH
9284   shlibpath_overrides_runpath=yes
9285   hardcode_into_libs=yes
9286   # ldd complains unless libraries are executable
9287   postinstall_cmds='chmod +x $lib'
9288   ;;
9289
9290 sunos4*)
9291   version_type=sunos
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9293   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   shlibpath_overrides_runpath=yes
9296   if test "$with_gnu_ld" = yes; then
9297     need_lib_prefix=no
9298   fi
9299   need_version=yes
9300   ;;
9301
9302 sysv4 | sysv4.3*)
9303   version_type=linux
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305   soname_spec='${libname}${release}${shared_ext}$major'
9306   shlibpath_var=LD_LIBRARY_PATH
9307   case $host_vendor in
9308     sni)
9309       shlibpath_overrides_runpath=no
9310       need_lib_prefix=no
9311       export_dynamic_flag_spec='${wl}-Blargedynsym'
9312       runpath_var=LD_RUN_PATH
9313       ;;
9314     siemens)
9315       need_lib_prefix=no
9316       ;;
9317     motorola)
9318       need_lib_prefix=no
9319       need_version=no
9320       shlibpath_overrides_runpath=no
9321       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9322       ;;
9323   esac
9324   ;;
9325
9326 sysv4*MP*)
9327   if test -d /usr/nec ;then
9328     version_type=linux
9329     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9330     soname_spec='$libname${shared_ext}.$major'
9331     shlibpath_var=LD_LIBRARY_PATH
9332   fi
9333   ;;
9334
9335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9336   version_type=freebsd-elf
9337   need_lib_prefix=no
9338   need_version=no
9339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9340   soname_spec='${libname}${release}${shared_ext}$major'
9341   shlibpath_var=LD_LIBRARY_PATH
9342   hardcode_into_libs=yes
9343   if test "$with_gnu_ld" = yes; then
9344     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9345     shlibpath_overrides_runpath=no
9346   else
9347     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9348     shlibpath_overrides_runpath=yes
9349     case $host_os in
9350       sco3.2v5*)
9351         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9352         ;;
9353     esac
9354   fi
9355   sys_lib_dlsearch_path_spec='/usr/lib'
9356   ;;
9357
9358 uts4*)
9359   version_type=linux
9360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361   soname_spec='${libname}${release}${shared_ext}$major'
9362   shlibpath_var=LD_LIBRARY_PATH
9363   ;;
9364
9365 *)
9366   dynamic_linker=no
9367   ;;
9368 esac
9369 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9370 echo "${ECHO_T}$dynamic_linker" >&6; }
9371 test "$dynamic_linker" = no && can_build_shared=no
9372
9373 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9374 if test "$GCC" = yes; then
9375   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9376 fi
9377
9378
9379 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9380 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9381 if test "${libltdl_cv_shlibext+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384
9385 module=yes
9386 eval libltdl_cv_shlibext=$shrext_cmds
9387
9388 fi
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9390 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9391 if test -n "$libltdl_cv_shlibext"; then
9392
9393 cat >>confdefs.h <<_ACEOF
9394 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9395 _ACEOF
9396
9397 fi
9398
9399
9400 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9401 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_sys_search_path+set}" = set; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9406 fi
9407 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9408 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9409 if test -n "$libltdl_cv_sys_search_path"; then
9410   sys_search_path=
9411   for dir in $libltdl_cv_sys_search_path; do
9412     if test -z "$sys_search_path"; then
9413       sys_search_path="$dir"
9414     else
9415       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9416     fi
9417   done
9418
9419 cat >>confdefs.h <<_ACEOF
9420 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9421 _ACEOF
9422
9423 fi
9424
9425 { echo "$as_me:$LINENO: checking for objdir" >&5
9426 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9427 if test "${libltdl_cv_objdir+set}" = set; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430   libltdl_cv_objdir="$objdir"
9431   if test -n "$objdir"; then
9432     :
9433   else
9434     rm -f .libs 2>/dev/null
9435     mkdir .libs 2>/dev/null
9436     if test -d .libs; then
9437       libltdl_cv_objdir=.libs
9438     else
9439       # MS-DOS does not allow filenames that begin with a dot.
9440       libltdl_cv_objdir=_libs
9441     fi
9442   rmdir .libs 2>/dev/null
9443   fi
9444
9445 fi
9446 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9447 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9448
9449 cat >>confdefs.h <<_ACEOF
9450 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9451 _ACEOF
9452
9453
9454
9455
9456
9457
9458 # Check for command to grab the raw symbol name followed by C symbol from nm.
9459 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9460 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9461 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464
9465 # These are sane defaults that work on at least a few old systems.
9466 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9467
9468 # Character class describing NM global symbol codes.
9469 symcode='[BCDEGRST]'
9470
9471 # Regexp to match symbols that can be accessed directly from C.
9472 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9473
9474 # Transform an extracted symbol line into a proper C declaration
9475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9476
9477 # Transform an extracted symbol line into symbol name and symbol address
9478 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'"
9479
9480 # Define system-specific variables.
9481 case $host_os in
9482 aix*)
9483   symcode='[BCDT]'
9484   ;;
9485 cygwin* | mingw* | pw32*)
9486   symcode='[ABCDGISTW]'
9487   ;;
9488 hpux*) # Its linker distinguishes data from code symbols
9489   if test "$host_cpu" = ia64; then
9490     symcode='[ABCDEGRST]'
9491   fi
9492   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9493   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'"
9494   ;;
9495 linux*)
9496   if test "$host_cpu" = ia64; then
9497     symcode='[ABCDGIRSTW]'
9498     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9499     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'"
9500   fi
9501   ;;
9502 irix* | nonstopux*)
9503   symcode='[BCDEGRST]'
9504   ;;
9505 osf*)
9506   symcode='[BCDEGQRST]'
9507   ;;
9508 solaris*)
9509   symcode='[BDRT]'
9510   ;;
9511 sco3.2v5*)
9512   symcode='[DT]'
9513   ;;
9514 sysv4.2uw2*)
9515   symcode='[DT]'
9516   ;;
9517 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9518   symcode='[ABDT]'
9519   ;;
9520 sysv4)
9521   symcode='[DFNSTU]'
9522   ;;
9523 esac
9524
9525 # Handle CRLF in mingw tool chain
9526 opt_cr=
9527 case $build_os in
9528 mingw*)
9529   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9530   ;;
9531 esac
9532
9533 # If we're using GNU nm, then use its standard symbol codes.
9534 case `$NM -V 2>&1` in
9535 *GNU* | *'with BFD'*)
9536   symcode='[ABCDGIRSTW]' ;;
9537 esac
9538
9539 # Try without a prefix undercore, then with it.
9540 for ac_symprfx in "" "_"; do
9541
9542   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9543   symxfrm="\\1 $ac_symprfx\\2 \\2"
9544
9545   # Write the raw and C identifiers.
9546   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9547
9548   # Check to see that the pipe works correctly.
9549   pipe_works=no
9550
9551   rm -f conftest*
9552   cat > conftest.$ac_ext <<EOF
9553 #ifdef __cplusplus
9554 extern "C" {
9555 #endif
9556 char nm_test_var;
9557 void nm_test_func(){}
9558 #ifdef __cplusplus
9559 }
9560 #endif
9561 int main(){nm_test_var='a';nm_test_func();return(0);}
9562 EOF
9563
9564   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565   (eval $ac_compile) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; then
9569     # Now try to grab the symbols.
9570     nlist=conftest.nm
9571     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9572   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } && test -s "$nlist"; then
9576       # Try sorting and uniquifying the output.
9577       if sort "$nlist" | uniq > "$nlist"T; then
9578         mv -f "$nlist"T "$nlist"
9579       else
9580         rm -f "$nlist"T
9581       fi
9582
9583       # Make sure that we snagged all the symbols we need.
9584       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9585         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9586           cat <<EOF > conftest.$ac_ext
9587 #ifdef __cplusplus
9588 extern "C" {
9589 #endif
9590
9591 EOF
9592           # Now generate the symbol file.
9593           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9594
9595           cat <<EOF >> conftest.$ac_ext
9596 #if defined (__STDC__) && __STDC__
9597 # define lt_ptr_t void *
9598 #else
9599 # define lt_ptr_t char *
9600 # define const
9601 #endif
9602
9603 /* The mapping between symbol names and symbols. */
9604 const struct {
9605   const char *name;
9606   lt_ptr_t address;
9607 }
9608 lt_preloaded_symbols[] =
9609 {
9610 EOF
9611           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9612           cat <<\EOF >> conftest.$ac_ext
9613   {0, (lt_ptr_t) 0}
9614 };
9615
9616 #ifdef __cplusplus
9617 }
9618 #endif
9619 EOF
9620           # Now try linking the two files.
9621           mv conftest.$ac_objext conftstm.$ac_objext
9622           lt_save_LIBS="$LIBS"
9623           lt_save_CFLAGS="$CFLAGS"
9624           LIBS="conftstm.$ac_objext"
9625           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9626           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627   (eval $ac_link) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9631             pipe_works=yes
9632           fi
9633           LIBS="$lt_save_LIBS"
9634           CFLAGS="$lt_save_CFLAGS"
9635         else
9636           echo "cannot find nm_test_func in $nlist" >&5
9637         fi
9638       else
9639         echo "cannot find nm_test_var in $nlist" >&5
9640       fi
9641     else
9642       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9643     fi
9644   else
9645     echo "$progname: failed program was:" >&5
9646     cat conftest.$ac_ext >&5
9647   fi
9648   rm -f conftest* conftst*
9649
9650   # Do not use the global_symbol_pipe unless it works.
9651   if test "$pipe_works" = yes; then
9652     break
9653   else
9654     lt_cv_sys_global_symbol_pipe=
9655   fi
9656 done
9657
9658 fi
9659
9660 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9661   lt_cv_sys_global_symbol_to_cdecl=
9662 fi
9663 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9664   { echo "$as_me:$LINENO: result: failed" >&5
9665 echo "${ECHO_T}failed" >&6; }
9666 else
9667   { echo "$as_me:$LINENO: result: ok" >&5
9668 echo "${ECHO_T}ok" >&6; }
9669 fi
9670
9671
9672 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9673 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9674 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9678     libltdl_cv_preloaded_symbols=yes
9679   else
9680     libltdl_cv_preloaded_symbols=no
9681   fi
9682
9683 fi
9684 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9685 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9686 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9687
9688 cat >>confdefs.h <<\_ACEOF
9689 #define HAVE_PRELOADED_SYMBOLS 1
9690 _ACEOF
9691
9692 fi
9693
9694 LIBADD_DL=
9695
9696 ac_ext=c
9697 ac_cpp='$CPP $CPPFLAGS'
9698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9701
9702
9703 { echo "$as_me:$LINENO: checking for shl_load" >&5
9704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9705 if test "${ac_cv_func_shl_load+set}" = set; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708   cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h.  */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h.  */
9714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9716 #define shl_load innocuous_shl_load
9717
9718 /* System header to define __stub macros and hopefully few prototypes,
9719     which can conflict with char shl_load (); below.
9720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721     <limits.h> exists even on freestanding compilers.  */
9722
9723 #ifdef __STDC__
9724 # include <limits.h>
9725 #else
9726 # include <assert.h>
9727 #endif
9728
9729 #undef shl_load
9730
9731 /* Override any GCC internal prototype to avoid an error.
9732    Use char because int might match the return type of a GCC
9733    builtin and then its argument prototype would still apply.  */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char shl_load ();
9738 /* The GNU C library defines this for functions which it implements
9739     to always fail with ENOSYS.  Some functions are actually named
9740     something starting with __ and the normal name is an alias.  */
9741 #if defined __stub_shl_load || defined __stub___shl_load
9742 choke me
9743 #endif
9744
9745 int
9746 main ()
9747 {
9748 return shl_load ();
9749   ;
9750   return 0;
9751 }
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (ac_try="$ac_link"
9755 case "(($ac_try" in
9756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757   *) ac_try_echo=$ac_try;;
9758 esac
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760   (eval "$ac_link") 2>conftest.er1
9761   ac_status=$?
9762   grep -v '^ *+' conftest.er1 >conftest.err
9763   rm -f conftest.er1
9764   cat conftest.err >&5
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); } &&
9767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9768   { (case "(($ac_try" in
9769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770   *) ac_try_echo=$ac_try;;
9771 esac
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773   (eval "$ac_try") 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; } &&
9777          { ac_try='test -s conftest$ac_exeext'
9778   { (case "(($ac_try" in
9779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780   *) ac_try_echo=$ac_try;;
9781 esac
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783   (eval "$ac_try") 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); }; }; then
9787   ac_cv_func_shl_load=yes
9788 else
9789   echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9791
9792         ac_cv_func_shl_load=no
9793 fi
9794
9795 rm -f core conftest.err conftest.$ac_objext \
9796       conftest$ac_exeext conftest.$ac_ext
9797 fi
9798 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9799 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9800 if test $ac_cv_func_shl_load = yes; then
9801
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_SHL_LOAD 1
9804 _ACEOF
9805
9806 else
9807   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9808 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9809 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9810   echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812   ac_check_lib_save_LIBS=$LIBS
9813 LIBS="-ldld  $LIBS"
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h.  */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h.  */
9820
9821 /* Override any GCC internal prototype to avoid an error.
9822    Use char because int might match the return type of a GCC
9823    builtin and then its argument prototype would still apply.  */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 char shl_load ();
9828 int
9829 main ()
9830 {
9831 return shl_load ();
9832   ;
9833   return 0;
9834 }
9835 _ACEOF
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (ac_try="$ac_link"
9838 case "(($ac_try" in
9839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840   *) ac_try_echo=$ac_try;;
9841 esac
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843   (eval "$ac_link") 2>conftest.er1
9844   ac_status=$?
9845   grep -v '^ *+' conftest.er1 >conftest.err
9846   rm -f conftest.er1
9847   cat conftest.err >&5
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } &&
9850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9851   { (case "(($ac_try" in
9852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853   *) ac_try_echo=$ac_try;;
9854 esac
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856   (eval "$ac_try") 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; } &&
9860          { ac_try='test -s conftest$ac_exeext'
9861   { (case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866   (eval "$ac_try") 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_cv_lib_dld_shl_load=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875         ac_cv_lib_dld_shl_load=no
9876 fi
9877
9878 rm -f core conftest.err conftest.$ac_objext \
9879       conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9881 fi
9882 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9883 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9884 if test $ac_cv_lib_dld_shl_load = yes; then
9885
9886 cat >>confdefs.h <<\_ACEOF
9887 #define HAVE_SHL_LOAD 1
9888 _ACEOF
9889
9890         LIBADD_DL="$LIBADD_DL -ldld"
9891 else
9892   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9893 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   ac_check_lib_save_LIBS=$LIBS
9898 LIBS="-ldl  $LIBS"
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h.  */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h.  */
9905
9906 /* Override any GCC internal prototype to avoid an error.
9907    Use char because int might match the return type of a GCC
9908    builtin and then its argument prototype would still apply.  */
9909 #ifdef __cplusplus
9910 extern "C"
9911 #endif
9912 char dlopen ();
9913 int
9914 main ()
9915 {
9916 return dlopen ();
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (ac_try="$ac_link"
9923 case "(($ac_try" in
9924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925   *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928   (eval "$ac_link") 2>conftest.er1
9929   ac_status=$?
9930   grep -v '^ *+' conftest.er1 >conftest.err
9931   rm -f conftest.er1
9932   cat conftest.err >&5
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); } &&
9935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9936   { (case "(($ac_try" in
9937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938   *) ac_try_echo=$ac_try;;
9939 esac
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941   (eval "$ac_try") 2>&5
9942   ac_status=$?
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); }; } &&
9945          { ac_try='test -s conftest$ac_exeext'
9946   { (case "(($ac_try" in
9947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948   *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951   (eval "$ac_try") 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; }; then
9955   ac_cv_lib_dl_dlopen=yes
9956 else
9957   echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960         ac_cv_lib_dl_dlopen=no
9961 fi
9962
9963 rm -f core conftest.err conftest.$ac_objext \
9964       conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_lib_save_LIBS
9966 fi
9967 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9968 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9969 if test $ac_cv_lib_dl_dlopen = yes; then
9970
9971 cat >>confdefs.h <<\_ACEOF
9972 #define HAVE_LIBDL 1
9973 _ACEOF
9974
9975                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9976 else
9977   cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983 #if HAVE_DLFCN_H
9984 #  include <dlfcn.h>
9985 #endif
9986
9987 int
9988 main ()
9989 {
9990 dlopen(0, 0);
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (ac_try="$ac_link"
9997 case "(($ac_try" in
9998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999   *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002   (eval "$ac_link") 2>conftest.er1
10003   ac_status=$?
10004   grep -v '^ *+' conftest.er1 >conftest.err
10005   rm -f conftest.er1
10006   cat conftest.err >&5
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); } &&
10009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10010   { (case "(($ac_try" in
10011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012   *) ac_try_echo=$ac_try;;
10013 esac
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015   (eval "$ac_try") 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); }; } &&
10019          { ac_try='test -s conftest$ac_exeext'
10020   { (case "(($ac_try" in
10021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022   *) ac_try_echo=$ac_try;;
10023 esac
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025   (eval "$ac_try") 2>&5
10026   ac_status=$?
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); }; }; then
10029
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_LIBDL 1
10032 _ACEOF
10033  libltdl_cv_func_dlopen="yes"
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10039 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10040 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10041   echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043   ac_check_lib_save_LIBS=$LIBS
10044 LIBS="-lsvld  $LIBS"
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h.  */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h.  */
10051
10052 /* Override any GCC internal prototype to avoid an error.
10053    Use char because int might match the return type of a GCC
10054    builtin and then its argument prototype would still apply.  */
10055 #ifdef __cplusplus
10056 extern "C"
10057 #endif
10058 char dlopen ();
10059 int
10060 main ()
10061 {
10062 return dlopen ();
10063   ;
10064   return 0;
10065 }
10066 _ACEOF
10067 rm -f conftest.$ac_objext conftest$ac_exeext
10068 if { (ac_try="$ac_link"
10069 case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074   (eval "$ac_link") 2>conftest.er1
10075   ac_status=$?
10076   grep -v '^ *+' conftest.er1 >conftest.err
10077   rm -f conftest.er1
10078   cat conftest.err >&5
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); } &&
10081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082   { (case "(($ac_try" in
10083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084   *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087   (eval "$ac_try") 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; } &&
10091          { ac_try='test -s conftest$ac_exeext'
10092   { (case "(($ac_try" in
10093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094   *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097   (eval "$ac_try") 2>&5
10098   ac_status=$?
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); }; }; then
10101   ac_cv_lib_svld_dlopen=yes
10102 else
10103   echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10105
10106         ac_cv_lib_svld_dlopen=no
10107 fi
10108
10109 rm -f core conftest.err conftest.$ac_objext \
10110       conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10112 fi
10113 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10114 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10115 if test $ac_cv_lib_svld_dlopen = yes; then
10116
10117 cat >>confdefs.h <<\_ACEOF
10118 #define HAVE_LIBDL 1
10119 _ACEOF
10120
10121                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10122 else
10123   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10124 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10125 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10126   echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128   ac_check_lib_save_LIBS=$LIBS
10129 LIBS="-ldld  $LIBS"
10130 cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h.  */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h.  */
10136
10137 /* Override any GCC internal prototype to avoid an error.
10138    Use char because int might match the return type of a GCC
10139    builtin and then its argument prototype would still apply.  */
10140 #ifdef __cplusplus
10141 extern "C"
10142 #endif
10143 char dld_link ();
10144 int
10145 main ()
10146 {
10147 return dld_link ();
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159   (eval "$ac_link") 2>conftest.er1
10160   ac_status=$?
10161   grep -v '^ *+' conftest.er1 >conftest.err
10162   rm -f conftest.er1
10163   cat conftest.err >&5
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); } &&
10166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10167   { (case "(($ac_try" in
10168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169   *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172   (eval "$ac_try") 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; } &&
10176          { ac_try='test -s conftest$ac_exeext'
10177   { (case "(($ac_try" in
10178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179   *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182   (eval "$ac_try") 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; }; then
10186   ac_cv_lib_dld_dld_link=yes
10187 else
10188   echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191         ac_cv_lib_dld_dld_link=no
10192 fi
10193
10194 rm -f core conftest.err conftest.$ac_objext \
10195       conftest$ac_exeext conftest.$ac_ext
10196 LIBS=$ac_check_lib_save_LIBS
10197 fi
10198 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10199 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10200 if test $ac_cv_lib_dld_dld_link = yes; then
10201
10202 cat >>confdefs.h <<\_ACEOF
10203 #define HAVE_DLD 1
10204 _ACEOF
10205
10206                 LIBADD_DL="$LIBADD_DL -ldld"
10207 else
10208   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10209 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10210 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213   cat >conftest.$ac_ext <<_ACEOF
10214 /* confdefs.h.  */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h.  */
10219 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10221 #define _dyld_func_lookup innocuous__dyld_func_lookup
10222
10223 /* System header to define __stub macros and hopefully few prototypes,
10224     which can conflict with char _dyld_func_lookup (); below.
10225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10226     <limits.h> exists even on freestanding compilers.  */
10227
10228 #ifdef __STDC__
10229 # include <limits.h>
10230 #else
10231 # include <assert.h>
10232 #endif
10233
10234 #undef _dyld_func_lookup
10235
10236 /* Override any GCC internal prototype to avoid an error.
10237    Use char because int might match the return type of a GCC
10238    builtin and then its argument prototype would still apply.  */
10239 #ifdef __cplusplus
10240 extern "C"
10241 #endif
10242 char _dyld_func_lookup ();
10243 /* The GNU C library defines this for functions which it implements
10244     to always fail with ENOSYS.  Some functions are actually named
10245     something starting with __ and the normal name is an alias.  */
10246 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10247 choke me
10248 #endif
10249
10250 int
10251 main ()
10252 {
10253 return _dyld_func_lookup ();
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_link") 2>conftest.er1
10266   ac_status=$?
10267   grep -v '^ *+' conftest.er1 >conftest.err
10268   rm -f conftest.er1
10269   cat conftest.err >&5
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } &&
10272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273   { (case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_try") 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; } &&
10282          { ac_try='test -s conftest$ac_exeext'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   ac_cv_func__dyld_func_lookup=yes
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297         ac_cv_func__dyld_func_lookup=no
10298 fi
10299
10300 rm -f core conftest.err conftest.$ac_objext \
10301       conftest$ac_exeext conftest.$ac_ext
10302 fi
10303 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10304 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10305 if test $ac_cv_func__dyld_func_lookup = yes; then
10306
10307 cat >>confdefs.h <<\_ACEOF
10308 #define HAVE_DYLD 1
10309 _ACEOF
10310
10311 fi
10312
10313
10314 fi
10315
10316
10317 fi
10318
10319
10320 fi
10321
10322 rm -f core conftest.err conftest.$ac_objext \
10323       conftest$ac_exeext conftest.$ac_ext
10324
10325 fi
10326
10327
10328 fi
10329
10330
10331 fi
10332
10333
10334 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10335 then
10336   lt_save_LIBS="$LIBS"
10337   LIBS="$LIBS $LIBADD_DL"
10338
10339 for ac_func in dlerror
10340 do
10341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10345   echo $ECHO_N "(cached) $ECHO_C" >&6
10346 else
10347   cat >conftest.$ac_ext <<_ACEOF
10348 /* confdefs.h.  */
10349 _ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h.  */
10353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10355 #define $ac_func innocuous_$ac_func
10356
10357 /* System header to define __stub macros and hopefully few prototypes,
10358     which can conflict with char $ac_func (); below.
10359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10360     <limits.h> exists even on freestanding compilers.  */
10361
10362 #ifdef __STDC__
10363 # include <limits.h>
10364 #else
10365 # include <assert.h>
10366 #endif
10367
10368 #undef $ac_func
10369
10370 /* Override any GCC internal prototype to avoid an error.
10371    Use char because int might match the return type of a GCC
10372    builtin and then its argument prototype would still apply.  */
10373 #ifdef __cplusplus
10374 extern "C"
10375 #endif
10376 char $ac_func ();
10377 /* The GNU C library defines this for functions which it implements
10378     to always fail with ENOSYS.  Some functions are actually named
10379     something starting with __ and the normal name is an alias.  */
10380 #if defined __stub_$ac_func || defined __stub___$ac_func
10381 choke me
10382 #endif
10383
10384 int
10385 main ()
10386 {
10387 return $ac_func ();
10388   ;
10389   return 0;
10390 }
10391 _ACEOF
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396   *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399   (eval "$ac_link") 2>conftest.er1
10400   ac_status=$?
10401   grep -v '^ *+' conftest.er1 >conftest.err
10402   rm -f conftest.er1
10403   cat conftest.err >&5
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } &&
10406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10407   { (case "(($ac_try" in
10408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409   *) ac_try_echo=$ac_try;;
10410 esac
10411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10412   (eval "$ac_try") 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; } &&
10416          { ac_try='test -s conftest$ac_exeext'
10417   { (case "(($ac_try" in
10418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419   *) ac_try_echo=$ac_try;;
10420 esac
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422   (eval "$ac_try") 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); }; }; then
10426   eval "$as_ac_var=yes"
10427 else
10428   echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10430
10431         eval "$as_ac_var=no"
10432 fi
10433
10434 rm -f core conftest.err conftest.$ac_objext \
10435       conftest$ac_exeext conftest.$ac_ext
10436 fi
10437 ac_res=`eval echo '${'$as_ac_var'}'`
10438                { echo "$as_me:$LINENO: result: $ac_res" >&5
10439 echo "${ECHO_T}$ac_res" >&6; }
10440 if test `eval echo '${'$as_ac_var'}'` = yes; then
10441   cat >>confdefs.h <<_ACEOF
10442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10443 _ACEOF
10444
10445 fi
10446 done
10447
10448   LIBS="$lt_save_LIBS"
10449 fi
10450 ac_ext=c
10451 ac_cpp='$CPP $CPPFLAGS'
10452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10455
10456
10457
10458 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10459 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10460 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   ac_cv_sys_symbol_underscore=no
10464   cat > conftest.$ac_ext <<EOF
10465 void nm_test_func(){}
10466 int main(){nm_test_func;return 0;}
10467 EOF
10468   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10469   (eval $ac_compile) 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); }; then
10473     # Now try to grab the symbols.
10474     ac_nlist=conftest.nm
10475     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10476   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } && test -s "$ac_nlist"; then
10480       # See whether the symbols have a leading underscore.
10481       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10482         ac_cv_sys_symbol_underscore=yes
10483       else
10484         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10485           :
10486         else
10487           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10488         fi
10489       fi
10490     else
10491       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10492     fi
10493   else
10494     echo "configure: failed program was:" >&5
10495     cat conftest.c >&5
10496   fi
10497   rm -rf conftest*
10498
10499 fi
10500 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10501 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10502
10503
10504 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10505   if test x"$libltdl_cv_func_dlopen" = xyes ||
10506      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10507         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10508 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10509 if test "${libltdl_cv_need_uscore+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   libltdl_cv_need_uscore=unknown
10513           save_LIBS="$LIBS"
10514           LIBS="$LIBS $LIBADD_DL"
10515           if test "$cross_compiling" = yes; then :
10516   libltdl_cv_need_uscore=cross
10517 else
10518   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10519   lt_status=$lt_dlunknown
10520   cat > conftest.$ac_ext <<EOF
10521 #line 10521 "configure"
10522 #include "confdefs.h"
10523
10524 #if HAVE_DLFCN_H
10525 #include <dlfcn.h>
10526 #endif
10527
10528 #include <stdio.h>
10529
10530 #ifdef RTLD_GLOBAL
10531 #  define LT_DLGLOBAL           RTLD_GLOBAL
10532 #else
10533 #  ifdef DL_GLOBAL
10534 #    define LT_DLGLOBAL         DL_GLOBAL
10535 #  else
10536 #    define LT_DLGLOBAL         0
10537 #  endif
10538 #endif
10539
10540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10541    find out it does not work in some platform. */
10542 #ifndef LT_DLLAZY_OR_NOW
10543 #  ifdef RTLD_LAZY
10544 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10545 #  else
10546 #    ifdef DL_LAZY
10547 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10548 #    else
10549 #      ifdef RTLD_NOW
10550 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10551 #      else
10552 #        ifdef DL_NOW
10553 #          define LT_DLLAZY_OR_NOW      DL_NOW
10554 #        else
10555 #          define LT_DLLAZY_OR_NOW      0
10556 #        endif
10557 #      endif
10558 #    endif
10559 #  endif
10560 #endif
10561
10562 #ifdef __cplusplus
10563 extern "C" void exit (int);
10564 #endif
10565
10566 void fnord() { int i=42;}
10567 int main ()
10568 {
10569   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10570   int status = $lt_dlunknown;
10571
10572   if (self)
10573     {
10574       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10575       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10576       /* dlclose (self); */
10577     }
10578   else
10579     puts (dlerror ());
10580
10581     exit (status);
10582 }
10583 EOF
10584   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10585   (eval $ac_link) 2>&5
10586   ac_status=$?
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10589     (./conftest; exit; ) >&5 2>/dev/null
10590     lt_status=$?
10591     case x$lt_status in
10592       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10593       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10594       x$lt_dlunknown|x*)  ;;
10595     esac
10596   else :
10597     # compilation failed
10598
10599   fi
10600 fi
10601 rm -fr conftest*
10602
10603           LIBS="$save_LIBS"
10604
10605 fi
10606 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10607 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10608   fi
10609 fi
10610
10611 if test x"$libltdl_cv_need_uscore" = xyes; then
10612
10613 cat >>confdefs.h <<\_ACEOF
10614 #define NEED_USCORE 1
10615 _ACEOF
10616
10617 fi
10618
10619
10620 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10621 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10622 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10623   echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625   # PORTME does your system automatically load deplibs for dlopen?
10626   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10627   # For now, we just catch OSes we know something about -- in the
10628   # future, we'll try test this programmatically.
10629   libltdl_cv_sys_dlopen_deplibs=unknown
10630   case "$host_os" in
10631   aix3*|aix4.1.*|aix4.2.*)
10632     # Unknown whether this is true for these versions of AIX, but
10633     # we want this `case' here to explicitly catch those versions.
10634     libltdl_cv_sys_dlopen_deplibs=unknown
10635     ;;
10636   aix[45]*)
10637     libltdl_cv_sys_dlopen_deplibs=yes
10638     ;;
10639   darwin*)
10640     # Assuming the user has installed a libdl from somewhere, this is true
10641     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10642     libltdl_cv_sys_dlopen_deplibs=yes
10643     ;;
10644   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10645     # GNU and its variants, using gnu ld.so (Glibc)
10646     libltdl_cv_sys_dlopen_deplibs=yes
10647     ;;
10648   hpux10*|hpux11*)
10649     libltdl_cv_sys_dlopen_deplibs=yes
10650     ;;
10651   interix*)
10652     libltdl_cv_sys_dlopen_deplibs=yes
10653     ;;
10654   irix[12345]*|irix6.[01]*)
10655     # Catch all versions of IRIX before 6.2, and indicate that we don't
10656     # know how it worked for any of those versions.
10657     libltdl_cv_sys_dlopen_deplibs=unknown
10658     ;;
10659   irix*)
10660     # The case above catches anything before 6.2, and it's known that
10661     # at 6.2 and later dlopen does load deplibs.
10662     libltdl_cv_sys_dlopen_deplibs=yes
10663     ;;
10664   netbsd*)
10665     libltdl_cv_sys_dlopen_deplibs=yes
10666     ;;
10667   openbsd*)
10668     libltdl_cv_sys_dlopen_deplibs=yes
10669     ;;
10670   osf[1234]*)
10671     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10672     # it did *not* use an RPATH in a shared library to find objects the
10673     # library depends on, so we explicitly say `no'.
10674     libltdl_cv_sys_dlopen_deplibs=no
10675     ;;
10676   osf5.0|osf5.0a|osf5.1)
10677     # dlopen *does* load deplibs and with the right loader patch applied
10678     # it even uses RPATH in a shared library to search for shared objects
10679     # that the library depends on, but there's no easy way to know if that
10680     # patch is installed.  Since this is the case, all we can really
10681     # say is unknown -- it depends on the patch being installed.  If
10682     # it is, this changes to `yes'.  Without it, it would be `no'.
10683     libltdl_cv_sys_dlopen_deplibs=unknown
10684     ;;
10685   osf*)
10686     # the two cases above should catch all versions of osf <= 5.1.  Read
10687     # the comments above for what we know about them.
10688     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10689     # is used to find them so we can finally say `yes'.
10690     libltdl_cv_sys_dlopen_deplibs=yes
10691     ;;
10692   solaris*)
10693     libltdl_cv_sys_dlopen_deplibs=yes
10694     ;;
10695   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10696     libltdl_cv_sys_dlopen_deplibs=yes
10697     ;;
10698   esac
10699
10700 fi
10701 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10702 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10703 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10704
10705 cat >>confdefs.h <<\_ACEOF
10706 #define LTDL_DLOPEN_DEPLIBS 1
10707 _ACEOF
10708
10709 fi
10710
10711
10712 for ac_header in argz.h
10713 do
10714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10716   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 fi
10721 ac_res=`eval echo '${'$as_ac_Header'}'`
10722                { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10724 else
10725   # Is the header compilable?
10726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 $ac_includes_default
10735 #include <$ac_header>
10736 _ACEOF
10737 rm -f conftest.$ac_objext
10738 if { (ac_try="$ac_compile"
10739 case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744   (eval "$ac_compile") 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } &&
10751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10752   { (case "(($ac_try" in
10753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754   *) ac_try_echo=$ac_try;;
10755 esac
10756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10757   (eval "$ac_try") 2>&5
10758   ac_status=$?
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); }; } &&
10761          { ac_try='test -s conftest.$ac_objext'
10762   { (case "(($ac_try" in
10763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764   *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767   (eval "$ac_try") 2>&5
10768   ac_status=$?
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); }; }; then
10771   ac_header_compiler=yes
10772 else
10773   echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776         ac_header_compiler=no
10777 fi
10778
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10781 echo "${ECHO_T}$ac_header_compiler" >&6; }
10782
10783 # Is the header present?
10784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10786 cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h.  */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h.  */
10792 #include <$ac_header>
10793 _ACEOF
10794 if { (ac_try="$ac_cpp conftest.$ac_ext"
10795 case "(($ac_try" in
10796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797   *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10801   ac_status=$?
10802   grep -v '^ *+' conftest.er1 >conftest.err
10803   rm -f conftest.er1
10804   cat conftest.err >&5
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); } >/dev/null; then
10807   if test -s conftest.err; then
10808     ac_cpp_err=$ac_c_preproc_warn_flag
10809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10810   else
10811     ac_cpp_err=
10812   fi
10813 else
10814   ac_cpp_err=yes
10815 fi
10816 if test -z "$ac_cpp_err"; then
10817   ac_header_preproc=yes
10818 else
10819   echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822   ac_header_preproc=no
10823 fi
10824
10825 rm -f conftest.err conftest.$ac_ext
10826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10827 echo "${ECHO_T}$ac_header_preproc" >&6; }
10828
10829 # So?  What about this header?
10830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10831   yes:no: )
10832     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10836     ac_header_preproc=yes
10837     ;;
10838   no:yes:* )
10839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10841     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10842 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10843     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10845     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10846 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10849     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10851     ( cat <<\_ASBOX
10852 ## ------------------------------------ ##
10853 ## Report this to http://llvm.org/bugs/ ##
10854 ## ------------------------------------ ##
10855 _ASBOX
10856      ) | sed "s/^/$as_me: WARNING:     /" >&2
10857     ;;
10858 esac
10859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   eval "$as_ac_Header=\$ac_header_preproc"
10865 fi
10866 ac_res=`eval echo '${'$as_ac_Header'}'`
10867                { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10869
10870 fi
10871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10872   cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10874 _ACEOF
10875
10876 fi
10877
10878 done
10879
10880
10881 { echo "$as_me:$LINENO: checking for error_t" >&5
10882 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10883 if test "${ac_cv_type_error_t+set}" = set; then
10884   echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886   cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h.  */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h.  */
10892 #if HAVE_ARGZ_H
10893 #  include <argz.h>
10894 #endif
10895
10896 typedef error_t ac__type_new_;
10897 int
10898 main ()
10899 {
10900 if ((ac__type_new_ *) 0)
10901   return 0;
10902 if (sizeof (ac__type_new_))
10903   return 0;
10904   ;
10905   return 0;
10906 }
10907 _ACEOF
10908 rm -f conftest.$ac_objext
10909 if { (ac_try="$ac_compile"
10910 case "(($ac_try" in
10911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912   *) ac_try_echo=$ac_try;;
10913 esac
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915   (eval "$ac_compile") 2>conftest.er1
10916   ac_status=$?
10917   grep -v '^ *+' conftest.er1 >conftest.err
10918   rm -f conftest.er1
10919   cat conftest.err >&5
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); } &&
10922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923   { (case "(($ac_try" in
10924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925   *) ac_try_echo=$ac_try;;
10926 esac
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928   (eval "$ac_try") 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }; } &&
10932          { ac_try='test -s conftest.$ac_objext'
10933   { (case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938   (eval "$ac_try") 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; }; then
10942   ac_cv_type_error_t=yes
10943 else
10944   echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947         ac_cv_type_error_t=no
10948 fi
10949
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951 fi
10952 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10953 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10954 if test $ac_cv_type_error_t = yes; then
10955
10956 cat >>confdefs.h <<_ACEOF
10957 #define HAVE_ERROR_T 1
10958 _ACEOF
10959
10960
10961 else
10962
10963 cat >>confdefs.h <<\_ACEOF
10964 #define error_t int
10965 _ACEOF
10966
10967 fi
10968
10969
10970
10971
10972
10973
10974
10975 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10976 do
10977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10981   echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983   cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h.  */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h.  */
10989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10991 #define $ac_func innocuous_$ac_func
10992
10993 /* System header to define __stub macros and hopefully few prototypes,
10994     which can conflict with char $ac_func (); below.
10995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10996     <limits.h> exists even on freestanding compilers.  */
10997
10998 #ifdef __STDC__
10999 # include <limits.h>
11000 #else
11001 # include <assert.h>
11002 #endif
11003
11004 #undef $ac_func
11005
11006 /* Override any GCC internal prototype to avoid an error.
11007    Use char because int might match the return type of a GCC
11008    builtin and then its argument prototype would still apply.  */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char $ac_func ();
11013 /* The GNU C library defines this for functions which it implements
11014     to always fail with ENOSYS.  Some functions are actually named
11015     something starting with __ and the normal name is an alias.  */
11016 #if defined __stub_$ac_func || defined __stub___$ac_func
11017 choke me
11018 #endif
11019
11020 int
11021 main ()
11022 {
11023 return $ac_func ();
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (ac_try="$ac_link"
11030 case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_link") 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } &&
11042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043   { (case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048   (eval "$ac_try") 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }; } &&
11052          { ac_try='test -s conftest$ac_exeext'
11053   { (case "(($ac_try" in
11054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055   *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058   (eval "$ac_try") 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; }; then
11062   eval "$as_ac_var=yes"
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067         eval "$as_ac_var=no"
11068 fi
11069
11070 rm -f core conftest.err conftest.$ac_objext \
11071       conftest$ac_exeext conftest.$ac_ext
11072 fi
11073 ac_res=`eval echo '${'$as_ac_var'}'`
11074                { echo "$as_me:$LINENO: result: $ac_res" >&5
11075 echo "${ECHO_T}$ac_res" >&6; }
11076 if test `eval echo '${'$as_ac_var'}'` = yes; then
11077   cat >>confdefs.h <<_ACEOF
11078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11079 _ACEOF
11080
11081 fi
11082 done
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11111                   stdio.h unistd.h
11112 do
11113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11115   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 fi
11120 ac_res=`eval echo '${'$as_ac_Header'}'`
11121                { echo "$as_me:$LINENO: result: $ac_res" >&5
11122 echo "${ECHO_T}$ac_res" >&6; }
11123 else
11124   # Is the header compilable?
11125 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133 $ac_includes_default
11134 #include <$ac_header>
11135 _ACEOF
11136 rm -f conftest.$ac_objext
11137 if { (ac_try="$ac_compile"
11138 case "(($ac_try" in
11139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140   *) ac_try_echo=$ac_try;;
11141 esac
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143   (eval "$ac_compile") 2>conftest.er1
11144   ac_status=$?
11145   grep -v '^ *+' conftest.er1 >conftest.err
11146   rm -f conftest.er1
11147   cat conftest.err >&5
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); } &&
11150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11151   { (case "(($ac_try" in
11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153   *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156   (eval "$ac_try") 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); }; } &&
11160          { ac_try='test -s conftest.$ac_objext'
11161   { (case "(($ac_try" in
11162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163   *) ac_try_echo=$ac_try;;
11164 esac
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166   (eval "$ac_try") 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; }; then
11170   ac_header_compiler=yes
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175         ac_header_compiler=no
11176 fi
11177
11178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11180 echo "${ECHO_T}$ac_header_compiler" >&6; }
11181
11182 # Is the header present?
11183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191 #include <$ac_header>
11192 _ACEOF
11193 if { (ac_try="$ac_cpp conftest.$ac_ext"
11194 case "(($ac_try" in
11195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196   *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11200   ac_status=$?
11201   grep -v '^ *+' conftest.er1 >conftest.err
11202   rm -f conftest.er1
11203   cat conftest.err >&5
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); } >/dev/null; then
11206   if test -s conftest.err; then
11207     ac_cpp_err=$ac_c_preproc_warn_flag
11208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11209   else
11210     ac_cpp_err=
11211   fi
11212 else
11213   ac_cpp_err=yes
11214 fi
11215 if test -z "$ac_cpp_err"; then
11216   ac_header_preproc=yes
11217 else
11218   echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11220
11221   ac_header_preproc=no
11222 fi
11223
11224 rm -f conftest.err conftest.$ac_ext
11225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11226 echo "${ECHO_T}$ac_header_preproc" >&6; }
11227
11228 # So?  What about this header?
11229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11230   yes:no: )
11231     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11235     ac_header_preproc=yes
11236     ;;
11237   no:yes:* )
11238     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11240     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11241 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11244     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11245 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11248     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11250     ( cat <<\_ASBOX
11251 ## ------------------------------------ ##
11252 ## Report this to http://llvm.org/bugs/ ##
11253 ## ------------------------------------ ##
11254 _ASBOX
11255      ) | sed "s/^/$as_me: WARNING:     /" >&2
11256     ;;
11257 esac
11258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11261   echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263   eval "$as_ac_Header=\$ac_header_preproc"
11264 fi
11265 ac_res=`eval echo '${'$as_ac_Header'}'`
11266                { echo "$as_me:$LINENO: result: $ac_res" >&5
11267 echo "${ECHO_T}$ac_res" >&6; }
11268
11269 fi
11270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11271   cat >>confdefs.h <<_ACEOF
11272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11273 _ACEOF
11274
11275 fi
11276
11277 done
11278
11279
11280
11281
11282
11283 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11284 do
11285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11287   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11290   echo $ECHO_N "(cached) $ECHO_C" >&6
11291 fi
11292 ac_res=`eval echo '${'$as_ac_Header'}'`
11293                { echo "$as_me:$LINENO: result: $ac_res" >&5
11294 echo "${ECHO_T}$ac_res" >&6; }
11295 else
11296   # Is the header compilable?
11297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305 $ac_includes_default
11306 #include <$ac_header>
11307 _ACEOF
11308 rm -f conftest.$ac_objext
11309 if { (ac_try="$ac_compile"
11310 case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315   (eval "$ac_compile") 2>conftest.er1
11316   ac_status=$?
11317   grep -v '^ *+' conftest.er1 >conftest.err
11318   rm -f conftest.er1
11319   cat conftest.err >&5
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } &&
11322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11323   { (case "(($ac_try" in
11324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325   *) ac_try_echo=$ac_try;;
11326 esac
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328   (eval "$ac_try") 2>&5
11329   ac_status=$?
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); }; } &&
11332          { ac_try='test -s conftest.$ac_objext'
11333   { (case "(($ac_try" in
11334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335   *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338   (eval "$ac_try") 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); }; }; then
11342   ac_header_compiler=yes
11343 else
11344   echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11346
11347         ac_header_compiler=no
11348 fi
11349
11350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11352 echo "${ECHO_T}$ac_header_compiler" >&6; }
11353
11354 # Is the header present?
11355 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h.  */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h.  */
11363 #include <$ac_header>
11364 _ACEOF
11365 if { (ac_try="$ac_cpp conftest.$ac_ext"
11366 case "(($ac_try" in
11367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368   *) ac_try_echo=$ac_try;;
11369 esac
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11372   ac_status=$?
11373   grep -v '^ *+' conftest.er1 >conftest.err
11374   rm -f conftest.er1
11375   cat conftest.err >&5
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); } >/dev/null; then
11378   if test -s conftest.err; then
11379     ac_cpp_err=$ac_c_preproc_warn_flag
11380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11381   else
11382     ac_cpp_err=
11383   fi
11384 else
11385   ac_cpp_err=yes
11386 fi
11387 if test -z "$ac_cpp_err"; then
11388   ac_header_preproc=yes
11389 else
11390   echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393   ac_header_preproc=no
11394 fi
11395
11396 rm -f conftest.err conftest.$ac_ext
11397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11398 echo "${ECHO_T}$ac_header_preproc" >&6; }
11399
11400 # So?  What about this header?
11401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11402   yes:no: )
11403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11407     ac_header_preproc=yes
11408     ;;
11409   no:yes:* )
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11413 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11417 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11420     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11422     ( cat <<\_ASBOX
11423 ## ------------------------------------ ##
11424 ## Report this to http://llvm.org/bugs/ ##
11425 ## ------------------------------------ ##
11426 _ASBOX
11427      ) | sed "s/^/$as_me: WARNING:     /" >&2
11428     ;;
11429 esac
11430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433   echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435   eval "$as_ac_Header=\$ac_header_preproc"
11436 fi
11437 ac_res=`eval echo '${'$as_ac_Header'}'`
11438                { echo "$as_me:$LINENO: result: $ac_res" >&5
11439 echo "${ECHO_T}$ac_res" >&6; }
11440
11441 fi
11442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11443   cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11445 _ACEOF
11446
11447 fi
11448
11449 done
11450
11451
11452
11453 for ac_header in string.h strings.h
11454 do
11455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 fi
11462 ac_res=`eval echo '${'$as_ac_Header'}'`
11463                { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11465 else
11466   # Is the header compilable?
11467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h.  */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h.  */
11475 $ac_includes_default
11476 #include <$ac_header>
11477 _ACEOF
11478 rm -f conftest.$ac_objext
11479 if { (ac_try="$ac_compile"
11480 case "(($ac_try" in
11481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482   *) ac_try_echo=$ac_try;;
11483 esac
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485   (eval "$ac_compile") 2>conftest.er1
11486   ac_status=$?
11487   grep -v '^ *+' conftest.er1 >conftest.err
11488   rm -f conftest.er1
11489   cat conftest.err >&5
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } &&
11492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11493   { (case "(($ac_try" in
11494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495   *) ac_try_echo=$ac_try;;
11496 esac
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498   (eval "$ac_try") 2>&5
11499   ac_status=$?
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); }; } &&
11502          { ac_try='test -s conftest.$ac_objext'
11503   { (case "(($ac_try" in
11504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505   *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508   (eval "$ac_try") 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }; then
11512   ac_header_compiler=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517         ac_header_compiler=no
11518 fi
11519
11520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11522 echo "${ECHO_T}$ac_header_compiler" >&6; }
11523
11524 # Is the header present?
11525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h.  */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h.  */
11533 #include <$ac_header>
11534 _ACEOF
11535 if { (ac_try="$ac_cpp conftest.$ac_ext"
11536 case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } >/dev/null; then
11548   if test -s conftest.err; then
11549     ac_cpp_err=$ac_c_preproc_warn_flag
11550     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11551   else
11552     ac_cpp_err=
11553   fi
11554 else
11555   ac_cpp_err=yes
11556 fi
11557 if test -z "$ac_cpp_err"; then
11558   ac_header_preproc=yes
11559 else
11560   echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563   ac_header_preproc=no
11564 fi
11565
11566 rm -f conftest.err conftest.$ac_ext
11567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11568 echo "${ECHO_T}$ac_header_preproc" >&6; }
11569
11570 # So?  What about this header?
11571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11572   yes:no: )
11573     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11577     ac_header_preproc=yes
11578     ;;
11579   no:yes:* )
11580     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11582     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11583 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11584     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11586     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11587 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11590     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11592     ( cat <<\_ASBOX
11593 ## ------------------------------------ ##
11594 ## Report this to http://llvm.org/bugs/ ##
11595 ## ------------------------------------ ##
11596 _ASBOX
11597      ) | sed "s/^/$as_me: WARNING:     /" >&2
11598     ;;
11599 esac
11600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11603   echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605   eval "$as_ac_Header=\$ac_header_preproc"
11606 fi
11607 ac_res=`eval echo '${'$as_ac_Header'}'`
11608                { echo "$as_me:$LINENO: result: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11610
11611 fi
11612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11613   cat >>confdefs.h <<_ACEOF
11614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11615 _ACEOF
11616  break
11617 fi
11618
11619 done
11620
11621
11622
11623
11624 for ac_func in strchr index
11625 do
11626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h.  */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h.  */
11638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11640 #define $ac_func innocuous_$ac_func
11641
11642 /* System header to define __stub macros and hopefully few prototypes,
11643     which can conflict with char $ac_func (); below.
11644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645     <limits.h> exists even on freestanding compilers.  */
11646
11647 #ifdef __STDC__
11648 # include <limits.h>
11649 #else
11650 # include <assert.h>
11651 #endif
11652
11653 #undef $ac_func
11654
11655 /* Override any GCC internal prototype to avoid an error.
11656    Use char because int might match the return type of a GCC
11657    builtin and then its argument prototype would still apply.  */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 char $ac_func ();
11662 /* The GNU C library defines this for functions which it implements
11663     to always fail with ENOSYS.  Some functions are actually named
11664     something starting with __ and the normal name is an alias.  */
11665 #if defined __stub_$ac_func || defined __stub___$ac_func
11666 choke me
11667 #endif
11668
11669 int
11670 main ()
11671 {
11672 return $ac_func ();
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684   (eval "$ac_link") 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } &&
11691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11692   { (case "(($ac_try" in
11693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694   *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697   (eval "$ac_try") 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; } &&
11701          { ac_try='test -s conftest$ac_exeext'
11702   { (case "(($ac_try" in
11703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704   *) ac_try_echo=$ac_try;;
11705 esac
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707   (eval "$ac_try") 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; }; then
11711   eval "$as_ac_var=yes"
11712 else
11713   echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716         eval "$as_ac_var=no"
11717 fi
11718
11719 rm -f core conftest.err conftest.$ac_objext \
11720       conftest$ac_exeext conftest.$ac_ext
11721 fi
11722 ac_res=`eval echo '${'$as_ac_var'}'`
11723                { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_var'}'` = yes; then
11726   cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11728 _ACEOF
11729  break
11730 fi
11731 done
11732
11733
11734
11735 for ac_func in strrchr rindex
11736 do
11737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741   echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743   cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11751 #define $ac_func innocuous_$ac_func
11752
11753 /* System header to define __stub macros and hopefully few prototypes,
11754     which can conflict with char $ac_func (); below.
11755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756     <limits.h> exists even on freestanding compilers.  */
11757
11758 #ifdef __STDC__
11759 # include <limits.h>
11760 #else
11761 # include <assert.h>
11762 #endif
11763
11764 #undef $ac_func
11765
11766 /* Override any GCC internal prototype to avoid an error.
11767    Use char because int might match the return type of a GCC
11768    builtin and then its argument prototype would still apply.  */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 char $ac_func ();
11773 /* The GNU C library defines this for functions which it implements
11774     to always fail with ENOSYS.  Some functions are actually named
11775     something starting with __ and the normal name is an alias.  */
11776 #if defined __stub_$ac_func || defined __stub___$ac_func
11777 choke me
11778 #endif
11779
11780 int
11781 main ()
11782 {
11783 return $ac_func ();
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795   (eval "$ac_link") 2>conftest.er1
11796   ac_status=$?
11797   grep -v '^ *+' conftest.er1 >conftest.err
11798   rm -f conftest.er1
11799   cat conftest.err >&5
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); } &&
11802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803   { (case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808   (eval "$ac_try") 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; } &&
11812          { ac_try='test -s conftest$ac_exeext'
11813   { (case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_try") 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; }; then
11822   eval "$as_ac_var=yes"
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827         eval "$as_ac_var=no"
11828 fi
11829
11830 rm -f core conftest.err conftest.$ac_objext \
11831       conftest$ac_exeext conftest.$ac_ext
11832 fi
11833 ac_res=`eval echo '${'$as_ac_var'}'`
11834                { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11836 if test `eval echo '${'$as_ac_var'}'` = yes; then
11837   cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11839 _ACEOF
11840  break
11841 fi
11842 done
11843
11844
11845
11846 for ac_func in memcpy bcopy
11847 do
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11862 #define $ac_func innocuous_$ac_func
11863
11864 /* System header to define __stub macros and hopefully few prototypes,
11865     which can conflict with char $ac_func (); below.
11866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867     <limits.h> exists even on freestanding compilers.  */
11868
11869 #ifdef __STDC__
11870 # include <limits.h>
11871 #else
11872 # include <assert.h>
11873 #endif
11874
11875 #undef $ac_func
11876
11877 /* Override any GCC internal prototype to avoid an error.
11878    Use char because int might match the return type of a GCC
11879    builtin and then its argument prototype would still apply.  */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char $ac_func ();
11884 /* The GNU C library defines this for functions which it implements
11885     to always fail with ENOSYS.  Some functions are actually named
11886     something starting with __ and the normal name is an alias.  */
11887 #if defined __stub_$ac_func || defined __stub___$ac_func
11888 choke me
11889 #endif
11890
11891 int
11892 main ()
11893 {
11894 return $ac_func ();
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906   (eval "$ac_link") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } &&
11913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914   { (case "(($ac_try" in
11915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916   *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919   (eval "$ac_try") 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; } &&
11923          { ac_try='test -s conftest$ac_exeext'
11924   { (case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929   (eval "$ac_try") 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; }; then
11933   eval "$as_ac_var=yes"
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938         eval "$as_ac_var=no"
11939 fi
11940
11941 rm -f core conftest.err conftest.$ac_objext \
11942       conftest$ac_exeext conftest.$ac_ext
11943 fi
11944 ac_res=`eval echo '${'$as_ac_var'}'`
11945                { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 if test `eval echo '${'$as_ac_var'}'` = yes; then
11948   cat >>confdefs.h <<_ACEOF
11949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11950 _ACEOF
11951  break
11952 fi
11953 done
11954
11955
11956
11957 for ac_func in memmove strcmp
11958 do
11959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11963   echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965   cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h.  */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h.  */
11971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11973 #define $ac_func innocuous_$ac_func
11974
11975 /* System header to define __stub macros and hopefully few prototypes,
11976     which can conflict with char $ac_func (); below.
11977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978     <limits.h> exists even on freestanding compilers.  */
11979
11980 #ifdef __STDC__
11981 # include <limits.h>
11982 #else
11983 # include <assert.h>
11984 #endif
11985
11986 #undef $ac_func
11987
11988 /* Override any GCC internal prototype to avoid an error.
11989    Use char because int might match the return type of a GCC
11990    builtin and then its argument prototype would still apply.  */
11991 #ifdef __cplusplus
11992 extern "C"
11993 #endif
11994 char $ac_func ();
11995 /* The GNU C library defines this for functions which it implements
11996     to always fail with ENOSYS.  Some functions are actually named
11997     something starting with __ and the normal name is an alias.  */
11998 #if defined __stub_$ac_func || defined __stub___$ac_func
11999 choke me
12000 #endif
12001
12002 int
12003 main ()
12004 {
12005 return $ac_func ();
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (ac_try="$ac_link"
12012 case "(($ac_try" in
12013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014   *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017   (eval "$ac_link") 2>conftest.er1
12018   ac_status=$?
12019   grep -v '^ *+' conftest.er1 >conftest.err
12020   rm -f conftest.er1
12021   cat conftest.err >&5
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); } &&
12024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12025   { (case "(($ac_try" in
12026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027   *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030   (eval "$ac_try") 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }; } &&
12034          { ac_try='test -s conftest$ac_exeext'
12035   { (case "(($ac_try" in
12036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037   *) ac_try_echo=$ac_try;;
12038 esac
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040   (eval "$ac_try") 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; }; then
12044   eval "$as_ac_var=yes"
12045 else
12046   echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049         eval "$as_ac_var=no"
12050 fi
12051
12052 rm -f core conftest.err conftest.$ac_objext \
12053       conftest$ac_exeext conftest.$ac_ext
12054 fi
12055 ac_res=`eval echo '${'$as_ac_var'}'`
12056                { echo "$as_me:$LINENO: result: $ac_res" >&5
12057 echo "${ECHO_T}$ac_res" >&6; }
12058 if test `eval echo '${'$as_ac_var'}'` = yes; then
12059   cat >>confdefs.h <<_ACEOF
12060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12061 _ACEOF
12062
12063 fi
12064 done
12065
12066
12067
12068
12069 for ac_func in closedir opendir readdir
12070 do
12071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12075   echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077   cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12085 #define $ac_func innocuous_$ac_func
12086
12087 /* System header to define __stub macros and hopefully few prototypes,
12088     which can conflict with char $ac_func (); below.
12089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12090     <limits.h> exists even on freestanding compilers.  */
12091
12092 #ifdef __STDC__
12093 # include <limits.h>
12094 #else
12095 # include <assert.h>
12096 #endif
12097
12098 #undef $ac_func
12099
12100 /* Override any GCC internal prototype to avoid an error.
12101    Use char because int might match the return type of a GCC
12102    builtin and then its argument prototype would still apply.  */
12103 #ifdef __cplusplus
12104 extern "C"
12105 #endif
12106 char $ac_func ();
12107 /* The GNU C library defines this for functions which it implements
12108     to always fail with ENOSYS.  Some functions are actually named
12109     something starting with __ and the normal name is an alias.  */
12110 #if defined __stub_$ac_func || defined __stub___$ac_func
12111 choke me
12112 #endif
12113
12114 int
12115 main ()
12116 {
12117 return $ac_func ();
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126   *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129   (eval "$ac_link") 2>conftest.er1
12130   ac_status=$?
12131   grep -v '^ *+' conftest.er1 >conftest.err
12132   rm -f conftest.er1
12133   cat conftest.err >&5
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); } &&
12136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12137   { (case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142   (eval "$ac_try") 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); }; } &&
12146          { ac_try='test -s conftest$ac_exeext'
12147   { (case "(($ac_try" in
12148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149   *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152   (eval "$ac_try") 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; }; then
12156   eval "$as_ac_var=yes"
12157 else
12158   echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12160
12161         eval "$as_ac_var=no"
12162 fi
12163
12164 rm -f core conftest.err conftest.$ac_objext \
12165       conftest$ac_exeext conftest.$ac_ext
12166 fi
12167 ac_res=`eval echo '${'$as_ac_var'}'`
12168                { echo "$as_me:$LINENO: result: $ac_res" >&5
12169 echo "${ECHO_T}$ac_res" >&6; }
12170 if test `eval echo '${'$as_ac_var'}'` = yes; then
12171   cat >>confdefs.h <<_ACEOF
12172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12173 _ACEOF
12174
12175 fi
12176 done
12177
12178
12179
12180 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12181 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12182
12183 ICC=no
12184 IXX=no
12185 case $CC in
12186   icc*|icpc*)
12187     ICC=yes
12188     IXX=yes
12189     ;;
12190    *)
12191     ;;
12192 esac
12193
12194 if test "$GCC" != "yes" && test "$ICC" != "yes"
12195 then
12196   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12197 echo "$as_me: error: gcc|icc required but not found" >&2;}
12198    { (exit 1); exit 1; }; }
12199 fi
12200
12201 if test "$GXX" != "yes" && test "$IXX" != "yes"
12202 then
12203   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12204 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12205    { (exit 1); exit 1; }; }
12206 fi
12207
12208 if test "$GCC" = "yes"
12209 then
12210   cat >conftest.$ac_ext <<_ACEOF
12211
12212   /* confdefs.h.  */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h.  */
12217
12218     #if !defined(__GNUC__) || __GNUC__ < 3
12219     #error Unsupported GCC version
12220     #endif
12221
12222
12223 _ACEOF
12224 rm -f conftest.$ac_objext
12225 if { (ac_try="$ac_compile"
12226 case "(($ac_try" in
12227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228   *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231   (eval "$ac_compile") 2>conftest.er1
12232   ac_status=$?
12233   grep -v '^ *+' conftest.er1 >conftest.err
12234   rm -f conftest.er1
12235   cat conftest.err >&5
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); } &&
12238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12239   { (case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_try") 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; } &&
12248          { ac_try='test -s conftest.$ac_objext'
12249   { (case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254   (eval "$ac_try") 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; }; then
12258   :
12259 else
12260   echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12262
12263         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12264 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12265    { (exit 1); exit 1; }; }
12266 fi
12267
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 fi
12270
12271 if test -z "$llvm_cv_gnu_make_command"
12272 then
12273   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12274 echo "$as_me: error: GNU Make required but not found" >&2;}
12275    { (exit 1); exit 1; }; }
12276 fi
12277
12278 { echo "$as_me:$LINENO: result: ok" >&5
12279 echo "${ECHO_T}ok" >&6; }
12280
12281 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12282 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12283 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12284
12285 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12286
12287 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12288
12289
12290 NO_UNINITIALIZED=
12291 NO_MAYBE_UNINITIALIZED=
12292 if test "$GXX" = "yes"
12293 then
12294   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12295
12296         if test -z "$NO_MAYBE_UNINITIALIZED"
12297   then
12298     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12299
12300   fi
12301 fi
12302 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12303 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12304
12305
12306 # Check whether --with-python was given.
12307 if test "${with_python+set}" = set; then
12308   withval=$with_python; PYTHON="$withval"
12309 fi
12310
12311
12312 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12313   { echo "$as_me:$LINENO: checking for python" >&5
12314 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12315   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12316 echo "${ECHO_T}user defined: $with_python" >&6; }
12317 else
12318   if test -n "$PYTHON" ; then
12319     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12320 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12321   fi
12322
12323   # Extract the first word of "python python2 python26", so it can be a program name with args.
12324 set dummy python python2 python26; ac_word=$2
12325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12327 if test "${ac_cv_path_PYTHON+set}" = set; then
12328   echo $ECHO_N "(cached) $ECHO_C" >&6
12329 else
12330   case $PYTHON in
12331   [\\/]* | ?:[\\/]*)
12332   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12333   ;;
12334   *)
12335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12337 do
12338   IFS=$as_save_IFS
12339   test -z "$as_dir" && as_dir=.
12340   for ac_exec_ext in '' $ac_executable_extensions; do
12341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12342     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12344     break 2
12345   fi
12346 done
12347 done
12348 IFS=$as_save_IFS
12349
12350   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12351 echo "${ECHO_T}not found" >&6; }
12352                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12353 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12354    { (exit 1); exit 1; }; }"
12355   ;;
12356 esac
12357 fi
12358 PYTHON=$ac_cv_path_PYTHON
12359 if test -n "$PYTHON"; then
12360   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12361 echo "${ECHO_T}$PYTHON" >&6; }
12362 else
12363   { echo "$as_me:$LINENO: result: no" >&5
12364 echo "${ECHO_T}no" >&6; }
12365 fi
12366
12367
12368 fi
12369
12370 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12371 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12372 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12373 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12374 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12375 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12376 if   test "$ac_python_version_major" -eq "2" \
12377    && test "$ac_python_version_minor" -ge "5" ; then
12378   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12379 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12380 else
12381   { echo "$as_me:$LINENO: result: not found" >&5
12382 echo "${ECHO_T}not found" >&6; }
12383   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12384 See \`config.log' for more details." >&5
12385 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12386 See \`config.log' for more details." >&2;}
12387    { (exit 1); exit 1; }; }
12388 fi
12389
12390
12391
12392 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12393 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_m_sin+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-lm  $LIBS"
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405
12406 /* Override any GCC internal prototype to avoid an error.
12407    Use char because int might match the return type of a GCC
12408    builtin and then its argument prototype would still apply.  */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 char sin ();
12413 int
12414 main ()
12415 {
12416 return sin ();
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } &&
12435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436   { (case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_try") 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; } &&
12445          { ac_try='test -s conftest$ac_exeext'
12446   { (case "(($ac_try" in
12447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448   *) ac_try_echo=$ac_try;;
12449 esac
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451   (eval "$ac_try") 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_cv_lib_m_sin=yes
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460         ac_cv_lib_m_sin=no
12461 fi
12462
12463 rm -f core conftest.err conftest.$ac_objext \
12464       conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12466 fi
12467 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12468 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12469 if test $ac_cv_lib_m_sin = yes; then
12470   cat >>confdefs.h <<_ACEOF
12471 #define HAVE_LIBM 1
12472 _ACEOF
12473
12474   LIBS="-lm $LIBS"
12475
12476 fi
12477
12478 if test "$llvm_cv_os_type" = "MingW" ; then
12479
12480 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12481 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12482 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12483   echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485   ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-limagehlp  $LIBS"
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494
12495 int
12496 main ()
12497 {
12498 return main ();
12499   ;
12500   return 0;
12501 }
12502 _ACEOF
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507   *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510   (eval "$ac_link") 2>conftest.er1
12511   ac_status=$?
12512   grep -v '^ *+' conftest.er1 >conftest.err
12513   rm -f conftest.er1
12514   cat conftest.err >&5
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } &&
12517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12518   { (case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_try") 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; } &&
12527          { ac_try='test -s conftest$ac_exeext'
12528   { (case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533   (eval "$ac_try") 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; }; then
12537   ac_cv_lib_imagehlp_main=yes
12538 else
12539   echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12541
12542         ac_cv_lib_imagehlp_main=no
12543 fi
12544
12545 rm -f core conftest.err conftest.$ac_objext \
12546       conftest$ac_exeext conftest.$ac_ext
12547 LIBS=$ac_check_lib_save_LIBS
12548 fi
12549 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12550 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12551 if test $ac_cv_lib_imagehlp_main = yes; then
12552   cat >>confdefs.h <<_ACEOF
12553 #define HAVE_LIBIMAGEHLP 1
12554 _ACEOF
12555
12556   LIBS="-limagehlp $LIBS"
12557
12558 fi
12559
12560
12561 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12562 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12563 if test "${ac_cv_lib_psapi_main+set}" = set; then
12564   echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566   ac_check_lib_save_LIBS=$LIBS
12567 LIBS="-lpsapi  $LIBS"
12568 cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h.  */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h.  */
12574
12575
12576 int
12577 main ()
12578 {
12579 return main ();
12580   ;
12581   return 0;
12582 }
12583 _ACEOF
12584 rm -f conftest.$ac_objext conftest$ac_exeext
12585 if { (ac_try="$ac_link"
12586 case "(($ac_try" in
12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588   *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591   (eval "$ac_link") 2>conftest.er1
12592   ac_status=$?
12593   grep -v '^ *+' conftest.er1 >conftest.err
12594   rm -f conftest.er1
12595   cat conftest.err >&5
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); } &&
12598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599   { (case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_try") 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; } &&
12608          { ac_try='test -s conftest$ac_exeext'
12609   { (case "(($ac_try" in
12610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611   *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614   (eval "$ac_try") 2>&5
12615   ac_status=$?
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); }; }; then
12618   ac_cv_lib_psapi_main=yes
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623         ac_cv_lib_psapi_main=no
12624 fi
12625
12626 rm -f core conftest.err conftest.$ac_objext \
12627       conftest$ac_exeext conftest.$ac_ext
12628 LIBS=$ac_check_lib_save_LIBS
12629 fi
12630 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12631 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12632 if test $ac_cv_lib_psapi_main = yes; then
12633   cat >>confdefs.h <<_ACEOF
12634 #define HAVE_LIBPSAPI 1
12635 _ACEOF
12636
12637   LIBS="-lpsapi $LIBS"
12638
12639 fi
12640
12641 fi
12642
12643 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12644 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12645 if test "${ac_cv_search_dlopen+set}" = set; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648   ac_func_search_save_LIBS=$LIBS
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h.  */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h.  */
12655
12656 /* Override any GCC internal prototype to avoid an error.
12657    Use char because int might match the return type of a GCC
12658    builtin and then its argument prototype would still apply.  */
12659 #ifdef __cplusplus
12660 extern "C"
12661 #endif
12662 char dlopen ();
12663 int
12664 main ()
12665 {
12666 return dlopen ();
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 for ac_lib in '' dl; do
12672   if test -z "$ac_lib"; then
12673     ac_res="none required"
12674   else
12675     ac_res=-l$ac_lib
12676     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12677   fi
12678   rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682   *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685   (eval "$ac_link") 2>conftest.er1
12686   ac_status=$?
12687   grep -v '^ *+' conftest.er1 >conftest.err
12688   rm -f conftest.er1
12689   cat conftest.err >&5
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } &&
12692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12693   { (case "(($ac_try" in
12694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695   *) ac_try_echo=$ac_try;;
12696 esac
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698   (eval "$ac_try") 2>&5
12699   ac_status=$?
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); }; } &&
12702          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12712   ac_cv_search_dlopen=$ac_res
12713 else
12714   echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717
12718 fi
12719
12720 rm -f core conftest.err conftest.$ac_objext \
12721       conftest$ac_exeext
12722   if test "${ac_cv_search_dlopen+set}" = set; then
12723   break
12724 fi
12725 done
12726 if test "${ac_cv_search_dlopen+set}" = set; then
12727   :
12728 else
12729   ac_cv_search_dlopen=no
12730 fi
12731 rm conftest.$ac_ext
12732 LIBS=$ac_func_search_save_LIBS
12733 fi
12734 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12735 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12736 ac_res=$ac_cv_search_dlopen
12737 if test "$ac_res" != no; then
12738   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12739
12740 cat >>confdefs.h <<\_ACEOF
12741 #define HAVE_DLOPEN 1
12742 _ACEOF
12743
12744 else
12745   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12746 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12747 fi
12748
12749
12750 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12751 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12752 if test "${ac_cv_search_clock_gettime+set}" = set; then
12753   echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755   ac_func_search_save_LIBS=$LIBS
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h.  */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h.  */
12762
12763 /* Override any GCC internal prototype to avoid an error.
12764    Use char because int might match the return type of a GCC
12765    builtin and then its argument prototype would still apply.  */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 char clock_gettime ();
12770 int
12771 main ()
12772 {
12773 return clock_gettime ();
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 for ac_lib in '' rt; do
12779   if test -z "$ac_lib"; then
12780     ac_res="none required"
12781   else
12782     ac_res=-l$ac_lib
12783     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12784   fi
12785   rm -f conftest.$ac_objext conftest$ac_exeext
12786 if { (ac_try="$ac_link"
12787 case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792   (eval "$ac_link") 2>conftest.er1
12793   ac_status=$?
12794   grep -v '^ *+' conftest.er1 >conftest.err
12795   rm -f conftest.er1
12796   cat conftest.err >&5
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } &&
12799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12800   { (case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_try") 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; } &&
12809          { ac_try='test -s conftest$ac_exeext'
12810   { (case "(($ac_try" in
12811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812   *) ac_try_echo=$ac_try;;
12813 esac
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815   (eval "$ac_try") 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); }; }; then
12819   ac_cv_search_clock_gettime=$ac_res
12820 else
12821   echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12823
12824
12825 fi
12826
12827 rm -f core conftest.err conftest.$ac_objext \
12828       conftest$ac_exeext
12829   if test "${ac_cv_search_clock_gettime+set}" = set; then
12830   break
12831 fi
12832 done
12833 if test "${ac_cv_search_clock_gettime+set}" = set; then
12834   :
12835 else
12836   ac_cv_search_clock_gettime=no
12837 fi
12838 rm conftest.$ac_ext
12839 LIBS=$ac_func_search_save_LIBS
12840 fi
12841 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12842 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12843 ac_res=$ac_cv_search_clock_gettime
12844 if test "$ac_res" != no; then
12845   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12846
12847 fi
12848
12849
12850 if test "$llvm_cv_enable_libffi" = "yes" ; then
12851   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12852 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12853 if test "${ac_cv_search_ffi_call+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856   ac_func_search_save_LIBS=$LIBS
12857 cat >conftest.$ac_ext <<_ACEOF
12858 /* confdefs.h.  */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h.  */
12863
12864 /* Override any GCC internal prototype to avoid an error.
12865    Use char because int might match the return type of a GCC
12866    builtin and then its argument prototype would still apply.  */
12867 #ifdef __cplusplus
12868 extern "C"
12869 #endif
12870 char ffi_call ();
12871 int
12872 main ()
12873 {
12874 return ffi_call ();
12875   ;
12876   return 0;
12877 }
12878 _ACEOF
12879 for ac_lib in '' ffi; do
12880   if test -z "$ac_lib"; then
12881     ac_res="none required"
12882   else
12883     ac_res=-l$ac_lib
12884     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12885   fi
12886   rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (ac_try="$ac_link"
12888 case "(($ac_try" in
12889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890   *) ac_try_echo=$ac_try;;
12891 esac
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893   (eval "$ac_link") 2>conftest.er1
12894   ac_status=$?
12895   grep -v '^ *+' conftest.er1 >conftest.err
12896   rm -f conftest.er1
12897   cat conftest.err >&5
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } &&
12900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12901   { (case "(($ac_try" in
12902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903   *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906   (eval "$ac_try") 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; } &&
12910          { ac_try='test -s conftest$ac_exeext'
12911   { (case "(($ac_try" in
12912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913   *) ac_try_echo=$ac_try;;
12914 esac
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916   (eval "$ac_try") 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); }; }; then
12920   ac_cv_search_ffi_call=$ac_res
12921 else
12922   echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925
12926 fi
12927
12928 rm -f core conftest.err conftest.$ac_objext \
12929       conftest$ac_exeext
12930   if test "${ac_cv_search_ffi_call+set}" = set; then
12931   break
12932 fi
12933 done
12934 if test "${ac_cv_search_ffi_call+set}" = set; then
12935   :
12936 else
12937   ac_cv_search_ffi_call=no
12938 fi
12939 rm conftest.$ac_ext
12940 LIBS=$ac_func_search_save_LIBS
12941 fi
12942 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12943 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12944 ac_res=$ac_cv_search_ffi_call
12945 if test "$ac_res" != no; then
12946   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12947
12948 cat >>confdefs.h <<\_ACEOF
12949 #define HAVE_FFI_CALL 1
12950 _ACEOF
12951
12952 else
12953   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12954 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12955    { (exit 1); exit 1; }; }
12956 fi
12957
12958 fi
12959
12960 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12961 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12962 if test "${ac_cv_search_mallinfo+set}" = set; then
12963   echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965   ac_func_search_save_LIBS=$LIBS
12966 cat >conftest.$ac_ext <<_ACEOF
12967 /* confdefs.h.  */
12968 _ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h.  */
12972
12973 /* Override any GCC internal prototype to avoid an error.
12974    Use char because int might match the return type of a GCC
12975    builtin and then its argument prototype would still apply.  */
12976 #ifdef __cplusplus
12977 extern "C"
12978 #endif
12979 char mallinfo ();
12980 int
12981 main ()
12982 {
12983 return mallinfo ();
12984   ;
12985   return 0;
12986 }
12987 _ACEOF
12988 for ac_lib in '' malloc; do
12989   if test -z "$ac_lib"; then
12990     ac_res="none required"
12991   else
12992     ac_res=-l$ac_lib
12993     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12994   fi
12995   rm -f conftest.$ac_objext conftest$ac_exeext
12996 if { (ac_try="$ac_link"
12997 case "(($ac_try" in
12998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999   *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002   (eval "$ac_link") 2>conftest.er1
13003   ac_status=$?
13004   grep -v '^ *+' conftest.er1 >conftest.err
13005   rm -f conftest.er1
13006   cat conftest.err >&5
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } &&
13009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13010   { (case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015   (eval "$ac_try") 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; } &&
13019          { ac_try='test -s conftest$ac_exeext'
13020   { (case "(($ac_try" in
13021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022   *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025   (eval "$ac_try") 2>&5
13026   ac_status=$?
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); }; }; then
13029   ac_cv_search_mallinfo=$ac_res
13030 else
13031   echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034
13035 fi
13036
13037 rm -f core conftest.err conftest.$ac_objext \
13038       conftest$ac_exeext
13039   if test "${ac_cv_search_mallinfo+set}" = set; then
13040   break
13041 fi
13042 done
13043 if test "${ac_cv_search_mallinfo+set}" = set; then
13044   :
13045 else
13046   ac_cv_search_mallinfo=no
13047 fi
13048 rm conftest.$ac_ext
13049 LIBS=$ac_func_search_save_LIBS
13050 fi
13051 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13052 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13053 ac_res=$ac_cv_search_mallinfo
13054 if test "$ac_res" != no; then
13055   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13056
13057 cat >>confdefs.h <<\_ACEOF
13058 #define HAVE_MALLINFO 1
13059 _ACEOF
13060
13061 fi
13062
13063
13064 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13065
13066 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13067 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13068 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13069   echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071   ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lpthread  $LIBS"
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081    Use char because int might match the return type of a GCC
13082    builtin and then its argument prototype would still apply.  */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char pthread_mutex_init ();
13087 int
13088 main ()
13089 {
13090 return pthread_mutex_init ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (ac_try="$ac_link"
13097 case "(($ac_try" in
13098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099   *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102   (eval "$ac_link") 2>conftest.er1
13103   ac_status=$?
13104   grep -v '^ *+' conftest.er1 >conftest.err
13105   rm -f conftest.er1
13106   cat conftest.err >&5
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); } &&
13109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13110   { (case "(($ac_try" in
13111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112   *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115   (eval "$ac_try") 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; } &&
13119          { ac_try='test -s conftest$ac_exeext'
13120   { (case "(($ac_try" in
13121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122   *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125   (eval "$ac_try") 2>&5
13126   ac_status=$?
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); }; }; then
13129   ac_cv_lib_pthread_pthread_mutex_init=yes
13130 else
13131   echo "$as_me: failed program was:" >&5
13132 sed 's/^/| /' conftest.$ac_ext >&5
13133
13134         ac_cv_lib_pthread_pthread_mutex_init=no
13135 fi
13136
13137 rm -f core conftest.err conftest.$ac_objext \
13138       conftest$ac_exeext conftest.$ac_ext
13139 LIBS=$ac_check_lib_save_LIBS
13140 fi
13141 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13142 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13143 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13144   cat >>confdefs.h <<_ACEOF
13145 #define HAVE_LIBPTHREAD 1
13146 _ACEOF
13147
13148   LIBS="-lpthread $LIBS"
13149
13150 fi
13151
13152   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13153 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13154 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157   ac_func_search_save_LIBS=$LIBS
13158 cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h.  */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h.  */
13164
13165 /* Override any GCC internal prototype to avoid an error.
13166    Use char because int might match the return type of a GCC
13167    builtin and then its argument prototype would still apply.  */
13168 #ifdef __cplusplus
13169 extern "C"
13170 #endif
13171 char pthread_mutex_lock ();
13172 int
13173 main ()
13174 {
13175 return pthread_mutex_lock ();
13176   ;
13177   return 0;
13178 }
13179 _ACEOF
13180 for ac_lib in '' pthread; do
13181   if test -z "$ac_lib"; then
13182     ac_res="none required"
13183   else
13184     ac_res=-l$ac_lib
13185     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13186   fi
13187   rm -f conftest.$ac_objext conftest$ac_exeext
13188 if { (ac_try="$ac_link"
13189 case "(($ac_try" in
13190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191   *) ac_try_echo=$ac_try;;
13192 esac
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194   (eval "$ac_link") 2>conftest.er1
13195   ac_status=$?
13196   grep -v '^ *+' conftest.er1 >conftest.err
13197   rm -f conftest.er1
13198   cat conftest.err >&5
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); } &&
13201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13202   { (case "(($ac_try" in
13203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204   *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207   (eval "$ac_try") 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; } &&
13211          { ac_try='test -s conftest$ac_exeext'
13212   { (case "(($ac_try" in
13213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214   *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217   (eval "$ac_try") 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; }; then
13221   ac_cv_search_pthread_mutex_lock=$ac_res
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226
13227 fi
13228
13229 rm -f core conftest.err conftest.$ac_objext \
13230       conftest$ac_exeext
13231   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13232   break
13233 fi
13234 done
13235 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13236   :
13237 else
13238   ac_cv_search_pthread_mutex_lock=no
13239 fi
13240 rm conftest.$ac_ext
13241 LIBS=$ac_func_search_save_LIBS
13242 fi
13243 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13244 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13245 ac_res=$ac_cv_search_pthread_mutex_lock
13246 if test "$ac_res" != no; then
13247   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13248
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_PTHREAD_MUTEX_LOCK 1
13251 _ACEOF
13252
13253 fi
13254
13255   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13256 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13257 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13258   echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260   ac_func_search_save_LIBS=$LIBS
13261 cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h.  */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h.  */
13267
13268 /* Override any GCC internal prototype to avoid an error.
13269    Use char because int might match the return type of a GCC
13270    builtin and then its argument prototype would still apply.  */
13271 #ifdef __cplusplus
13272 extern "C"
13273 #endif
13274 char pthread_rwlock_init ();
13275 int
13276 main ()
13277 {
13278 return pthread_rwlock_init ();
13279   ;
13280   return 0;
13281 }
13282 _ACEOF
13283 for ac_lib in '' pthread; do
13284   if test -z "$ac_lib"; then
13285     ac_res="none required"
13286   else
13287     ac_res=-l$ac_lib
13288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13289   fi
13290   rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (ac_try="$ac_link"
13292 case "(($ac_try" in
13293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294   *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297   (eval "$ac_link") 2>conftest.er1
13298   ac_status=$?
13299   grep -v '^ *+' conftest.er1 >conftest.err
13300   rm -f conftest.er1
13301   cat conftest.err >&5
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); } &&
13304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305   { (case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310   (eval "$ac_try") 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; } &&
13314          { ac_try='test -s conftest$ac_exeext'
13315   { (case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_try") 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; }; then
13324   ac_cv_search_pthread_rwlock_init=$ac_res
13325 else
13326   echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13328
13329
13330 fi
13331
13332 rm -f core conftest.err conftest.$ac_objext \
13333       conftest$ac_exeext
13334   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13335   break
13336 fi
13337 done
13338 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13339   :
13340 else
13341   ac_cv_search_pthread_rwlock_init=no
13342 fi
13343 rm conftest.$ac_ext
13344 LIBS=$ac_func_search_save_LIBS
13345 fi
13346 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13347 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13348 ac_res=$ac_cv_search_pthread_rwlock_init
13349 if test "$ac_res" != no; then
13350   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13351
13352 cat >>confdefs.h <<\_ACEOF
13353 #define HAVE_PTHREAD_RWLOCK_INIT 1
13354 _ACEOF
13355
13356 fi
13357
13358   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13359 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13360 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   ac_func_search_save_LIBS=$LIBS
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h.  */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h.  */
13370
13371 /* Override any GCC internal prototype to avoid an error.
13372    Use char because int might match the return type of a GCC
13373    builtin and then its argument prototype would still apply.  */
13374 #ifdef __cplusplus
13375 extern "C"
13376 #endif
13377 char pthread_getspecific ();
13378 int
13379 main ()
13380 {
13381 return pthread_getspecific ();
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 for ac_lib in '' pthread; do
13387   if test -z "$ac_lib"; then
13388     ac_res="none required"
13389   else
13390     ac_res=-l$ac_lib
13391     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13392   fi
13393   rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (ac_try="$ac_link"
13395 case "(($ac_try" in
13396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397   *) ac_try_echo=$ac_try;;
13398 esac
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400   (eval "$ac_link") 2>conftest.er1
13401   ac_status=$?
13402   grep -v '^ *+' conftest.er1 >conftest.err
13403   rm -f conftest.er1
13404   cat conftest.err >&5
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); } &&
13407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13408   { (case "(($ac_try" in
13409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410   *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413   (eval "$ac_try") 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; } &&
13417          { ac_try='test -s conftest$ac_exeext'
13418   { (case "(($ac_try" in
13419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420   *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423   (eval "$ac_try") 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; }; then
13427   ac_cv_search_pthread_getspecific=$ac_res
13428 else
13429   echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432
13433 fi
13434
13435 rm -f core conftest.err conftest.$ac_objext \
13436       conftest$ac_exeext
13437   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13438   break
13439 fi
13440 done
13441 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13442   :
13443 else
13444   ac_cv_search_pthread_getspecific=no
13445 fi
13446 rm conftest.$ac_ext
13447 LIBS=$ac_func_search_save_LIBS
13448 fi
13449 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13450 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13451 ac_res=$ac_cv_search_pthread_getspecific
13452 if test "$ac_res" != no; then
13453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13454
13455 cat >>confdefs.h <<\_ACEOF
13456 #define HAVE_PTHREAD_GETSPECIFIC 1
13457 _ACEOF
13458
13459 fi
13460
13461 fi
13462
13463 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13464
13465 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13466 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13467 if test "${ac_cv_lib_z_compress2+set}" = set; then
13468   echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470   ac_check_lib_save_LIBS=$LIBS
13471 LIBS="-lz  $LIBS"
13472 cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478
13479 /* Override any GCC internal prototype to avoid an error.
13480    Use char because int might match the return type of a GCC
13481    builtin and then its argument prototype would still apply.  */
13482 #ifdef __cplusplus
13483 extern "C"
13484 #endif
13485 char compress2 ();
13486 int
13487 main ()
13488 {
13489 return compress2 ();
13490   ;
13491   return 0;
13492 }
13493 _ACEOF
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (ac_try="$ac_link"
13496 case "(($ac_try" in
13497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498   *) ac_try_echo=$ac_try;;
13499 esac
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501   (eval "$ac_link") 2>conftest.er1
13502   ac_status=$?
13503   grep -v '^ *+' conftest.er1 >conftest.err
13504   rm -f conftest.er1
13505   cat conftest.err >&5
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); } &&
13508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13509   { (case "(($ac_try" in
13510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511   *) ac_try_echo=$ac_try;;
13512 esac
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514   (eval "$ac_try") 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; } &&
13518          { ac_try='test -s conftest$ac_exeext'
13519   { (case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524   (eval "$ac_try") 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; }; then
13528   ac_cv_lib_z_compress2=yes
13529 else
13530   echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13532
13533         ac_cv_lib_z_compress2=no
13534 fi
13535
13536 rm -f core conftest.err conftest.$ac_objext \
13537       conftest$ac_exeext conftest.$ac_ext
13538 LIBS=$ac_check_lib_save_LIBS
13539 fi
13540 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13541 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13542 if test $ac_cv_lib_z_compress2 = yes; then
13543   cat >>confdefs.h <<_ACEOF
13544 #define HAVE_LIBZ 1
13545 _ACEOF
13546
13547   LIBS="-lz $LIBS"
13548
13549 fi
13550
13551 fi
13552
13553
13554 # Check whether --with-udis86 was given.
13555 if test "${with_udis86+set}" = set; then
13556   withval=$with_udis86;
13557       USE_UDIS86=1
13558
13559       case "$withval" in
13560         /usr/lib|yes) ;;
13561         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13562       esac
13563
13564 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13565 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13566 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13567   echo $ECHO_N "(cached) $ECHO_C" >&6
13568 else
13569   ac_check_lib_save_LIBS=$LIBS
13570 LIBS="-ludis86  $LIBS"
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h.  */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h.  */
13577
13578 /* Override any GCC internal prototype to avoid an error.
13579    Use char because int might match the return type of a GCC
13580    builtin and then its argument prototype would still apply.  */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 char ud_init ();
13585 int
13586 main ()
13587 {
13588 return ud_init ();
13589   ;
13590   return 0;
13591 }
13592 _ACEOF
13593 rm -f conftest.$ac_objext conftest$ac_exeext
13594 if { (ac_try="$ac_link"
13595 case "(($ac_try" in
13596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597   *) ac_try_echo=$ac_try;;
13598 esac
13599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600   (eval "$ac_link") 2>conftest.er1
13601   ac_status=$?
13602   grep -v '^ *+' conftest.er1 >conftest.err
13603   rm -f conftest.er1
13604   cat conftest.err >&5
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); } &&
13607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13608   { (case "(($ac_try" in
13609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610   *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613   (eval "$ac_try") 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); }; } &&
13617          { ac_try='test -s conftest$ac_exeext'
13618   { (case "(($ac_try" in
13619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620   *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623   (eval "$ac_try") 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); }; }; then
13627   ac_cv_lib_udis86_ud_init=yes
13628 else
13629   echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13631
13632         ac_cv_lib_udis86_ud_init=no
13633 fi
13634
13635 rm -f core conftest.err conftest.$ac_objext \
13636       conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13638 fi
13639 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13640 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13641 if test $ac_cv_lib_udis86_ud_init = yes; then
13642   cat >>confdefs.h <<_ACEOF
13643 #define HAVE_LIBUDIS86 1
13644 _ACEOF
13645
13646   LIBS="-ludis86 $LIBS"
13647
13648 else
13649
13650         echo "Error! You need to have libudis86 around."
13651         exit -1
13652
13653 fi
13654
13655
13656 else
13657   USE_UDIS86=0
13658
13659 fi
13660
13661
13662 cat >>confdefs.h <<_ACEOF
13663 #define USE_UDIS86 $USE_UDIS86
13664 _ACEOF
13665
13666
13667
13668 # Check whether --with-oprofile was given.
13669 if test "${with_oprofile+set}" = set; then
13670   withval=$with_oprofile;
13671       USE_OPROFILE=1
13672
13673       case "$withval" in
13674         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13675         no) llvm_cv_oppath=
13676             USE_OPROFILE=0
13677  ;;
13678         *) llvm_cv_oppath="${withval}/lib/oprofile"
13679            CPPFLAGS="-I${withval}/include";;
13680       esac
13681       case $llvm_cv_os_type in
13682         Linux)
13683           if test -n "$llvm_cv_oppath" ; then
13684             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13685                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13686 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13687 if test "${ac_cv_search_bfd_init+set}" = set; then
13688   echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690   ac_func_search_save_LIBS=$LIBS
13691 cat >conftest.$ac_ext <<_ACEOF
13692 /* confdefs.h.  */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h.  */
13697
13698 /* Override any GCC internal prototype to avoid an error.
13699    Use char because int might match the return type of a GCC
13700    builtin and then its argument prototype would still apply.  */
13701 #ifdef __cplusplus
13702 extern "C"
13703 #endif
13704 char bfd_init ();
13705 int
13706 main ()
13707 {
13708 return bfd_init ();
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 for ac_lib in '' bfd; do
13714   if test -z "$ac_lib"; then
13715     ac_res="none required"
13716   else
13717     ac_res=-l$ac_lib
13718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13719   fi
13720   rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (ac_try="$ac_link"
13722 case "(($ac_try" in
13723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724   *) ac_try_echo=$ac_try;;
13725 esac
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727   (eval "$ac_link") 2>conftest.er1
13728   ac_status=$?
13729   grep -v '^ *+' conftest.er1 >conftest.err
13730   rm -f conftest.er1
13731   cat conftest.err >&5
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); } &&
13734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13735   { (case "(($ac_try" in
13736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737   *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740   (eval "$ac_try") 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; } &&
13744          { ac_try='test -s conftest$ac_exeext'
13745   { (case "(($ac_try" in
13746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747   *) ac_try_echo=$ac_try;;
13748 esac
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750   (eval "$ac_try") 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); }; }; then
13754   ac_cv_search_bfd_init=$ac_res
13755 else
13756   echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759
13760 fi
13761
13762 rm -f core conftest.err conftest.$ac_objext \
13763       conftest$ac_exeext
13764   if test "${ac_cv_search_bfd_init+set}" = set; then
13765   break
13766 fi
13767 done
13768 if test "${ac_cv_search_bfd_init+set}" = set; then
13769   :
13770 else
13771   ac_cv_search_bfd_init=no
13772 fi
13773 rm conftest.$ac_ext
13774 LIBS=$ac_func_search_save_LIBS
13775 fi
13776 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13777 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13778 ac_res=$ac_cv_search_bfd_init
13779 if test "$ac_res" != no; then
13780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13781
13782 fi
13783
13784             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13785 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13786 if test "${ac_cv_search_op_open_agent+set}" = set; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789   ac_func_search_save_LIBS=$LIBS
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h.  */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h.  */
13796
13797 /* Override any GCC internal prototype to avoid an error.
13798    Use char because int might match the return type of a GCC
13799    builtin and then its argument prototype would still apply.  */
13800 #ifdef __cplusplus
13801 extern "C"
13802 #endif
13803 char op_open_agent ();
13804 int
13805 main ()
13806 {
13807 return op_open_agent ();
13808   ;
13809   return 0;
13810 }
13811 _ACEOF
13812 for ac_lib in '' opagent; do
13813   if test -z "$ac_lib"; then
13814     ac_res="none required"
13815   else
13816     ac_res=-l$ac_lib
13817     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13818   fi
13819   rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (ac_try="$ac_link"
13821 case "(($ac_try" in
13822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823   *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826   (eval "$ac_link") 2>conftest.er1
13827   ac_status=$?
13828   grep -v '^ *+' conftest.er1 >conftest.err
13829   rm -f conftest.er1
13830   cat conftest.err >&5
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); } &&
13833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13834   { (case "(($ac_try" in
13835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836   *) ac_try_echo=$ac_try;;
13837 esac
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839   (eval "$ac_try") 2>&5
13840   ac_status=$?
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); }; } &&
13843          { ac_try='test -s conftest$ac_exeext'
13844   { (case "(($ac_try" in
13845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846   *) ac_try_echo=$ac_try;;
13847 esac
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849   (eval "$ac_try") 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; }; then
13853   ac_cv_search_op_open_agent=$ac_res
13854 else
13855   echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858
13859 fi
13860
13861 rm -f core conftest.err conftest.$ac_objext \
13862       conftest$ac_exeext
13863   if test "${ac_cv_search_op_open_agent+set}" = set; then
13864   break
13865 fi
13866 done
13867 if test "${ac_cv_search_op_open_agent+set}" = set; then
13868   :
13869 else
13870   ac_cv_search_op_open_agent=no
13871 fi
13872 rm conftest.$ac_ext
13873 LIBS=$ac_func_search_save_LIBS
13874 fi
13875 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13876 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13877 ac_res=$ac_cv_search_op_open_agent
13878 if test "$ac_res" != no; then
13879   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13880
13881 else
13882
13883               echo "Error! You need to have libopagent around."
13884               exit -1
13885
13886 fi
13887
13888             if test "${ac_cv_header_opagent_h+set}" = set; then
13889   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13890 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13891 if test "${ac_cv_header_opagent_h+set}" = set; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13895 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13896 else
13897   # Is the header compilable?
13898 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13899 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h.  */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h.  */
13906 $ac_includes_default
13907 #include <opagent.h>
13908 _ACEOF
13909 rm -f conftest.$ac_objext
13910 if { (ac_try="$ac_compile"
13911 case "(($ac_try" in
13912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913   *) ac_try_echo=$ac_try;;
13914 esac
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916   (eval "$ac_compile") 2>conftest.er1
13917   ac_status=$?
13918   grep -v '^ *+' conftest.er1 >conftest.err
13919   rm -f conftest.er1
13920   cat conftest.err >&5
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } &&
13923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13924   { (case "(($ac_try" in
13925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926   *) ac_try_echo=$ac_try;;
13927 esac
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929   (eval "$ac_try") 2>&5
13930   ac_status=$?
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); }; } &&
13933          { ac_try='test -s conftest.$ac_objext'
13934   { (case "(($ac_try" in
13935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936   *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939   (eval "$ac_try") 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; }; then
13943   ac_header_compiler=yes
13944 else
13945   echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13947
13948         ac_header_compiler=no
13949 fi
13950
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13953 echo "${ECHO_T}$ac_header_compiler" >&6; }
13954
13955 # Is the header present?
13956 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13957 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13958 cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h.  */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h.  */
13964 #include <opagent.h>
13965 _ACEOF
13966 if { (ac_try="$ac_cpp conftest.$ac_ext"
13967 case "(($ac_try" in
13968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969   *) ac_try_echo=$ac_try;;
13970 esac
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13973   ac_status=$?
13974   grep -v '^ *+' conftest.er1 >conftest.err
13975   rm -f conftest.er1
13976   cat conftest.err >&5
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); } >/dev/null; then
13979   if test -s conftest.err; then
13980     ac_cpp_err=$ac_c_preproc_warn_flag
13981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13982   else
13983     ac_cpp_err=
13984   fi
13985 else
13986   ac_cpp_err=yes
13987 fi
13988 if test -z "$ac_cpp_err"; then
13989   ac_header_preproc=yes
13990 else
13991   echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13993
13994   ac_header_preproc=no
13995 fi
13996
13997 rm -f conftest.err conftest.$ac_ext
13998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13999 echo "${ECHO_T}$ac_header_preproc" >&6; }
14000
14001 # So?  What about this header?
14002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14003   yes:no: )
14004     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14005 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14006     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14007 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14008     ac_header_preproc=yes
14009     ;;
14010   no:yes:* )
14011     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14012 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14013     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14014 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14015     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14016 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14017     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14018 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14019     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14020 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14021     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14022 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14023     ( cat <<\_ASBOX
14024 ## ------------------------------------ ##
14025 ## Report this to http://llvm.org/bugs/ ##
14026 ## ------------------------------------ ##
14027 _ASBOX
14028      ) | sed "s/^/$as_me: WARNING:     /" >&2
14029     ;;
14030 esac
14031 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14032 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14033 if test "${ac_cv_header_opagent_h+set}" = set; then
14034   echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036   ac_cv_header_opagent_h=$ac_header_preproc
14037 fi
14038 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14039 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14040
14041 fi
14042 if test $ac_cv_header_opagent_h = yes; then
14043   :
14044 else
14045
14046               echo "Error! You need to have opagent.h around."
14047               exit -1
14048
14049 fi
14050
14051
14052           fi ;;
14053         *)
14054           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14055 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14056    { (exit 1); exit 1; }; } ;;
14057       esac
14058
14059 else
14060
14061       USE_OPROFILE=0
14062
14063
14064 fi
14065
14066
14067 cat >>confdefs.h <<_ACEOF
14068 #define LLVM_USE_OPROFILE $USE_OPROFILE
14069 _ACEOF
14070
14071
14072
14073 # Check whether --with-intel-jitevents was given.
14074 if test "${with_intel_jitevents+set}" = set; then
14075   withval=$with_intel_jitevents;
14076        case "$withval" in
14077           yes) USE_INTEL_JITEVENTS=1
14078 ;;
14079           no)  USE_INTEL_JITEVENTS=0
14080 ;;
14081           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14082 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14083    { (exit 1); exit 1; }; };;
14084        esac
14085
14086       case $llvm_cv_os_type in
14087         Linux|Win32|Cygwin|MingW) ;;
14088         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14089 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14090    { (exit 1); exit 1; }; };;
14091       esac
14092
14093       case "$llvm_cv_target_arch" in
14094         x86|x86_64) ;;
14095         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14096 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14097    { (exit 1); exit 1; }; };;
14098       esac
14099
14100 else
14101
14102       USE_INTEL_JITEVENTS=0
14103
14104
14105 fi
14106
14107
14108 cat >>confdefs.h <<_ACEOF
14109 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14110 _ACEOF
14111
14112
14113 for ac_prog in xml2-config
14114 do
14115   # Extract the first word of "$ac_prog", so it can be a program name with args.
14116 set dummy $ac_prog; ac_word=$2
14117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14119 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14120   echo $ECHO_N "(cached) $ECHO_C" >&6
14121 else
14122   if test -n "$XML2CONFIG"; then
14123   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14124 else
14125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $PATH
14127 do
14128   IFS=$as_save_IFS
14129   test -z "$as_dir" && as_dir=.
14130   for ac_exec_ext in '' $ac_executable_extensions; do
14131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14132     ac_cv_prog_XML2CONFIG="$ac_prog"
14133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14134     break 2
14135   fi
14136 done
14137 done
14138 IFS=$as_save_IFS
14139
14140 fi
14141 fi
14142 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14143 if test -n "$XML2CONFIG"; then
14144   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14145 echo "${ECHO_T}$XML2CONFIG" >&6; }
14146 else
14147   { echo "$as_me:$LINENO: result: no" >&5
14148 echo "${ECHO_T}no" >&6; }
14149 fi
14150
14151
14152   test -n "$XML2CONFIG" && break
14153 done
14154
14155
14156 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14157 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14158 if test "x$XML2CONFIG" = "x"; then
14159  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14160 echo "${ECHO_T}xml2-config not found" >&6; }
14161 else
14162  LIBXML2_INC=`$XML2CONFIG --cflags`
14163  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14164 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14165  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14166 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14167 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170   ac_check_lib_save_LIBS=$LIBS
14171 LIBS="-lxml2  $LIBS"
14172 cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h.  */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h.  */
14178
14179 /* Override any GCC internal prototype to avoid an error.
14180    Use char because int might match the return type of a GCC
14181    builtin and then its argument prototype would still apply.  */
14182 #ifdef __cplusplus
14183 extern "C"
14184 #endif
14185 char xmlReadFile ();
14186 int
14187 main ()
14188 {
14189 return xmlReadFile ();
14190   ;
14191   return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest.$ac_objext conftest$ac_exeext
14195 if { (ac_try="$ac_link"
14196 case "(($ac_try" in
14197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198   *) ac_try_echo=$ac_try;;
14199 esac
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201   (eval "$ac_link") 2>conftest.er1
14202   ac_status=$?
14203   grep -v '^ *+' conftest.er1 >conftest.err
14204   rm -f conftest.er1
14205   cat conftest.err >&5
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } &&
14208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209   { (case "(($ac_try" in
14210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211   *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214   (eval "$ac_try") 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; } &&
14218          { ac_try='test -s conftest$ac_exeext'
14219   { (case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224   (eval "$ac_try") 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; }; then
14228   ac_cv_lib_xml2_xmlReadFile=yes
14229 else
14230   echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14232
14233         ac_cv_lib_xml2_xmlReadFile=no
14234 fi
14235
14236 rm -f core conftest.err conftest.$ac_objext \
14237       conftest$ac_exeext conftest.$ac_ext
14238 LIBS=$ac_check_lib_save_LIBS
14239 fi
14240 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14241 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14242 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14243
14244 cat >>confdefs.h <<\_ACEOF
14245 #define CLANG_HAVE_LIBXML 1
14246 _ACEOF
14247
14248                                 LIBXML2_LIBS="-lxml2"
14249 fi
14250
14251 fi
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261 ac_header_dirent=no
14262 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14263   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14264 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14265 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14267   echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269   cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h.  */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h.  */
14275 #include <sys/types.h>
14276 #include <$ac_hdr>
14277
14278 int
14279 main ()
14280 {
14281 if ((DIR *) 0)
14282 return 0;
14283   ;
14284   return 0;
14285 }
14286 _ACEOF
14287 rm -f conftest.$ac_objext
14288 if { (ac_try="$ac_compile"
14289 case "(($ac_try" in
14290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291   *) ac_try_echo=$ac_try;;
14292 esac
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294   (eval "$ac_compile") 2>conftest.er1
14295   ac_status=$?
14296   grep -v '^ *+' conftest.er1 >conftest.err
14297   rm -f conftest.er1
14298   cat conftest.err >&5
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); } &&
14301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14302   { (case "(($ac_try" in
14303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304   *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307   (eval "$ac_try") 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; } &&
14311          { ac_try='test -s conftest.$ac_objext'
14312   { (case "(($ac_try" in
14313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314   *) ac_try_echo=$ac_try;;
14315 esac
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317   (eval "$ac_try") 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; }; then
14321   eval "$as_ac_Header=yes"
14322 else
14323   echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14325
14326         eval "$as_ac_Header=no"
14327 fi
14328
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 fi
14331 ac_res=`eval echo '${'$as_ac_Header'}'`
14332                { echo "$as_me:$LINENO: result: $ac_res" >&5
14333 echo "${ECHO_T}$ac_res" >&6; }
14334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14335   cat >>confdefs.h <<_ACEOF
14336 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14337 _ACEOF
14338
14339 ac_header_dirent=$ac_hdr; break
14340 fi
14341
14342 done
14343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14344 if test $ac_header_dirent = dirent.h; then
14345   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14347 if test "${ac_cv_search_opendir+set}" = set; then
14348   echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350   ac_func_search_save_LIBS=$LIBS
14351 cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357
14358 /* Override any GCC internal prototype to avoid an error.
14359    Use char because int might match the return type of a GCC
14360    builtin and then its argument prototype would still apply.  */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 char opendir ();
14365 int
14366 main ()
14367 {
14368 return opendir ();
14369   ;
14370   return 0;
14371 }
14372 _ACEOF
14373 for ac_lib in '' dir; do
14374   if test -z "$ac_lib"; then
14375     ac_res="none required"
14376   else
14377     ac_res=-l$ac_lib
14378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14379   fi
14380   rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (ac_try="$ac_link"
14382 case "(($ac_try" in
14383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384   *) ac_try_echo=$ac_try;;
14385 esac
14386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387   (eval "$ac_link") 2>conftest.er1
14388   ac_status=$?
14389   grep -v '^ *+' conftest.er1 >conftest.err
14390   rm -f conftest.er1
14391   cat conftest.err >&5
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); } &&
14394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14395   { (case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_try") 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; } &&
14404          { ac_try='test -s conftest$ac_exeext'
14405   { (case "(($ac_try" in
14406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407   *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410   (eval "$ac_try") 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; }; then
14414   ac_cv_search_opendir=$ac_res
14415 else
14416   echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419
14420 fi
14421
14422 rm -f core conftest.err conftest.$ac_objext \
14423       conftest$ac_exeext
14424   if test "${ac_cv_search_opendir+set}" = set; then
14425   break
14426 fi
14427 done
14428 if test "${ac_cv_search_opendir+set}" = set; then
14429   :
14430 else
14431   ac_cv_search_opendir=no
14432 fi
14433 rm conftest.$ac_ext
14434 LIBS=$ac_func_search_save_LIBS
14435 fi
14436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14438 ac_res=$ac_cv_search_opendir
14439 if test "$ac_res" != no; then
14440   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14441
14442 fi
14443
14444 else
14445   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14447 if test "${ac_cv_search_opendir+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   ac_func_search_save_LIBS=$LIBS
14451 cat >conftest.$ac_ext <<_ACEOF
14452 /* confdefs.h.  */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h.  */
14457
14458 /* Override any GCC internal prototype to avoid an error.
14459    Use char because int might match the return type of a GCC
14460    builtin and then its argument prototype would still apply.  */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 char opendir ();
14465 int
14466 main ()
14467 {
14468 return opendir ();
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 for ac_lib in '' x; do
14474   if test -z "$ac_lib"; then
14475     ac_res="none required"
14476   else
14477     ac_res=-l$ac_lib
14478     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14479   fi
14480   rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (ac_try="$ac_link"
14482 case "(($ac_try" in
14483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484   *) ac_try_echo=$ac_try;;
14485 esac
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487   (eval "$ac_link") 2>conftest.er1
14488   ac_status=$?
14489   grep -v '^ *+' conftest.er1 >conftest.err
14490   rm -f conftest.er1
14491   cat conftest.err >&5
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); } &&
14494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14495   { (case "(($ac_try" in
14496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497   *) ac_try_echo=$ac_try;;
14498 esac
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500   (eval "$ac_try") 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; } &&
14504          { ac_try='test -s conftest$ac_exeext'
14505   { (case "(($ac_try" in
14506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507   *) ac_try_echo=$ac_try;;
14508 esac
14509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510   (eval "$ac_try") 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); }; }; then
14514   ac_cv_search_opendir=$ac_res
14515 else
14516   echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14518
14519
14520 fi
14521
14522 rm -f core conftest.err conftest.$ac_objext \
14523       conftest$ac_exeext
14524   if test "${ac_cv_search_opendir+set}" = set; then
14525   break
14526 fi
14527 done
14528 if test "${ac_cv_search_opendir+set}" = set; then
14529   :
14530 else
14531   ac_cv_search_opendir=no
14532 fi
14533 rm conftest.$ac_ext
14534 LIBS=$ac_func_search_save_LIBS
14535 fi
14536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14538 ac_res=$ac_cv_search_opendir
14539 if test "$ac_res" != no; then
14540   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14541
14542 fi
14543
14544 fi
14545
14546 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14547 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14548 if test "${ac_cv_header_mmap_anon+set}" = set; then
14549   echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551    ac_ext=c
14552 ac_cpp='$CPP $CPPFLAGS'
14553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14556
14557   cat >conftest.$ac_ext <<_ACEOF
14558 /* confdefs.h.  */
14559 _ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h.  */
14563 #include <sys/mman.h>
14564 #include <unistd.h>
14565 #include <fcntl.h>
14566 int
14567 main ()
14568 {
14569 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 rm -f conftest.$ac_objext
14575 if { (ac_try="$ac_compile"
14576 case "(($ac_try" in
14577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578   *) ac_try_echo=$ac_try;;
14579 esac
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581   (eval "$ac_compile") 2>conftest.er1
14582   ac_status=$?
14583   grep -v '^ *+' conftest.er1 >conftest.err
14584   rm -f conftest.er1
14585   cat conftest.err >&5
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); } &&
14588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14589   { (case "(($ac_try" in
14590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591   *) ac_try_echo=$ac_try;;
14592 esac
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594   (eval "$ac_try") 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); }; } &&
14598          { ac_try='test -s conftest.$ac_objext'
14599   { (case "(($ac_try" in
14600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601   *) ac_try_echo=$ac_try;;
14602 esac
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604   (eval "$ac_try") 2>&5
14605   ac_status=$?
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); }; }; then
14608   ac_cv_header_mmap_anon=yes
14609 else
14610   echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14612
14613         ac_cv_header_mmap_anon=no
14614 fi
14615
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617   ac_ext=c
14618 ac_cpp='$CPP $CPPFLAGS'
14619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14622
14623
14624 fi
14625 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14626 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14627 if test "$ac_cv_header_mmap_anon" = yes; then
14628
14629 cat >>confdefs.h <<\_ACEOF
14630 #define HAVE_MMAP_ANONYMOUS 1
14631 _ACEOF
14632
14633 fi
14634
14635 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14636 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14637 if test "${ac_cv_header_stat_broken+set}" = set; then
14638   echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640   cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h.  */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h.  */
14646 #include <sys/types.h>
14647 #include <sys/stat.h>
14648
14649 #if defined S_ISBLK && defined S_IFDIR
14650 # if S_ISBLK (S_IFDIR)
14651 You lose.
14652 # endif
14653 #endif
14654
14655 #if defined S_ISBLK && defined S_IFCHR
14656 # if S_ISBLK (S_IFCHR)
14657 You lose.
14658 # endif
14659 #endif
14660
14661 #if defined S_ISLNK && defined S_IFREG
14662 # if S_ISLNK (S_IFREG)
14663 You lose.
14664 # endif
14665 #endif
14666
14667 #if defined S_ISSOCK && defined S_IFREG
14668 # if S_ISSOCK (S_IFREG)
14669 You lose.
14670 # endif
14671 #endif
14672
14673 _ACEOF
14674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14675   $EGREP "You lose" >/dev/null 2>&1; then
14676   ac_cv_header_stat_broken=yes
14677 else
14678   ac_cv_header_stat_broken=no
14679 fi
14680 rm -f conftest*
14681
14682 fi
14683 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14684 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14685 if test $ac_cv_header_stat_broken = yes; then
14686
14687 cat >>confdefs.h <<\_ACEOF
14688 #define STAT_MACROS_BROKEN 1
14689 _ACEOF
14690
14691 fi
14692
14693 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14694 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14695 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14696   echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698   cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h.  */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h.  */
14704 #include <sys/types.h>
14705 #include <sys/wait.h>
14706 #ifndef WEXITSTATUS
14707 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14708 #endif
14709 #ifndef WIFEXITED
14710 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14711 #endif
14712
14713 int
14714 main ()
14715 {
14716   int s;
14717   wait (&s);
14718   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730   (eval "$ac_compile") 2>conftest.er1
14731   ac_status=$?
14732   grep -v '^ *+' conftest.er1 >conftest.err
14733   rm -f conftest.er1
14734   cat conftest.err >&5
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); } &&
14737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738   { (case "(($ac_try" in
14739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740   *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743   (eval "$ac_try") 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; } &&
14747          { ac_try='test -s conftest.$ac_objext'
14748   { (case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753   (eval "$ac_try") 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; }; then
14757   ac_cv_header_sys_wait_h=yes
14758 else
14759   echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762         ac_cv_header_sys_wait_h=no
14763 fi
14764
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 fi
14767 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14768 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14769 if test $ac_cv_header_sys_wait_h = yes; then
14770
14771 cat >>confdefs.h <<\_ACEOF
14772 #define HAVE_SYS_WAIT_H 1
14773 _ACEOF
14774
14775 fi
14776
14777 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14778 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14779 if test "${ac_cv_header_time+set}" = set; then
14780   echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782   cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h.  */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h.  */
14788 #include <sys/types.h>
14789 #include <sys/time.h>
14790 #include <time.h>
14791
14792 int
14793 main ()
14794 {
14795 if ((struct tm *) 0)
14796 return 0;
14797   ;
14798   return 0;
14799 }
14800 _ACEOF
14801 rm -f conftest.$ac_objext
14802 if { (ac_try="$ac_compile"
14803 case "(($ac_try" in
14804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805   *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808   (eval "$ac_compile") 2>conftest.er1
14809   ac_status=$?
14810   grep -v '^ *+' conftest.er1 >conftest.err
14811   rm -f conftest.er1
14812   cat conftest.err >&5
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); } &&
14815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14816   { (case "(($ac_try" in
14817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818   *) ac_try_echo=$ac_try;;
14819 esac
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821   (eval "$ac_try") 2>&5
14822   ac_status=$?
14823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824   (exit $ac_status); }; } &&
14825          { ac_try='test -s conftest.$ac_objext'
14826   { (case "(($ac_try" in
14827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828   *) ac_try_echo=$ac_try;;
14829 esac
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831   (eval "$ac_try") 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); }; }; then
14835   ac_cv_header_time=yes
14836 else
14837   echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840         ac_cv_header_time=no
14841 fi
14842
14843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844 fi
14845 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14846 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14847 if test $ac_cv_header_time = yes; then
14848
14849 cat >>confdefs.h <<\_ACEOF
14850 #define TIME_WITH_SYS_TIME 1
14851 _ACEOF
14852
14853 fi
14854
14855
14856 ac_ext=cpp
14857 ac_cpp='$CXXCPP $CPPFLAGS'
14858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14861
14862 ac_ext=cpp
14863 ac_cpp='$CXXCPP $CPPFLAGS'
14864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14867 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14868 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14869 if test -z "$CXXCPP"; then
14870   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14871   echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873       # Double quotes because CXXCPP needs to be expanded
14874     for CXXCPP in "$CXX -E" "/lib/cpp"
14875     do
14876       ac_preproc_ok=false
14877 for ac_cxx_preproc_warn_flag in '' yes
14878 do
14879   # Use a header file that comes with gcc, so configuring glibc
14880   # with a fresh cross-compiler works.
14881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14882   # <limits.h> exists even on freestanding compilers.
14883   # On the NeXT, cc -E runs the code through the compiler's parser,
14884   # not just through cpp. "Syntax error" is here to catch this case.
14885   cat >conftest.$ac_ext <<_ACEOF
14886 /* confdefs.h.  */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h.  */
14891 #ifdef __STDC__
14892 # include <limits.h>
14893 #else
14894 # include <assert.h>
14895 #endif
14896                      Syntax error
14897 _ACEOF
14898 if { (ac_try="$ac_cpp conftest.$ac_ext"
14899 case "(($ac_try" in
14900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901   *) ac_try_echo=$ac_try;;
14902 esac
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14905   ac_status=$?
14906   grep -v '^ *+' conftest.er1 >conftest.err
14907   rm -f conftest.er1
14908   cat conftest.err >&5
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } >/dev/null; then
14911   if test -s conftest.err; then
14912     ac_cpp_err=$ac_cxx_preproc_warn_flag
14913     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14914   else
14915     ac_cpp_err=
14916   fi
14917 else
14918   ac_cpp_err=yes
14919 fi
14920 if test -z "$ac_cpp_err"; then
14921   :
14922 else
14923   echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14925
14926   # Broken: fails on valid input.
14927 continue
14928 fi
14929
14930 rm -f conftest.err conftest.$ac_ext
14931
14932   # OK, works on sane cases.  Now check whether nonexistent headers
14933   # can be detected and how.
14934   cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h.  */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h.  */
14940 #include <ac_nonexistent.h>
14941 _ACEOF
14942 if { (ac_try="$ac_cpp conftest.$ac_ext"
14943 case "(($ac_try" in
14944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945   *) ac_try_echo=$ac_try;;
14946 esac
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14949   ac_status=$?
14950   grep -v '^ *+' conftest.er1 >conftest.err
14951   rm -f conftest.er1
14952   cat conftest.err >&5
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); } >/dev/null; then
14955   if test -s conftest.err; then
14956     ac_cpp_err=$ac_cxx_preproc_warn_flag
14957     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14958   else
14959     ac_cpp_err=
14960   fi
14961 else
14962   ac_cpp_err=yes
14963 fi
14964 if test -z "$ac_cpp_err"; then
14965   # Broken: success on invalid input.
14966 continue
14967 else
14968   echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14970
14971   # Passes both tests.
14972 ac_preproc_ok=:
14973 break
14974 fi
14975
14976 rm -f conftest.err conftest.$ac_ext
14977
14978 done
14979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14980 rm -f conftest.err conftest.$ac_ext
14981 if $ac_preproc_ok; then
14982   break
14983 fi
14984
14985     done
14986     ac_cv_prog_CXXCPP=$CXXCPP
14987
14988 fi
14989   CXXCPP=$ac_cv_prog_CXXCPP
14990 else
14991   ac_cv_prog_CXXCPP=$CXXCPP
14992 fi
14993 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14994 echo "${ECHO_T}$CXXCPP" >&6; }
14995 ac_preproc_ok=false
14996 for ac_cxx_preproc_warn_flag in '' yes
14997 do
14998   # Use a header file that comes with gcc, so configuring glibc
14999   # with a fresh cross-compiler works.
15000   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15001   # <limits.h> exists even on freestanding compilers.
15002   # On the NeXT, cc -E runs the code through the compiler's parser,
15003   # not just through cpp. "Syntax error" is here to catch this case.
15004   cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010 #ifdef __STDC__
15011 # include <limits.h>
15012 #else
15013 # include <assert.h>
15014 #endif
15015                      Syntax error
15016 _ACEOF
15017 if { (ac_try="$ac_cpp conftest.$ac_ext"
15018 case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15024   ac_status=$?
15025   grep -v '^ *+' conftest.er1 >conftest.err
15026   rm -f conftest.er1
15027   cat conftest.err >&5
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); } >/dev/null; then
15030   if test -s conftest.err; then
15031     ac_cpp_err=$ac_cxx_preproc_warn_flag
15032     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15033   else
15034     ac_cpp_err=
15035   fi
15036 else
15037   ac_cpp_err=yes
15038 fi
15039 if test -z "$ac_cpp_err"; then
15040   :
15041 else
15042   echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045   # Broken: fails on valid input.
15046 continue
15047 fi
15048
15049 rm -f conftest.err conftest.$ac_ext
15050
15051   # OK, works on sane cases.  Now check whether nonexistent headers
15052   # can be detected and how.
15053   cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h.  */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h.  */
15059 #include <ac_nonexistent.h>
15060 _ACEOF
15061 if { (ac_try="$ac_cpp conftest.$ac_ext"
15062 case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15068   ac_status=$?
15069   grep -v '^ *+' conftest.er1 >conftest.err
15070   rm -f conftest.er1
15071   cat conftest.err >&5
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); } >/dev/null; then
15074   if test -s conftest.err; then
15075     ac_cpp_err=$ac_cxx_preproc_warn_flag
15076     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15077   else
15078     ac_cpp_err=
15079   fi
15080 else
15081   ac_cpp_err=yes
15082 fi
15083 if test -z "$ac_cpp_err"; then
15084   # Broken: success on invalid input.
15085 continue
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090   # Passes both tests.
15091 ac_preproc_ok=:
15092 break
15093 fi
15094
15095 rm -f conftest.err conftest.$ac_ext
15096
15097 done
15098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15099 rm -f conftest.err conftest.$ac_ext
15100 if $ac_preproc_ok; then
15101   :
15102 else
15103   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15104 See \`config.log' for more details." >&5
15105 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15106 See \`config.log' for more details." >&2;}
15107    { (exit 1); exit 1; }; }
15108 fi
15109
15110 ac_ext=cpp
15111 ac_cpp='$CXXCPP $CPPFLAGS'
15112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15115
15116
15117
15118 for ac_header in cxxabi.h
15119 do
15120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15122   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15125   echo $ECHO_N "(cached) $ECHO_C" >&6
15126 fi
15127 ac_res=`eval echo '${'$as_ac_Header'}'`
15128                { echo "$as_me:$LINENO: result: $ac_res" >&5
15129 echo "${ECHO_T}$ac_res" >&6; }
15130 else
15131   # Is the header compilable?
15132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15134 cat >conftest.$ac_ext <<_ACEOF
15135 /* confdefs.h.  */
15136 _ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h.  */
15140 $ac_includes_default
15141 #include <$ac_header>
15142 _ACEOF
15143 rm -f conftest.$ac_objext
15144 if { (ac_try="$ac_compile"
15145 case "(($ac_try" in
15146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147   *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150   (eval "$ac_compile") 2>conftest.er1
15151   ac_status=$?
15152   grep -v '^ *+' conftest.er1 >conftest.err
15153   rm -f conftest.er1
15154   cat conftest.err >&5
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); } &&
15157          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15158   { (case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_try") 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; } &&
15167          { ac_try='test -s conftest.$ac_objext'
15168   { (case "(($ac_try" in
15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170   *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173   (eval "$ac_try") 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; }; then
15177   ac_header_compiler=yes
15178 else
15179   echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182         ac_header_compiler=no
15183 fi
15184
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15187 echo "${ECHO_T}$ac_header_compiler" >&6; }
15188
15189 # Is the header present?
15190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h.  */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h.  */
15198 #include <$ac_header>
15199 _ACEOF
15200 if { (ac_try="$ac_cpp conftest.$ac_ext"
15201 case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15207   ac_status=$?
15208   grep -v '^ *+' conftest.er1 >conftest.err
15209   rm -f conftest.er1
15210   cat conftest.err >&5
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } >/dev/null; then
15213   if test -s conftest.err; then
15214     ac_cpp_err=$ac_cxx_preproc_warn_flag
15215     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15216   else
15217     ac_cpp_err=
15218   fi
15219 else
15220   ac_cpp_err=yes
15221 fi
15222 if test -z "$ac_cpp_err"; then
15223   ac_header_preproc=yes
15224 else
15225   echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228   ac_header_preproc=no
15229 fi
15230
15231 rm -f conftest.err conftest.$ac_ext
15232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15233 echo "${ECHO_T}$ac_header_preproc" >&6; }
15234
15235 # So?  What about this header?
15236 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15237   yes:no: )
15238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15242     ac_header_preproc=yes
15243     ;;
15244   no:yes:* )
15245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15257     ( cat <<\_ASBOX
15258 ## ------------------------------------ ##
15259 ## Report this to http://llvm.org/bugs/ ##
15260 ## ------------------------------------ ##
15261 _ASBOX
15262      ) | sed "s/^/$as_me: WARNING:     /" >&2
15263     ;;
15264 esac
15265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270   eval "$as_ac_Header=\$ac_header_preproc"
15271 fi
15272 ac_res=`eval echo '${'$as_ac_Header'}'`
15273                { echo "$as_me:$LINENO: result: $ac_res" >&5
15274 echo "${ECHO_T}$ac_res" >&6; }
15275
15276 fi
15277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15278   cat >>confdefs.h <<_ACEOF
15279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15280 _ACEOF
15281
15282 fi
15283
15284 done
15285
15286 ac_ext=c
15287 ac_cpp='$CPP $CPPFLAGS'
15288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15291
15292
15293
15294
15295
15296
15297
15298 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15299 do
15300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15302   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305   echo $ECHO_N "(cached) $ECHO_C" >&6
15306 fi
15307 ac_res=`eval echo '${'$as_ac_Header'}'`
15308                { echo "$as_me:$LINENO: result: $ac_res" >&5
15309 echo "${ECHO_T}$ac_res" >&6; }
15310 else
15311   # Is the header compilable?
15312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15314 cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h.  */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h.  */
15320 $ac_includes_default
15321 #include <$ac_header>
15322 _ACEOF
15323 rm -f conftest.$ac_objext
15324 if { (ac_try="$ac_compile"
15325 case "(($ac_try" in
15326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327   *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330   (eval "$ac_compile") 2>conftest.er1
15331   ac_status=$?
15332   grep -v '^ *+' conftest.er1 >conftest.err
15333   rm -f conftest.er1
15334   cat conftest.err >&5
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); } &&
15337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338   { (case "(($ac_try" in
15339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340   *) ac_try_echo=$ac_try;;
15341 esac
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343   (eval "$ac_try") 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; } &&
15347          { ac_try='test -s conftest.$ac_objext'
15348   { (case "(($ac_try" in
15349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350   *) ac_try_echo=$ac_try;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353   (eval "$ac_try") 2>&5
15354   ac_status=$?
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); }; }; then
15357   ac_header_compiler=yes
15358 else
15359   echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15361
15362         ac_header_compiler=no
15363 fi
15364
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15367 echo "${ECHO_T}$ac_header_compiler" >&6; }
15368
15369 # Is the header present?
15370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15372 cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h.  */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h.  */
15378 #include <$ac_header>
15379 _ACEOF
15380 if { (ac_try="$ac_cpp conftest.$ac_ext"
15381 case "(($ac_try" in
15382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383   *) ac_try_echo=$ac_try;;
15384 esac
15385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15387   ac_status=$?
15388   grep -v '^ *+' conftest.er1 >conftest.err
15389   rm -f conftest.er1
15390   cat conftest.err >&5
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } >/dev/null; then
15393   if test -s conftest.err; then
15394     ac_cpp_err=$ac_c_preproc_warn_flag
15395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15396   else
15397     ac_cpp_err=
15398   fi
15399 else
15400   ac_cpp_err=yes
15401 fi
15402 if test -z "$ac_cpp_err"; then
15403   ac_header_preproc=yes
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408   ac_header_preproc=no
15409 fi
15410
15411 rm -f conftest.err conftest.$ac_ext
15412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15413 echo "${ECHO_T}$ac_header_preproc" >&6; }
15414
15415 # So?  What about this header?
15416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15417   yes:no: )
15418     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15422     ac_header_preproc=yes
15423     ;;
15424   no:yes:* )
15425     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15427     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15428 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15429     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15431     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15432 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15435     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15437     ( cat <<\_ASBOX
15438 ## ------------------------------------ ##
15439 ## Report this to http://llvm.org/bugs/ ##
15440 ## ------------------------------------ ##
15441 _ASBOX
15442      ) | sed "s/^/$as_me: WARNING:     /" >&2
15443     ;;
15444 esac
15445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450   eval "$as_ac_Header=\$ac_header_preproc"
15451 fi
15452 ac_res=`eval echo '${'$as_ac_Header'}'`
15453                { echo "$as_me:$LINENO: result: $ac_res" >&5
15454 echo "${ECHO_T}$ac_res" >&6; }
15455
15456 fi
15457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15458   cat >>confdefs.h <<_ACEOF
15459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15460 _ACEOF
15461
15462 fi
15463
15464 done
15465
15466
15467
15468
15469
15470
15471
15472 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15473 do
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479   echo $ECHO_N "(cached) $ECHO_C" >&6
15480 fi
15481 ac_res=`eval echo '${'$as_ac_Header'}'`
15482                { echo "$as_me:$LINENO: result: $ac_res" >&5
15483 echo "${ECHO_T}$ac_res" >&6; }
15484 else
15485   # Is the header compilable?
15486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h.  */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h.  */
15494 $ac_includes_default
15495 #include <$ac_header>
15496 _ACEOF
15497 rm -f conftest.$ac_objext
15498 if { (ac_try="$ac_compile"
15499 case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_compile") 2>conftest.er1
15505   ac_status=$?
15506   grep -v '^ *+' conftest.er1 >conftest.err
15507   rm -f conftest.er1
15508   cat conftest.err >&5
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } &&
15511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512   { (case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517   (eval "$ac_try") 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; } &&
15521          { ac_try='test -s conftest.$ac_objext'
15522   { (case "(($ac_try" in
15523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524   *) ac_try_echo=$ac_try;;
15525 esac
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527   (eval "$ac_try") 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531   ac_header_compiler=yes
15532 else
15533   echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15535
15536         ac_header_compiler=no
15537 fi
15538
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541 echo "${ECHO_T}$ac_header_compiler" >&6; }
15542
15543 # Is the header present?
15544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552 #include <$ac_header>
15553 _ACEOF
15554 if { (ac_try="$ac_cpp conftest.$ac_ext"
15555 case "(($ac_try" in
15556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557   *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15561   ac_status=$?
15562   grep -v '^ *+' conftest.er1 >conftest.err
15563   rm -f conftest.er1
15564   cat conftest.err >&5
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); } >/dev/null; then
15567   if test -s conftest.err; then
15568     ac_cpp_err=$ac_c_preproc_warn_flag
15569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15570   else
15571     ac_cpp_err=
15572   fi
15573 else
15574   ac_cpp_err=yes
15575 fi
15576 if test -z "$ac_cpp_err"; then
15577   ac_header_preproc=yes
15578 else
15579   echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582   ac_header_preproc=no
15583 fi
15584
15585 rm -f conftest.err conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587 echo "${ECHO_T}$ac_header_preproc" >&6; }
15588
15589 # So?  What about this header?
15590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591   yes:no: )
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596     ac_header_preproc=yes
15597     ;;
15598   no:yes:* )
15599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15611     ( cat <<\_ASBOX
15612 ## ------------------------------------ ##
15613 ## Report this to http://llvm.org/bugs/ ##
15614 ## ------------------------------------ ##
15615 _ASBOX
15616      ) | sed "s/^/$as_me: WARNING:     /" >&2
15617     ;;
15618 esac
15619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622   echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624   eval "$as_ac_Header=\$ac_header_preproc"
15625 fi
15626 ac_res=`eval echo '${'$as_ac_Header'}'`
15627                { echo "$as_me:$LINENO: result: $ac_res" >&5
15628 echo "${ECHO_T}$ac_res" >&6; }
15629
15630 fi
15631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15632   cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15634 _ACEOF
15635
15636 fi
15637
15638 done
15639
15640
15641
15642 for ac_header in utime.h windows.h
15643 do
15644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649   echo $ECHO_N "(cached) $ECHO_C" >&6
15650 fi
15651 ac_res=`eval echo '${'$as_ac_Header'}'`
15652                { echo "$as_me:$LINENO: result: $ac_res" >&5
15653 echo "${ECHO_T}$ac_res" >&6; }
15654 else
15655   # Is the header compilable?
15656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h.  */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h.  */
15664 $ac_includes_default
15665 #include <$ac_header>
15666 _ACEOF
15667 rm -f conftest.$ac_objext
15668 if { (ac_try="$ac_compile"
15669 case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_compile") 2>conftest.er1
15675   ac_status=$?
15676   grep -v '^ *+' conftest.er1 >conftest.err
15677   rm -f conftest.er1
15678   cat conftest.err >&5
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); } &&
15681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682   { (case "(($ac_try" in
15683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684   *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687   (eval "$ac_try") 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; } &&
15691          { ac_try='test -s conftest.$ac_objext'
15692   { (case "(($ac_try" in
15693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694   *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697   (eval "$ac_try") 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; }; then
15701   ac_header_compiler=yes
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706         ac_header_compiler=no
15707 fi
15708
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15711 echo "${ECHO_T}$ac_header_compiler" >&6; }
15712
15713 # Is the header present?
15714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15716 cat >conftest.$ac_ext <<_ACEOF
15717 /* confdefs.h.  */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h.  */
15722 #include <$ac_header>
15723 _ACEOF
15724 if { (ac_try="$ac_cpp conftest.$ac_ext"
15725 case "(($ac_try" in
15726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727   *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15731   ac_status=$?
15732   grep -v '^ *+' conftest.er1 >conftest.err
15733   rm -f conftest.er1
15734   cat conftest.err >&5
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); } >/dev/null; then
15737   if test -s conftest.err; then
15738     ac_cpp_err=$ac_c_preproc_warn_flag
15739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15740   else
15741     ac_cpp_err=
15742   fi
15743 else
15744   ac_cpp_err=yes
15745 fi
15746 if test -z "$ac_cpp_err"; then
15747   ac_header_preproc=yes
15748 else
15749   echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15751
15752   ac_header_preproc=no
15753 fi
15754
15755 rm -f conftest.err conftest.$ac_ext
15756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15757 echo "${ECHO_T}$ac_header_preproc" >&6; }
15758
15759 # So?  What about this header?
15760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15761   yes:no: )
15762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15766     ac_header_preproc=yes
15767     ;;
15768   no:yes:* )
15769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15781     ( cat <<\_ASBOX
15782 ## ------------------------------------ ##
15783 ## Report this to http://llvm.org/bugs/ ##
15784 ## ------------------------------------ ##
15785 _ASBOX
15786      ) | sed "s/^/$as_me: WARNING:     /" >&2
15787     ;;
15788 esac
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794   eval "$as_ac_Header=\$ac_header_preproc"
15795 fi
15796 ac_res=`eval echo '${'$as_ac_Header'}'`
15797                { echo "$as_me:$LINENO: result: $ac_res" >&5
15798 echo "${ECHO_T}$ac_res" >&6; }
15799
15800 fi
15801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15802   cat >>confdefs.h <<_ACEOF
15803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15804 _ACEOF
15805
15806 fi
15807
15808 done
15809
15810
15811
15812
15813
15814
15815 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15816 do
15817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
15828   # Is the header compilable?
15829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h.  */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h.  */
15837 $ac_includes_default
15838 #include <$ac_header>
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844   *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847   (eval "$ac_compile") 2>conftest.er1
15848   ac_status=$?
15849   grep -v '^ *+' conftest.er1 >conftest.err
15850   rm -f conftest.er1
15851   cat conftest.err >&5
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); } &&
15854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15855   { (case "(($ac_try" in
15856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857   *) ac_try_echo=$ac_try;;
15858 esac
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860   (eval "$ac_try") 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; } &&
15864          { ac_try='test -s conftest.$ac_objext'
15865   { (case "(($ac_try" in
15866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867   *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870   (eval "$ac_try") 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; }; then
15874   ac_header_compiler=yes
15875 else
15876   echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879         ac_header_compiler=no
15880 fi
15881
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6; }
15885
15886 # Is the header present?
15887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895 #include <$ac_header>
15896 _ACEOF
15897 if { (ac_try="$ac_cpp conftest.$ac_ext"
15898 case "(($ac_try" in
15899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900   *) ac_try_echo=$ac_try;;
15901 esac
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15904   ac_status=$?
15905   grep -v '^ *+' conftest.er1 >conftest.err
15906   rm -f conftest.er1
15907   cat conftest.err >&5
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } >/dev/null; then
15910   if test -s conftest.err; then
15911     ac_cpp_err=$ac_c_preproc_warn_flag
15912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15913   else
15914     ac_cpp_err=
15915   fi
15916 else
15917   ac_cpp_err=yes
15918 fi
15919 if test -z "$ac_cpp_err"; then
15920   ac_header_preproc=yes
15921 else
15922   echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925   ac_header_preproc=no
15926 fi
15927
15928 rm -f conftest.err conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15930 echo "${ECHO_T}$ac_header_preproc" >&6; }
15931
15932 # So?  What about this header?
15933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15934   yes:no: )
15935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15939     ac_header_preproc=yes
15940     ;;
15941   no:yes:* )
15942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15944     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15945 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15946     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15948     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15949 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15952     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15954     ( cat <<\_ASBOX
15955 ## ------------------------------------ ##
15956 ## Report this to http://llvm.org/bugs/ ##
15957 ## ------------------------------------ ##
15958 _ASBOX
15959      ) | sed "s/^/$as_me: WARNING:     /" >&2
15960     ;;
15961 esac
15962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965   echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15967   eval "$as_ac_Header=\$ac_header_preproc"
15968 fi
15969 ac_res=`eval echo '${'$as_ac_Header'}'`
15970                { echo "$as_me:$LINENO: result: $ac_res" >&5
15971 echo "${ECHO_T}$ac_res" >&6; }
15972
15973 fi
15974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15975   cat >>confdefs.h <<_ACEOF
15976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15977 _ACEOF
15978
15979 fi
15980
15981 done
15982
15983
15984
15985
15986
15987 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15988 do
15989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15991   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15994   echo $ECHO_N "(cached) $ECHO_C" >&6
15995 fi
15996 ac_res=`eval echo '${'$as_ac_Header'}'`
15997                { echo "$as_me:$LINENO: result: $ac_res" >&5
15998 echo "${ECHO_T}$ac_res" >&6; }
15999 else
16000   # Is the header compilable?
16001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16003 cat >conftest.$ac_ext <<_ACEOF
16004 /* confdefs.h.  */
16005 _ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h.  */
16009 $ac_includes_default
16010 #include <$ac_header>
16011 _ACEOF
16012 rm -f conftest.$ac_objext
16013 if { (ac_try="$ac_compile"
16014 case "(($ac_try" in
16015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016   *) ac_try_echo=$ac_try;;
16017 esac
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019   (eval "$ac_compile") 2>conftest.er1
16020   ac_status=$?
16021   grep -v '^ *+' conftest.er1 >conftest.err
16022   rm -f conftest.er1
16023   cat conftest.err >&5
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); } &&
16026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16027   { (case "(($ac_try" in
16028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029   *) ac_try_echo=$ac_try;;
16030 esac
16031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16032   (eval "$ac_try") 2>&5
16033   ac_status=$?
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); }; } &&
16036          { ac_try='test -s conftest.$ac_objext'
16037   { (case "(($ac_try" in
16038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16039   *) ac_try_echo=$ac_try;;
16040 esac
16041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16042   (eval "$ac_try") 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; }; then
16046   ac_header_compiler=yes
16047 else
16048   echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16050
16051         ac_header_compiler=no
16052 fi
16053
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16056 echo "${ECHO_T}$ac_header_compiler" >&6; }
16057
16058 # Is the header present?
16059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h.  */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h.  */
16067 #include <$ac_header>
16068 _ACEOF
16069 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16076   ac_status=$?
16077   grep -v '^ *+' conftest.er1 >conftest.err
16078   rm -f conftest.er1
16079   cat conftest.err >&5
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); } >/dev/null; then
16082   if test -s conftest.err; then
16083     ac_cpp_err=$ac_c_preproc_warn_flag
16084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16085   else
16086     ac_cpp_err=
16087   fi
16088 else
16089   ac_cpp_err=yes
16090 fi
16091 if test -z "$ac_cpp_err"; then
16092   ac_header_preproc=yes
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097   ac_header_preproc=no
16098 fi
16099
16100 rm -f conftest.err conftest.$ac_ext
16101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16102 echo "${ECHO_T}$ac_header_preproc" >&6; }
16103
16104 # So?  What about this header?
16105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16106   yes:no: )
16107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16111     ac_header_preproc=yes
16112     ;;
16113   no:yes:* )
16114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16126     ( cat <<\_ASBOX
16127 ## ------------------------------------ ##
16128 ## Report this to http://llvm.org/bugs/ ##
16129 ## ------------------------------------ ##
16130 _ASBOX
16131      ) | sed "s/^/$as_me: WARNING:     /" >&2
16132     ;;
16133 esac
16134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16137   echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139   eval "$as_ac_Header=\$ac_header_preproc"
16140 fi
16141 ac_res=`eval echo '${'$as_ac_Header'}'`
16142                { echo "$as_me:$LINENO: result: $ac_res" >&5
16143 echo "${ECHO_T}$ac_res" >&6; }
16144
16145 fi
16146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16147   cat >>confdefs.h <<_ACEOF
16148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16149 _ACEOF
16150
16151 fi
16152
16153 done
16154
16155
16156 for ac_header in valgrind/valgrind.h
16157 do
16158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16163   echo $ECHO_N "(cached) $ECHO_C" >&6
16164 fi
16165 ac_res=`eval echo '${'$as_ac_Header'}'`
16166                { echo "$as_me:$LINENO: result: $ac_res" >&5
16167 echo "${ECHO_T}$ac_res" >&6; }
16168 else
16169   # Is the header compilable?
16170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178 $ac_includes_default
16179 #include <$ac_header>
16180 _ACEOF
16181 rm -f conftest.$ac_objext
16182 if { (ac_try="$ac_compile"
16183 case "(($ac_try" in
16184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185   *) ac_try_echo=$ac_try;;
16186 esac
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188   (eval "$ac_compile") 2>conftest.er1
16189   ac_status=$?
16190   grep -v '^ *+' conftest.er1 >conftest.err
16191   rm -f conftest.er1
16192   cat conftest.err >&5
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); } &&
16195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16196   { (case "(($ac_try" in
16197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198   *) ac_try_echo=$ac_try;;
16199 esac
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201   (eval "$ac_try") 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; } &&
16205          { ac_try='test -s conftest.$ac_objext'
16206   { (case "(($ac_try" in
16207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208   *) ac_try_echo=$ac_try;;
16209 esac
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211   (eval "$ac_try") 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }; }; then
16215   ac_header_compiler=yes
16216 else
16217   echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220         ac_header_compiler=no
16221 fi
16222
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16225 echo "${ECHO_T}$ac_header_compiler" >&6; }
16226
16227 # Is the header present?
16228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16230 cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236 #include <$ac_header>
16237 _ACEOF
16238 if { (ac_try="$ac_cpp conftest.$ac_ext"
16239 case "(($ac_try" in
16240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241   *) ac_try_echo=$ac_try;;
16242 esac
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16245   ac_status=$?
16246   grep -v '^ *+' conftest.er1 >conftest.err
16247   rm -f conftest.er1
16248   cat conftest.err >&5
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); } >/dev/null; then
16251   if test -s conftest.err; then
16252     ac_cpp_err=$ac_c_preproc_warn_flag
16253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16254   else
16255     ac_cpp_err=
16256   fi
16257 else
16258   ac_cpp_err=yes
16259 fi
16260 if test -z "$ac_cpp_err"; then
16261   ac_header_preproc=yes
16262 else
16263   echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266   ac_header_preproc=no
16267 fi
16268
16269 rm -f conftest.err conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16271 echo "${ECHO_T}$ac_header_preproc" >&6; }
16272
16273 # So?  What about this header?
16274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16275   yes:no: )
16276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16280     ac_header_preproc=yes
16281     ;;
16282   no:yes:* )
16283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16295     ( cat <<\_ASBOX
16296 ## ------------------------------------ ##
16297 ## Report this to http://llvm.org/bugs/ ##
16298 ## ------------------------------------ ##
16299 _ASBOX
16300      ) | sed "s/^/$as_me: WARNING:     /" >&2
16301     ;;
16302 esac
16303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16306   echo $ECHO_N "(cached) $ECHO_C" >&6
16307 else
16308   eval "$as_ac_Header=\$ac_header_preproc"
16309 fi
16310 ac_res=`eval echo '${'$as_ac_Header'}'`
16311                { echo "$as_me:$LINENO: result: $ac_res" >&5
16312 echo "${ECHO_T}$ac_res" >&6; }
16313
16314 fi
16315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16316   cat >>confdefs.h <<_ACEOF
16317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16318 _ACEOF
16319
16320 fi
16321
16322 done
16323
16324
16325 for ac_header in fenv.h
16326 do
16327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332   echo $ECHO_N "(cached) $ECHO_C" >&6
16333 fi
16334 ac_res=`eval echo '${'$as_ac_Header'}'`
16335                { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16337 else
16338   # Is the header compilable?
16339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347 $ac_includes_default
16348 #include <$ac_header>
16349 _ACEOF
16350 rm -f conftest.$ac_objext
16351 if { (ac_try="$ac_compile"
16352 case "(($ac_try" in
16353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354   *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357   (eval "$ac_compile") 2>conftest.er1
16358   ac_status=$?
16359   grep -v '^ *+' conftest.er1 >conftest.err
16360   rm -f conftest.er1
16361   cat conftest.err >&5
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); } &&
16364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16365   { (case "(($ac_try" in
16366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367   *) ac_try_echo=$ac_try;;
16368 esac
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370   (eval "$ac_try") 2>&5
16371   ac_status=$?
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); }; } &&
16374          { ac_try='test -s conftest.$ac_objext'
16375   { (case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_try") 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; }; then
16384   ac_header_compiler=yes
16385 else
16386   echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16388
16389         ac_header_compiler=no
16390 fi
16391
16392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16394 echo "${ECHO_T}$ac_header_compiler" >&6; }
16395
16396 # Is the header present?
16397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16399 cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h.  */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h.  */
16405 #include <$ac_header>
16406 _ACEOF
16407 if { (ac_try="$ac_cpp conftest.$ac_ext"
16408 case "(($ac_try" in
16409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410   *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16414   ac_status=$?
16415   grep -v '^ *+' conftest.er1 >conftest.err
16416   rm -f conftest.er1
16417   cat conftest.err >&5
16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419   (exit $ac_status); } >/dev/null; then
16420   if test -s conftest.err; then
16421     ac_cpp_err=$ac_c_preproc_warn_flag
16422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16423   else
16424     ac_cpp_err=
16425   fi
16426 else
16427   ac_cpp_err=yes
16428 fi
16429 if test -z "$ac_cpp_err"; then
16430   ac_header_preproc=yes
16431 else
16432   echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435   ac_header_preproc=no
16436 fi
16437
16438 rm -f conftest.err conftest.$ac_ext
16439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16440 echo "${ECHO_T}$ac_header_preproc" >&6; }
16441
16442 # So?  What about this header?
16443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16444   yes:no: )
16445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16449     ac_header_preproc=yes
16450     ;;
16451   no:yes:* )
16452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16464     ( cat <<\_ASBOX
16465 ## ------------------------------------ ##
16466 ## Report this to http://llvm.org/bugs/ ##
16467 ## ------------------------------------ ##
16468 _ASBOX
16469      ) | sed "s/^/$as_me: WARNING:     /" >&2
16470     ;;
16471 esac
16472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16475   echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477   eval "$as_ac_Header=\$ac_header_preproc"
16478 fi
16479 ac_res=`eval echo '${'$as_ac_Header'}'`
16480                { echo "$as_me:$LINENO: result: $ac_res" >&5
16481 echo "${ECHO_T}$ac_res" >&6; }
16482
16483 fi
16484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16485   cat >>confdefs.h <<_ACEOF
16486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16487 _ACEOF
16488
16489 fi
16490
16491 done
16492
16493 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16494 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16495 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16496   echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498   cat >conftest.$ac_ext <<_ACEOF
16499 /* confdefs.h.  */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h.  */
16504 #include <fenv.h>
16505
16506 int
16507 main ()
16508 {
16509 #ifndef FE_ALL_EXCEPT
16510   char *p = (char *) FE_ALL_EXCEPT;
16511   return !p;
16512 #endif
16513
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522   *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525   (eval "$ac_compile") 2>conftest.er1
16526   ac_status=$?
16527   grep -v '^ *+' conftest.er1 >conftest.err
16528   rm -f conftest.er1
16529   cat conftest.err >&5
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); } &&
16532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16533   { (case "(($ac_try" in
16534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535   *) ac_try_echo=$ac_try;;
16536 esac
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538   (eval "$ac_try") 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; } &&
16542          { ac_try='test -s conftest.$ac_objext'
16543   { (case "(($ac_try" in
16544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545   *) ac_try_echo=$ac_try;;
16546 esac
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548   (eval "$ac_try") 2>&5
16549   ac_status=$?
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); }; }; then
16552   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16553 else
16554   echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16556
16557         ac_cv_have_decl_FE_ALL_EXCEPT=no
16558 fi
16559
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 fi
16562 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16563 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16564 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16565
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_DECL_FE_ALL_EXCEPT 1
16568 _ACEOF
16569
16570
16571 else
16572   cat >>confdefs.h <<_ACEOF
16573 #define HAVE_DECL_FE_ALL_EXCEPT 0
16574 _ACEOF
16575
16576
16577 fi
16578 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16579 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16580 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16581   echo $ECHO_N "(cached) $ECHO_C" >&6
16582 else
16583   cat >conftest.$ac_ext <<_ACEOF
16584 /* confdefs.h.  */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h.  */
16589 #include <fenv.h>
16590
16591 int
16592 main ()
16593 {
16594 #ifndef FE_INEXACT
16595   char *p = (char *) FE_INEXACT;
16596   return !p;
16597 #endif
16598
16599   ;
16600   return 0;
16601 }
16602 _ACEOF
16603 rm -f conftest.$ac_objext
16604 if { (ac_try="$ac_compile"
16605 case "(($ac_try" in
16606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607   *) ac_try_echo=$ac_try;;
16608 esac
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610   (eval "$ac_compile") 2>conftest.er1
16611   ac_status=$?
16612   grep -v '^ *+' conftest.er1 >conftest.err
16613   rm -f conftest.er1
16614   cat conftest.err >&5
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); } &&
16617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16618   { (case "(($ac_try" in
16619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620   *) ac_try_echo=$ac_try;;
16621 esac
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623   (eval "$ac_try") 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); }; } &&
16627          { ac_try='test -s conftest.$ac_objext'
16628   { (case "(($ac_try" in
16629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630   *) ac_try_echo=$ac_try;;
16631 esac
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633   (eval "$ac_try") 2>&5
16634   ac_status=$?
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); }; }; then
16637   ac_cv_have_decl_FE_INEXACT=yes
16638 else
16639   echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16641
16642         ac_cv_have_decl_FE_INEXACT=no
16643 fi
16644
16645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16646 fi
16647 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16648 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16649 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16650
16651 cat >>confdefs.h <<_ACEOF
16652 #define HAVE_DECL_FE_INEXACT 1
16653 _ACEOF
16654
16655
16656 else
16657   cat >>confdefs.h <<_ACEOF
16658 #define HAVE_DECL_FE_INEXACT 0
16659 _ACEOF
16660
16661
16662 fi
16663
16664
16665 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16666
16667 for ac_header in pthread.h
16668 do
16669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674   echo $ECHO_N "(cached) $ECHO_C" >&6
16675 fi
16676 ac_res=`eval echo '${'$as_ac_Header'}'`
16677                { echo "$as_me:$LINENO: result: $ac_res" >&5
16678 echo "${ECHO_T}$ac_res" >&6; }
16679 else
16680   # Is the header compilable?
16681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h.  */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h.  */
16689 $ac_includes_default
16690 #include <$ac_header>
16691 _ACEOF
16692 rm -f conftest.$ac_objext
16693 if { (ac_try="$ac_compile"
16694 case "(($ac_try" in
16695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696   *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699   (eval "$ac_compile") 2>conftest.er1
16700   ac_status=$?
16701   grep -v '^ *+' conftest.er1 >conftest.err
16702   rm -f conftest.er1
16703   cat conftest.err >&5
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); } &&
16706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707   { (case "(($ac_try" in
16708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709   *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712   (eval "$ac_try") 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; } &&
16716          { ac_try='test -s conftest.$ac_objext'
16717   { (case "(($ac_try" in
16718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719   *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722   (eval "$ac_try") 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; }; then
16726   ac_header_compiler=yes
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731         ac_header_compiler=no
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16736 echo "${ECHO_T}$ac_header_compiler" >&6; }
16737
16738 # Is the header present?
16739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h.  */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h.  */
16747 #include <$ac_header>
16748 _ACEOF
16749 if { (ac_try="$ac_cpp conftest.$ac_ext"
16750 case "(($ac_try" in
16751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752   *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16756   ac_status=$?
16757   grep -v '^ *+' conftest.er1 >conftest.err
16758   rm -f conftest.er1
16759   cat conftest.err >&5
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); } >/dev/null; then
16762   if test -s conftest.err; then
16763     ac_cpp_err=$ac_c_preproc_warn_flag
16764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16765   else
16766     ac_cpp_err=
16767   fi
16768 else
16769   ac_cpp_err=yes
16770 fi
16771 if test -z "$ac_cpp_err"; then
16772   ac_header_preproc=yes
16773 else
16774   echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777   ac_header_preproc=no
16778 fi
16779
16780 rm -f conftest.err conftest.$ac_ext
16781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16782 echo "${ECHO_T}$ac_header_preproc" >&6; }
16783
16784 # So?  What about this header?
16785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16786   yes:no: )
16787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16791     ac_header_preproc=yes
16792     ;;
16793   no:yes:* )
16794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16806     ( cat <<\_ASBOX
16807 ## ------------------------------------ ##
16808 ## Report this to http://llvm.org/bugs/ ##
16809 ## ------------------------------------ ##
16810 _ASBOX
16811      ) | sed "s/^/$as_me: WARNING:     /" >&2
16812     ;;
16813 esac
16814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819   eval "$as_ac_Header=\$ac_header_preproc"
16820 fi
16821 ac_res=`eval echo '${'$as_ac_Header'}'`
16822                { echo "$as_me:$LINENO: result: $ac_res" >&5
16823 echo "${ECHO_T}$ac_res" >&6; }
16824
16825 fi
16826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16827   cat >>confdefs.h <<_ACEOF
16828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16829 _ACEOF
16830  HAVE_PTHREAD=1
16831
16832 else
16833   HAVE_PTHREAD=0
16834
16835 fi
16836
16837 done
16838
16839 else
16840   HAVE_PTHREAD=0
16841
16842 fi
16843 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16844
16845 for ac_header in zlib.h
16846 do
16847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16849   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16852   echo $ECHO_N "(cached) $ECHO_C" >&6
16853 fi
16854 ac_res=`eval echo '${'$as_ac_Header'}'`
16855                { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16857 else
16858   # Is the header compilable?
16859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16861 cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867 $ac_includes_default
16868 #include <$ac_header>
16869 _ACEOF
16870 rm -f conftest.$ac_objext
16871 if { (ac_try="$ac_compile"
16872 case "(($ac_try" in
16873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874   *) ac_try_echo=$ac_try;;
16875 esac
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877   (eval "$ac_compile") 2>conftest.er1
16878   ac_status=$?
16879   grep -v '^ *+' conftest.er1 >conftest.err
16880   rm -f conftest.er1
16881   cat conftest.err >&5
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } &&
16884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16885   { (case "(($ac_try" in
16886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887   *) ac_try_echo=$ac_try;;
16888 esac
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890   (eval "$ac_try") 2>&5
16891   ac_status=$?
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); }; } &&
16894          { ac_try='test -s conftest.$ac_objext'
16895   { (case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_try") 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; }; then
16904   ac_header_compiler=yes
16905 else
16906   echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909         ac_header_compiler=no
16910 fi
16911
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16914 echo "${ECHO_T}$ac_header_compiler" >&6; }
16915
16916 # Is the header present?
16917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h.  */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h.  */
16925 #include <$ac_header>
16926 _ACEOF
16927 if { (ac_try="$ac_cpp conftest.$ac_ext"
16928 case "(($ac_try" in
16929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930   *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16934   ac_status=$?
16935   grep -v '^ *+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } >/dev/null; then
16940   if test -s conftest.err; then
16941     ac_cpp_err=$ac_c_preproc_warn_flag
16942     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16943   else
16944     ac_cpp_err=
16945   fi
16946 else
16947   ac_cpp_err=yes
16948 fi
16949 if test -z "$ac_cpp_err"; then
16950   ac_header_preproc=yes
16951 else
16952   echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955   ac_header_preproc=no
16956 fi
16957
16958 rm -f conftest.err conftest.$ac_ext
16959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16960 echo "${ECHO_T}$ac_header_preproc" >&6; }
16961
16962 # So?  What about this header?
16963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16964   yes:no: )
16965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16969     ac_header_preproc=yes
16970     ;;
16971   no:yes:* )
16972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16984     ( cat <<\_ASBOX
16985 ## ------------------------------------ ##
16986 ## Report this to http://llvm.org/bugs/ ##
16987 ## ------------------------------------ ##
16988 _ASBOX
16989      ) | sed "s/^/$as_me: WARNING:     /" >&2
16990     ;;
16991 esac
16992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16995   echo $ECHO_N "(cached) $ECHO_C" >&6
16996 else
16997   eval "$as_ac_Header=\$ac_header_preproc"
16998 fi
16999 ac_res=`eval echo '${'$as_ac_Header'}'`
17000                { echo "$as_me:$LINENO: result: $ac_res" >&5
17001 echo "${ECHO_T}$ac_res" >&6; }
17002
17003 fi
17004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17005   cat >>confdefs.h <<_ACEOF
17006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17007 _ACEOF
17008  HAVE_LIBZ=1
17009
17010 else
17011   HAVE_LIBZ=0
17012
17013 fi
17014
17015 done
17016
17017 else
17018   HAVE_LIBZ=0
17019
17020 fi
17021
17022 if test "$llvm_cv_enable_libffi" = "yes" ; then
17023
17024
17025 for ac_header in ffi.h ffi/ffi.h
17026 do
17027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17029   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 fi
17034 ac_res=`eval echo '${'$as_ac_Header'}'`
17035                { echo "$as_me:$LINENO: result: $ac_res" >&5
17036 echo "${ECHO_T}$ac_res" >&6; }
17037 else
17038   # Is the header compilable?
17039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047 $ac_includes_default
17048 #include <$ac_header>
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (ac_try="$ac_compile"
17052 case "(($ac_try" in
17053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054   *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057   (eval "$ac_compile") 2>conftest.er1
17058   ac_status=$?
17059   grep -v '^ *+' conftest.er1 >conftest.err
17060   rm -f conftest.er1
17061   cat conftest.err >&5
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); } &&
17064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17071   ac_status=$?
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); }; } &&
17074          { ac_try='test -s conftest.$ac_objext'
17075   { (case "(($ac_try" in
17076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077   *) ac_try_echo=$ac_try;;
17078 esac
17079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080   (eval "$ac_try") 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; }; then
17084   ac_header_compiler=yes
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089         ac_header_compiler=no
17090 fi
17091
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17094 echo "${ECHO_T}$ac_header_compiler" >&6; }
17095
17096 # Is the header present?
17097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17099 cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h.  */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h.  */
17105 #include <$ac_header>
17106 _ACEOF
17107 if { (ac_try="$ac_cpp conftest.$ac_ext"
17108 case "(($ac_try" in
17109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110   *) ac_try_echo=$ac_try;;
17111 esac
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17114   ac_status=$?
17115   grep -v '^ *+' conftest.er1 >conftest.err
17116   rm -f conftest.er1
17117   cat conftest.err >&5
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); } >/dev/null; then
17120   if test -s conftest.err; then
17121     ac_cpp_err=$ac_c_preproc_warn_flag
17122     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17123   else
17124     ac_cpp_err=
17125   fi
17126 else
17127   ac_cpp_err=yes
17128 fi
17129 if test -z "$ac_cpp_err"; then
17130   ac_header_preproc=yes
17131 else
17132   echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17134
17135   ac_header_preproc=no
17136 fi
17137
17138 rm -f conftest.err conftest.$ac_ext
17139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140 echo "${ECHO_T}$ac_header_preproc" >&6; }
17141
17142 # So?  What about this header?
17143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17144   yes:no: )
17145     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17149     ac_header_preproc=yes
17150     ;;
17151   no:yes:* )
17152     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17154     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17155 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17156     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17158     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17159 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17162     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17164     ( cat <<\_ASBOX
17165 ## ------------------------------------ ##
17166 ## Report this to http://llvm.org/bugs/ ##
17167 ## ------------------------------------ ##
17168 _ASBOX
17169      ) | sed "s/^/$as_me: WARNING:     /" >&2
17170     ;;
17171 esac
17172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17175   echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17177   eval "$as_ac_Header=\$ac_header_preproc"
17178 fi
17179 ac_res=`eval echo '${'$as_ac_Header'}'`
17180                { echo "$as_me:$LINENO: result: $ac_res" >&5
17181 echo "${ECHO_T}$ac_res" >&6; }
17182
17183 fi
17184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17185   cat >>confdefs.h <<_ACEOF
17186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17187 _ACEOF
17188
17189 fi
17190
17191 done
17192
17193 fi
17194
17195
17196 for ac_header in CrashReporterClient.h
17197 do
17198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 fi
17205 ac_res=`eval echo '${'$as_ac_Header'}'`
17206                { echo "$as_me:$LINENO: result: $ac_res" >&5
17207 echo "${ECHO_T}$ac_res" >&6; }
17208 else
17209   # Is the header compilable?
17210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17212 cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h.  */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h.  */
17218 $ac_includes_default
17219 #include <$ac_header>
17220 _ACEOF
17221 rm -f conftest.$ac_objext
17222 if { (ac_try="$ac_compile"
17223 case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_compile") 2>conftest.er1
17229   ac_status=$?
17230   grep -v '^ *+' conftest.er1 >conftest.err
17231   rm -f conftest.er1
17232   cat conftest.err >&5
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); } &&
17235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; } &&
17245          { ac_try='test -s conftest.$ac_objext'
17246   { (case "(($ac_try" in
17247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248   *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251   (eval "$ac_try") 2>&5
17252   ac_status=$?
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }; }; then
17255   ac_header_compiler=yes
17256 else
17257   echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17259
17260         ac_header_compiler=no
17261 fi
17262
17263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17265 echo "${ECHO_T}$ac_header_compiler" >&6; }
17266
17267 # Is the header present?
17268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276 #include <$ac_header>
17277 _ACEOF
17278 if { (ac_try="$ac_cpp conftest.$ac_ext"
17279 case "(($ac_try" in
17280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281   *) ac_try_echo=$ac_try;;
17282 esac
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17285   ac_status=$?
17286   grep -v '^ *+' conftest.er1 >conftest.err
17287   rm -f conftest.er1
17288   cat conftest.err >&5
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); } >/dev/null; then
17291   if test -s conftest.err; then
17292     ac_cpp_err=$ac_c_preproc_warn_flag
17293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17294   else
17295     ac_cpp_err=
17296   fi
17297 else
17298   ac_cpp_err=yes
17299 fi
17300 if test -z "$ac_cpp_err"; then
17301   ac_header_preproc=yes
17302 else
17303   echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306   ac_header_preproc=no
17307 fi
17308
17309 rm -f conftest.err conftest.$ac_ext
17310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17311 echo "${ECHO_T}$ac_header_preproc" >&6; }
17312
17313 # So?  What about this header?
17314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17315   yes:no: )
17316     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17320     ac_header_preproc=yes
17321     ;;
17322   no:yes:* )
17323     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17325     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17326 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17327     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17329     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17330 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17333     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17335     ( cat <<\_ASBOX
17336 ## ------------------------------------ ##
17337 ## Report this to http://llvm.org/bugs/ ##
17338 ## ------------------------------------ ##
17339 _ASBOX
17340      ) | sed "s/^/$as_me: WARNING:     /" >&2
17341     ;;
17342 esac
17343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348   eval "$as_ac_Header=\$ac_header_preproc"
17349 fi
17350 ac_res=`eval echo '${'$as_ac_Header'}'`
17351                { echo "$as_me:$LINENO: result: $ac_res" >&5
17352 echo "${ECHO_T}$ac_res" >&6; }
17353
17354 fi
17355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17356   cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17358 _ACEOF
17359
17360 fi
17361
17362 done
17363
17364
17365 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17366 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17367 cat >conftest.$ac_ext <<_ACEOF
17368
17369   /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374
17375     extern const char *__crashreporter_info__;
17376     int main() {
17377       __crashreporter_info__ = "test";
17378       return 0;
17379     }
17380
17381
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_link") 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } &&
17397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17398   { (case "(($ac_try" in
17399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400   *) ac_try_echo=$ac_try;;
17401 esac
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403   (eval "$ac_try") 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; } &&
17407          { ac_try='test -s conftest$ac_exeext'
17408   { (case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_try") 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); }; }; then
17417
17418   { echo "$as_me:$LINENO: result: yes" >&5
17419 echo "${ECHO_T}yes" >&6; }
17420
17421 cat >>confdefs.h <<\_ACEOF
17422 #define HAVE_CRASHREPORTER_INFO 1
17423 _ACEOF
17424
17425
17426 else
17427   echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17429
17430
17431   { echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6; }
17433
17434 cat >>confdefs.h <<\_ACEOF
17435 #define HAVE_CRASHREPORTER_INFO 0
17436 _ACEOF
17437
17438
17439 fi
17440
17441 rm -f core conftest.err conftest.$ac_objext \
17442       conftest$ac_exeext conftest.$ac_ext
17443
17444
17445
17446   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17447 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17448 if test "${ac_cv_huge_val_sanity+set}" = set; then
17449   echo $ECHO_N "(cached) $ECHO_C" >&6
17450 else
17451
17452     ac_ext=cpp
17453 ac_cpp='$CXXCPP $CPPFLAGS'
17454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17457
17458     ac_save_CXXFLAGS=$CXXFLAGS
17459     CXXFLAGS="$CXXFLAGS -pedantic"
17460     if test "$cross_compiling" = yes; then
17461   ac_cv_huge_val_sanity=yes
17462 else
17463   cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469 #include <math.h>
17470 int
17471 main ()
17472 {
17473 double x = HUGE_VAL; return x != x;
17474   ;
17475   return 0;
17476 }
17477 _ACEOF
17478 rm -f conftest$ac_exeext
17479 if { (ac_try="$ac_link"
17480 case "(($ac_try" in
17481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482   *) ac_try_echo=$ac_try;;
17483 esac
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485   (eval "$ac_link") 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17489   { (case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_try") 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; }; then
17498   ac_cv_huge_val_sanity=yes
17499 else
17500   echo "$as_me: program exited with status $ac_status" >&5
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504 ( exit $ac_status )
17505 ac_cv_huge_val_sanity=no
17506 fi
17507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17508 fi
17509
17510
17511     CXXFLAGS=$ac_save_CXXFLAGS
17512     ac_ext=c
17513 ac_cpp='$CPP $CPPFLAGS'
17514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17517
17518
17519 fi
17520 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17521 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17522   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17523
17524
17525 { echo "$as_me:$LINENO: checking for pid_t" >&5
17526 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17527 if test "${ac_cv_type_pid_t+set}" = set; then
17528   echo $ECHO_N "(cached) $ECHO_C" >&6
17529 else
17530   cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h.  */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h.  */
17536 $ac_includes_default
17537 typedef pid_t ac__type_new_;
17538 int
17539 main ()
17540 {
17541 if ((ac__type_new_ *) 0)
17542   return 0;
17543 if (sizeof (ac__type_new_))
17544   return 0;
17545   ;
17546   return 0;
17547 }
17548 _ACEOF
17549 rm -f conftest.$ac_objext
17550 if { (ac_try="$ac_compile"
17551 case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_compile") 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } &&
17563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17564   { (case "(($ac_try" in
17565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566   *) ac_try_echo=$ac_try;;
17567 esac
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569   (eval "$ac_try") 2>&5
17570   ac_status=$?
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); }; } &&
17573          { ac_try='test -s conftest.$ac_objext'
17574   { (case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_try") 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; }; then
17583   ac_cv_type_pid_t=yes
17584 else
17585   echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588         ac_cv_type_pid_t=no
17589 fi
17590
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 fi
17593 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17594 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17595 if test $ac_cv_type_pid_t = yes; then
17596   :
17597 else
17598
17599 cat >>confdefs.h <<_ACEOF
17600 #define pid_t int
17601 _ACEOF
17602
17603 fi
17604
17605 { echo "$as_me:$LINENO: checking for size_t" >&5
17606 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17607 if test "${ac_cv_type_size_t+set}" = set; then
17608   echo $ECHO_N "(cached) $ECHO_C" >&6
17609 else
17610   cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h.  */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h.  */
17616 $ac_includes_default
17617 typedef size_t ac__type_new_;
17618 int
17619 main ()
17620 {
17621 if ((ac__type_new_ *) 0)
17622   return 0;
17623 if (sizeof (ac__type_new_))
17624   return 0;
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext
17630 if { (ac_try="$ac_compile"
17631 case "(($ac_try" in
17632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633   *) ac_try_echo=$ac_try;;
17634 esac
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636   (eval "$ac_compile") 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } &&
17643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17644   { (case "(($ac_try" in
17645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646   *) ac_try_echo=$ac_try;;
17647 esac
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649   (eval "$ac_try") 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); }; } &&
17653          { ac_try='test -s conftest.$ac_objext'
17654   { (case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659   (eval "$ac_try") 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; }; then
17663   ac_cv_type_size_t=yes
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668         ac_cv_type_size_t=no
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 fi
17673 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17674 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17675 if test $ac_cv_type_size_t = yes; then
17676   :
17677 else
17678
17679 cat >>confdefs.h <<_ACEOF
17680 #define size_t unsigned int
17681 _ACEOF
17682
17683 fi
17684
17685
17686 cat >>confdefs.h <<_ACEOF
17687 #define RETSIGTYPE void
17688 _ACEOF
17689
17690 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17691 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17692 if test "${ac_cv_struct_tm+set}" = set; then
17693   echo $ECHO_N "(cached) $ECHO_C" >&6
17694 else
17695   cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h.  */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h.  */
17701 #include <sys/types.h>
17702 #include <time.h>
17703
17704 int
17705 main ()
17706 {
17707 struct tm *tp; tp->tm_sec;
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext
17713 if { (ac_try="$ac_compile"
17714 case "(($ac_try" in
17715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17716   *) ac_try_echo=$ac_try;;
17717 esac
17718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17719   (eval "$ac_compile") 2>conftest.er1
17720   ac_status=$?
17721   grep -v '^ *+' conftest.er1 >conftest.err
17722   rm -f conftest.er1
17723   cat conftest.err >&5
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); } &&
17726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17727   { (case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_try") 2>&5
17733   ac_status=$?
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); }; } &&
17736          { ac_try='test -s conftest.$ac_objext'
17737   { (case "(($ac_try" in
17738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739   *) ac_try_echo=$ac_try;;
17740 esac
17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742   (eval "$ac_try") 2>&5
17743   ac_status=$?
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); }; }; then
17746   ac_cv_struct_tm=time.h
17747 else
17748   echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17750
17751         ac_cv_struct_tm=sys/time.h
17752 fi
17753
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755 fi
17756 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17757 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17758 if test $ac_cv_struct_tm = sys/time.h; then
17759
17760 cat >>confdefs.h <<\_ACEOF
17761 #define TM_IN_SYS_TIME 1
17762 _ACEOF
17763
17764 fi
17765
17766 { echo "$as_me:$LINENO: checking for int64_t" >&5
17767 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17768 if test "${ac_cv_type_int64_t+set}" = set; then
17769   echo $ECHO_N "(cached) $ECHO_C" >&6
17770 else
17771   cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h.  */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h.  */
17777 $ac_includes_default
17778 typedef int64_t ac__type_new_;
17779 int
17780 main ()
17781 {
17782 if ((ac__type_new_ *) 0)
17783   return 0;
17784 if (sizeof (ac__type_new_))
17785   return 0;
17786   ;
17787   return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794   *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797   (eval "$ac_compile") 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } &&
17804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805   { (case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_try") 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; } &&
17814          { ac_try='test -s conftest.$ac_objext'
17815   { (case "(($ac_try" in
17816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817   *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820   (eval "$ac_try") 2>&5
17821   ac_status=$?
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); }; }; then
17824   ac_cv_type_int64_t=yes
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829         ac_cv_type_int64_t=no
17830 fi
17831
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833 fi
17834 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17835 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17836 if test $ac_cv_type_int64_t = yes; then
17837
17838 cat >>confdefs.h <<_ACEOF
17839 #define HAVE_INT64_T 1
17840 _ACEOF
17841
17842
17843 else
17844   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17845 echo "$as_me: error: Type int64_t required but not found" >&2;}
17846    { (exit 1); exit 1; }; }
17847 fi
17848
17849 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17850 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17851 if test "${ac_cv_type_uint64_t+set}" = set; then
17852   echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854   cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860 $ac_includes_default
17861 typedef uint64_t ac__type_new_;
17862 int
17863 main ()
17864 {
17865 if ((ac__type_new_ *) 0)
17866   return 0;
17867 if (sizeof (ac__type_new_))
17868   return 0;
17869   ;
17870   return 0;
17871 }
17872 _ACEOF
17873 rm -f conftest.$ac_objext
17874 if { (ac_try="$ac_compile"
17875 case "(($ac_try" in
17876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877   *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880   (eval "$ac_compile") 2>conftest.er1
17881   ac_status=$?
17882   grep -v '^ *+' conftest.er1 >conftest.err
17883   rm -f conftest.er1
17884   cat conftest.err >&5
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); } &&
17887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888   { (case "(($ac_try" in
17889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890   *) ac_try_echo=$ac_try;;
17891 esac
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893   (eval "$ac_try") 2>&5
17894   ac_status=$?
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); }; } &&
17897          { ac_try='test -s conftest.$ac_objext'
17898   { (case "(($ac_try" in
17899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900   *) ac_try_echo=$ac_try;;
17901 esac
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903   (eval "$ac_try") 2>&5
17904   ac_status=$?
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); }; }; then
17907   ac_cv_type_uint64_t=yes
17908 else
17909   echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17911
17912         ac_cv_type_uint64_t=no
17913 fi
17914
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 fi
17917 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17918 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17919 if test $ac_cv_type_uint64_t = yes; then
17920
17921 cat >>confdefs.h <<_ACEOF
17922 #define HAVE_UINT64_T 1
17923 _ACEOF
17924
17925
17926 else
17927   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17928 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17929 if test "${ac_cv_type_u_int64_t+set}" = set; then
17930   echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932   cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h.  */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h.  */
17938 $ac_includes_default
17939 typedef u_int64_t ac__type_new_;
17940 int
17941 main ()
17942 {
17943 if ((ac__type_new_ *) 0)
17944   return 0;
17945 if (sizeof (ac__type_new_))
17946   return 0;
17947   ;
17948   return 0;
17949 }
17950 _ACEOF
17951 rm -f conftest.$ac_objext
17952 if { (ac_try="$ac_compile"
17953 case "(($ac_try" in
17954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955   *) ac_try_echo=$ac_try;;
17956 esac
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958   (eval "$ac_compile") 2>conftest.er1
17959   ac_status=$?
17960   grep -v '^ *+' conftest.er1 >conftest.err
17961   rm -f conftest.er1
17962   cat conftest.err >&5
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); } &&
17965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17966   { (case "(($ac_try" in
17967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968   *) ac_try_echo=$ac_try;;
17969 esac
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971   (eval "$ac_try") 2>&5
17972   ac_status=$?
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); }; } &&
17975          { ac_try='test -s conftest.$ac_objext'
17976   { (case "(($ac_try" in
17977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978   *) ac_try_echo=$ac_try;;
17979 esac
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981   (eval "$ac_try") 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; }; then
17985   ac_cv_type_u_int64_t=yes
17986 else
17987   echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990         ac_cv_type_u_int64_t=no
17991 fi
17992
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 fi
17995 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17996 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17997 if test $ac_cv_type_u_int64_t = yes; then
17998
17999 cat >>confdefs.h <<_ACEOF
18000 #define HAVE_U_INT64_T 1
18001 _ACEOF
18002
18003
18004 else
18005   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18006 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18007    { (exit 1); exit 1; }; }
18008 fi
18009
18010 fi
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18022 do
18023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18027   echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029   cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h.  */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h.  */
18035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18037 #define $ac_func innocuous_$ac_func
18038
18039 /* System header to define __stub macros and hopefully few prototypes,
18040     which can conflict with char $ac_func (); below.
18041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18042     <limits.h> exists even on freestanding compilers.  */
18043
18044 #ifdef __STDC__
18045 # include <limits.h>
18046 #else
18047 # include <assert.h>
18048 #endif
18049
18050 #undef $ac_func
18051
18052 /* Override any GCC internal prototype to avoid an error.
18053    Use char because int might match the return type of a GCC
18054    builtin and then its argument prototype would still apply.  */
18055 #ifdef __cplusplus
18056 extern "C"
18057 #endif
18058 char $ac_func ();
18059 /* The GNU C library defines this for functions which it implements
18060     to always fail with ENOSYS.  Some functions are actually named
18061     something starting with __ and the normal name is an alias.  */
18062 #if defined __stub_$ac_func || defined __stub___$ac_func
18063 choke me
18064 #endif
18065
18066 int
18067 main ()
18068 {
18069 return $ac_func ();
18070   ;
18071   return 0;
18072 }
18073 _ACEOF
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (ac_try="$ac_link"
18076 case "(($ac_try" in
18077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078   *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081   (eval "$ac_link") 2>conftest.er1
18082   ac_status=$?
18083   grep -v '^ *+' conftest.er1 >conftest.err
18084   rm -f conftest.er1
18085   cat conftest.err >&5
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); } &&
18088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18089   { (case "(($ac_try" in
18090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091   *) ac_try_echo=$ac_try;;
18092 esac
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094   (eval "$ac_try") 2>&5
18095   ac_status=$?
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); }; } &&
18098          { ac_try='test -s conftest$ac_exeext'
18099   { (case "(($ac_try" in
18100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101   *) ac_try_echo=$ac_try;;
18102 esac
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104   (eval "$ac_try") 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); }; }; then
18108   eval "$as_ac_var=yes"
18109 else
18110   echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18112
18113         eval "$as_ac_var=no"
18114 fi
18115
18116 rm -f core conftest.err conftest.$ac_objext \
18117       conftest$ac_exeext conftest.$ac_ext
18118 fi
18119 ac_res=`eval echo '${'$as_ac_var'}'`
18120                { echo "$as_me:$LINENO: result: $ac_res" >&5
18121 echo "${ECHO_T}$ac_res" >&6; }
18122 if test `eval echo '${'$as_ac_var'}'` = yes; then
18123   cat >>confdefs.h <<_ACEOF
18124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18125 _ACEOF
18126
18127 fi
18128 done
18129
18130
18131
18132
18133
18134 for ac_func in powf fmodf strtof round
18135 do
18136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18140   echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18142   cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h.  */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h.  */
18148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18150 #define $ac_func innocuous_$ac_func
18151
18152 /* System header to define __stub macros and hopefully few prototypes,
18153     which can conflict with char $ac_func (); below.
18154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18155     <limits.h> exists even on freestanding compilers.  */
18156
18157 #ifdef __STDC__
18158 # include <limits.h>
18159 #else
18160 # include <assert.h>
18161 #endif
18162
18163 #undef $ac_func
18164
18165 /* Override any GCC internal prototype to avoid an error.
18166    Use char because int might match the return type of a GCC
18167    builtin and then its argument prototype would still apply.  */
18168 #ifdef __cplusplus
18169 extern "C"
18170 #endif
18171 char $ac_func ();
18172 /* The GNU C library defines this for functions which it implements
18173     to always fail with ENOSYS.  Some functions are actually named
18174     something starting with __ and the normal name is an alias.  */
18175 #if defined __stub_$ac_func || defined __stub___$ac_func
18176 choke me
18177 #endif
18178
18179 int
18180 main ()
18181 {
18182 return $ac_func ();
18183   ;
18184   return 0;
18185 }
18186 _ACEOF
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191   *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194   (eval "$ac_link") 2>conftest.er1
18195   ac_status=$?
18196   grep -v '^ *+' conftest.er1 >conftest.err
18197   rm -f conftest.er1
18198   cat conftest.err >&5
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); } &&
18201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18202   { (case "(($ac_try" in
18203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204   *) ac_try_echo=$ac_try;;
18205 esac
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207   (eval "$ac_try") 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); }; } &&
18211          { ac_try='test -s conftest$ac_exeext'
18212   { (case "(($ac_try" in
18213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214   *) ac_try_echo=$ac_try;;
18215 esac
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217   (eval "$ac_try") 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; }; then
18221   eval "$as_ac_var=yes"
18222 else
18223   echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18225
18226         eval "$as_ac_var=no"
18227 fi
18228
18229 rm -f core conftest.err conftest.$ac_objext \
18230       conftest$ac_exeext conftest.$ac_ext
18231 fi
18232 ac_res=`eval echo '${'$as_ac_var'}'`
18233                { echo "$as_me:$LINENO: result: $ac_res" >&5
18234 echo "${ECHO_T}$ac_res" >&6; }
18235 if test `eval echo '${'$as_ac_var'}'` = yes; then
18236   cat >>confdefs.h <<_ACEOF
18237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18238 _ACEOF
18239
18240 fi
18241 done
18242
18243
18244
18245
18246
18247
18248 for ac_func in log log2 log10 exp exp2
18249 do
18250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18254   echo $ECHO_N "(cached) $ECHO_C" >&6
18255 else
18256   cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h.  */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h.  */
18262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18264 #define $ac_func innocuous_$ac_func
18265
18266 /* System header to define __stub macros and hopefully few prototypes,
18267     which can conflict with char $ac_func (); below.
18268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18269     <limits.h> exists even on freestanding compilers.  */
18270
18271 #ifdef __STDC__
18272 # include <limits.h>
18273 #else
18274 # include <assert.h>
18275 #endif
18276
18277 #undef $ac_func
18278
18279 /* Override any GCC internal prototype to avoid an error.
18280    Use char because int might match the return type of a GCC
18281    builtin and then its argument prototype would still apply.  */
18282 #ifdef __cplusplus
18283 extern "C"
18284 #endif
18285 char $ac_func ();
18286 /* The GNU C library defines this for functions which it implements
18287     to always fail with ENOSYS.  Some functions are actually named
18288     something starting with __ and the normal name is an alias.  */
18289 #if defined __stub_$ac_func || defined __stub___$ac_func
18290 choke me
18291 #endif
18292
18293 int
18294 main ()
18295 {
18296 return $ac_func ();
18297   ;
18298   return 0;
18299 }
18300 _ACEOF
18301 rm -f conftest.$ac_objext conftest$ac_exeext
18302 if { (ac_try="$ac_link"
18303 case "(($ac_try" in
18304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305   *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308   (eval "$ac_link") 2>conftest.er1
18309   ac_status=$?
18310   grep -v '^ *+' conftest.er1 >conftest.err
18311   rm -f conftest.er1
18312   cat conftest.err >&5
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); } &&
18315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18316   { (case "(($ac_try" in
18317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318   *) ac_try_echo=$ac_try;;
18319 esac
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321   (eval "$ac_try") 2>&5
18322   ac_status=$?
18323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); }; } &&
18325          { ac_try='test -s conftest$ac_exeext'
18326   { (case "(($ac_try" in
18327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328   *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331   (eval "$ac_try") 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; }; then
18335   eval "$as_ac_var=yes"
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340         eval "$as_ac_var=no"
18341 fi
18342
18343 rm -f core conftest.err conftest.$ac_objext \
18344       conftest$ac_exeext conftest.$ac_ext
18345 fi
18346 ac_res=`eval echo '${'$as_ac_var'}'`
18347                { echo "$as_me:$LINENO: result: $ac_res" >&5
18348 echo "${ECHO_T}$ac_res" >&6; }
18349 if test `eval echo '${'$as_ac_var'}'` = yes; then
18350   cat >>confdefs.h <<_ACEOF
18351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18352 _ACEOF
18353
18354 fi
18355 done
18356
18357
18358
18359
18360
18361
18362 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18363 do
18364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370   cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h.  */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h.  */
18376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18378 #define $ac_func innocuous_$ac_func
18379
18380 /* System header to define __stub macros and hopefully few prototypes,
18381     which can conflict with char $ac_func (); below.
18382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18383     <limits.h> exists even on freestanding compilers.  */
18384
18385 #ifdef __STDC__
18386 # include <limits.h>
18387 #else
18388 # include <assert.h>
18389 #endif
18390
18391 #undef $ac_func
18392
18393 /* Override any GCC internal prototype to avoid an error.
18394    Use char because int might match the return type of a GCC
18395    builtin and then its argument prototype would still apply.  */
18396 #ifdef __cplusplus
18397 extern "C"
18398 #endif
18399 char $ac_func ();
18400 /* The GNU C library defines this for functions which it implements
18401     to always fail with ENOSYS.  Some functions are actually named
18402     something starting with __ and the normal name is an alias.  */
18403 #if defined __stub_$ac_func || defined __stub___$ac_func
18404 choke me
18405 #endif
18406
18407 int
18408 main ()
18409 {
18410 return $ac_func ();
18411   ;
18412   return 0;
18413 }
18414 _ACEOF
18415 rm -f conftest.$ac_objext conftest$ac_exeext
18416 if { (ac_try="$ac_link"
18417 case "(($ac_try" in
18418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419   *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422   (eval "$ac_link") 2>conftest.er1
18423   ac_status=$?
18424   grep -v '^ *+' conftest.er1 >conftest.err
18425   rm -f conftest.er1
18426   cat conftest.err >&5
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); } &&
18429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18430   { (case "(($ac_try" in
18431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432   *) ac_try_echo=$ac_try;;
18433 esac
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435   (eval "$ac_try") 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; } &&
18439          { ac_try='test -s conftest$ac_exeext'
18440   { (case "(($ac_try" in
18441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442   *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445   (eval "$ac_try") 2>&5
18446   ac_status=$?
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); }; }; then
18449   eval "$as_ac_var=yes"
18450 else
18451   echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18453
18454         eval "$as_ac_var=no"
18455 fi
18456
18457 rm -f core conftest.err conftest.$ac_objext \
18458       conftest$ac_exeext conftest.$ac_ext
18459 fi
18460 ac_res=`eval echo '${'$as_ac_var'}'`
18461                { echo "$as_me:$LINENO: result: $ac_res" >&5
18462 echo "${ECHO_T}$ac_res" >&6; }
18463 if test `eval echo '${'$as_ac_var'}'` = yes; then
18464   cat >>confdefs.h <<_ACEOF
18465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18466 _ACEOF
18467
18468 fi
18469 done
18470
18471
18472
18473
18474 for ac_func in isatty mkdtemp mkstemp
18475 do
18476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18480   echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482   cat >conftest.$ac_ext <<_ACEOF
18483 /* confdefs.h.  */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h.  */
18488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18490 #define $ac_func innocuous_$ac_func
18491
18492 /* System header to define __stub macros and hopefully few prototypes,
18493     which can conflict with char $ac_func (); below.
18494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495     <limits.h> exists even on freestanding compilers.  */
18496
18497 #ifdef __STDC__
18498 # include <limits.h>
18499 #else
18500 # include <assert.h>
18501 #endif
18502
18503 #undef $ac_func
18504
18505 /* Override any GCC internal prototype to avoid an error.
18506    Use char because int might match the return type of a GCC
18507    builtin and then its argument prototype would still apply.  */
18508 #ifdef __cplusplus
18509 extern "C"
18510 #endif
18511 char $ac_func ();
18512 /* The GNU C library defines this for functions which it implements
18513     to always fail with ENOSYS.  Some functions are actually named
18514     something starting with __ and the normal name is an alias.  */
18515 #if defined __stub_$ac_func || defined __stub___$ac_func
18516 choke me
18517 #endif
18518
18519 int
18520 main ()
18521 {
18522 return $ac_func ();
18523   ;
18524   return 0;
18525 }
18526 _ACEOF
18527 rm -f conftest.$ac_objext conftest$ac_exeext
18528 if { (ac_try="$ac_link"
18529 case "(($ac_try" in
18530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531   *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534   (eval "$ac_link") 2>conftest.er1
18535   ac_status=$?
18536   grep -v '^ *+' conftest.er1 >conftest.err
18537   rm -f conftest.er1
18538   cat conftest.err >&5
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); } &&
18541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18542   { (case "(($ac_try" in
18543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544   *) ac_try_echo=$ac_try;;
18545 esac
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547   (eval "$ac_try") 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); }; } &&
18551          { ac_try='test -s conftest$ac_exeext'
18552   { (case "(($ac_try" in
18553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554   *) ac_try_echo=$ac_try;;
18555 esac
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557   (eval "$ac_try") 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; }; then
18561   eval "$as_ac_var=yes"
18562 else
18563   echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18565
18566         eval "$as_ac_var=no"
18567 fi
18568
18569 rm -f core conftest.err conftest.$ac_objext \
18570       conftest$ac_exeext conftest.$ac_ext
18571 fi
18572 ac_res=`eval echo '${'$as_ac_var'}'`
18573                { echo "$as_me:$LINENO: result: $ac_res" >&5
18574 echo "${ECHO_T}$ac_res" >&6; }
18575 if test `eval echo '${'$as_ac_var'}'` = yes; then
18576   cat >>confdefs.h <<_ACEOF
18577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18578 _ACEOF
18579
18580 fi
18581 done
18582
18583
18584
18585
18586
18587
18588
18589
18590 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18591 do
18592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18596   echo $ECHO_N "(cached) $ECHO_C" >&6
18597 else
18598   cat >conftest.$ac_ext <<_ACEOF
18599 /* confdefs.h.  */
18600 _ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h.  */
18604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18606 #define $ac_func innocuous_$ac_func
18607
18608 /* System header to define __stub macros and hopefully few prototypes,
18609     which can conflict with char $ac_func (); below.
18610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18611     <limits.h> exists even on freestanding compilers.  */
18612
18613 #ifdef __STDC__
18614 # include <limits.h>
18615 #else
18616 # include <assert.h>
18617 #endif
18618
18619 #undef $ac_func
18620
18621 /* Override any GCC internal prototype to avoid an error.
18622    Use char because int might match the return type of a GCC
18623    builtin and then its argument prototype would still apply.  */
18624 #ifdef __cplusplus
18625 extern "C"
18626 #endif
18627 char $ac_func ();
18628 /* The GNU C library defines this for functions which it implements
18629     to always fail with ENOSYS.  Some functions are actually named
18630     something starting with __ and the normal name is an alias.  */
18631 #if defined __stub_$ac_func || defined __stub___$ac_func
18632 choke me
18633 #endif
18634
18635 int
18636 main ()
18637 {
18638 return $ac_func ();
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (ac_try="$ac_link"
18645 case "(($ac_try" in
18646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647   *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650   (eval "$ac_link") 2>conftest.er1
18651   ac_status=$?
18652   grep -v '^ *+' conftest.er1 >conftest.err
18653   rm -f conftest.er1
18654   cat conftest.err >&5
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); } &&
18657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18658   { (case "(($ac_try" in
18659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660   *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663   (eval "$ac_try") 2>&5
18664   ac_status=$?
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); }; } &&
18667          { ac_try='test -s conftest$ac_exeext'
18668   { (case "(($ac_try" in
18669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670   *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673   (eval "$ac_try") 2>&5
18674   ac_status=$?
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); }; }; then
18677   eval "$as_ac_var=yes"
18678 else
18679   echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18681
18682         eval "$as_ac_var=no"
18683 fi
18684
18685 rm -f core conftest.err conftest.$ac_objext \
18686       conftest$ac_exeext conftest.$ac_ext
18687 fi
18688 ac_res=`eval echo '${'$as_ac_var'}'`
18689                { echo "$as_me:$LINENO: result: $ac_res" >&5
18690 echo "${ECHO_T}$ac_res" >&6; }
18691 if test `eval echo '${'$as_ac_var'}'` = yes; then
18692   cat >>confdefs.h <<_ACEOF
18693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18694 _ACEOF
18695
18696 fi
18697 done
18698
18699
18700
18701
18702
18703 for ac_func in strerror strerror_r setenv arc4random
18704 do
18705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18719 #define $ac_func innocuous_$ac_func
18720
18721 /* System header to define __stub macros and hopefully few prototypes,
18722     which can conflict with char $ac_func (); below.
18723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18724     <limits.h> exists even on freestanding compilers.  */
18725
18726 #ifdef __STDC__
18727 # include <limits.h>
18728 #else
18729 # include <assert.h>
18730 #endif
18731
18732 #undef $ac_func
18733
18734 /* Override any GCC internal prototype to avoid an error.
18735    Use char because int might match the return type of a GCC
18736    builtin and then its argument prototype would still apply.  */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 char $ac_func ();
18741 /* The GNU C library defines this for functions which it implements
18742     to always fail with ENOSYS.  Some functions are actually named
18743     something starting with __ and the normal name is an alias.  */
18744 #if defined __stub_$ac_func || defined __stub___$ac_func
18745 choke me
18746 #endif
18747
18748 int
18749 main ()
18750 {
18751 return $ac_func ();
18752   ;
18753   return 0;
18754 }
18755 _ACEOF
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (ac_try="$ac_link"
18758 case "(($ac_try" in
18759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760   *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763   (eval "$ac_link") 2>conftest.er1
18764   ac_status=$?
18765   grep -v '^ *+' conftest.er1 >conftest.err
18766   rm -f conftest.er1
18767   cat conftest.err >&5
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); } &&
18770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18771   { (case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776   (eval "$ac_try") 2>&5
18777   ac_status=$?
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); }; } &&
18780          { ac_try='test -s conftest$ac_exeext'
18781   { (case "(($ac_try" in
18782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783   *) ac_try_echo=$ac_try;;
18784 esac
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786   (eval "$ac_try") 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; }; then
18790   eval "$as_ac_var=yes"
18791 else
18792   echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795         eval "$as_ac_var=no"
18796 fi
18797
18798 rm -f core conftest.err conftest.$ac_objext \
18799       conftest$ac_exeext conftest.$ac_ext
18800 fi
18801 ac_res=`eval echo '${'$as_ac_var'}'`
18802                { echo "$as_me:$LINENO: result: $ac_res" >&5
18803 echo "${ECHO_T}$ac_res" >&6; }
18804 if test `eval echo '${'$as_ac_var'}'` = yes; then
18805   cat >>confdefs.h <<_ACEOF
18806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18807 _ACEOF
18808
18809 fi
18810 done
18811
18812
18813
18814
18815
18816 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18817 do
18818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18822   echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824   cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h.  */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h.  */
18830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18832 #define $ac_func innocuous_$ac_func
18833
18834 /* System header to define __stub macros and hopefully few prototypes,
18835     which can conflict with char $ac_func (); below.
18836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18837     <limits.h> exists even on freestanding compilers.  */
18838
18839 #ifdef __STDC__
18840 # include <limits.h>
18841 #else
18842 # include <assert.h>
18843 #endif
18844
18845 #undef $ac_func
18846
18847 /* Override any GCC internal prototype to avoid an error.
18848    Use char because int might match the return type of a GCC
18849    builtin and then its argument prototype would still apply.  */
18850 #ifdef __cplusplus
18851 extern "C"
18852 #endif
18853 char $ac_func ();
18854 /* The GNU C library defines this for functions which it implements
18855     to always fail with ENOSYS.  Some functions are actually named
18856     something starting with __ and the normal name is an alias.  */
18857 #if defined __stub_$ac_func || defined __stub___$ac_func
18858 choke me
18859 #endif
18860
18861 int
18862 main ()
18863 {
18864 return $ac_func ();
18865   ;
18866   return 0;
18867 }
18868 _ACEOF
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873   *) ac_try_echo=$ac_try;;
18874 esac
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876   (eval "$ac_link") 2>conftest.er1
18877   ac_status=$?
18878   grep -v '^ *+' conftest.er1 >conftest.err
18879   rm -f conftest.er1
18880   cat conftest.err >&5
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); } &&
18883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18884   { (case "(($ac_try" in
18885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886   *) ac_try_echo=$ac_try;;
18887 esac
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889   (eval "$ac_try") 2>&5
18890   ac_status=$?
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); }; } &&
18893          { ac_try='test -s conftest$ac_exeext'
18894   { (case "(($ac_try" in
18895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896   *) ac_try_echo=$ac_try;;
18897 esac
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899   (eval "$ac_try") 2>&5
18900   ac_status=$?
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); }; }; then
18903   eval "$as_ac_var=yes"
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908         eval "$as_ac_var=no"
18909 fi
18910
18911 rm -f core conftest.err conftest.$ac_objext \
18912       conftest$ac_exeext conftest.$ac_ext
18913 fi
18914 ac_res=`eval echo '${'$as_ac_var'}'`
18915                { echo "$as_me:$LINENO: result: $ac_res" >&5
18916 echo "${ECHO_T}$ac_res" >&6; }
18917 if test `eval echo '${'$as_ac_var'}'` = yes; then
18918   cat >>confdefs.h <<_ACEOF
18919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18920 _ACEOF
18921
18922 fi
18923 done
18924
18925
18926
18927
18928
18929
18930 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18931 do
18932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18936   echo $ECHO_N "(cached) $ECHO_C" >&6
18937 else
18938   cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h.  */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h.  */
18944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18946 #define $ac_func innocuous_$ac_func
18947
18948 /* System header to define __stub macros and hopefully few prototypes,
18949     which can conflict with char $ac_func (); below.
18950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18951     <limits.h> exists even on freestanding compilers.  */
18952
18953 #ifdef __STDC__
18954 # include <limits.h>
18955 #else
18956 # include <assert.h>
18957 #endif
18958
18959 #undef $ac_func
18960
18961 /* Override any GCC internal prototype to avoid an error.
18962    Use char because int might match the return type of a GCC
18963    builtin and then its argument prototype would still apply.  */
18964 #ifdef __cplusplus
18965 extern "C"
18966 #endif
18967 char $ac_func ();
18968 /* The GNU C library defines this for functions which it implements
18969     to always fail with ENOSYS.  Some functions are actually named
18970     something starting with __ and the normal name is an alias.  */
18971 #if defined __stub_$ac_func || defined __stub___$ac_func
18972 choke me
18973 #endif
18974
18975 int
18976 main ()
18977 {
18978 return $ac_func ();
18979   ;
18980   return 0;
18981 }
18982 _ACEOF
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990   (eval "$ac_link") 2>conftest.er1
18991   ac_status=$?
18992   grep -v '^ *+' conftest.er1 >conftest.err
18993   rm -f conftest.er1
18994   cat conftest.err >&5
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); } &&
18997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998   { (case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003   (eval "$ac_try") 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); }; } &&
19007          { ac_try='test -s conftest$ac_exeext'
19008   { (case "(($ac_try" in
19009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010   *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013   (eval "$ac_try") 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); }; }; then
19017   eval "$as_ac_var=yes"
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022         eval "$as_ac_var=no"
19023 fi
19024
19025 rm -f core conftest.err conftest.$ac_objext \
19026       conftest$ac_exeext conftest.$ac_ext
19027 fi
19028 ac_res=`eval echo '${'$as_ac_var'}'`
19029                { echo "$as_me:$LINENO: result: $ac_res" >&5
19030 echo "${ECHO_T}$ac_res" >&6; }
19031 if test `eval echo '${'$as_ac_var'}'` = yes; then
19032   cat >>confdefs.h <<_ACEOF
19033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19034 _ACEOF
19035
19036 fi
19037 done
19038
19039 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19040 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19041 if test "${llvm_cv_c_printf_a+set}" = set; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   ac_ext=c
19045 ac_cpp='$CPP $CPPFLAGS'
19046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19049
19050  if test "$cross_compiling" = yes; then
19051   llvmac_cv_c_printf_a=no
19052 else
19053   cat >conftest.$ac_ext <<_ACEOF
19054
19055   /* confdefs.h.  */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h.  */
19060
19061 #include <stdio.h>
19062 #include <stdlib.h>
19063
19064 int
19065 main ()
19066 {
19067
19068 volatile double A, B;
19069 char Buffer[100];
19070 A = 1;
19071 A /= 10.0;
19072 sprintf(Buffer, "%a", A);
19073 B = atof(Buffer);
19074 if (A != B)
19075   return (1);
19076 if (A != 0x1.999999999999ap-4)
19077   return (1);
19078 return (0);
19079   ;
19080   return 0;
19081 }
19082 _ACEOF
19083 rm -f conftest$ac_exeext
19084 if { (ac_try="$ac_link"
19085 case "(($ac_try" in
19086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19087   *) ac_try_echo=$ac_try;;
19088 esac
19089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19090   (eval "$ac_link") 2>&5
19091   ac_status=$?
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19094   { (case "(($ac_try" in
19095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096   *) ac_try_echo=$ac_try;;
19097 esac
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099   (eval "$ac_try") 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); }; }; then
19103   llvm_cv_c_printf_a=yes
19104 else
19105   echo "$as_me: program exited with status $ac_status" >&5
19106 echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19108
19109 ( exit $ac_status )
19110 llvmac_cv_c_printf_a=no
19111 fi
19112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19113 fi
19114
19115
19116  ac_ext=c
19117 ac_cpp='$CPP $CPPFLAGS'
19118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19121
19122 fi
19123 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19124 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19125  if test "$llvm_cv_c_printf_a" = "yes"; then
19126
19127 cat >>confdefs.h <<\_ACEOF
19128 #define HAVE_PRINTF_A 1
19129 _ACEOF
19130
19131  fi
19132
19133
19134
19135   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19136 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19137 if test "${ac_cv_func_rand48+set}" = set; then
19138   echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140
19141     ac_ext=cpp
19142 ac_cpp='$CXXCPP $CPPFLAGS'
19143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19146
19147     cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h.  */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h.  */
19153 #include <stdlib.h>
19154 int
19155 main ()
19156 {
19157 srand48(0);lrand48();drand48();
19158   ;
19159   return 0;
19160 }
19161 _ACEOF
19162 rm -f conftest.$ac_objext
19163 if { (ac_try="$ac_compile"
19164 case "(($ac_try" in
19165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166   *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169   (eval "$ac_compile") 2>conftest.er1
19170   ac_status=$?
19171   grep -v '^ *+' conftest.er1 >conftest.err
19172   rm -f conftest.er1
19173   cat conftest.err >&5
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); } &&
19176          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19177   { (case "(($ac_try" in
19178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179   *) ac_try_echo=$ac_try;;
19180 esac
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182   (eval "$ac_try") 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); }; } &&
19186          { ac_try='test -s conftest.$ac_objext'
19187   { (case "(($ac_try" in
19188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189   *) ac_try_echo=$ac_try;;
19190 esac
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192   (eval "$ac_try") 2>&5
19193   ac_status=$?
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); }; }; then
19196   ac_cv_func_rand48=yes
19197 else
19198   echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19200
19201         ac_cv_func_rand48=no
19202 fi
19203
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205     ac_ext=c
19206 ac_cpp='$CPP $CPPFLAGS'
19207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19210
19211
19212 fi
19213 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19214 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19215
19216 if test "$ac_cv_func_rand48" = "yes" ; then
19217
19218 cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_RAND48 1
19220 _ACEOF
19221
19222 fi
19223
19224
19225 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19226 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19227 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19228   echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230   cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h.  */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h.  */
19236 $ac_includes_default
19237 int
19238 main ()
19239 {
19240 #ifndef strerror_s
19241   char *p = (char *) strerror_s;
19242   return !p;
19243 #endif
19244
19245   ;
19246   return 0;
19247 }
19248 _ACEOF
19249 rm -f conftest.$ac_objext
19250 if { (ac_try="$ac_compile"
19251 case "(($ac_try" in
19252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253   *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256   (eval "$ac_compile") 2>conftest.er1
19257   ac_status=$?
19258   grep -v '^ *+' conftest.er1 >conftest.err
19259   rm -f conftest.er1
19260   cat conftest.err >&5
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); } &&
19263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19264   { (case "(($ac_try" in
19265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266   *) ac_try_echo=$ac_try;;
19267 esac
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269   (eval "$ac_try") 2>&5
19270   ac_status=$?
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); }; } &&
19273          { ac_try='test -s conftest.$ac_objext'
19274   { (case "(($ac_try" in
19275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276   *) ac_try_echo=$ac_try;;
19277 esac
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279   (eval "$ac_try") 2>&5
19280   ac_status=$?
19281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282   (exit $ac_status); }; }; then
19283   ac_cv_have_decl_strerror_s=yes
19284 else
19285   echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19287
19288         ac_cv_have_decl_strerror_s=no
19289 fi
19290
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292 fi
19293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19294 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19295 if test $ac_cv_have_decl_strerror_s = yes; then
19296
19297 cat >>confdefs.h <<_ACEOF
19298 #define HAVE_DECL_STRERROR_S 1
19299 _ACEOF
19300
19301
19302 else
19303   cat >>confdefs.h <<_ACEOF
19304 #define HAVE_DECL_STRERROR_S 0
19305 _ACEOF
19306
19307
19308 fi
19309
19310
19311
19312 if test "$llvm_cv_os_type" = "MingW" ; then
19313   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19314 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19315 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19316   echo $ECHO_N "(cached) $ECHO_C" >&6
19317 else
19318   ac_check_lib_save_LIBS=$LIBS
19319 LIBS="-lgcc  $LIBS"
19320 cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326
19327 /* Override any GCC internal prototype to avoid an error.
19328    Use char because int might match the return type of a GCC
19329    builtin and then its argument prototype would still apply.  */
19330 #ifdef __cplusplus
19331 extern "C"
19332 #endif
19333 char _alloca ();
19334 int
19335 main ()
19336 {
19337 return _alloca ();
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (ac_try="$ac_link"
19344 case "(($ac_try" in
19345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346   *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349   (eval "$ac_link") 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357   { (case "(($ac_try" in
19358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359   *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362   (eval "$ac_try") 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; } &&
19366          { ac_try='test -s conftest$ac_exeext'
19367   { (case "(($ac_try" in
19368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369   *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372   (eval "$ac_try") 2>&5
19373   ac_status=$?
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); }; }; then
19376   ac_cv_lib_gcc__alloca=yes
19377 else
19378   echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19380
19381         ac_cv_lib_gcc__alloca=no
19382 fi
19383
19384 rm -f core conftest.err conftest.$ac_objext \
19385       conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19387 fi
19388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19389 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19390 if test $ac_cv_lib_gcc__alloca = yes; then
19391
19392 cat >>confdefs.h <<\_ACEOF
19393 #define HAVE__ALLOCA 1
19394 _ACEOF
19395
19396 fi
19397
19398   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19399 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19400 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19401   echo $ECHO_N "(cached) $ECHO_C" >&6
19402 else
19403   ac_check_lib_save_LIBS=$LIBS
19404 LIBS="-lgcc  $LIBS"
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h.  */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h.  */
19411
19412 /* Override any GCC internal prototype to avoid an error.
19413    Use char because int might match the return type of a GCC
19414    builtin and then its argument prototype would still apply.  */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char __alloca ();
19419 int
19420 main ()
19421 {
19422 return __alloca ();
19423   ;
19424   return 0;
19425 }
19426 _ACEOF
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (ac_try="$ac_link"
19429 case "(($ac_try" in
19430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431   *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434   (eval "$ac_link") 2>conftest.er1
19435   ac_status=$?
19436   grep -v '^ *+' conftest.er1 >conftest.err
19437   rm -f conftest.er1
19438   cat conftest.err >&5
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); } &&
19441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19442   { (case "(($ac_try" in
19443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444   *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447   (eval "$ac_try") 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }; } &&
19451          { ac_try='test -s conftest$ac_exeext'
19452   { (case "(($ac_try" in
19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454   *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457   (eval "$ac_try") 2>&5
19458   ac_status=$?
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); }; }; then
19461   ac_cv_lib_gcc___alloca=yes
19462 else
19463   echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466         ac_cv_lib_gcc___alloca=no
19467 fi
19468
19469 rm -f core conftest.err conftest.$ac_objext \
19470       conftest$ac_exeext conftest.$ac_ext
19471 LIBS=$ac_check_lib_save_LIBS
19472 fi
19473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19474 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19475 if test $ac_cv_lib_gcc___alloca = yes; then
19476
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE___ALLOCA 1
19479 _ACEOF
19480
19481 fi
19482
19483   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19484 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19485 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19486   echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488   ac_check_lib_save_LIBS=$LIBS
19489 LIBS="-lgcc  $LIBS"
19490 cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h.  */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h.  */
19496
19497 /* Override any GCC internal prototype to avoid an error.
19498    Use char because int might match the return type of a GCC
19499    builtin and then its argument prototype would still apply.  */
19500 #ifdef __cplusplus
19501 extern "C"
19502 #endif
19503 char __chkstk ();
19504 int
19505 main ()
19506 {
19507 return __chkstk ();
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext conftest$ac_exeext
19513 if { (ac_try="$ac_link"
19514 case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519   (eval "$ac_link") 2>conftest.er1
19520   ac_status=$?
19521   grep -v '^ *+' conftest.er1 >conftest.err
19522   rm -f conftest.er1
19523   cat conftest.err >&5
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); } &&
19526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19527   { (case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532   (eval "$ac_try") 2>&5
19533   ac_status=$?
19534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535   (exit $ac_status); }; } &&
19536          { ac_try='test -s conftest$ac_exeext'
19537   { (case "(($ac_try" in
19538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539   *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542   (eval "$ac_try") 2>&5
19543   ac_status=$?
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); }; }; then
19546   ac_cv_lib_gcc___chkstk=yes
19547 else
19548   echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551         ac_cv_lib_gcc___chkstk=no
19552 fi
19553
19554 rm -f core conftest.err conftest.$ac_objext \
19555       conftest$ac_exeext conftest.$ac_ext
19556 LIBS=$ac_check_lib_save_LIBS
19557 fi
19558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19559 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19560 if test $ac_cv_lib_gcc___chkstk = yes; then
19561
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE___CHKSTK 1
19564 _ACEOF
19565
19566 fi
19567
19568   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19569 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19570 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19571   echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573   ac_check_lib_save_LIBS=$LIBS
19574 LIBS="-lgcc  $LIBS"
19575 cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h.  */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h.  */
19581
19582 /* Override any GCC internal prototype to avoid an error.
19583    Use char because int might match the return type of a GCC
19584    builtin and then its argument prototype would still apply.  */
19585 #ifdef __cplusplus
19586 extern "C"
19587 #endif
19588 char ___chkstk ();
19589 int
19590 main ()
19591 {
19592 return ___chkstk ();
19593   ;
19594   return 0;
19595 }
19596 _ACEOF
19597 rm -f conftest.$ac_objext conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601   *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604   (eval "$ac_link") 2>conftest.er1
19605   ac_status=$?
19606   grep -v '^ *+' conftest.er1 >conftest.err
19607   rm -f conftest.er1
19608   cat conftest.err >&5
19609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610   (exit $ac_status); } &&
19611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19612   { (case "(($ac_try" in
19613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614   *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617   (eval "$ac_try") 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; } &&
19621          { ac_try='test -s conftest$ac_exeext'
19622   { (case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_try") 2>&5
19628   ac_status=$?
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); }; }; then
19631   ac_cv_lib_gcc____chkstk=yes
19632 else
19633   echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19635
19636         ac_cv_lib_gcc____chkstk=no
19637 fi
19638
19639 rm -f core conftest.err conftest.$ac_objext \
19640       conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19642 fi
19643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19644 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19645 if test $ac_cv_lib_gcc____chkstk = yes; then
19646
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE____CHKSTK 1
19649 _ACEOF
19650
19651 fi
19652
19653
19654   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19655 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19656 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19657   echo $ECHO_N "(cached) $ECHO_C" >&6
19658 else
19659   ac_check_lib_save_LIBS=$LIBS
19660 LIBS="-lgcc  $LIBS"
19661 cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h.  */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h.  */
19667
19668 /* Override any GCC internal prototype to avoid an error.
19669    Use char because int might match the return type of a GCC
19670    builtin and then its argument prototype would still apply.  */
19671 #ifdef __cplusplus
19672 extern "C"
19673 #endif
19674 char __ashldi3 ();
19675 int
19676 main ()
19677 {
19678 return __ashldi3 ();
19679   ;
19680   return 0;
19681 }
19682 _ACEOF
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (ac_try="$ac_link"
19685 case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690   (eval "$ac_link") 2>conftest.er1
19691   ac_status=$?
19692   grep -v '^ *+' conftest.er1 >conftest.err
19693   rm -f conftest.er1
19694   cat conftest.err >&5
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); } &&
19697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19698   { (case "(($ac_try" in
19699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700   *) ac_try_echo=$ac_try;;
19701 esac
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703   (eval "$ac_try") 2>&5
19704   ac_status=$?
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); }; } &&
19707          { ac_try='test -s conftest$ac_exeext'
19708   { (case "(($ac_try" in
19709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710   *) ac_try_echo=$ac_try;;
19711 esac
19712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713   (eval "$ac_try") 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; }; then
19717   ac_cv_lib_gcc___ashldi3=yes
19718 else
19719   echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19721
19722         ac_cv_lib_gcc___ashldi3=no
19723 fi
19724
19725 rm -f core conftest.err conftest.$ac_objext \
19726       conftest$ac_exeext conftest.$ac_ext
19727 LIBS=$ac_check_lib_save_LIBS
19728 fi
19729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19730 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19731 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19732
19733 cat >>confdefs.h <<\_ACEOF
19734 #define HAVE___ASHLDI3 1
19735 _ACEOF
19736
19737 fi
19738
19739   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19740 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19741 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19742   echo $ECHO_N "(cached) $ECHO_C" >&6
19743 else
19744   ac_check_lib_save_LIBS=$LIBS
19745 LIBS="-lgcc  $LIBS"
19746 cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h.  */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h.  */
19752
19753 /* Override any GCC internal prototype to avoid an error.
19754    Use char because int might match the return type of a GCC
19755    builtin and then its argument prototype would still apply.  */
19756 #ifdef __cplusplus
19757 extern "C"
19758 #endif
19759 char __ashrdi3 ();
19760 int
19761 main ()
19762 {
19763 return __ashrdi3 ();
19764   ;
19765   return 0;
19766 }
19767 _ACEOF
19768 rm -f conftest.$ac_objext conftest$ac_exeext
19769 if { (ac_try="$ac_link"
19770 case "(($ac_try" in
19771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772   *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775   (eval "$ac_link") 2>conftest.er1
19776   ac_status=$?
19777   grep -v '^ *+' conftest.er1 >conftest.err
19778   rm -f conftest.er1
19779   cat conftest.err >&5
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } &&
19782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19783   { (case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788   (eval "$ac_try") 2>&5
19789   ac_status=$?
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); }; } &&
19792          { ac_try='test -s conftest$ac_exeext'
19793   { (case "(($ac_try" in
19794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795   *) ac_try_echo=$ac_try;;
19796 esac
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798   (eval "$ac_try") 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; }; then
19802   ac_cv_lib_gcc___ashrdi3=yes
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807         ac_cv_lib_gcc___ashrdi3=no
19808 fi
19809
19810 rm -f core conftest.err conftest.$ac_objext \
19811       conftest$ac_exeext conftest.$ac_ext
19812 LIBS=$ac_check_lib_save_LIBS
19813 fi
19814 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19815 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19816 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19817
19818 cat >>confdefs.h <<\_ACEOF
19819 #define HAVE___ASHRDI3 1
19820 _ACEOF
19821
19822 fi
19823
19824   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19825 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19826 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829   ac_check_lib_save_LIBS=$LIBS
19830 LIBS="-lgcc  $LIBS"
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837
19838 /* Override any GCC internal prototype to avoid an error.
19839    Use char because int might match the return type of a GCC
19840    builtin and then its argument prototype would still apply.  */
19841 #ifdef __cplusplus
19842 extern "C"
19843 #endif
19844 char __divdi3 ();
19845 int
19846 main ()
19847 {
19848 return __divdi3 ();
19849   ;
19850   return 0;
19851 }
19852 _ACEOF
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857   *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860   (eval "$ac_link") 2>conftest.er1
19861   ac_status=$?
19862   grep -v '^ *+' conftest.er1 >conftest.err
19863   rm -f conftest.er1
19864   cat conftest.err >&5
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); } &&
19867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19868   { (case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_try") 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; } &&
19877          { ac_try='test -s conftest$ac_exeext'
19878   { (case "(($ac_try" in
19879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880   *) ac_try_echo=$ac_try;;
19881 esac
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883   (eval "$ac_try") 2>&5
19884   ac_status=$?
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); }; }; then
19887   ac_cv_lib_gcc___divdi3=yes
19888 else
19889   echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892         ac_cv_lib_gcc___divdi3=no
19893 fi
19894
19895 rm -f core conftest.err conftest.$ac_objext \
19896       conftest$ac_exeext conftest.$ac_ext
19897 LIBS=$ac_check_lib_save_LIBS
19898 fi
19899 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19900 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19901 if test $ac_cv_lib_gcc___divdi3 = yes; then
19902
19903 cat >>confdefs.h <<\_ACEOF
19904 #define HAVE___DIVDI3 1
19905 _ACEOF
19906
19907 fi
19908
19909   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19910 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19911 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19912   echo $ECHO_N "(cached) $ECHO_C" >&6
19913 else
19914   ac_check_lib_save_LIBS=$LIBS
19915 LIBS="-lgcc  $LIBS"
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922
19923 /* Override any GCC internal prototype to avoid an error.
19924    Use char because int might match the return type of a GCC
19925    builtin and then its argument prototype would still apply.  */
19926 #ifdef __cplusplus
19927 extern "C"
19928 #endif
19929 char __fixdfdi ();
19930 int
19931 main ()
19932 {
19933 return __fixdfdi ();
19934   ;
19935   return 0;
19936 }
19937 _ACEOF
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (ac_try="$ac_link"
19940 case "(($ac_try" in
19941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942   *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945   (eval "$ac_link") 2>conftest.er1
19946   ac_status=$?
19947   grep -v '^ *+' conftest.er1 >conftest.err
19948   rm -f conftest.er1
19949   cat conftest.err >&5
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); } &&
19952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19953   { (case "(($ac_try" in
19954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955   *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958   (eval "$ac_try") 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); }; } &&
19962          { ac_try='test -s conftest$ac_exeext'
19963   { (case "(($ac_try" in
19964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965   *) ac_try_echo=$ac_try;;
19966 esac
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968   (eval "$ac_try") 2>&5
19969   ac_status=$?
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); }; }; then
19972   ac_cv_lib_gcc___fixdfdi=yes
19973 else
19974   echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977         ac_cv_lib_gcc___fixdfdi=no
19978 fi
19979
19980 rm -f core conftest.err conftest.$ac_objext \
19981       conftest$ac_exeext conftest.$ac_ext
19982 LIBS=$ac_check_lib_save_LIBS
19983 fi
19984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19985 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19986 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19987
19988 cat >>confdefs.h <<\_ACEOF
19989 #define HAVE___FIXDFDI 1
19990 _ACEOF
19991
19992 fi
19993
19994   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19995 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19996 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19997   echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999   ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-lgcc  $LIBS"
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h.  */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h.  */
20007
20008 /* Override any GCC internal prototype to avoid an error.
20009    Use char because int might match the return type of a GCC
20010    builtin and then its argument prototype would still apply.  */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char __fixsfdi ();
20015 int
20016 main ()
20017 {
20018 return __fixsfdi ();
20019   ;
20020   return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027   *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030   (eval "$ac_link") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } &&
20037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20038   { (case "(($ac_try" in
20039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040   *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043   (eval "$ac_try") 2>&5
20044   ac_status=$?
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); }; } &&
20047          { ac_try='test -s conftest$ac_exeext'
20048   { (case "(($ac_try" in
20049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050   *) ac_try_echo=$ac_try;;
20051 esac
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053   (eval "$ac_try") 2>&5
20054   ac_status=$?
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); }; }; then
20057   ac_cv_lib_gcc___fixsfdi=yes
20058 else
20059   echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062         ac_cv_lib_gcc___fixsfdi=no
20063 fi
20064
20065 rm -f core conftest.err conftest.$ac_objext \
20066       conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20068 fi
20069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20070 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20071 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20072
20073 cat >>confdefs.h <<\_ACEOF
20074 #define HAVE___FIXSFDI 1
20075 _ACEOF
20076
20077 fi
20078
20079   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20080 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20081 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20082   echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084   ac_check_lib_save_LIBS=$LIBS
20085 LIBS="-lgcc  $LIBS"
20086 cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092
20093 /* Override any GCC internal prototype to avoid an error.
20094    Use char because int might match the return type of a GCC
20095    builtin and then its argument prototype would still apply.  */
20096 #ifdef __cplusplus
20097 extern "C"
20098 #endif
20099 char __floatdidf ();
20100 int
20101 main ()
20102 {
20103 return __floatdidf ();
20104   ;
20105   return 0;
20106 }
20107 _ACEOF
20108 rm -f conftest.$ac_objext conftest$ac_exeext
20109 if { (ac_try="$ac_link"
20110 case "(($ac_try" in
20111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112   *) ac_try_echo=$ac_try;;
20113 esac
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115   (eval "$ac_link") 2>conftest.er1
20116   ac_status=$?
20117   grep -v '^ *+' conftest.er1 >conftest.err
20118   rm -f conftest.er1
20119   cat conftest.err >&5
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); } &&
20122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20123   { (case "(($ac_try" in
20124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125   *) ac_try_echo=$ac_try;;
20126 esac
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128   (eval "$ac_try") 2>&5
20129   ac_status=$?
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); }; } &&
20132          { ac_try='test -s conftest$ac_exeext'
20133   { (case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_try") 2>&5
20139   ac_status=$?
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); }; }; then
20142   ac_cv_lib_gcc___floatdidf=yes
20143 else
20144   echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147         ac_cv_lib_gcc___floatdidf=no
20148 fi
20149
20150 rm -f core conftest.err conftest.$ac_objext \
20151       conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20153 fi
20154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20155 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20156 if test $ac_cv_lib_gcc___floatdidf = yes; then
20157
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE___FLOATDIDF 1
20160 _ACEOF
20161
20162 fi
20163
20164   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20165 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20166 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20167   echo $ECHO_N "(cached) $ECHO_C" >&6
20168 else
20169   ac_check_lib_save_LIBS=$LIBS
20170 LIBS="-lgcc  $LIBS"
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177
20178 /* Override any GCC internal prototype to avoid an error.
20179    Use char because int might match the return type of a GCC
20180    builtin and then its argument prototype would still apply.  */
20181 #ifdef __cplusplus
20182 extern "C"
20183 #endif
20184 char __lshrdi3 ();
20185 int
20186 main ()
20187 {
20188 return __lshrdi3 ();
20189   ;
20190   return 0;
20191 }
20192 _ACEOF
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_link") 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } &&
20207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20208   { (case "(($ac_try" in
20209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210   *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213   (eval "$ac_try") 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; } &&
20217          { ac_try='test -s conftest$ac_exeext'
20218   { (case "(($ac_try" in
20219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220   *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223   (eval "$ac_try") 2>&5
20224   ac_status=$?
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); }; }; then
20227   ac_cv_lib_gcc___lshrdi3=yes
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232         ac_cv_lib_gcc___lshrdi3=no
20233 fi
20234
20235 rm -f core conftest.err conftest.$ac_objext \
20236       conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20238 fi
20239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20240 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20241 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20242
20243 cat >>confdefs.h <<\_ACEOF
20244 #define HAVE___LSHRDI3 1
20245 _ACEOF
20246
20247 fi
20248
20249   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20250 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20251 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   ac_check_lib_save_LIBS=$LIBS
20255 LIBS="-lgcc  $LIBS"
20256 cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h.  */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h.  */
20262
20263 /* Override any GCC internal prototype to avoid an error.
20264    Use char because int might match the return type of a GCC
20265    builtin and then its argument prototype would still apply.  */
20266 #ifdef __cplusplus
20267 extern "C"
20268 #endif
20269 char __moddi3 ();
20270 int
20271 main ()
20272 {
20273 return __moddi3 ();
20274   ;
20275   return 0;
20276 }
20277 _ACEOF
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (ac_try="$ac_link"
20280 case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_link") 2>conftest.er1
20286   ac_status=$?
20287   grep -v '^ *+' conftest.er1 >conftest.err
20288   rm -f conftest.er1
20289   cat conftest.err >&5
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } &&
20292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20293   { (case "(($ac_try" in
20294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295   *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298   (eval "$ac_try") 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; } &&
20302          { ac_try='test -s conftest$ac_exeext'
20303   { (case "(($ac_try" in
20304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305   *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308   (eval "$ac_try") 2>&5
20309   ac_status=$?
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); }; }; then
20312   ac_cv_lib_gcc___moddi3=yes
20313 else
20314   echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20316
20317         ac_cv_lib_gcc___moddi3=no
20318 fi
20319
20320 rm -f core conftest.err conftest.$ac_objext \
20321       conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20323 fi
20324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20325 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20326 if test $ac_cv_lib_gcc___moddi3 = yes; then
20327
20328 cat >>confdefs.h <<\_ACEOF
20329 #define HAVE___MODDI3 1
20330 _ACEOF
20331
20332 fi
20333
20334   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20335 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20336 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   ac_check_lib_save_LIBS=$LIBS
20340 LIBS="-lgcc  $LIBS"
20341 cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h.  */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h.  */
20347
20348 /* Override any GCC internal prototype to avoid an error.
20349    Use char because int might match the return type of a GCC
20350    builtin and then its argument prototype would still apply.  */
20351 #ifdef __cplusplus
20352 extern "C"
20353 #endif
20354 char __udivdi3 ();
20355 int
20356 main ()
20357 {
20358 return __udivdi3 ();
20359   ;
20360   return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest.$ac_objext conftest$ac_exeext
20364 if { (ac_try="$ac_link"
20365 case "(($ac_try" in
20366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367   *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370   (eval "$ac_link") 2>conftest.er1
20371   ac_status=$?
20372   grep -v '^ *+' conftest.er1 >conftest.err
20373   rm -f conftest.er1
20374   cat conftest.err >&5
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); } &&
20377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20378   { (case "(($ac_try" in
20379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380   *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383   (eval "$ac_try") 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; } &&
20387          { ac_try='test -s conftest$ac_exeext'
20388   { (case "(($ac_try" in
20389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390   *) ac_try_echo=$ac_try;;
20391 esac
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393   (eval "$ac_try") 2>&5
20394   ac_status=$?
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); }; }; then
20397   ac_cv_lib_gcc___udivdi3=yes
20398 else
20399   echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20401
20402         ac_cv_lib_gcc___udivdi3=no
20403 fi
20404
20405 rm -f core conftest.err conftest.$ac_objext \
20406       conftest$ac_exeext conftest.$ac_ext
20407 LIBS=$ac_check_lib_save_LIBS
20408 fi
20409 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20410 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20411 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20412
20413 cat >>confdefs.h <<\_ACEOF
20414 #define HAVE___UDIVDI3 1
20415 _ACEOF
20416
20417 fi
20418
20419   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20420 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20421 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20422   echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424   ac_check_lib_save_LIBS=$LIBS
20425 LIBS="-lgcc  $LIBS"
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h.  */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h.  */
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 __umoddi3 ();
20440 int
20441 main ()
20442 {
20443 return __umoddi3 ();
20444   ;
20445   return 0;
20446 }
20447 _ACEOF
20448 rm -f conftest.$ac_objext conftest$ac_exeext
20449 if { (ac_try="$ac_link"
20450 case "(($ac_try" in
20451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452   *) ac_try_echo=$ac_try;;
20453 esac
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455   (eval "$ac_link") 2>conftest.er1
20456   ac_status=$?
20457   grep -v '^ *+' conftest.er1 >conftest.err
20458   rm -f conftest.er1
20459   cat conftest.err >&5
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); } &&
20462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20463   { (case "(($ac_try" in
20464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465   *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468   (eval "$ac_try") 2>&5
20469   ac_status=$?
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); }; } &&
20472          { ac_try='test -s conftest$ac_exeext'
20473   { (case "(($ac_try" in
20474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475   *) ac_try_echo=$ac_try;;
20476 esac
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478   (eval "$ac_try") 2>&5
20479   ac_status=$?
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); }; }; then
20482   ac_cv_lib_gcc___umoddi3=yes
20483 else
20484   echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20486
20487         ac_cv_lib_gcc___umoddi3=no
20488 fi
20489
20490 rm -f core conftest.err conftest.$ac_objext \
20491       conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20493 fi
20494 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20495 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20496 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20497
20498 cat >>confdefs.h <<\_ACEOF
20499 #define HAVE___UMODDI3 1
20500 _ACEOF
20501
20502 fi
20503
20504
20505   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20506 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20507 if test "${ac_cv_lib_gcc___main+set}" = set; then
20508   echo $ECHO_N "(cached) $ECHO_C" >&6
20509 else
20510   ac_check_lib_save_LIBS=$LIBS
20511 LIBS="-lgcc  $LIBS"
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h.  */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h.  */
20518
20519 /* Override any GCC internal prototype to avoid an error.
20520    Use char because int might match the return type of a GCC
20521    builtin and then its argument prototype would still apply.  */
20522 #ifdef __cplusplus
20523 extern "C"
20524 #endif
20525 char __main ();
20526 int
20527 main ()
20528 {
20529 return __main ();
20530   ;
20531   return 0;
20532 }
20533 _ACEOF
20534 rm -f conftest.$ac_objext conftest$ac_exeext
20535 if { (ac_try="$ac_link"
20536 case "(($ac_try" in
20537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538   *) ac_try_echo=$ac_try;;
20539 esac
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541   (eval "$ac_link") 2>conftest.er1
20542   ac_status=$?
20543   grep -v '^ *+' conftest.er1 >conftest.err
20544   rm -f conftest.er1
20545   cat conftest.err >&5
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); } &&
20548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20549   { (case "(($ac_try" in
20550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551   *) ac_try_echo=$ac_try;;
20552 esac
20553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554   (eval "$ac_try") 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); }; } &&
20558          { ac_try='test -s conftest$ac_exeext'
20559   { (case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564   (eval "$ac_try") 2>&5
20565   ac_status=$?
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); }; }; then
20568   ac_cv_lib_gcc___main=yes
20569 else
20570   echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573         ac_cv_lib_gcc___main=no
20574 fi
20575
20576 rm -f core conftest.err conftest.$ac_objext \
20577       conftest$ac_exeext conftest.$ac_ext
20578 LIBS=$ac_check_lib_save_LIBS
20579 fi
20580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20581 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20582 if test $ac_cv_lib_gcc___main = yes; then
20583
20584 cat >>confdefs.h <<\_ACEOF
20585 #define HAVE___MAIN 1
20586 _ACEOF
20587
20588 fi
20589
20590   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20591 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20592 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20593   echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20595   ac_check_lib_save_LIBS=$LIBS
20596 LIBS="-lgcc  $LIBS"
20597 cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h.  */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h.  */
20603
20604 /* Override any GCC internal prototype to avoid an error.
20605    Use char because int might match the return type of a GCC
20606    builtin and then its argument prototype would still apply.  */
20607 #ifdef __cplusplus
20608 extern "C"
20609 #endif
20610 char __cmpdi2 ();
20611 int
20612 main ()
20613 {
20614 return __cmpdi2 ();
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext conftest$ac_exeext
20620 if { (ac_try="$ac_link"
20621 case "(($ac_try" in
20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623   *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626   (eval "$ac_link") 2>conftest.er1
20627   ac_status=$?
20628   grep -v '^ *+' conftest.er1 >conftest.err
20629   rm -f conftest.er1
20630   cat conftest.err >&5
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); } &&
20633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634   { (case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639   (eval "$ac_try") 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); }; } &&
20643          { ac_try='test -s conftest$ac_exeext'
20644   { (case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_try") 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; }; then
20653   ac_cv_lib_gcc___cmpdi2=yes
20654 else
20655   echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20657
20658         ac_cv_lib_gcc___cmpdi2=no
20659 fi
20660
20661 rm -f core conftest.err conftest.$ac_objext \
20662       conftest$ac_exeext conftest.$ac_ext
20663 LIBS=$ac_check_lib_save_LIBS
20664 fi
20665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20666 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20667 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20668
20669 cat >>confdefs.h <<\_ACEOF
20670 #define HAVE___CMPDI2 1
20671 _ACEOF
20672
20673 fi
20674
20675 fi
20676
20677 if test "$llvm_cv_os_type" = "MingW" ; then
20678   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20679 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20680   cat >conftest.$ac_ext <<_ACEOF
20681
20682   /* confdefs.h.  */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h.  */
20687
20688     #include <windows.h>
20689     #include <imagehlp.h>
20690     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20691     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20692
20693
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699   *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702   (eval "$ac_compile") 2>conftest.er1
20703   ac_status=$?
20704   grep -v '^ *+' conftest.er1 >conftest.err
20705   rm -f conftest.er1
20706   cat conftest.err >&5
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } &&
20709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20710   { (case "(($ac_try" in
20711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712   *) ac_try_echo=$ac_try;;
20713 esac
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715   (eval "$ac_try") 2>&5
20716   ac_status=$?
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); }; } &&
20719          { ac_try='test -s conftest.$ac_objext'
20720   { (case "(($ac_try" in
20721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722   *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725   (eval "$ac_try") 2>&5
20726   ac_status=$?
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); }; }; then
20729
20730   { echo "$as_me:$LINENO: result: yes" >&5
20731 echo "${ECHO_T}yes" >&6; }
20732   llvm_cv_win32_elmcb_pcstr="PCSTR"
20733
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738
20739   { echo "$as_me:$LINENO: result: no" >&5
20740 echo "${ECHO_T}no" >&6; }
20741   llvm_cv_win32_elmcb_pcstr="PSTR"
20742
20743 fi
20744
20745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746
20747 cat >>confdefs.h <<_ACEOF
20748 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20749 _ACEOF
20750
20751 fi
20752
20753
20754
20755   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20756 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20757 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20758   echo $ECHO_N "(cached) $ECHO_C" >&6
20759 else
20760
20761     ac_ext=cpp
20762 ac_cpp='$CXXCPP $CPPFLAGS'
20763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20766
20767     cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773 #include <math.h>
20774 int
20775 main ()
20776 {
20777 float f; isnan(f);
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786   *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789   (eval "$ac_compile") 2>conftest.er1
20790   ac_status=$?
20791   grep -v '^ *+' conftest.er1 >conftest.err
20792   rm -f conftest.er1
20793   cat conftest.err >&5
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); } &&
20796          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20797   { (case "(($ac_try" in
20798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799   *) ac_try_echo=$ac_try;;
20800 esac
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802   (eval "$ac_try") 2>&5
20803   ac_status=$?
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); }; } &&
20806          { ac_try='test -s conftest.$ac_objext'
20807   { (case "(($ac_try" in
20808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809   *) ac_try_echo=$ac_try;;
20810 esac
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812   (eval "$ac_try") 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); }; }; then
20816   ac_cv_func_isnan_in_math_h=yes
20817 else
20818   echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821         ac_cv_func_isnan_in_math_h=no
20822 fi
20823
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825     ac_ext=c
20826 ac_cpp='$CPP $CPPFLAGS'
20827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20830
20831
20832 fi
20833 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20834 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20835
20836
20837 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20838
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_ISNAN_IN_MATH_H 1
20841 _ACEOF
20842
20843 fi
20844
20845
20846   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20847 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20848 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20849   echo $ECHO_N "(cached) $ECHO_C" >&6
20850 else
20851
20852     ac_ext=cpp
20853 ac_cpp='$CXXCPP $CPPFLAGS'
20854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20857
20858     cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864 #include <cmath>
20865 int
20866 main ()
20867 {
20868 float f; isnan(f);
20869   ;
20870   return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_compile") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } &&
20887          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20888   { (case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_try") 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); }; } &&
20897          { ac_try='test -s conftest.$ac_objext'
20898   { (case "(($ac_try" in
20899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900   *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903   (eval "$ac_try") 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; }; then
20907   ac_cv_func_isnan_in_cmath=yes
20908 else
20909   echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912         ac_cv_func_isnan_in_cmath=no
20913 fi
20914
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916     ac_ext=c
20917 ac_cpp='$CPP $CPPFLAGS'
20918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20921
20922
20923 fi
20924 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20925 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20926
20927 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20928
20929 cat >>confdefs.h <<\_ACEOF
20930 #define HAVE_ISNAN_IN_CMATH 1
20931 _ACEOF
20932
20933 fi
20934
20935
20936   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20937 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20938 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20939   echo $ECHO_N "(cached) $ECHO_C" >&6
20940 else
20941
20942     ac_ext=cpp
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20947
20948     cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954 #include <cmath>
20955 int
20956 main ()
20957 {
20958 float f; std::isnan(f);
20959   ;
20960   return 0;
20961 }
20962 _ACEOF
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967   *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970   (eval "$ac_compile") 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20978   { (case "(($ac_try" in
20979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980   *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983   (eval "$ac_try") 2>&5
20984   ac_status=$?
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); }; } &&
20987          { ac_try='test -s conftest.$ac_objext'
20988   { (case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_try") 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   ac_cv_func_std_isnan_in_cmath=yes
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002         ac_cv_func_std_isnan_in_cmath=no
21003 fi
21004
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006     ac_ext=c
21007 ac_cpp='$CPP $CPPFLAGS'
21008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011
21012
21013 fi
21014 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21015 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21016
21017 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21018
21019 cat >>confdefs.h <<\_ACEOF
21020 #define HAVE_STD_ISNAN_IN_CMATH 1
21021 _ACEOF
21022
21023 fi
21024
21025
21026
21027
21028   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21029 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21030 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21031   echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033
21034     ac_ext=cpp
21035 ac_cpp='$CXXCPP $CPPFLAGS'
21036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21039
21040     cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h.  */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h.  */
21046 #include <math.h>
21047 int
21048 main ()
21049 {
21050 float f; isinf(f);
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (ac_try="$ac_compile"
21057 case "(($ac_try" in
21058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059   *) ac_try_echo=$ac_try;;
21060 esac
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062   (eval "$ac_compile") 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } &&
21069          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21070   { (case "(($ac_try" in
21071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072   *) ac_try_echo=$ac_try;;
21073 esac
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075   (eval "$ac_try") 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; } &&
21079          { ac_try='test -s conftest.$ac_objext'
21080   { (case "(($ac_try" in
21081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082   *) ac_try_echo=$ac_try;;
21083 esac
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085   (eval "$ac_try") 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; }; then
21089   ac_cv_func_isinf_in_math_h=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         ac_cv_func_isinf_in_math_h=no
21095 fi
21096
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098     ac_ext=c
21099 ac_cpp='$CPP $CPPFLAGS'
21100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21103
21104
21105 fi
21106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21107 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21108
21109 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21110
21111 cat >>confdefs.h <<\_ACEOF
21112 #define HAVE_ISINF_IN_MATH_H 1
21113 _ACEOF
21114
21115 fi
21116
21117
21118   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21119 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21120 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21121   echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123
21124     ac_ext=cpp
21125 ac_cpp='$CXXCPP $CPPFLAGS'
21126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21129
21130     cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h.  */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h.  */
21136 #include <cmath>
21137 int
21138 main ()
21139 {
21140 float f; isinf(f);
21141   ;
21142   return 0;
21143 }
21144 _ACEOF
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149   *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152   (eval "$ac_compile") 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } &&
21159          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21160   { (case "(($ac_try" in
21161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162   *) ac_try_echo=$ac_try;;
21163 esac
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165   (eval "$ac_try") 2>&5
21166   ac_status=$?
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); }; } &&
21169          { ac_try='test -s conftest.$ac_objext'
21170   { (case "(($ac_try" in
21171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172   *) ac_try_echo=$ac_try;;
21173 esac
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175   (eval "$ac_try") 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); }; }; then
21179   ac_cv_func_isinf_in_cmath=yes
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184         ac_cv_func_isinf_in_cmath=no
21185 fi
21186
21187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21188     ac_ext=c
21189 ac_cpp='$CPP $CPPFLAGS'
21190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21193
21194
21195 fi
21196 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21197 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21198
21199 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21200
21201 cat >>confdefs.h <<\_ACEOF
21202 #define HAVE_ISINF_IN_CMATH 1
21203 _ACEOF
21204
21205 fi
21206
21207
21208   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21209 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21210 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21211   echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21213
21214     ac_ext=cpp
21215 ac_cpp='$CXXCPP $CPPFLAGS'
21216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21219
21220     cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h.  */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h.  */
21226 #include <cmath>
21227 int
21228 main ()
21229 {
21230 float f; std::isinf(f);
21231   ;
21232   return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239   *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242   (eval "$ac_compile") 2>conftest.er1
21243   ac_status=$?
21244   grep -v '^ *+' conftest.er1 >conftest.err
21245   rm -f conftest.er1
21246   cat conftest.err >&5
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); } &&
21249          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21250   { (case "(($ac_try" in
21251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252   *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255   (eval "$ac_try") 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; } &&
21259          { ac_try='test -s conftest.$ac_objext'
21260   { (case "(($ac_try" in
21261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262   *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265   (eval "$ac_try") 2>&5
21266   ac_status=$?
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); }; }; then
21269   ac_cv_func_std_isinf_in_cmath=yes
21270 else
21271   echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21273
21274         ac_cv_func_std_isinf_in_cmath=no
21275 fi
21276
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278     ac_ext=c
21279 ac_cpp='$CPP $CPPFLAGS'
21280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21283
21284
21285 fi
21286 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21287 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21288
21289 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21290
21291 cat >>confdefs.h <<\_ACEOF
21292 #define HAVE_STD_ISINF_IN_CMATH 1
21293 _ACEOF
21294
21295 fi
21296
21297
21298   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21299 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21300 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303
21304     ac_ext=cpp
21305 ac_cpp='$CXXCPP $CPPFLAGS'
21306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21309
21310     cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316 #include <ieeefp.h>
21317 int
21318 main ()
21319 {
21320 float f; finite(f);
21321   ;
21322   return 0;
21323 }
21324 _ACEOF
21325 rm -f conftest.$ac_objext
21326 if { (ac_try="$ac_compile"
21327 case "(($ac_try" in
21328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329   *) ac_try_echo=$ac_try;;
21330 esac
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332   (eval "$ac_compile") 2>conftest.er1
21333   ac_status=$?
21334   grep -v '^ *+' conftest.er1 >conftest.err
21335   rm -f conftest.er1
21336   cat conftest.err >&5
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); } &&
21339          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21340   { (case "(($ac_try" in
21341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342   *) ac_try_echo=$ac_try;;
21343 esac
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345   (eval "$ac_try") 2>&5
21346   ac_status=$?
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); }; } &&
21349          { ac_try='test -s conftest.$ac_objext'
21350   { (case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355   (eval "$ac_try") 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); }; }; then
21359   ac_cv_func_finite_in_ieeefp_h=yes
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364         ac_cv_func_finite_in_ieeefp_h=no
21365 fi
21366
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368     ac_ext=c
21369 ac_cpp='$CPP $CPPFLAGS'
21370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21373
21374
21375 fi
21376 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21377 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21378
21379 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21380
21381 cat >>confdefs.h <<\_ACEOF
21382 #define HAVE_FINITE_IN_IEEEFP_H 1
21383 _ACEOF
21384
21385 fi
21386
21387
21388
21389 if test "$llvm_cv_platform_type" = "Unix" ; then
21390
21391
21392 for ac_header in stdlib.h unistd.h
21393 do
21394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21396   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21399   echo $ECHO_N "(cached) $ECHO_C" >&6
21400 fi
21401 ac_res=`eval echo '${'$as_ac_Header'}'`
21402                { echo "$as_me:$LINENO: result: $ac_res" >&5
21403 echo "${ECHO_T}$ac_res" >&6; }
21404 else
21405   # Is the header compilable?
21406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414 $ac_includes_default
21415 #include <$ac_header>
21416 _ACEOF
21417 rm -f conftest.$ac_objext
21418 if { (ac_try="$ac_compile"
21419 case "(($ac_try" in
21420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421   *) ac_try_echo=$ac_try;;
21422 esac
21423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424   (eval "$ac_compile") 2>conftest.er1
21425   ac_status=$?
21426   grep -v '^ *+' conftest.er1 >conftest.err
21427   rm -f conftest.er1
21428   cat conftest.err >&5
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); } &&
21431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21432   { (case "(($ac_try" in
21433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434   *) ac_try_echo=$ac_try;;
21435 esac
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437   (eval "$ac_try") 2>&5
21438   ac_status=$?
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); }; } &&
21441          { ac_try='test -s conftest.$ac_objext'
21442   { (case "(($ac_try" in
21443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444   *) ac_try_echo=$ac_try;;
21445 esac
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447   (eval "$ac_try") 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; }; then
21451   ac_header_compiler=yes
21452 else
21453   echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21455
21456         ac_header_compiler=no
21457 fi
21458
21459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21461 echo "${ECHO_T}$ac_header_compiler" >&6; }
21462
21463 # Is the header present?
21464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h.  */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h.  */
21472 #include <$ac_header>
21473 _ACEOF
21474 if { (ac_try="$ac_cpp conftest.$ac_ext"
21475 case "(($ac_try" in
21476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477   *) ac_try_echo=$ac_try;;
21478 esac
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21481   ac_status=$?
21482   grep -v '^ *+' conftest.er1 >conftest.err
21483   rm -f conftest.er1
21484   cat conftest.err >&5
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); } >/dev/null; then
21487   if test -s conftest.err; then
21488     ac_cpp_err=$ac_c_preproc_warn_flag
21489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21490   else
21491     ac_cpp_err=
21492   fi
21493 else
21494   ac_cpp_err=yes
21495 fi
21496 if test -z "$ac_cpp_err"; then
21497   ac_header_preproc=yes
21498 else
21499   echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21501
21502   ac_header_preproc=no
21503 fi
21504
21505 rm -f conftest.err conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21507 echo "${ECHO_T}$ac_header_preproc" >&6; }
21508
21509 # So?  What about this header?
21510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21511   yes:no: )
21512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21516     ac_header_preproc=yes
21517     ;;
21518   no:yes:* )
21519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21531     ( cat <<\_ASBOX
21532 ## ------------------------------------ ##
21533 ## Report this to http://llvm.org/bugs/ ##
21534 ## ------------------------------------ ##
21535 _ASBOX
21536      ) | sed "s/^/$as_me: WARNING:     /" >&2
21537     ;;
21538 esac
21539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542   echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544   eval "$as_ac_Header=\$ac_header_preproc"
21545 fi
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547                { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21549
21550 fi
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552   cat >>confdefs.h <<_ACEOF
21553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21554 _ACEOF
21555
21556 fi
21557
21558 done
21559
21560
21561 for ac_func in getpagesize
21562 do
21563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21567   echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569   cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21577 #define $ac_func innocuous_$ac_func
21578
21579 /* System header to define __stub macros and hopefully few prototypes,
21580     which can conflict with char $ac_func (); below.
21581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21582     <limits.h> exists even on freestanding compilers.  */
21583
21584 #ifdef __STDC__
21585 # include <limits.h>
21586 #else
21587 # include <assert.h>
21588 #endif
21589
21590 #undef $ac_func
21591
21592 /* Override any GCC internal prototype to avoid an error.
21593    Use char because int might match the return type of a GCC
21594    builtin and then its argument prototype would still apply.  */
21595 #ifdef __cplusplus
21596 extern "C"
21597 #endif
21598 char $ac_func ();
21599 /* The GNU C library defines this for functions which it implements
21600     to always fail with ENOSYS.  Some functions are actually named
21601     something starting with __ and the normal name is an alias.  */
21602 #if defined __stub_$ac_func || defined __stub___$ac_func
21603 choke me
21604 #endif
21605
21606 int
21607 main ()
21608 {
21609 return $ac_func ();
21610   ;
21611   return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (ac_try="$ac_link"
21616 case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621   (eval "$ac_link") 2>conftest.er1
21622   ac_status=$?
21623   grep -v '^ *+' conftest.er1 >conftest.err
21624   rm -f conftest.er1
21625   cat conftest.err >&5
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } &&
21628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21629   { (case "(($ac_try" in
21630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631   *) ac_try_echo=$ac_try;;
21632 esac
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634   (eval "$ac_try") 2>&5
21635   ac_status=$?
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); }; } &&
21638          { ac_try='test -s conftest$ac_exeext'
21639   { (case "(($ac_try" in
21640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641   *) ac_try_echo=$ac_try;;
21642 esac
21643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644   (eval "$ac_try") 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; }; then
21648   eval "$as_ac_var=yes"
21649 else
21650   echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653         eval "$as_ac_var=no"
21654 fi
21655
21656 rm -f core conftest.err conftest.$ac_objext \
21657       conftest$ac_exeext conftest.$ac_ext
21658 fi
21659 ac_res=`eval echo '${'$as_ac_var'}'`
21660                { echo "$as_me:$LINENO: result: $ac_res" >&5
21661 echo "${ECHO_T}$ac_res" >&6; }
21662 if test `eval echo '${'$as_ac_var'}'` = yes; then
21663   cat >>confdefs.h <<_ACEOF
21664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21665 _ACEOF
21666
21667 fi
21668 done
21669
21670 { echo "$as_me:$LINENO: checking for working mmap" >&5
21671 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21672 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21673   echo $ECHO_N "(cached) $ECHO_C" >&6
21674 else
21675   if test "$cross_compiling" = yes; then
21676   ac_cv_func_mmap_fixed_mapped=no
21677 else
21678   cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684 $ac_includes_default
21685 /* malloc might have been renamed as rpl_malloc. */
21686 #undef malloc
21687
21688 /* Thanks to Mike Haertel and Jim Avera for this test.
21689    Here is a matrix of mmap possibilities:
21690         mmap private not fixed
21691         mmap private fixed at somewhere currently unmapped
21692         mmap private fixed at somewhere already mapped
21693         mmap shared not fixed
21694         mmap shared fixed at somewhere currently unmapped
21695         mmap shared fixed at somewhere already mapped
21696    For private mappings, we should verify that changes cannot be read()
21697    back from the file, nor mmap's back from the file at a different
21698    address.  (There have been systems where private was not correctly
21699    implemented like the infamous i386 svr4.0, and systems where the
21700    VM page cache was not coherent with the file system buffer cache
21701    like early versions of FreeBSD and possibly contemporary NetBSD.)
21702    For shared mappings, we should conversely verify that changes get
21703    propagated back to all the places they're supposed to be.
21704
21705    Grep wants private fixed already mapped.
21706    The main things grep needs to know about mmap are:
21707    * does it exist and is it safe to write into the mmap'd area
21708    * how to use it (BSD variants)  */
21709
21710 #include <fcntl.h>
21711 #include <sys/mman.h>
21712
21713 #if !STDC_HEADERS && !HAVE_STDLIB_H
21714 char *malloc ();
21715 #endif
21716
21717 /* This mess was copied from the GNU getpagesize.h.  */
21718 #if !HAVE_GETPAGESIZE
21719 /* Assume that all systems that can run configure have sys/param.h.  */
21720 # if !HAVE_SYS_PARAM_H
21721 #  define HAVE_SYS_PARAM_H 1
21722 # endif
21723
21724 # ifdef _SC_PAGESIZE
21725 #  define getpagesize() sysconf(_SC_PAGESIZE)
21726 # else /* no _SC_PAGESIZE */
21727 #  if HAVE_SYS_PARAM_H
21728 #   include <sys/param.h>
21729 #   ifdef EXEC_PAGESIZE
21730 #    define getpagesize() EXEC_PAGESIZE
21731 #   else /* no EXEC_PAGESIZE */
21732 #    ifdef NBPG
21733 #     define getpagesize() NBPG * CLSIZE
21734 #     ifndef CLSIZE
21735 #      define CLSIZE 1
21736 #     endif /* no CLSIZE */
21737 #    else /* no NBPG */
21738 #     ifdef NBPC
21739 #      define getpagesize() NBPC
21740 #     else /* no NBPC */
21741 #      ifdef PAGESIZE
21742 #       define getpagesize() PAGESIZE
21743 #      endif /* PAGESIZE */
21744 #     endif /* no NBPC */
21745 #    endif /* no NBPG */
21746 #   endif /* no EXEC_PAGESIZE */
21747 #  else /* no HAVE_SYS_PARAM_H */
21748 #   define getpagesize() 8192   /* punt totally */
21749 #  endif /* no HAVE_SYS_PARAM_H */
21750 # endif /* no _SC_PAGESIZE */
21751
21752 #endif /* no HAVE_GETPAGESIZE */
21753
21754 int
21755 main ()
21756 {
21757   char *data, *data2, *data3;
21758   int i, pagesize;
21759   int fd;
21760
21761   pagesize = getpagesize ();
21762
21763   /* First, make a file with some known garbage in it. */
21764   data = (char *) malloc (pagesize);
21765   if (!data)
21766     return 1;
21767   for (i = 0; i < pagesize; ++i)
21768     *(data + i) = rand ();
21769   umask (0);
21770   fd = creat ("conftest.mmap", 0600);
21771   if (fd < 0)
21772     return 1;
21773   if (write (fd, data, pagesize) != pagesize)
21774     return 1;
21775   close (fd);
21776
21777   /* Next, try to mmap the file at a fixed address which already has
21778      something else allocated at it.  If we can, also make sure that
21779      we see the same garbage.  */
21780   fd = open ("conftest.mmap", O_RDWR);
21781   if (fd < 0)
21782     return 1;
21783   data2 = (char *) malloc (2 * pagesize);
21784   if (!data2)
21785     return 1;
21786   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21787   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21788                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21789     return 1;
21790   for (i = 0; i < pagesize; ++i)
21791     if (*(data + i) != *(data2 + i))
21792       return 1;
21793
21794   /* Finally, make sure that changes to the mapped area do not
21795      percolate back to the file as seen by read().  (This is a bug on
21796      some variants of i386 svr4.0.)  */
21797   for (i = 0; i < pagesize; ++i)
21798     *(data2 + i) = *(data2 + i) + 1;
21799   data3 = (char *) malloc (pagesize);
21800   if (!data3)
21801     return 1;
21802   if (read (fd, data3, pagesize) != pagesize)
21803     return 1;
21804   for (i = 0; i < pagesize; ++i)
21805     if (*(data + i) != *(data3 + i))
21806       return 1;
21807   close (fd);
21808   return 0;
21809 }
21810 _ACEOF
21811 rm -f conftest$ac_exeext
21812 if { (ac_try="$ac_link"
21813 case "(($ac_try" in
21814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815   *) ac_try_echo=$ac_try;;
21816 esac
21817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818   (eval "$ac_link") 2>&5
21819   ac_status=$?
21820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21822   { (case "(($ac_try" in
21823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824   *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827   (eval "$ac_try") 2>&5
21828   ac_status=$?
21829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830   (exit $ac_status); }; }; then
21831   ac_cv_func_mmap_fixed_mapped=yes
21832 else
21833   echo "$as_me: program exited with status $ac_status" >&5
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837 ( exit $ac_status )
21838 ac_cv_func_mmap_fixed_mapped=no
21839 fi
21840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21841 fi
21842
21843
21844 fi
21845 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21846 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21847 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21848
21849 cat >>confdefs.h <<\_ACEOF
21850 #define HAVE_MMAP 1
21851 _ACEOF
21852
21853 fi
21854 rm -f conftest.mmap
21855
21856   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21857 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21858 if test "${ac_cv_func_mmap_file+set}" = set; then
21859   echo $ECHO_N "(cached) $ECHO_C" >&6
21860 else
21861    ac_ext=c
21862 ac_cpp='$CPP $CPPFLAGS'
21863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21866
21867   if test "$cross_compiling" = yes; then
21868   ac_cv_func_mmap_file=no
21869 else
21870   cat >conftest.$ac_ext <<_ACEOF
21871
21872     /* confdefs.h.  */
21873 _ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h.  */
21877
21878 #include <sys/types.h>
21879 #include <sys/mman.h>
21880 #include <fcntl.h>
21881
21882 int
21883 main ()
21884 {
21885
21886   int fd;
21887   fd = creat ("foo",0777);
21888   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21889   unlink ("foo");
21890   return (fd != (int) MAP_FAILED);
21891   ;
21892   return 0;
21893 }
21894 _ACEOF
21895 rm -f conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902   (eval "$ac_link") 2>&5
21903   ac_status=$?
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21906   { (case "(($ac_try" in
21907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908   *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911   (eval "$ac_try") 2>&5
21912   ac_status=$?
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); }; }; then
21915   ac_cv_func_mmap_file=yes
21916 else
21917   echo "$as_me: program exited with status $ac_status" >&5
21918 echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21920
21921 ( exit $ac_status )
21922 ac_cv_func_mmap_file=no
21923 fi
21924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21925 fi
21926
21927
21928   ac_ext=c
21929 ac_cpp='$CPP $CPPFLAGS'
21930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21933
21934
21935 fi
21936 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21937 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21938 if test "$ac_cv_func_mmap_file" = yes; then
21939
21940 cat >>confdefs.h <<\_ACEOF
21941 #define HAVE_MMAP_FILE
21942 _ACEOF
21943
21944    MMAP_FILE=yes
21945
21946 fi
21947
21948   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21949 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21950 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953   if test "$llvm_cv_os_type" = "Interix" ; then
21954    ac_cv_need_dev_zero_for_mmap=yes
21955  else
21956    ac_cv_need_dev_zero_for_mmap=no
21957  fi
21958
21959 fi
21960 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21961 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21962 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21963
21964 cat >>confdefs.h <<\_ACEOF
21965 #define NEED_DEV_ZERO_FOR_MMAP 1
21966 _ACEOF
21967
21968 fi
21969
21970   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21971   then
21972     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21973 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21974   fi
21975   if test "$ac_cv_func_mmap_file" = "no"
21976   then
21977     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21978 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21979   fi
21980 fi
21981
21982 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21983 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21984 ac_ext=cpp
21985 ac_cpp='$CXXCPP $CPPFLAGS'
21986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21989
21990 cat >conftest.$ac_ext <<_ACEOF
21991
21992   /* confdefs.h.  */
21993 _ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h.  */
21997
21998     int main() {
21999       volatile unsigned long val = 1;
22000       __sync_synchronize();
22001       __sync_val_compare_and_swap(&val, 1, 0);
22002       __sync_add_and_fetch(&val, 1);
22003       __sync_sub_and_fetch(&val, 1);
22004       return 0;
22005     }
22006
22007
22008 _ACEOF
22009 rm -f conftest.$ac_objext conftest$ac_exeext
22010 if { (ac_try="$ac_link"
22011 case "(($ac_try" in
22012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013   *) ac_try_echo=$ac_try;;
22014 esac
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016   (eval "$ac_link") 2>conftest.er1
22017   ac_status=$?
22018   grep -v '^ *+' conftest.er1 >conftest.err
22019   rm -f conftest.er1
22020   cat conftest.err >&5
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); } &&
22023          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22024   { (case "(($ac_try" in
22025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026   *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029   (eval "$ac_try") 2>&5
22030   ac_status=$?
22031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032   (exit $ac_status); }; } &&
22033          { ac_try='test -s conftest$ac_exeext'
22034   { (case "(($ac_try" in
22035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036   *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039   (eval "$ac_try") 2>&5
22040   ac_status=$?
22041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); }; }; then
22043
22044   { echo "$as_me:$LINENO: result: yes" >&5
22045 echo "${ECHO_T}yes" >&6; }
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define LLVM_HAS_ATOMICS 1
22049 _ACEOF
22050
22051
22052 else
22053   echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22055
22056
22057   { echo "$as_me:$LINENO: result: no" >&5
22058 echo "${ECHO_T}no" >&6; }
22059
22060 cat >>confdefs.h <<\_ACEOF
22061 #define LLVM_HAS_ATOMICS 0
22062 _ACEOF
22063
22064   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22065 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22066
22067 fi
22068
22069 rm -f core conftest.err conftest.$ac_objext \
22070       conftest$ac_exeext conftest.$ac_ext
22071 ac_ext=c
22072 ac_cpp='$CPP $CPPFLAGS'
22073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22076
22077
22078
22079 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22080   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22081 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22082 if test "${llvm_cv_linux_mixed+set}" = set; then
22083   echo $ECHO_N "(cached) $ECHO_C" >&6
22084 else
22085    ac_ext=c
22086 ac_cpp='$CPP $CPPFLAGS'
22087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22090
22091   cat >conftest.$ac_ext <<_ACEOF
22092 /* confdefs.h.  */
22093 _ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h.  */
22097 #ifndef __x86_64__
22098        error: Not x86-64 even if uname says so!
22099       #endif
22100
22101 int
22102 main ()
22103 {
22104
22105   ;
22106   return 0;
22107 }
22108 _ACEOF
22109 rm -f conftest.$ac_objext
22110 if { (ac_try="$ac_compile"
22111 case "(($ac_try" in
22112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113   *) ac_try_echo=$ac_try;;
22114 esac
22115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116   (eval "$ac_compile") 2>conftest.er1
22117   ac_status=$?
22118   grep -v '^ *+' conftest.er1 >conftest.err
22119   rm -f conftest.er1
22120   cat conftest.err >&5
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); } &&
22123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22124   { (case "(($ac_try" in
22125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126   *) ac_try_echo=$ac_try;;
22127 esac
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129   (eval "$ac_try") 2>&5
22130   ac_status=$?
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); }; } &&
22133          { ac_try='test -s conftest.$ac_objext'
22134   { (case "(($ac_try" in
22135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136   *) ac_try_echo=$ac_try;;
22137 esac
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139   (eval "$ac_try") 2>&5
22140   ac_status=$?
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); }; }; then
22143   llvm_cv_linux_mixed=no
22144 else
22145   echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148         llvm_cv_linux_mixed=yes
22149 fi
22150
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152   ac_ext=c
22153 ac_cpp='$CPP $CPPFLAGS'
22154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22157
22158
22159 fi
22160 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22161 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22162
22163   if test "$llvm_cv_linux_mixed" = "yes"; then
22164     llvm_cv_target_arch="x86"
22165     ARCH="x86"
22166   fi
22167 fi
22168
22169
22170 for ac_func in __dso_handle
22171 do
22172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22176   echo $ECHO_N "(cached) $ECHO_C" >&6
22177 else
22178   cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22186 #define $ac_func innocuous_$ac_func
22187
22188 /* System header to define __stub macros and hopefully few prototypes,
22189     which can conflict with char $ac_func (); below.
22190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22191     <limits.h> exists even on freestanding compilers.  */
22192
22193 #ifdef __STDC__
22194 # include <limits.h>
22195 #else
22196 # include <assert.h>
22197 #endif
22198
22199 #undef $ac_func
22200
22201 /* Override any GCC internal prototype to avoid an error.
22202    Use char because int might match the return type of a GCC
22203    builtin and then its argument prototype would still apply.  */
22204 #ifdef __cplusplus
22205 extern "C"
22206 #endif
22207 char $ac_func ();
22208 /* The GNU C library defines this for functions which it implements
22209     to always fail with ENOSYS.  Some functions are actually named
22210     something starting with __ and the normal name is an alias.  */
22211 #if defined __stub_$ac_func || defined __stub___$ac_func
22212 choke me
22213 #endif
22214
22215 int
22216 main ()
22217 {
22218 return $ac_func ();
22219   ;
22220   return 0;
22221 }
22222 _ACEOF
22223 rm -f conftest.$ac_objext conftest$ac_exeext
22224 if { (ac_try="$ac_link"
22225 case "(($ac_try" in
22226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227   *) ac_try_echo=$ac_try;;
22228 esac
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230   (eval "$ac_link") 2>conftest.er1
22231   ac_status=$?
22232   grep -v '^ *+' conftest.er1 >conftest.err
22233   rm -f conftest.er1
22234   cat conftest.err >&5
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); } &&
22237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22238   { (case "(($ac_try" in
22239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240   *) ac_try_echo=$ac_try;;
22241 esac
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243   (eval "$ac_try") 2>&5
22244   ac_status=$?
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); }; } &&
22247          { ac_try='test -s conftest$ac_exeext'
22248   { (case "(($ac_try" in
22249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250   *) ac_try_echo=$ac_try;;
22251 esac
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253   (eval "$ac_try") 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); }; }; then
22257   eval "$as_ac_var=yes"
22258 else
22259   echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262         eval "$as_ac_var=no"
22263 fi
22264
22265 rm -f core conftest.err conftest.$ac_objext \
22266       conftest$ac_exeext conftest.$ac_ext
22267 fi
22268 ac_res=`eval echo '${'$as_ac_var'}'`
22269                { echo "$as_me:$LINENO: result: $ac_res" >&5
22270 echo "${ECHO_T}$ac_res" >&6; }
22271 if test `eval echo '${'$as_ac_var'}'` = yes; then
22272   cat >>confdefs.h <<_ACEOF
22273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22274 _ACEOF
22275
22276 fi
22277 done
22278
22279
22280 SHLIBEXT=$libltdl_cv_shlibext
22281
22282
22283 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22284
22285
22286 if test "${prefix}" = "NONE" ; then
22287   prefix="/usr/local"
22288 fi
22289 eval LLVM_PREFIX="${prefix}";
22290 eval LLVM_BINDIR="${prefix}/bin";
22291 eval LLVM_DATADIR="${prefix}/share/llvm";
22292 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22293 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22294 eval LLVM_INCLUDEDIR="${prefix}/include";
22295 eval LLVM_INFODIR="${prefix}/info";
22296 eval LLVM_MANDIR="${prefix}/man";
22297 LLVM_CONFIGTIME=`date`
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22309   LLVM_CONFIGTIME="(timestamp not enabled)"
22310 fi
22311
22312
22313 cat >>confdefs.h <<_ACEOF
22314 #define LLVM_PREFIX "$LLVM_PREFIX"
22315 _ACEOF
22316
22317
22318 cat >>confdefs.h <<_ACEOF
22319 #define LLVM_BINDIR "$LLVM_BINDIR"
22320 _ACEOF
22321
22322
22323 cat >>confdefs.h <<_ACEOF
22324 #define LLVM_DATADIR "$LLVM_DATADIR"
22325 _ACEOF
22326
22327
22328 cat >>confdefs.h <<_ACEOF
22329 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22330 _ACEOF
22331
22332
22333 cat >>confdefs.h <<_ACEOF
22334 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22335 _ACEOF
22336
22337
22338 cat >>confdefs.h <<_ACEOF
22339 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22340 _ACEOF
22341
22342
22343 cat >>confdefs.h <<_ACEOF
22344 #define LLVM_INFODIR "$LLVM_INFODIR"
22345 _ACEOF
22346
22347
22348 cat >>confdefs.h <<_ACEOF
22349 #define LLVM_MANDIR "$LLVM_MANDIR"
22350 _ACEOF
22351
22352
22353 cat >>confdefs.h <<_ACEOF
22354 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22355 _ACEOF
22356
22357
22358 cat >>confdefs.h <<_ACEOF
22359 #define LLVM_HOST_TRIPLE "$host"
22360 _ACEOF
22361
22362
22363 cat >>confdefs.h <<_ACEOF
22364 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22365 _ACEOF
22366
22367
22368 if test "$BINDINGS_TO_BUILD" = auto ; then
22369   BINDINGS_TO_BUILD=""
22370   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22371     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22372   fi
22373 fi
22374 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22375
22376
22377 ALL_BINDINGS=ocaml
22378
22379
22380 binding_prereqs_failed=0
22381 for a_binding in $BINDINGS_TO_BUILD ; do
22382   case "$a_binding" in
22383   ocaml)
22384     if test "x$OCAMLC" = x ; then
22385       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22386 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22387       binding_prereqs_failed=1
22388     fi
22389     if test "x$OCAMLDEP" = x ; then
22390       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22391 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22392       binding_prereqs_failed=1
22393     fi
22394     if test "x$OCAMLOPT" = x ; then
22395       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22396 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22397           fi
22398     if test "x$with_ocaml_libdir" != xauto ; then
22399       OCAML_LIBDIR=$with_ocaml_libdir
22400
22401     else
22402       ocaml_stdlib="`"$OCAMLC" -where`"
22403       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22404       then
22405         # ocaml stdlib is beneath our prefix; use stdlib
22406         OCAML_LIBDIR=$ocaml_stdlib
22407
22408       else
22409         # ocaml stdlib is outside our prefix; use libdir/ocaml
22410         OCAML_LIBDIR=${prefix}/lib/ocaml
22411
22412       fi
22413     fi
22414     ;;
22415   esac
22416 done
22417 if test "$binding_prereqs_failed" = 1 ; then
22418   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22419 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22420    { (exit 1); exit 1; }; }
22421 fi
22422
22423 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22424 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22425 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22426   echo $ECHO_N "(cached) $ECHO_C" >&6
22427 else
22428    ac_ext=cpp
22429 ac_cpp='$CXXCPP $CPPFLAGS'
22430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22433
22434   oldcxxflags="$CXXFLAGS"
22435   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22436   cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h.  */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h.  */
22442 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22443 int
22444 main ()
22445 {
22446 X<int>().f();
22447   ;
22448   return 0;
22449 }
22450 _ACEOF
22451 rm -f conftest.$ac_objext
22452 if { (ac_try="$ac_compile"
22453 case "(($ac_try" in
22454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455   *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458   (eval "$ac_compile") 2>conftest.er1
22459   ac_status=$?
22460   grep -v '^ *+' conftest.er1 >conftest.err
22461   rm -f conftest.er1
22462   cat conftest.err >&5
22463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); } &&
22465          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22466   { (case "(($ac_try" in
22467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468   *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471   (eval "$ac_try") 2>&5
22472   ac_status=$?
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); }; } &&
22475          { ac_try='test -s conftest.$ac_objext'
22476   { (case "(($ac_try" in
22477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478   *) ac_try_echo=$ac_try;;
22479 esac
22480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481   (eval "$ac_try") 2>&5
22482   ac_status=$?
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); }; }; then
22485   llvm_cv_cxx_visibility_inlines_hidden=yes
22486 else
22487   echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490         llvm_cv_cxx_visibility_inlines_hidden=no
22491 fi
22492
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494   CXXFLAGS="$oldcxxflags"
22495   ac_ext=c
22496 ac_cpp='$CPP $CPPFLAGS'
22497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22500
22501
22502 fi
22503 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22504 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22505 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22506   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22507
22508 else
22509   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22510
22511 fi
22512
22513
22514 if test "$llvm_cv_link_use_r" = "yes" ; then
22515   RPATH="-Wl,-R"
22516 else
22517   RPATH="-Wl,-rpath"
22518 fi
22519
22520
22521 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22522   RDYNAMIC="-Wl,-export-dynamic"
22523 else
22524   RDYNAMIC=""
22525 fi
22526
22527
22528
22529 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22530
22531
22532
22533
22534
22535
22536 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22537
22538 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22539
22540 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22541
22542 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22543
22544 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22545
22546
22547 ac_config_files="$ac_config_files Makefile.config"
22548
22549
22550 ac_config_files="$ac_config_files llvm.spec"
22551
22552
22553 ac_config_files="$ac_config_files docs/doxygen.cfg"
22554
22555
22556 if test "${clang_src_root}" = ""; then
22557   clang_src_root="$srcdir/tools/clang"
22558 fi
22559 if test -f ${clang_src_root}/README.txt; then
22560     configh="include/clang/Config/config.h"
22561   doxy="docs/doxygen.cfg"
22562   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22563
22564   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22565
22566 fi
22567
22568 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22569
22570
22571 test "x$program_prefix" = "xNONE" && program_prefix=""
22572
22573
22574
22575 ac_config_commands="$ac_config_commands setup"
22576
22577 ac_config_commands="$ac_config_commands Makefile"
22578
22579
22580 ac_config_commands="$ac_config_commands Makefile.common"
22581
22582
22583 ac_config_commands="$ac_config_commands examples/Makefile"
22584
22585
22586 ac_config_commands="$ac_config_commands lib/Makefile"
22587
22588
22589 ac_config_commands="$ac_config_commands runtime/Makefile"
22590
22591
22592 ac_config_commands="$ac_config_commands test/Makefile"
22593
22594
22595 ac_config_commands="$ac_config_commands test/Makefile.tests"
22596
22597
22598 ac_config_commands="$ac_config_commands unittests/Makefile"
22599
22600
22601 ac_config_commands="$ac_config_commands tools/Makefile"
22602
22603
22604 ac_config_commands="$ac_config_commands utils/Makefile"
22605
22606
22607 ac_config_commands="$ac_config_commands projects/Makefile"
22608
22609
22610 ac_config_commands="$ac_config_commands bindings/Makefile"
22611
22612
22613 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22614
22615
22616
22617 cat >confcache <<\_ACEOF
22618 # This file is a shell script that caches the results of configure
22619 # tests run on this system so they can be shared between configure
22620 # scripts and configure runs, see configure's option --config-cache.
22621 # It is not useful on other systems.  If it contains results you don't
22622 # want to keep, you may remove or edit it.
22623 #
22624 # config.status only pays attention to the cache file if you give it
22625 # the --recheck option to rerun configure.
22626 #
22627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22629 # following values.
22630
22631 _ACEOF
22632
22633 # The following way of writing the cache mishandles newlines in values,
22634 # but we know of no workaround that is simple, portable, and efficient.
22635 # So, we kill variables containing newlines.
22636 # Ultrix sh set writes to stderr and can't be redirected directly,
22637 # and sets the high bit in the cache file unless we assign to the vars.
22638 (
22639   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22640     eval ac_val=\$$ac_var
22641     case $ac_val in #(
22642     *${as_nl}*)
22643       case $ac_var in #(
22644       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22645 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22646       esac
22647       case $ac_var in #(
22648       _ | IFS | as_nl) ;; #(
22649       *) $as_unset $ac_var ;;
22650       esac ;;
22651     esac
22652   done
22653
22654   (set) 2>&1 |
22655     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22656     *${as_nl}ac_space=\ *)
22657       # `set' does not quote correctly, so add quotes (double-quote
22658       # substitution turns \\\\ into \\, and sed turns \\ into \).
22659       sed -n \
22660         "s/'/'\\\\''/g;
22661           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22662       ;; #(
22663     *)
22664       # `set' quotes correctly as required by POSIX, so do not add quotes.
22665       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22666       ;;
22667     esac |
22668     sort
22669 ) |
22670   sed '
22671      /^ac_cv_env_/b end
22672      t clear
22673      :clear
22674      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22675      t end
22676      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22677      :end' >>confcache
22678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22679   if test -w "$cache_file"; then
22680     test "x$cache_file" != "x/dev/null" &&
22681       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22682 echo "$as_me: updating cache $cache_file" >&6;}
22683     cat confcache >$cache_file
22684   else
22685     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22686 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22687   fi
22688 fi
22689 rm -f confcache
22690
22691 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22692 # Let make expand exec_prefix.
22693 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22694
22695 DEFS=-DHAVE_CONFIG_H
22696
22697 ac_libobjs=
22698 ac_ltlibobjs=
22699 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22700   # 1. Remove the extension, and $U if already installed.
22701   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22702   ac_i=`echo "$ac_i" | sed "$ac_script"`
22703   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22704   #    will be set to the directory where LIBOBJS objects are built.
22705   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22706   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22707 done
22708 LIBOBJS=$ac_libobjs
22709
22710 LTLIBOBJS=$ac_ltlibobjs
22711
22712
22713 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22714   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22715 Usually this means the macro was only invoked conditionally." >&5
22716 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22717 Usually this means the macro was only invoked conditionally." >&2;}
22718    { (exit 1); exit 1; }; }
22719 fi
22720 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22721   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22722 Usually this means the macro was only invoked conditionally." >&5
22723 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22724 Usually this means the macro was only invoked conditionally." >&2;}
22725    { (exit 1); exit 1; }; }
22726 fi
22727
22728 : ${CONFIG_STATUS=./config.status}
22729 ac_clean_files_save=$ac_clean_files
22730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22731 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22732 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22733 cat >$CONFIG_STATUS <<_ACEOF
22734 #! $SHELL
22735 # Generated by $as_me.
22736 # Run this file to recreate the current configuration.
22737 # Compiler output produced by configure, useful for debugging
22738 # configure, is in config.log if it exists.
22739
22740 debug=false
22741 ac_cs_recheck=false
22742 ac_cs_silent=false
22743 SHELL=\${CONFIG_SHELL-$SHELL}
22744 _ACEOF
22745
22746 cat >>$CONFIG_STATUS <<\_ACEOF
22747 ## --------------------- ##
22748 ## M4sh Initialization.  ##
22749 ## --------------------- ##
22750
22751 # Be Bourne compatible
22752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22753   emulate sh
22754   NULLCMD=:
22755   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22756   # is contrary to our usage.  Disable this feature.
22757   alias -g '${1+"$@"}'='"$@"'
22758   setopt NO_GLOB_SUBST
22759 else
22760   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22761 fi
22762 BIN_SH=xpg4; export BIN_SH # for Tru64
22763 DUALCASE=1; export DUALCASE # for MKS sh
22764
22765
22766 # PATH needs CR
22767 # Avoid depending upon Character Ranges.
22768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22771 as_cr_digits='0123456789'
22772 as_cr_alnum=$as_cr_Letters$as_cr_digits
22773
22774 # The user is always right.
22775 if test "${PATH_SEPARATOR+set}" != set; then
22776   echo "#! /bin/sh" >conf$$.sh
22777   echo  "exit 0"   >>conf$$.sh
22778   chmod +x conf$$.sh
22779   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22780     PATH_SEPARATOR=';'
22781   else
22782     PATH_SEPARATOR=:
22783   fi
22784   rm -f conf$$.sh
22785 fi
22786
22787 # Support unset when possible.
22788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22789   as_unset=unset
22790 else
22791   as_unset=false
22792 fi
22793
22794
22795 # IFS
22796 # We need space, tab and new line, in precisely that order.  Quoting is
22797 # there to prevent editors from complaining about space-tab.
22798 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22799 # splitting by setting IFS to empty value.)
22800 as_nl='
22801 '
22802 IFS=" ""        $as_nl"
22803
22804 # Find who we are.  Look in the path if we contain no directory separator.
22805 case $0 in
22806   *[\\/]* ) as_myself=$0 ;;
22807   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22808 for as_dir in $PATH
22809 do
22810   IFS=$as_save_IFS
22811   test -z "$as_dir" && as_dir=.
22812   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22813 done
22814 IFS=$as_save_IFS
22815
22816      ;;
22817 esac
22818 # We did not find ourselves, most probably we were run as `sh COMMAND'
22819 # in which case we are not to be found in the path.
22820 if test "x$as_myself" = x; then
22821   as_myself=$0
22822 fi
22823 if test ! -f "$as_myself"; then
22824   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22825   { (exit 1); exit 1; }
22826 fi
22827
22828 # Work around bugs in pre-3.0 UWIN ksh.
22829 for as_var in ENV MAIL MAILPATH
22830 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22831 done
22832 PS1='$ '
22833 PS2='> '
22834 PS4='+ '
22835
22836 # NLS nuisances.
22837 for as_var in \
22838   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22839   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22840   LC_TELEPHONE LC_TIME
22841 do
22842   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22843     eval $as_var=C; export $as_var
22844   else
22845     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22846   fi
22847 done
22848
22849 # Required to use basename.
22850 if expr a : '\(a\)' >/dev/null 2>&1 &&
22851    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22852   as_expr=expr
22853 else
22854   as_expr=false
22855 fi
22856
22857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22858   as_basename=basename
22859 else
22860   as_basename=false
22861 fi
22862
22863
22864 # Name of the executable.
22865 as_me=`$as_basename -- "$0" ||
22866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22867          X"$0" : 'X\(//\)$' \| \
22868          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22869 echo X/"$0" |
22870     sed '/^.*\/\([^/][^/]*\)\/*$/{
22871             s//\1/
22872             q
22873           }
22874           /^X\/\(\/\/\)$/{
22875             s//\1/
22876             q
22877           }
22878           /^X\/\(\/\).*/{
22879             s//\1/
22880             q
22881           }
22882           s/.*/./; q'`
22883
22884 # CDPATH.
22885 $as_unset CDPATH
22886
22887
22888
22889   as_lineno_1=$LINENO
22890   as_lineno_2=$LINENO
22891   test "x$as_lineno_1" != "x$as_lineno_2" &&
22892   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22893
22894   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22895   # uniformly replaced by the line number.  The first 'sed' inserts a
22896   # line-number line after each line using $LINENO; the second 'sed'
22897   # does the real work.  The second script uses 'N' to pair each
22898   # line-number line with the line containing $LINENO, and appends
22899   # trailing '-' during substitution so that $LINENO is not a special
22900   # case at line end.
22901   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22902   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22903   # E. McMahon (1931-1989) for sed's syntax.  :-)
22904   sed -n '
22905     p
22906     /[$]LINENO/=
22907   ' <$as_myself |
22908     sed '
22909       s/[$]LINENO.*/&-/
22910       t lineno
22911       b
22912       :lineno
22913       N
22914       :loop
22915       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22916       t loop
22917       s/-\n.*//
22918     ' >$as_me.lineno &&
22919   chmod +x "$as_me.lineno" ||
22920     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22921    { (exit 1); exit 1; }; }
22922
22923   # Don't try to exec as it changes $[0], causing all sort of problems
22924   # (the dirname of $[0] is not the place where we might find the
22925   # original and so on.  Autoconf is especially sensitive to this).
22926   . "./$as_me.lineno"
22927   # Exit status is that of the last command.
22928   exit
22929 }
22930
22931
22932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22933   as_dirname=dirname
22934 else
22935   as_dirname=false
22936 fi
22937
22938 ECHO_C= ECHO_N= ECHO_T=
22939 case `echo -n x` in
22940 -n*)
22941   case `echo 'x\c'` in
22942   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22943   *)   ECHO_C='\c';;
22944   esac;;
22945 *)
22946   ECHO_N='-n';;
22947 esac
22948
22949 if expr a : '\(a\)' >/dev/null 2>&1 &&
22950    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22951   as_expr=expr
22952 else
22953   as_expr=false
22954 fi
22955
22956 rm -f conf$$ conf$$.exe conf$$.file
22957 if test -d conf$$.dir; then
22958   rm -f conf$$.dir/conf$$.file
22959 else
22960   rm -f conf$$.dir
22961   mkdir conf$$.dir
22962 fi
22963 echo >conf$$.file
22964 if ln -s conf$$.file conf$$ 2>/dev/null; then
22965   as_ln_s='ln -s'
22966   # ... but there are two gotchas:
22967   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22968   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22969   # In both cases, we have to default to `cp -p'.
22970   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22971     as_ln_s='cp -p'
22972 elif ln conf$$.file conf$$ 2>/dev/null; then
22973   as_ln_s=ln
22974 else
22975   as_ln_s='cp -p'
22976 fi
22977 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22978 rmdir conf$$.dir 2>/dev/null
22979
22980 if mkdir -p . 2>/dev/null; then
22981   as_mkdir_p=:
22982 else
22983   test -d ./-p && rmdir ./-p
22984   as_mkdir_p=false
22985 fi
22986
22987 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22988 # systems may use methods other than mode bits to determine executability.
22989 cat >conf$$.file <<_ASEOF
22990 #! /bin/sh
22991 exit 0
22992 _ASEOF
22993 chmod +x conf$$.file
22994 if test -x conf$$.file >/dev/null 2>&1; then
22995   as_executable_p="test -x"
22996 else
22997   as_executable_p=:
22998 fi
22999 rm -f conf$$.file
23000
23001 # Sed expression to map a string onto a valid CPP name.
23002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23003
23004 # Sed expression to map a string onto a valid variable name.
23005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23006
23007
23008 exec 6>&1
23009
23010 # Save the log message, to keep $[0] and so on meaningful, and to
23011 # report actual input values of CONFIG_FILES etc. instead of their
23012 # values after options handling.
23013 ac_log="
23014 This file was extended by LLVM $as_me 3.4svn, which was
23015 generated by GNU Autoconf 2.60.  Invocation command line was
23016
23017   CONFIG_FILES    = $CONFIG_FILES
23018   CONFIG_HEADERS  = $CONFIG_HEADERS
23019   CONFIG_LINKS    = $CONFIG_LINKS
23020   CONFIG_COMMANDS = $CONFIG_COMMANDS
23021   $ $0 $@
23022
23023 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23024 "
23025
23026 _ACEOF
23027
23028 cat >>$CONFIG_STATUS <<_ACEOF
23029 # Files that config.status was made for.
23030 config_files="$ac_config_files"
23031 config_headers="$ac_config_headers"
23032 config_commands="$ac_config_commands"
23033
23034 _ACEOF
23035
23036 cat >>$CONFIG_STATUS <<\_ACEOF
23037 ac_cs_usage="\
23038 \`$as_me' instantiates files from templates according to the
23039 current configuration.
23040
23041 Usage: $0 [OPTIONS] [FILE]...
23042
23043   -h, --help       print this help, then exit
23044   -V, --version    print version number, then exit
23045   -q, --quiet      do not print progress messages
23046   -d, --debug      don't remove temporary files
23047       --recheck    update $as_me by reconfiguring in the same conditions
23048   --file=FILE[:TEMPLATE]
23049                    instantiate the configuration file FILE
23050   --header=FILE[:TEMPLATE]
23051                    instantiate the configuration header FILE
23052
23053 Configuration files:
23054 $config_files
23055
23056 Configuration headers:
23057 $config_headers
23058
23059 Configuration commands:
23060 $config_commands
23061
23062 Report bugs to <bug-autoconf@gnu.org>."
23063
23064 _ACEOF
23065 cat >>$CONFIG_STATUS <<_ACEOF
23066 ac_cs_version="\\
23067 LLVM config.status 3.4svn
23068 configured by $0, generated by GNU Autoconf 2.60,
23069   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23070
23071 Copyright (C) 2006 Free Software Foundation, Inc.
23072 This config.status script is free software; the Free Software Foundation
23073 gives unlimited permission to copy, distribute and modify it."
23074
23075 ac_pwd='$ac_pwd'
23076 srcdir='$srcdir'
23077 INSTALL='$INSTALL'
23078 _ACEOF
23079
23080 cat >>$CONFIG_STATUS <<\_ACEOF
23081 # If no file are specified by the user, then we need to provide default
23082 # value.  By we need to know if files were specified by the user.
23083 ac_need_defaults=:
23084 while test $# != 0
23085 do
23086   case $1 in
23087   --*=*)
23088     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23089     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23090     ac_shift=:
23091     ;;
23092   *)
23093     ac_option=$1
23094     ac_optarg=$2
23095     ac_shift=shift
23096     ;;
23097   esac
23098
23099   case $ac_option in
23100   # Handling of the options.
23101   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23102     ac_cs_recheck=: ;;
23103   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23104     echo "$ac_cs_version"; exit ;;
23105   --debug | --debu | --deb | --de | --d | -d )
23106     debug=: ;;
23107   --file | --fil | --fi | --f )
23108     $ac_shift
23109     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23110     ac_need_defaults=false;;
23111   --header | --heade | --head | --hea )
23112     $ac_shift
23113     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23114     ac_need_defaults=false;;
23115   --he | --h)
23116     # Conflict between --help and --header
23117     { echo "$as_me: error: ambiguous option: $1
23118 Try \`$0 --help' for more information." >&2
23119    { (exit 1); exit 1; }; };;
23120   --help | --hel | -h )
23121     echo "$ac_cs_usage"; exit ;;
23122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23123   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23124     ac_cs_silent=: ;;
23125
23126   # This is an error.
23127   -*) { echo "$as_me: error: unrecognized option: $1
23128 Try \`$0 --help' for more information." >&2
23129    { (exit 1); exit 1; }; } ;;
23130
23131   *) ac_config_targets="$ac_config_targets $1"
23132      ac_need_defaults=false ;;
23133
23134   esac
23135   shift
23136 done
23137
23138 ac_configure_extra_args=
23139
23140 if $ac_cs_silent; then
23141   exec 6>/dev/null
23142   ac_configure_extra_args="$ac_configure_extra_args --silent"
23143 fi
23144
23145 _ACEOF
23146 cat >>$CONFIG_STATUS <<_ACEOF
23147 if \$ac_cs_recheck; then
23148   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23149   CONFIG_SHELL=$SHELL
23150   export CONFIG_SHELL
23151   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23152 fi
23153
23154 _ACEOF
23155 cat >>$CONFIG_STATUS <<\_ACEOF
23156 exec 5>>config.log
23157 {
23158   echo
23159   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23160 ## Running $as_me. ##
23161 _ASBOX
23162   echo "$ac_log"
23163 } >&5
23164
23165 _ACEOF
23166 cat >>$CONFIG_STATUS <<_ACEOF
23167 #
23168 # INIT-COMMANDS
23169 #
23170 llvm_src="${srcdir}"
23171
23172 _ACEOF
23173
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23175
23176 # Handling of arguments.
23177 for ac_config_target in $ac_config_targets
23178 do
23179   case $ac_config_target in
23180     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23181     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23182     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23183     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23184     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23185     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23186     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23187     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23188     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23189     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23190     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23191     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23192     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23193     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23194     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23195     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23196     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23197     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23198     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23199     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23200     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23201     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23202     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23203     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23204     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23205     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23206     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23207
23208   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23209 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23210    { (exit 1); exit 1; }; };;
23211   esac
23212 done
23213
23214
23215 # If the user did not use the arguments to specify the items to instantiate,
23216 # then the envvar interface is used.  Set only those that are not.
23217 # We use the long form for the default assignment because of an extremely
23218 # bizarre bug on SunOS 4.1.3.
23219 if $ac_need_defaults; then
23220   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23221   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23222   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23223 fi
23224
23225 # Have a temporary directory for convenience.  Make it in the build tree
23226 # simply because there is no reason against having it here, and in addition,
23227 # creating and moving files from /tmp can sometimes cause problems.
23228 # Hook for its removal unless debugging.
23229 # Note that there is a small window in which the directory will not be cleaned:
23230 # after its creation but before its name has been assigned to `$tmp'.
23231 $debug ||
23232 {
23233   tmp=
23234   trap 'exit_status=$?
23235   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23236 ' 0
23237   trap '{ (exit 1); exit 1; }' 1 2 13 15
23238 }
23239 # Create a (secure) tmp directory for tmp files.
23240
23241 {
23242   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23243   test -n "$tmp" && test -d "$tmp"
23244 }  ||
23245 {
23246   tmp=./conf$$-$RANDOM
23247   (umask 077 && mkdir "$tmp")
23248 } ||
23249 {
23250    echo "$me: cannot create a temporary directory in ." >&2
23251    { (exit 1); exit 1; }
23252 }
23253
23254 #
23255 # Set up the sed scripts for CONFIG_FILES section.
23256 #
23257
23258 # No need to generate the scripts if there are no CONFIG_FILES.
23259 # This happens for instance when ./config.status config.h
23260 if test -n "$CONFIG_FILES"; then
23261
23262 _ACEOF
23263
23264
23265
23266 ac_delim='%!_!# '
23267 for ac_last_try in false false false false false :; do
23268   cat >conf$$subs.sed <<_ACEOF
23269 SHELL!$SHELL$ac_delim
23270 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23271 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23272 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23273 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23274 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23275 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23276 exec_prefix!$exec_prefix$ac_delim
23277 prefix!$prefix$ac_delim
23278 program_transform_name!$program_transform_name$ac_delim
23279 bindir!$bindir$ac_delim
23280 sbindir!$sbindir$ac_delim
23281 libexecdir!$libexecdir$ac_delim
23282 datarootdir!$datarootdir$ac_delim
23283 datadir!$datadir$ac_delim
23284 sysconfdir!$sysconfdir$ac_delim
23285 sharedstatedir!$sharedstatedir$ac_delim
23286 localstatedir!$localstatedir$ac_delim
23287 includedir!$includedir$ac_delim
23288 oldincludedir!$oldincludedir$ac_delim
23289 docdir!$docdir$ac_delim
23290 infodir!$infodir$ac_delim
23291 htmldir!$htmldir$ac_delim
23292 dvidir!$dvidir$ac_delim
23293 pdfdir!$pdfdir$ac_delim
23294 psdir!$psdir$ac_delim
23295 libdir!$libdir$ac_delim
23296 localedir!$localedir$ac_delim
23297 mandir!$mandir$ac_delim
23298 DEFS!$DEFS$ac_delim
23299 ECHO_C!$ECHO_C$ac_delim
23300 ECHO_N!$ECHO_N$ac_delim
23301 ECHO_T!$ECHO_T$ac_delim
23302 LIBS!$LIBS$ac_delim
23303 build_alias!$build_alias$ac_delim
23304 host_alias!$host_alias$ac_delim
23305 target_alias!$target_alias$ac_delim
23306 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23307 CC!$CC$ac_delim
23308 CFLAGS!$CFLAGS$ac_delim
23309 LDFLAGS!$LDFLAGS$ac_delim
23310 CPPFLAGS!$CPPFLAGS$ac_delim
23311 ac_ct_CC!$ac_ct_CC$ac_delim
23312 EXEEXT!$EXEEXT$ac_delim
23313 OBJEXT!$OBJEXT$ac_delim
23314 CXX!$CXX$ac_delim
23315 CXXFLAGS!$CXXFLAGS$ac_delim
23316 ac_ct_CXX!$ac_ct_CXX$ac_delim
23317 CPP!$CPP$ac_delim
23318 subdirs!$subdirs$ac_delim
23319 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23320 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23321 build!$build$ac_delim
23322 build_cpu!$build_cpu$ac_delim
23323 build_vendor!$build_vendor$ac_delim
23324 build_os!$build_os$ac_delim
23325 host!$host$ac_delim
23326 host_cpu!$host_cpu$ac_delim
23327 host_vendor!$host_vendor$ac_delim
23328 host_os!$host_os$ac_delim
23329 target!$target$ac_delim
23330 target_cpu!$target_cpu$ac_delim
23331 target_vendor!$target_vendor$ac_delim
23332 target_os!$target_os$ac_delim
23333 OS!$OS$ac_delim
23334 HOST_OS!$HOST_OS$ac_delim
23335 TARGET_OS!$TARGET_OS$ac_delim
23336 LINKALL!$LINKALL$ac_delim
23337 NOLINKALL!$NOLINKALL$ac_delim
23338 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23339 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23340 ARCH!$ARCH$ac_delim
23341 HOST_ARCH!$HOST_ARCH$ac_delim
23342 ENDIAN!$ENDIAN$ac_delim
23343 GREP!$GREP$ac_delim
23344 EGREP!$EGREP$ac_delim
23345 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23346 BUILD_CC!$BUILD_CC$ac_delim
23347 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23348 BUILD_CXX!$BUILD_CXX$ac_delim
23349 CVSBUILD!$CVSBUILD$ac_delim
23350 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23351 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23352 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23353 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23354 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23355 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23356 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23357 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23358 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23359 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23360 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23361 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23362 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23363 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23364 JIT!$JIT$ac_delim
23365 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23366 _ACEOF
23367
23368   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23369     break
23370   elif $ac_last_try; then
23371     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23372 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23373    { (exit 1); exit 1; }; }
23374   else
23375     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23376   fi
23377 done
23378
23379 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23380 if test -n "$ac_eof"; then
23381   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23382   ac_eof=`expr $ac_eof + 1`
23383 fi
23384
23385 cat >>$CONFIG_STATUS <<_ACEOF
23386 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23388 _ACEOF
23389 sed '
23390 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23391 s/^/s,@/; s/!/@,|#_!!_#|/
23392 :n
23393 t n
23394 s/'"$ac_delim"'$/,g/; t
23395 s/$/\\/; p
23396 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23397 ' >>$CONFIG_STATUS <conf$$subs.sed
23398 rm -f conf$$subs.sed
23399 cat >>$CONFIG_STATUS <<_ACEOF
23400 CEOF$ac_eof
23401 _ACEOF
23402
23403
23404 ac_delim='%!_!# '
23405 for ac_last_try in false false false false false :; do
23406   cat >conf$$subs.sed <<_ACEOF
23407 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23408 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23409 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23410 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23411 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23412 ENABLE_PIC!$ENABLE_PIC$ac_delim
23413 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23414 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23415 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23416 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23417 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23418 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23419 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23420 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23421 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23422 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23423 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23424 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23425 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23426 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23427 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23428 NM!$NM$ac_delim
23429 ifGNUmake!$ifGNUmake$ac_delim
23430 LN_S!$LN_S$ac_delim
23431 CMP!$CMP$ac_delim
23432 CP!$CP$ac_delim
23433 DATE!$DATE$ac_delim
23434 FIND!$FIND$ac_delim
23435 MKDIR!$MKDIR$ac_delim
23436 MV!$MV$ac_delim
23437 RANLIB!$RANLIB$ac_delim
23438 AR!$AR$ac_delim
23439 RM!$RM$ac_delim
23440 SED!$SED$ac_delim
23441 TAR!$TAR$ac_delim
23442 BINPWD!$BINPWD$ac_delim
23443 GRAPHVIZ!$GRAPHVIZ$ac_delim
23444 DOT!$DOT$ac_delim
23445 FDP!$FDP$ac_delim
23446 NEATO!$NEATO$ac_delim
23447 TWOPI!$TWOPI$ac_delim
23448 CIRCO!$CIRCO$ac_delim
23449 GV!$GV$ac_delim
23450 DOTTY!$DOTTY$ac_delim
23451 XDOT_PY!$XDOT_PY$ac_delim
23452 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23453 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23454 INSTALL_DATA!$INSTALL_DATA$ac_delim
23455 BZIP2!$BZIP2$ac_delim
23456 CAT!$CAT$ac_delim
23457 DOXYGEN!$DOXYGEN$ac_delim
23458 GROFF!$GROFF$ac_delim
23459 GZIPBIN!$GZIPBIN$ac_delim
23460 PDFROFF!$PDFROFF$ac_delim
23461 ZIP!$ZIP$ac_delim
23462 OCAMLC!$OCAMLC$ac_delim
23463 OCAMLOPT!$OCAMLOPT$ac_delim
23464 OCAMLDEP!$OCAMLDEP$ac_delim
23465 OCAMLDOC!$OCAMLDOC$ac_delim
23466 GAS!$GAS$ac_delim
23467 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23468 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23469 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23470 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23471 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23472 LIBADD_DL!$LIBADD_DL$ac_delim
23473 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23474 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23475 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23476 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23477 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23478 PYTHON!$PYTHON$ac_delim
23479 USE_UDIS86!$USE_UDIS86$ac_delim
23480 USE_OPROFILE!$USE_OPROFILE$ac_delim
23481 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23482 XML2CONFIG!$XML2CONFIG$ac_delim
23483 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23484 LIBXML2_INC!$LIBXML2_INC$ac_delim
23485 CXXCPP!$CXXCPP$ac_delim
23486 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23487 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23488 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23489 MMAP_FILE!$MMAP_FILE$ac_delim
23490 SHLIBEXT!$SHLIBEXT$ac_delim
23491 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23492 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23493 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23494 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23495 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23496 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23497 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23498 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23499 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23500 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23501 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23502 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23503 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23504 _ACEOF
23505
23506   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23507     break
23508   elif $ac_last_try; then
23509     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23510 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23511    { (exit 1); exit 1; }; }
23512   else
23513     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23514   fi
23515 done
23516
23517 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23518 if test -n "$ac_eof"; then
23519   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23520   ac_eof=`expr $ac_eof + 1`
23521 fi
23522
23523 cat >>$CONFIG_STATUS <<_ACEOF
23524 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23526 _ACEOF
23527 sed '
23528 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23529 s/^/s,@/; s/!/@,|#_!!_#|/
23530 :n
23531 t n
23532 s/'"$ac_delim"'$/,g/; t
23533 s/$/\\/; p
23534 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23535 ' >>$CONFIG_STATUS <conf$$subs.sed
23536 rm -f conf$$subs.sed
23537 cat >>$CONFIG_STATUS <<_ACEOF
23538 CEOF$ac_eof
23539 _ACEOF
23540
23541
23542 ac_delim='%!_!# '
23543 for ac_last_try in false false false false false :; do
23544   cat >conf$$subs.sed <<_ACEOF
23545 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23546 RPATH!$RPATH$ac_delim
23547 RDYNAMIC!$RDYNAMIC$ac_delim
23548 program_prefix!$program_prefix$ac_delim
23549 LIBOBJS!$LIBOBJS$ac_delim
23550 LTLIBOBJS!$LTLIBOBJS$ac_delim
23551 _ACEOF
23552
23553   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23554     break
23555   elif $ac_last_try; then
23556     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23558    { (exit 1); exit 1; }; }
23559   else
23560     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23561   fi
23562 done
23563
23564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23565 if test -n "$ac_eof"; then
23566   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23567   ac_eof=`expr $ac_eof + 1`
23568 fi
23569
23570 cat >>$CONFIG_STATUS <<_ACEOF
23571 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23573 _ACEOF
23574 sed '
23575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23576 s/^/s,@/; s/!/@,|#_!!_#|/
23577 :n
23578 t n
23579 s/'"$ac_delim"'$/,g/; t
23580 s/$/\\/; p
23581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23582 ' >>$CONFIG_STATUS <conf$$subs.sed
23583 rm -f conf$$subs.sed
23584 cat >>$CONFIG_STATUS <<_ACEOF
23585 :end
23586 s/|#_!!_#|//g
23587 CEOF$ac_eof
23588 _ACEOF
23589
23590
23591 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23592 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23593 # trailing colons and then remove the whole line if VPATH becomes empty
23594 # (actually we leave an empty line to preserve line numbers).
23595 if test "x$srcdir" = x.; then
23596   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23597 s/:*\$(srcdir):*/:/
23598 s/:*\${srcdir}:*/:/
23599 s/:*@srcdir@:*/:/
23600 s/^\([^=]*=[     ]*\):*/\1/
23601 s/:*$//
23602 s/^[^=]*=[       ]*$//
23603 }'
23604 fi
23605
23606 cat >>$CONFIG_STATUS <<\_ACEOF
23607 fi # test -n "$CONFIG_FILES"
23608
23609
23610 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23611 do
23612   case $ac_tag in
23613   :[FHLC]) ac_mode=$ac_tag; continue;;
23614   esac
23615   case $ac_mode$ac_tag in
23616   :[FHL]*:*);;
23617   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23618 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23619    { (exit 1); exit 1; }; };;
23620   :[FH]-) ac_tag=-:-;;
23621   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23622   esac
23623   ac_save_IFS=$IFS
23624   IFS=:
23625   set x $ac_tag
23626   IFS=$ac_save_IFS
23627   shift
23628   ac_file=$1
23629   shift
23630
23631   case $ac_mode in
23632   :L) ac_source=$1;;
23633   :[FH])
23634     ac_file_inputs=
23635     for ac_f
23636     do
23637       case $ac_f in
23638       -) ac_f="$tmp/stdin";;
23639       *) # Look for the file first in the build tree, then in the source tree
23640          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23641          # because $ac_f cannot contain `:'.
23642          test -f "$ac_f" ||
23643            case $ac_f in
23644            [\\/$]*) false;;
23645            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23646            esac ||
23647            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23648 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23649    { (exit 1); exit 1; }; };;
23650       esac
23651       ac_file_inputs="$ac_file_inputs $ac_f"
23652     done
23653
23654     # Let's still pretend it is `configure' which instantiates (i.e., don't
23655     # use $as_me), people would be surprised to read:
23656     #    /* config.h.  Generated by config.status.  */
23657     configure_input="Generated from "`IFS=:
23658           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23659     if test x"$ac_file" != x-; then
23660       configure_input="$ac_file.  $configure_input"
23661       { echo "$as_me:$LINENO: creating $ac_file" >&5
23662 echo "$as_me: creating $ac_file" >&6;}
23663     fi
23664
23665     case $ac_tag in
23666     *:-:* | *:-) cat >"$tmp/stdin";;
23667     esac
23668     ;;
23669   esac
23670
23671   ac_dir=`$as_dirname -- "$ac_file" ||
23672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23673          X"$ac_file" : 'X\(//\)[^/]' \| \
23674          X"$ac_file" : 'X\(//\)$' \| \
23675          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23676 echo X"$ac_file" |
23677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23678             s//\1/
23679             q
23680           }
23681           /^X\(\/\/\)[^/].*/{
23682             s//\1/
23683             q
23684           }
23685           /^X\(\/\/\)$/{
23686             s//\1/
23687             q
23688           }
23689           /^X\(\/\).*/{
23690             s//\1/
23691             q
23692           }
23693           s/.*/./; q'`
23694   { as_dir="$ac_dir"
23695   case $as_dir in #(
23696   -*) as_dir=./$as_dir;;
23697   esac
23698   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23699     as_dirs=
23700     while :; do
23701       case $as_dir in #(
23702       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23703       *) as_qdir=$as_dir;;
23704       esac
23705       as_dirs="'$as_qdir' $as_dirs"
23706       as_dir=`$as_dirname -- "$as_dir" ||
23707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23708          X"$as_dir" : 'X\(//\)[^/]' \| \
23709          X"$as_dir" : 'X\(//\)$' \| \
23710          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23711 echo X"$as_dir" |
23712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23713             s//\1/
23714             q
23715           }
23716           /^X\(\/\/\)[^/].*/{
23717             s//\1/
23718             q
23719           }
23720           /^X\(\/\/\)$/{
23721             s//\1/
23722             q
23723           }
23724           /^X\(\/\).*/{
23725             s//\1/
23726             q
23727           }
23728           s/.*/./; q'`
23729       test -d "$as_dir" && break
23730     done
23731     test -z "$as_dirs" || eval "mkdir $as_dirs"
23732   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23733 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23734    { (exit 1); exit 1; }; }; }
23735   ac_builddir=.
23736
23737 case "$ac_dir" in
23738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23739 *)
23740   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23741   # A ".." for each directory in $ac_dir_suffix.
23742   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23743   case $ac_top_builddir_sub in
23744   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23745   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23746   esac ;;
23747 esac
23748 ac_abs_top_builddir=$ac_pwd
23749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23750 # for backward compatibility:
23751 ac_top_builddir=$ac_top_build_prefix
23752
23753 case $srcdir in
23754   .)  # We are building in place.
23755     ac_srcdir=.
23756     ac_top_srcdir=$ac_top_builddir_sub
23757     ac_abs_top_srcdir=$ac_pwd ;;
23758   [\\/]* | ?:[\\/]* )  # Absolute name.
23759     ac_srcdir=$srcdir$ac_dir_suffix;
23760     ac_top_srcdir=$srcdir
23761     ac_abs_top_srcdir=$srcdir ;;
23762   *) # Relative name.
23763     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23764     ac_top_srcdir=$ac_top_build_prefix$srcdir
23765     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23766 esac
23767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23768
23769
23770   case $ac_mode in
23771   :F)
23772   #
23773   # CONFIG_FILE
23774   #
23775
23776   case $INSTALL in
23777   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23778   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23779   esac
23780 _ACEOF
23781
23782 cat >>$CONFIG_STATUS <<\_ACEOF
23783 # If the template does not know about datarootdir, expand it.
23784 # FIXME: This hack should be removed a few years after 2.60.
23785 ac_datarootdir_hack=; ac_datarootdir_seen=
23786
23787 case `sed -n '/datarootdir/ {
23788   p
23789   q
23790 }
23791 /@datadir@/p
23792 /@docdir@/p
23793 /@infodir@/p
23794 /@localedir@/p
23795 /@mandir@/p
23796 ' $ac_file_inputs` in
23797 *datarootdir*) ac_datarootdir_seen=yes;;
23798 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23799   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23800 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23801 _ACEOF
23802 cat >>$CONFIG_STATUS <<_ACEOF
23803   ac_datarootdir_hack='
23804   s&@datadir@&$datadir&g
23805   s&@docdir@&$docdir&g
23806   s&@infodir@&$infodir&g
23807   s&@localedir@&$localedir&g
23808   s&@mandir@&$mandir&g
23809     s&\\\${datarootdir}&$datarootdir&g' ;;
23810 esac
23811 _ACEOF
23812
23813 # Neutralize VPATH when `$srcdir' = `.'.
23814 # Shell code in configure.ac might set extrasub.
23815 # FIXME: do we really want to maintain this feature?
23816 cat >>$CONFIG_STATUS <<_ACEOF
23817   sed "$ac_vpsub
23818 $extrasub
23819 _ACEOF
23820 cat >>$CONFIG_STATUS <<\_ACEOF
23821 :t
23822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23823 s&@configure_input@&$configure_input&;t t
23824 s&@top_builddir@&$ac_top_builddir_sub&;t t
23825 s&@srcdir@&$ac_srcdir&;t t
23826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23827 s&@top_srcdir@&$ac_top_srcdir&;t t
23828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23829 s&@builddir@&$ac_builddir&;t t
23830 s&@abs_builddir@&$ac_abs_builddir&;t t
23831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23832 s&@INSTALL@&$ac_INSTALL&;t t
23833 $ac_datarootdir_hack
23834 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23835
23836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23837   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23838   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23839   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23840 which seems to be undefined.  Please make sure it is defined." >&5
23841 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23842 which seems to be undefined.  Please make sure it is defined." >&2;}
23843
23844   rm -f "$tmp/stdin"
23845   case $ac_file in
23846   -) cat "$tmp/out"; rm -f "$tmp/out";;
23847   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23848   esac
23849  ;;
23850   :H)
23851   #
23852   # CONFIG_HEADER
23853   #
23854 _ACEOF
23855
23856 # Transform confdefs.h into a sed script `conftest.defines', that
23857 # substitutes the proper values into config.h.in to produce config.h.
23858 rm -f conftest.defines conftest.tail
23859 # First, append a space to every undef/define line, to ease matching.
23860 echo 's/$/ /' >conftest.defines
23861 # Then, protect against being on the right side of a sed subst, or in
23862 # an unquoted here document, in config.status.  If some macros were
23863 # called several times there might be several #defines for the same
23864 # symbol, which is useless.  But do not sort them, since the last
23865 # AC_DEFINE must be honored.
23866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23867 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23868 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23869 # PARAMS is the parameter list in the macro definition--in most cases, it's
23870 # just an empty string.
23871 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23872 ac_dB='\\)[      (].*,\\1define\\2'
23873 ac_dC=' '
23874 ac_dD=' ,'
23875
23876 uniq confdefs.h |
23877   sed -n '
23878         t rset
23879         :rset
23880         s/^[     ]*#[    ]*define[       ][      ]*//
23881         t ok
23882         d
23883         :ok
23884         s/[\\&,]/\\&/g
23885         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23886         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23887   ' >>conftest.defines
23888
23889 # Remove the space that was appended to ease matching.
23890 # Then replace #undef with comments.  This is necessary, for
23891 # example, in the case of _POSIX_SOURCE, which is predefined and required
23892 # on some systems where configure will not decide to define it.
23893 # (The regexp can be short, since the line contains either #define or #undef.)
23894 echo 's/ $//
23895 s,^[     #]*u.*,/* & */,' >>conftest.defines
23896
23897 # Break up conftest.defines:
23898 ac_max_sed_lines=50
23899
23900 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23901 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23902 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23903 # et cetera.
23904 ac_in='$ac_file_inputs'
23905 ac_out='"$tmp/out1"'
23906 ac_nxt='"$tmp/out2"'
23907
23908 while :
23909 do
23910   # Write a here document:
23911     cat >>$CONFIG_STATUS <<_ACEOF
23912     # First, check the format of the line:
23913     cat >"\$tmp/defines.sed" <<\\CEOF
23914 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23915 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23916 b
23917 :def
23918 _ACEOF
23919   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23920   echo 'CEOF
23921     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23922   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23923   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23924   grep . conftest.tail >/dev/null || break
23925   rm -f conftest.defines
23926   mv conftest.tail conftest.defines
23927 done
23928 rm -f conftest.defines conftest.tail
23929
23930 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23931 cat >>$CONFIG_STATUS <<\_ACEOF
23932   if test x"$ac_file" != x-; then
23933     echo "/* $configure_input  */" >"$tmp/config.h"
23934     cat "$ac_result" >>"$tmp/config.h"
23935     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23936       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23937 echo "$as_me: $ac_file is unchanged" >&6;}
23938     else
23939       rm -f $ac_file
23940       mv "$tmp/config.h" $ac_file
23941     fi
23942   else
23943     echo "/* $configure_input  */"
23944     cat "$ac_result"
23945   fi
23946   rm -f "$tmp/out12"
23947  ;;
23948
23949   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23950 echo "$as_me: executing $ac_file commands" >&6;}
23951  ;;
23952   esac
23953
23954
23955   case $ac_file$ac_mode in
23956     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23957    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23958     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23959    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23960     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23961    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23962     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23963    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23964     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23965    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23966     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23967    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23968     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23969    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23970     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23971    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23972     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23973    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23974     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23975    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23976     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23977    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23978     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23979    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23980     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23981    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23982
23983   esac
23984 done # for ac_tag
23985
23986
23987 { (exit 0); exit 0; }
23988 _ACEOF
23989 chmod +x $CONFIG_STATUS
23990 ac_clean_files=$ac_clean_files_save
23991
23992
23993 # configure is writing to config.log, and then calls config.status.
23994 # config.status does its own redirection, appending to config.log.
23995 # Unfortunately, on DOS this fails, as config.log is still kept open
23996 # by configure, so config.status won't be able to write to it; its
23997 # output is simply discarded.  So we exec the FD to /dev/null,
23998 # effectively closing config.log, so it can be properly (re)opened and
23999 # appended to by config.status.  When coming back to configure, we
24000 # need to make the FD available again.
24001 if test "$no_create" != yes; then
24002   ac_cs_success=:
24003   ac_config_status_args=
24004   test "$silent" = yes &&
24005     ac_config_status_args="$ac_config_status_args --quiet"
24006   exec 5>/dev/null
24007   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24008   exec 5>>config.log
24009   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24010   # would make configure fail if this is the last instruction.
24011   $ac_cs_success || { (exit 1); exit 1; }
24012 fi
24013
24014 #
24015 # CONFIG_SUBDIRS section.
24016 #
24017 if test "$no_recursion" != yes; then
24018
24019   # Remove --cache-file and --srcdir arguments so they do not pile up.
24020   ac_sub_configure_args=
24021   ac_prev=
24022   eval "set x $ac_configure_args"
24023   shift
24024   for ac_arg
24025   do
24026     if test -n "$ac_prev"; then
24027       ac_prev=
24028       continue
24029     fi
24030     case $ac_arg in
24031     -cache-file | --cache-file | --cache-fil | --cache-fi \
24032     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24033       ac_prev=cache_file ;;
24034     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24035     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24036     | --c=*)
24037       ;;
24038     --config-cache | -C)
24039       ;;
24040     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24041       ac_prev=srcdir ;;
24042     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24043       ;;
24044     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24045       ac_prev=prefix ;;
24046     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24047       ;;
24048     *)
24049       case $ac_arg in
24050       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24051       esac
24052       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24053     esac
24054   done
24055
24056   # Always prepend --prefix to ensure using the same prefix
24057   # in subdir configurations.
24058   ac_arg="--prefix=$prefix"
24059   case $ac_arg in
24060   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24061   esac
24062   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24063
24064   ac_popdir=`pwd`
24065   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24066
24067     # Do not complain, so a configure script can configure whichever
24068     # parts of a large source tree are present.
24069     test -d "$srcdir/$ac_dir" || continue
24070
24071     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24072     echo "$as_me:$LINENO: $ac_msg" >&5
24073     echo "$ac_msg" >&6
24074     { as_dir="$ac_dir"
24075   case $as_dir in #(
24076   -*) as_dir=./$as_dir;;
24077   esac
24078   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24079     as_dirs=
24080     while :; do
24081       case $as_dir in #(
24082       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24083       *) as_qdir=$as_dir;;
24084       esac
24085       as_dirs="'$as_qdir' $as_dirs"
24086       as_dir=`$as_dirname -- "$as_dir" ||
24087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24088          X"$as_dir" : 'X\(//\)[^/]' \| \
24089          X"$as_dir" : 'X\(//\)$' \| \
24090          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24091 echo X"$as_dir" |
24092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24093             s//\1/
24094             q
24095           }
24096           /^X\(\/\/\)[^/].*/{
24097             s//\1/
24098             q
24099           }
24100           /^X\(\/\/\)$/{
24101             s//\1/
24102             q
24103           }
24104           /^X\(\/\).*/{
24105             s//\1/
24106             q
24107           }
24108           s/.*/./; q'`
24109       test -d "$as_dir" && break
24110     done
24111     test -z "$as_dirs" || eval "mkdir $as_dirs"
24112   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24113 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24114    { (exit 1); exit 1; }; }; }
24115     ac_builddir=.
24116
24117 case "$ac_dir" in
24118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24119 *)
24120   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24121   # A ".." for each directory in $ac_dir_suffix.
24122   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24123   case $ac_top_builddir_sub in
24124   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24125   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24126   esac ;;
24127 esac
24128 ac_abs_top_builddir=$ac_pwd
24129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24130 # for backward compatibility:
24131 ac_top_builddir=$ac_top_build_prefix
24132
24133 case $srcdir in
24134   .)  # We are building in place.
24135     ac_srcdir=.
24136     ac_top_srcdir=$ac_top_builddir_sub
24137     ac_abs_top_srcdir=$ac_pwd ;;
24138   [\\/]* | ?:[\\/]* )  # Absolute name.
24139     ac_srcdir=$srcdir$ac_dir_suffix;
24140     ac_top_srcdir=$srcdir
24141     ac_abs_top_srcdir=$srcdir ;;
24142   *) # Relative name.
24143     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24144     ac_top_srcdir=$ac_top_build_prefix$srcdir
24145     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24146 esac
24147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24148
24149
24150     cd "$ac_dir"
24151
24152     # Check for guested configure; otherwise get Cygnus style configure.
24153     if test -f "$ac_srcdir/configure.gnu"; then
24154       ac_sub_configure=$ac_srcdir/configure.gnu
24155     elif test -f "$ac_srcdir/configure"; then
24156       ac_sub_configure=$ac_srcdir/configure
24157     elif test -f "$ac_srcdir/configure.in"; then
24158       # This should be Cygnus configure.
24159       ac_sub_configure=$ac_aux_dir/configure
24160     else
24161       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24163       ac_sub_configure=
24164     fi
24165
24166     # The recursion is here.
24167     if test -n "$ac_sub_configure"; then
24168       # Make the cache file name correct relative to the subdirectory.
24169       case $cache_file in
24170       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24171       *) # Relative name.
24172         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24173       esac
24174
24175       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24176 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24177       # The eval makes quoting arguments work.
24178       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24179            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24180         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24181 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24182    { (exit 1); exit 1; }; }
24183     fi
24184
24185     cd "$ac_popdir"
24186   done
24187 fi
24188