Add an autoconf option for turning on -gsplit-dwarf by default
[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_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 ENABLE_DOCS
704 ENABLE_DOXYGEN
705 LLVM_ENABLE_THREADS
706 ENABLE_PTHREADS
707 LLVM_ENABLE_ZLIB
708 ENABLE_PIC
709 ENABLE_SHARED
710 ENABLE_EMBED_STDCXX
711 ENABLE_TIMESTAMPS
712 ENABLE_BACKTRACES
713 TARGETS_TO_BUILD
714 LLVM_ENUM_TARGETS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
718 OPTIMIZE_OPTION
719 EXTRA_OPTIONS
720 EXTRA_LD_OPTIONS
721 CLANG_SRC_ROOT
722 BINUTILS_INCDIR
723 INTERNAL_PREFIX
724 NM
725 ifGNUmake
726 LN_S
727 CMP
728 CP
729 DATE
730 FIND
731 MKDIR
732 MV
733 RANLIB
734 AR
735 RM
736 SED
737 TAR
738 BINPWD
739 GRAPHVIZ
740 DOT
741 FDP
742 NEATO
743 TWOPI
744 CIRCO
745 GV
746 DOTTY
747 XDOT_PY
748 INSTALL_PROGRAM
749 INSTALL_SCRIPT
750 INSTALL_DATA
751 BZIP2
752 CAT
753 DOXYGEN
754 GROFF
755 GZIPBIN
756 PDFROFF
757 ZIP
758 OCAMLC
759 OCAMLOPT
760 OCAMLDEP
761 OCAMLDOC
762 GAS
763 HAVE_LINK_VERSION_SCRIPT
764 INSTALL_LTDL_TRUE
765 INSTALL_LTDL_FALSE
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
768 LIBADD_DL
769 NO_VARIADIC_MACROS
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
773 NO_UNINITIALIZED
774 PYTHON
775 USE_UDIS86
776 USE_OPROFILE
777 USE_INTEL_JITEVENTS
778 XML2CONFIG
779 LIBXML2_LIBS
780 LIBXML2_INC
781 CXXCPP
782 HAVE_PTHREAD
783 HAVE_LIBZ
784 HUGE_VAL_SANITY
785 MMAP_FILE
786 SHLIBEXT
787 SHLIBPATH_VAR
788 LLVM_PREFIX
789 LLVM_BINDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 program_prefix
804 LIBOBJS
805 LTLIBOBJS'
806 ac_subst_files=''
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CPP
818 CXXCPP'
819 ac_subdirs_all='projects/llvm-gcc
820 projects/test-suite
821 projects/llvm-test
822 projects/poolalloc
823 projects/llvm-poolalloc
824 projects/sample
825 projects/privbracket
826 projects/llvm-stacker
827 projects/llvm-reopt
828 projects/llvm-java
829 projects/llvm-tv
830 projects/safecode
831 projects/llvm-kernel
832 tools/polly'
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939    { (exit 1); exit 1; }; }
940     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941     eval enable_$ac_feature=no ;;
942
943   -docdir | --docdir | --docdi | --doc | --do)
944     ac_prev=docdir ;;
945   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946     docdir=$ac_optarg ;;
947
948   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949     ac_prev=dvidir ;;
950   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951     dvidir=$ac_optarg ;;
952
953   -enable-* | --enable-*)
954     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955     # Reject names that are not valid shell variable names.
956     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958    { (exit 1); exit 1; }; }
959     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960     eval enable_$ac_feature=\$ac_optarg ;;
961
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
970
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
974
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
981
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
986
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
992
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
999
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1004
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1009
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1016
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1021
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1028
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1033
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1037
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1041
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1045
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1054
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1059
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1066
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1073
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1090
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1095
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1100
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1104
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1110
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1121
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1126
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1131
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1138
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1143
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1146
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1149
1150   -with-* | --with-*)
1151     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package| sed 's/-/_/g'`
1157     eval with_$ac_package=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid package name: $ac_package" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_package=`echo $ac_package | sed 's/-/_/g'`
1166     eval with_$ac_package=no ;;
1167
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1171
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1178
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1185
1186   -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188    { (exit 1); exit 1; }; }
1189     ;;
1190
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196    { (exit 1); exit 1; }; }
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1199
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206     ;;
1207
1208   esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   { echo "$as_me: error: missing argument to $ac_option" >&2
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 # Be sure to have absolute directory names.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229    { (exit 1); exit 1; }; }
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244     If a cross compiler is detected then cross compile mode will be used." >&2
1245   elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247   fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259   { echo "$as_me: error: Working directory cannot be determined" >&2
1260    { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262   { echo "$as_me: error: pwd does not report name of working directory" >&2
1263    { (exit 1); exit 1; }; }
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268   ac_srcdir_defaulted=yes
1269   # Try the directory containing this script, then the parent directory.
1270   ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272          X"$0" : 'X\(//\)[^/]' \| \
1273          X"$0" : 'X\(//\)$' \| \
1274          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 echo X"$0" |
1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)[^/].*/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\).*/{
1289             s//\1/
1290             q
1291           }
1292           s/.*/./; q'`
1293   srcdir=$ac_confdir
1294   if test ! -r "$srcdir/$ac_unique_file"; then
1295     srcdir=..
1296   fi
1297 else
1298   ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303    { (exit 1); exit 1; }; }
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308    { (exit 1); exit 1; }; }
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368   --bindir=DIR           user executables [EPREFIX/bin]
1369   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR       program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR           object code libraries [EPREFIX/lib]
1375   --includedir=DIR       C header files [PREFIX/include]
1376   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR          info documentation [DATAROOTDIR/info]
1380   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR           man documentation [DATAROOTDIR/man]
1382   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1383   --htmldir=DIR          html documentation [DOCDIR]
1384   --dvidir=DIR           dvi documentation [DOCDIR]
1385   --pdfdir=DIR           pdf documentation [DOCDIR]
1386   --psdir=DIR            ps documentation [DOCDIR]
1387 _ACEOF
1388
1389   cat <<\_ACEOF
1390
1391 System types:
1392   --build=BUILD     configure for building on BUILD [guessed]
1393   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394   --target=TARGET   configure for building compilers for TARGET [HOST]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399   case $ac_init_help in
1400      short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1401    esac
1402   cat <<\_ACEOF
1403
1404 Optional Features:
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-polly          Use polly if available (default is YES)
1408   --enable-libcpp         Use libc++ if available (default is NO)
1409   --enable-cxx11          Use c++11 if available (default is NO)
1410   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1411   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1412   --enable-clang-static-analyzer
1413                           Enable building of clang Static Analyzer (default is
1414                           YES)
1415   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416   --enable-optimized      Compile with optimizations enabled (default is NO)
1417   --enable-profiling      Compile with profiling enabled (default is NO)
1418   --enable-assertions     Compile with assertion checks enabled (default is
1419                           YES)
1420   --enable-werror         Compile with -Werror enabled (default is NO)
1421   --enable-expensive-checks
1422                           Compile with expensive debug checks enabled (default
1423                           is NO)
1424   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                           NO)
1426   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                           optimization is on and YES if it's off)
1428   --enable-keep-symbols   Do not strip installed executables)
1429   --enable-jit            Enable Just In Time Compiling (default is YES)
1430   --enable-docs           Build documents (default is YES)
1431   --enable-doxygen        Build doxygen documentation (default is NO)
1432   --enable-threads        Use threads if available (default is YES)
1433   --enable-pthreads       Use pthreads if available (default is YES)
1434   --enable-zlib           Use zlib for compression/decompression if available
1435                           (default is YES)
1436   --enable-pic            Build LLVM with Position Independent Code (default
1437                           is YES)
1438   --enable-shared         Build a shared library and link tools against it
1439                           (default is NO)
1440   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                           Win32 DLL (default is NO)
1442   --enable-timestamps     Enable embedding timestamp information in build
1443                           (default is YES)
1444   --enable-backtraces     Enable embedding backtraces on crash (default is
1445                           YES)
1446   --enable-targets        Build specific host targets: all or
1447                           target1,target2,... Valid targets are: host, x86,
1448                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449                           xcore, msp430, nvptx, systemz, r600, and cpp
1450                           (default=all)
1451   --enable-experimental-targets
1452                           Build experimental host targets: disable or
1453                           target1,target2,... (default=disable)
1454   --enable-bindings       Build specific language bindings:
1455                           all,auto,none,{binding-name} (default=auto)
1456   --enable-libffi         Check for the presence of libffi (default is NO)
1457   --enable-ltdl-install   install libltdl
1458
1459 Optional Packages:
1460   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462   --with-optimize-option  Select the compiler options to use for optimized
1463                           builds
1464   --with-extra-options    Specify additional options to compile LLVM with
1465   --with-extra-ld-options Specify additional options to link LLVM with
1466   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1467                           is stdlib)
1468   --with-clang-srcdir     Directory to the out-of-tree Clang source
1469   --with-clang-resource-dir
1470                           Relative directory from the Clang binary for
1471                           resource files
1472   --with-c-include-dirs   Colon separated list of directories clang will
1473                           search for headers
1474   --with-gcc-toolchain    Directory where gcc is installed.
1475   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1476   --with-binutils-include Specify path to binutils/include/ containing
1477                           plugin-api.h file for gold plugin.
1478   --with-bug-report-url   Specify the URL where bug reports should be
1479                           submitted (default=http://llvm.org/bugs/)
1480   --with-internal-prefix  Installation directory for internal files
1481   --with-python           path to python
1482   --with-udis86=<path>    Use udis86 external x86 disassembler library
1483   --with-oprofile=<prefix>
1484                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1485   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1486
1487
1488 Some influential environment variables:
1489   CC          C compiler command
1490   CFLAGS      C compiler flags
1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492               nonstandard directory <lib dir>
1493   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494               you have headers in a nonstandard directory <include dir>
1495   CXX         C++ compiler command
1496   CXXFLAGS    C++ compiler flags
1497   CPP         C preprocessor
1498   CXXCPP      C++ preprocessor
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to <http://llvm.org/bugs/>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" || continue
1512     ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for guested configure.
1548     if test -f "$ac_srcdir/configure.gnu"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551     elif test -f "$ac_srcdir/configure"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure" --help=recursive
1554     else
1555       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556     fi || ac_status=$?
1557     cd "$ac_pwd" || { ac_status=$?; break; }
1558   done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563   cat <<\_ACEOF
1564 LLVM configure 3.4svn
1565 generated by GNU Autoconf 2.60
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571
1572 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1573 _ACEOF
1574   exit
1575 fi
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1579
1580 It was created by LLVM $as_me 3.4svn, which was
1581 generated by GNU Autoconf 2.60.  Invocation command line was
1582
1583   $ $0 $@
1584
1585 _ACEOF
1586 exec 5>>config.log
1587 {
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1592
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1601
1602 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1603 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1606 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1607 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1608 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1609
1610 _ASUNAME
1611
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615   IFS=$as_save_IFS
1616   test -z "$as_dir" && as_dir=.
1617   echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1620
1621 } >&5
1622
1623 cat >&5 <<_ACEOF
1624
1625
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1629
1630 _ACEOF
1631
1632
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1643 do
1644   for ac_arg
1645   do
1646     case $ac_arg in
1647     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649     | -silent | --silent | --silen | --sile | --sil)
1650       continue ;;
1651     *\'*)
1652       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653     esac
1654     case $ac_pass in
1655     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656     2)
1657       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658       if test $ac_must_keep_next = true; then
1659         ac_must_keep_next=false # Got value, back to normal.
1660       else
1661         case $ac_arg in
1662           *=* | --config-cache | -C | -disable-* | --disable-* \
1663           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665           | -with-* | --with-* | -without-* | --without-* | --x)
1666             case "$ac_configure_args0 " in
1667               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668             esac
1669             ;;
1670           -* ) ac_must_keep_next=true ;;
1671         esac
1672       fi
1673       ac_configure_args="$ac_configure_args '$ac_arg'"
1674       ;;
1675     esac
1676   done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log.  We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687   # Save into config.log some information that might help in debugging.
1688   {
1689     echo
1690
1691     cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696     echo
1697     # The following way of writing the cache mishandles newlines in values,
1698 (
1699   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700     eval ac_val=\$$ac_var
1701     case $ac_val in #(
1702     *${as_nl}*)
1703       case $ac_var in #(
1704       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706       esac
1707       case $ac_var in #(
1708       _ | IFS | as_nl) ;; #(
1709       *) $as_unset $ac_var ;;
1710       esac ;;
1711     esac
1712   done
1713   (set) 2>&1 |
1714     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715     *${as_nl}ac_space=\ *)
1716       sed -n \
1717         "s/'\''/'\''\\\\'\'''\''/g;
1718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719       ;; #(
1720     *)
1721       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722       ;;
1723     esac |
1724     sort
1725 )
1726     echo
1727
1728     cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733     echo
1734     for ac_var in $ac_subst_vars
1735     do
1736       eval ac_val=\$$ac_var
1737       case $ac_val in
1738       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739       esac
1740       echo "$ac_var='\''$ac_val'\''"
1741     done | sort
1742     echo
1743
1744     if test -n "$ac_subst_files"; then
1745       cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750       echo
1751       for ac_var in $ac_subst_files
1752       do
1753         eval ac_val=\$$ac_var
1754         case $ac_val in
1755         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756         esac
1757         echo "$ac_var='\''$ac_val'\''"
1758       done | sort
1759       echo
1760     fi
1761
1762     if test -s confdefs.h; then
1763       cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768       echo
1769       cat confdefs.h
1770       echo
1771     fi
1772     test "$ac_signal" != 0 &&
1773       echo "$as_me: caught signal $ac_signal"
1774     echo "$as_me: exit $exit_status"
1775   } >&5
1776   rm -f core *.core core.conftest.* &&
1777     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778     exit $exit_status
1779 ' 0
1780 for ac_signal in 1 2 13 15; do
1781   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1784
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1787
1788 # Predefined preprocessor variables.
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1813
1814
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818   set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822   set x "$ac_default_prefix/share/config.site" \
1823         "$ac_default_prefix/etc/config.site"
1824 fi
1825 shift
1826 for ac_site_file
1827 do
1828   if test -r "$ac_site_file"; then
1829     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831     sed 's/^/| /' "$ac_site_file" >&5
1832     . "$ac_site_file"
1833   fi
1834 done
1835
1836 if test -r "$cache_file"; then
1837   # Some versions of bash will fail to source /dev/null (special
1838   # files actually), so we avoid doing that.
1839   if test -f "$cache_file"; then
1840     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842     case $cache_file in
1843       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844       *)                      . "./$cache_file";;
1845     esac
1846   fi
1847 else
1848   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850   >$cache_file
1851 fi
1852
1853 # Check that the precious variables saved in the cache have kept the same
1854 # value.
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858   eval ac_new_set=\$ac_env_${ac_var}_set
1859   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860   eval ac_new_val=\$ac_env_${ac_var}_value
1861   case $ac_old_set,$ac_new_set in
1862     set,)
1863       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865       ac_cache_corrupted=: ;;
1866     ,set)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,);;
1871     *)
1872       if test "x$ac_old_val" != "x$ac_new_val"; then
1873         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1876 echo "$as_me:   former value:  $ac_old_val" >&2;}
1877         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1878 echo "$as_me:   current value: $ac_new_val" >&2;}
1879         ac_cache_corrupted=:
1880       fi;;
1881   esac
1882   # Pass precious variables to config.status.
1883   if test "$ac_new_set" = set; then
1884     case $ac_new_val in
1885     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886     *) ac_arg=$ac_var=$ac_new_val ;;
1887     esac
1888     case " $ac_configure_args " in
1889       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1890       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891     esac
1892   fi
1893 done
1894 if $ac_cache_corrupted; then
1895   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899    { (exit 1); exit 1; }; }
1900 fi
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931
1932
1933
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MAJOR 3
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<\_ACEOF
1940 #define LLVM_VERSION_MINOR 4
1941 _ACEOF
1942
1943
1944 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1945
1946
1947
1948
1949
1950
1951
1952 ac_aux_dir=
1953 for ac_dir in autoconf "$srcdir"/autoconf; do
1954   if test -f "$ac_dir/install-sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install-sh -c"
1957     break
1958   elif test -f "$ac_dir/install.sh"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/install.sh -c"
1961     break
1962   elif test -f "$ac_dir/shtool"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/shtool install -c"
1965     break
1966   fi
1967 done
1968 if test -z "$ac_aux_dir"; then
1969   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1973
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1981
1982
1983
1984 if test ${srcdir} != "." ; then
1985   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1986     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1987 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1988    { (exit 1); exit 1; }; }
1989   fi
1990 fi
1991
1992 ${CFLAGS=}
1993 ${CXXFLAGS=}
1994
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 if test -n "$ac_tool_prefix"; then
2001   for ac_prog in clang llvm-gcc gcc
2002   do
2003     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$CC"; then
2011   ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026 IFS=$as_save_IFS
2027
2028 fi
2029 fi
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032   { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2034 else
2035   { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 fi
2038
2039
2040     test -n "$CC" && break
2041   done
2042 fi
2043 if test -z "$CC"; then
2044   ac_ct_CC=$CC
2045   for ac_prog in clang llvm-gcc gcc
2046 do
2047   # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$ac_ct_CC"; then
2055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064     ac_cv_prog_ac_ct_CC="$ac_prog"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2071
2072 fi
2073 fi
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6; }
2078 else
2079   { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2081 fi
2082
2083
2084   test -n "$ac_ct_CC" && break
2085 done
2086
2087   if test "x$ac_ct_CC" = x; then
2088     CC=""
2089   else
2090     case $cross_compiling:$ac_tool_warned in
2091 yes:)
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet.  If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet.  If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098 ac_tool_warned=yes ;;
2099 esac
2100     CC=$ac_ct_CC
2101   fi
2102 fi
2103
2104
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109    { (exit 1); exit 1; }; }
2110
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO: checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (ac_try="$ac_compiler --version >&5"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120   (eval "$ac_compiler --version >&5") 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }
2124 { (ac_try="$ac_compiler -v >&5"
2125 case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130   (eval "$ac_compiler -v >&5") 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }
2134 { (ac_try="$ac_compiler -V >&5"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140   (eval "$ac_compiler -V >&5") 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h.  */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h.  */
2151
2152 int
2153 main ()
2154 {
2155
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 #
2169 # List of possible output files, starting from the most likely.
2170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2171 # only as a last resort.  b.out is created by i960 compilers.
2172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2173 #
2174 # The IRIX 6 linker writes into existing files which may not be
2175 # executable, retaining their permissions.  Remove them first so a
2176 # subsequent execution test works.
2177 ac_rmfiles=
2178 for ac_file in $ac_files
2179 do
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2182     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2183   esac
2184 done
2185 rm -f $ac_rmfiles
2186
2187 if { (ac_try="$ac_link_default"
2188 case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193   (eval "$ac_link_default") 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; then
2197   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2199 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2200 # so that the user can short-circuit this test for compilers unknown to
2201 # Autoconf.
2202 for ac_file in $ac_files
2203 do
2204   test -f "$ac_file" || continue
2205   case $ac_file in
2206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207         ;;
2208     [ab].out )
2209         # We found the default executable, but exeext='' is most
2210         # certainly right.
2211         break;;
2212     *.* )
2213         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2214         then :; else
2215            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216         fi
2217         # We set ac_cv_exeext here because the later test for it is not
2218         # safe: cross compilers may not add the suffix if given an `-o'
2219         # argument, so we may need to know it at that point already.
2220         # Even if this section looks crufty: it has the advantage of
2221         # actually working.
2222         break;;
2223     * )
2224         break;;
2225   esac
2226 done
2227 test "$ac_cv_exeext" = no && ac_cv_exeext=
2228
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237    { (exit 77); exit 77; }; }
2238 fi
2239
2240 ac_exeext=$ac_cv_exeext
2241 { echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6; }
2243
2244 # Check that the compiler produces executables we can run.  If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251   if { ac_try='./$ac_file'
2252   { (case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_try") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; }; then
2261     cross_compiling=no
2262   else
2263     if test "$cross_compiling" = maybe; then
2264         cross_compiling=yes
2265     else
2266         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273     fi
2274   fi
2275 fi
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2278
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check that the compiler produces executables we can run.  If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6; }
2287
2288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290 if { (ac_try="$ac_link"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296   (eval "$ac_link") 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }; then
2300   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2302 # work properly (i.e., refer to `conftest.exe'), while it won't with
2303 # `rm'.
2304 for ac_file in conftest.exe conftest conftest.*; do
2305   test -f "$ac_file" || continue
2306   case $ac_file in
2307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2308     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2309           break;;
2310     * ) break;;
2311   esac
2312 done
2313 else
2314   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2320
2321 rm -f conftest$ac_cv_exeext
2322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2324
2325 rm -f conftest.$ac_ext
2326 EXEEXT=$ac_cv_exeext
2327 ac_exeext=$EXEEXT
2328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2330 if test "${ac_cv_objext+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339
2340 int
2341 main ()
2342 {
2343
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.o conftest.obj
2349 if { (ac_try="$ac_compile"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355   (eval "$ac_compile") 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; then
2359   for ac_file in conftest.o conftest.obj conftest.*; do
2360   test -f "$ac_file" || continue;
2361   case $ac_file in
2362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2363     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364        break;;
2365   esac
2366 done
2367 else
2368   echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&2;}
2375    { (exit 1); exit 1; }; }
2376 fi
2377
2378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 fi
2380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381 echo "${ECHO_T}$ac_cv_objext" >&6; }
2382 OBJEXT=$ac_cv_objext
2383 ac_objext=$OBJEXT
2384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395
2396 int
2397 main ()
2398 {
2399 #ifndef __GNUC__
2400        choke me
2401 #endif
2402
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (ac_try="$ac_compile"
2409 case "(($ac_try" in
2410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411   *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414   (eval "$ac_compile") 2>conftest.er1
2415   ac_status=$?
2416   grep -v '^ *+' conftest.er1 >conftest.err
2417   rm -f conftest.er1
2418   cat conftest.err >&5
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); } &&
2421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2422   { (case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427   (eval "$ac_try") 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; } &&
2431          { ac_try='test -s conftest.$ac_objext'
2432   { (case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437   (eval "$ac_try") 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   ac_compiler_gnu=yes
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446         ac_compiler_gnu=no
2447 fi
2448
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2451
2452 fi
2453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2455 GCC=`test $ac_compiler_gnu = yes && echo yes`
2456 ac_test_CFLAGS=${CFLAGS+set}
2457 ac_save_CFLAGS=$CFLAGS
2458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_cc_g+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   ac_save_c_werror_flag=$ac_c_werror_flag
2464    ac_c_werror_flag=yes
2465    ac_cv_prog_cc_g=no
2466    CFLAGS="-g"
2467    cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h.  */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h.  */
2473
2474 int
2475 main ()
2476 {
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (ac_try="$ac_compile"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_compile") 2>conftest.er1
2490   ac_status=$?
2491   grep -v '^ *+' conftest.er1 >conftest.err
2492   rm -f conftest.er1
2493   cat conftest.err >&5
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); } &&
2496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2497   { (case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502   (eval "$ac_try") 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; } &&
2506          { ac_try='test -s conftest.$ac_objext'
2507   { (case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512   (eval "$ac_try") 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; }; then
2516   ac_cv_prog_cc_g=yes
2517 else
2518   echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521         CFLAGS=""
2522       cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544   (eval "$ac_compile") 2>conftest.er1
2545   ac_status=$?
2546   grep -v '^ *+' conftest.er1 >conftest.err
2547   rm -f conftest.er1
2548   cat conftest.err >&5
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); } &&
2551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2552   { (case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557   (eval "$ac_try") 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_try") 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   :
2572 else
2573   echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576         ac_c_werror_flag=$ac_save_c_werror_flag
2577          CFLAGS="-g"
2578          cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2595 case "(($ac_try" in
2596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597   *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600   (eval "$ac_compile") 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2608   { (case "(($ac_try" in
2609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610   *) ac_try_echo=$ac_try;;
2611 esac
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613   (eval "$ac_try") 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; } &&
2617          { ac_try='test -s conftest.$ac_objext'
2618   { (case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623   (eval "$ac_try") 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   ac_cv_prog_cc_g=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632
2633 fi
2634
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 fi
2637
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2640
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642    ac_c_werror_flag=$ac_save_c_werror_flag
2643 fi
2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2646 if test "$ac_test_CFLAGS" = set; then
2647   CFLAGS=$ac_save_CFLAGS
2648 elif test $ac_cv_prog_cc_g = yes; then
2649   if test "$GCC" = yes; then
2650     CFLAGS="-g -O2"
2651   else
2652     CFLAGS="-g"
2653   fi
2654 else
2655   if test "$GCC" = yes; then
2656     CFLAGS="-O2"
2657   else
2658     CFLAGS=
2659   fi
2660 fi
2661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_cc_c89+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   ac_cv_prog_cc_c89=no
2667 ac_save_CC=$CC
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674 #include <stdarg.h>
2675 #include <stdio.h>
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2682      char **p;
2683      int i;
2684 {
2685   return p[i];
2686 }
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2688 {
2689   char *s;
2690   va_list v;
2691   va_start (v,p);
2692   s = g (p, va_arg (v,int));
2693   va_end (v);
2694   return s;
2695 }
2696
2697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2698    function prototypes and stuff, but not '\xHH' hex character constants.
2699    These don't provoke an error unfortunately, instead are silently treated
2700    as 'x'.  The following induces an error, until -std is added to get
2701    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2702    array size at least.  It's necessary to write '\x00'==0 to get something
2703    that's true only with -std.  */
2704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705
2706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2707    inside strings and character constants.  */
2708 #define FOO(x) 'x'
2709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2710
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715 int argc;
2716 char **argv;
2717 int
2718 main ()
2719 {
2720 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2726         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 do
2728   CC="$ac_save_CC $ac_arg"
2729   rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_compile") 2>conftest.er1
2737   ac_status=$?
2738   grep -v '^ *+' conftest.er1 >conftest.err
2739   rm -f conftest.er1
2740   cat conftest.err >&5
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744   { (case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749   (eval "$ac_try") 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_try") 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   ac_cv_prog_cc_c89=$ac_arg
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768
2769 fi
2770
2771 rm -f core conftest.err conftest.$ac_objext
2772   test "x$ac_cv_prog_cc_c89" != "xno" && break
2773 done
2774 rm -f conftest.$ac_ext
2775 CC=$ac_save_CC
2776
2777 fi
2778 # AC_CACHE_VAL
2779 case "x$ac_cv_prog_cc_c89" in
2780   x)
2781     { echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6; } ;;
2783   xno)
2784     { echo "$as_me:$LINENO: result: unsupported" >&5
2785 echo "${ECHO_T}unsupported" >&6; } ;;
2786   *)
2787     CC="$CC $ac_cv_prog_cc_c89"
2788     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2790 esac
2791
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799 ac_ext=cpp
2800 ac_cpp='$CXXCPP $CPPFLAGS'
2801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2804 if test -z "$CXX"; then
2805   if test -n "$CCC"; then
2806     CXX=$CCC
2807   else
2808     if test -n "$ac_tool_prefix"; then
2809   for ac_prog in clang++ llvm-g++ g++
2810   do
2811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_CXX+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$CXX"; then
2819   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 CXX=$ac_cv_prog_CXX
2839 if test -n "$CXX"; then
2840   { echo "$as_me:$LINENO: result: $CXX" >&5
2841 echo "${ECHO_T}$CXX" >&6; }
2842 else
2843   { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847
2848     test -n "$CXX" && break
2849   done
2850 fi
2851 if test -z "$CXX"; then
2852   ac_ct_CXX=$CXX
2853   for ac_prog in clang++ llvm-g++ g++
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   if test -n "$ac_ct_CXX"; then
2863   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     ac_cv_prog_ac_ct_CXX="$ac_prog"
2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2883 if test -n "$ac_ct_CXX"; then
2884   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2885 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2886 else
2887   { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2889 fi
2890
2891
2892   test -n "$ac_ct_CXX" && break
2893 done
2894
2895   if test "x$ac_ct_CXX" = x; then
2896     CXX="g++"
2897   else
2898     case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2901 whose name does not start with the host triplet.  If you think this
2902 configuration is useful to you, please write to autoconf@gnu.org." >&5
2903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet.  If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908     CXX=$ac_ct_CXX
2909   fi
2910 fi
2911
2912   fi
2913 fi
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_compiler --version >&5") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compiler -v >&5") 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler -V >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2947
2948 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h.  */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h.  */
2959
2960 int
2961 main ()
2962 {
2963 #ifndef __GNUC__
2964        choke me
2965 #endif
2966
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2973 case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_compile") 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2986   { (case "(($ac_try" in
2987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988   *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991   (eval "$ac_try") 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; } &&
2995          { ac_try='test -s conftest.$ac_objext'
2996   { (case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_try") 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; }; then
3005   ac_compiler_gnu=yes
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010         ac_compiler_gnu=no
3011 fi
3012
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3015
3016 fi
3017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028    ac_cxx_werror_flag=yes
3029    ac_cv_prog_cxx_g=no
3030    CXXFLAGS="-g"
3031    cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3037
3038 int
3039 main ()
3040 {
3041
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_compile") 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } &&
3060          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3061   { (case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_try") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   ac_cv_prog_cxx_g=yes
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085         CXXFLAGS=""
3086       cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092
3093 int
3094 main ()
3095 {
3096
3097   ;
3098   return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_compile") 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } &&
3115          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3116   { (case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121   (eval "$ac_try") 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; } &&
3125          { ac_try='test -s conftest.$ac_objext'
3126   { (case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_try") 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   :
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3141          CXXFLAGS="-g"
3142          cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compile") 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3172   { (case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_try") 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; } &&
3181          { ac_try='test -s conftest.$ac_objext'
3182   { (case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_try") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; }; then
3191   ac_cv_prog_cxx_g=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211   CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213   if test "$GXX" = yes; then
3214     CXXFLAGS="-g -O2"
3215   else
3216     CXXFLAGS="-g"
3217   fi
3218 else
3219   if test "$GXX" = yes; then
3220     CXXFLAGS="-O2"
3221   else
3222     CXXFLAGS=
3223   fi
3224 fi
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3240   CPP=
3241 fi
3242 if test -z "$CPP"; then
3243   if test "${ac_cv_prog_CPP+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246       # Double quotes because CPP needs to be expanded
3247     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248     do
3249       ac_preproc_ok=false
3250 for ac_c_preproc_warn_flag in '' yes
3251 do
3252   # Use a header file that comes with gcc, so configuring glibc
3253   # with a fresh cross-compiler works.
3254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255   # <limits.h> exists even on freestanding compilers.
3256   # On the NeXT, cc -E runs the code through the compiler's parser,
3257   # not just through cpp. "Syntax error" is here to catch this case.
3258   cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 #ifdef __STDC__
3265 # include <limits.h>
3266 #else
3267 # include <assert.h>
3268 #endif
3269                      Syntax error
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null; then
3284   if test -s conftest.err; then
3285     ac_cpp_err=$ac_c_preproc_warn_flag
3286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287   else
3288     ac_cpp_err=
3289   fi
3290 else
3291   ac_cpp_err=yes
3292 fi
3293 if test -z "$ac_cpp_err"; then
3294   :
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299   # Broken: fails on valid input.
3300 continue
3301 fi
3302
3303 rm -f conftest.err conftest.$ac_ext
3304
3305   # OK, works on sane cases.  Now check whether nonexistent headers
3306   # can be detected and how.
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #include <ac_nonexistent.h>
3314 _ACEOF
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322   ac_status=$?
3323   grep -v '^ *+' conftest.er1 >conftest.err
3324   rm -f conftest.er1
3325   cat conftest.err >&5
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } >/dev/null; then
3328   if test -s conftest.err; then
3329     ac_cpp_err=$ac_c_preproc_warn_flag
3330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331   else
3332     ac_cpp_err=
3333   fi
3334 else
3335   ac_cpp_err=yes
3336 fi
3337 if test -z "$ac_cpp_err"; then
3338   # Broken: success on invalid input.
3339 continue
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344   # Passes both tests.
3345 ac_preproc_ok=:
3346 break
3347 fi
3348
3349 rm -f conftest.err conftest.$ac_ext
3350
3351 done
3352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3353 rm -f conftest.err conftest.$ac_ext
3354 if $ac_preproc_ok; then
3355   break
3356 fi
3357
3358     done
3359     ac_cv_prog_CPP=$CPP
3360
3361 fi
3362   CPP=$ac_cv_prog_CPP
3363 else
3364   ac_cv_prog_CPP=$CPP
3365 fi
3366 { echo "$as_me:$LINENO: result: $CPP" >&5
3367 echo "${ECHO_T}$CPP" >&6; }
3368 ac_preproc_ok=false
3369 for ac_c_preproc_warn_flag in '' yes
3370 do
3371   # Use a header file that comes with gcc, so configuring glibc
3372   # with a fresh cross-compiler works.
3373   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374   # <limits.h> exists even on freestanding compilers.
3375   # On the NeXT, cc -E runs the code through the compiler's parser,
3376   # not just through cpp. "Syntax error" is here to catch this case.
3377   cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383 #ifdef __STDC__
3384 # include <limits.h>
3385 #else
3386 # include <assert.h>
3387 #endif
3388                      Syntax error
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } >/dev/null; then
3403   if test -s conftest.err; then
3404     ac_cpp_err=$ac_c_preproc_warn_flag
3405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   :
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418   # Broken: fails on valid input.
3419 continue
3420 fi
3421
3422 rm -f conftest.err conftest.$ac_ext
3423
3424   # OK, works on sane cases.  Now check whether nonexistent headers
3425   # can be detected and how.
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #include <ac_nonexistent.h>
3433 _ACEOF
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } >/dev/null; then
3447   if test -s conftest.err; then
3448     ac_cpp_err=$ac_c_preproc_warn_flag
3449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450   else
3451     ac_cpp_err=
3452   fi
3453 else
3454   ac_cpp_err=yes
3455 fi
3456 if test -z "$ac_cpp_err"; then
3457   # Broken: success on invalid input.
3458 continue
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463   # Passes both tests.
3464 ac_preproc_ok=:
3465 break
3466 fi
3467
3468 rm -f conftest.err conftest.$ac_ext
3469
3470 done
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then
3474   :
3475 else
3476   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&2;}
3480    { (exit 1); exit 1; }; }
3481 fi
3482
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489
3490 if test "$CXX" = "clang++" ; then
3491   { echo "$as_me:$LINENO: checking whether clang works" >&5
3492 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3493   ac_ext=cpp
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498
3499
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <limits>
3507 #if __has_include (<cxxabi.h>)
3508 #include <cxxabi.h>
3509 #endif
3510 #if __has_include (<unwind.h>)
3511 #include <unwind.h>
3512 #endif
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529   (eval "$ac_compile") 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } &&
3536          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3537   { (case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_try") 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }; } &&
3546          { ac_try='test -s conftest.$ac_objext'
3547   { (case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; }; then
3556
3557   { echo "$as_me:$LINENO: result: yes" >&5
3558 echo "${ECHO_T}yes" >&6; }
3559
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564
3565   { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3567   { { 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
3568 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;}
3569    { (exit 1); exit 1; }; }
3570
3571 fi
3572
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574   ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
3580 fi
3581
3582
3583
3584 if test -d ${srcdir}/projects/llvm-gcc ; then
3585   subdirs="$subdirs projects/llvm-gcc"
3586
3587 fi
3588
3589 if test -d ${srcdir}/projects/test-suite ; then
3590   subdirs="$subdirs projects/test-suite"
3591
3592 fi
3593
3594 if test -d ${srcdir}/projects/llvm-test ; then
3595   subdirs="$subdirs projects/llvm-test"
3596
3597 fi
3598
3599 if test -d ${srcdir}/projects/poolalloc ; then
3600   subdirs="$subdirs projects/poolalloc"
3601
3602 fi
3603
3604 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3605   subdirs="$subdirs projects/llvm-poolalloc"
3606
3607 fi
3608
3609 for i in `ls ${srcdir}/projects`
3610 do
3611   if test -d ${srcdir}/projects/${i} ; then
3612     case ${i} in
3613       sample)       subdirs="$subdirs projects/sample"
3614     ;;
3615       privbracket)  subdirs="$subdirs projects/privbracket"
3616  ;;
3617       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3618  ;;
3619       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3620 ;;
3621       llvm-java)    subdirs="$subdirs projects/llvm-java"
3622  ;;
3623       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3624    ;;
3625       safecode)     subdirs="$subdirs projects/safecode"
3626  ;;
3627       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3628  ;;
3629       compiler-rt)       ;;
3630       llvm-gcc)       ;;
3631       test-suite)     ;;
3632       llvm-test)      ;;
3633       poolalloc)      ;;
3634       llvm-poolalloc) ;;
3635       *)
3636         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3637 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3638         ;;
3639     esac
3640   fi
3641 done
3642
3643 # Check whether --enable-polly was given.
3644 if test "${enable_polly+set}" = set; then
3645   enableval=$enable_polly;
3646 else
3647   enableval=default
3648 fi
3649
3650 case "$enableval" in
3651   yes) ENABLE_POLLY=1
3652  ;;
3653   no)  ENABLE_POLLY=0
3654  ;;
3655   default) ENABLE_POLLY=1
3656  ;;
3657   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3658 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3659    { (exit 1); exit 1; }; } ;;
3660 esac
3661
3662
3663 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3664   LLVM_HAS_POLLY=1
3665
3666   subdirs="$subdirs tools/polly"
3667
3668 fi
3669
3670
3671 # Make sure we can run config.sub.
3672 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3673   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3674 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3675    { (exit 1); exit 1; }; }
3676
3677 { echo "$as_me:$LINENO: checking build system type" >&5
3678 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3679 if test "${ac_cv_build+set}" = set; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682   ac_build_alias=$build_alias
3683 test "x$ac_build_alias" = x &&
3684   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3685 test "x$ac_build_alias" = x &&
3686   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3688    { (exit 1); exit 1; }; }
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3692    { (exit 1); exit 1; }; }
3693
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3696 echo "${ECHO_T}$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3698 *-*-*) ;;
3699 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3700 echo "$as_me: error: invalid value of canonical build" >&2;}
3701    { (exit 1); exit 1; }; };;
3702 esac
3703 build=$ac_cv_build
3704 ac_save_IFS=$IFS; IFS='-'
3705 set x $ac_cv_build
3706 shift
3707 build_cpu=$1
3708 build_vendor=$2
3709 shift; shift
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3712 build_os=$*
3713 IFS=$ac_save_IFS
3714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3715
3716
3717 { echo "$as_me:$LINENO: checking host system type" >&5
3718 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_host+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   if test "x$host_alias" = x; then
3723   ac_cv_host=$ac_cv_build
3724 else
3725   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3726     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3727 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3728    { (exit 1); exit 1; }; }
3729 fi
3730
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3733 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 case $ac_cv_host in
3735 *-*-*) ;;
3736 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3737 echo "$as_me: error: invalid value of canonical host" >&2;}
3738    { (exit 1); exit 1; }; };;
3739 esac
3740 host=$ac_cv_host
3741 ac_save_IFS=$IFS; IFS='-'
3742 set x $ac_cv_host
3743 shift
3744 host_cpu=$1
3745 host_vendor=$2
3746 shift; shift
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3749 host_os=$*
3750 IFS=$ac_save_IFS
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752
3753
3754 { echo "$as_me:$LINENO: checking target system type" >&5
3755 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3756 if test "${ac_cv_target+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   if test "x$target_alias" = x; then
3760   ac_cv_target=$ac_cv_host
3761 else
3762   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3763     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3764 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3765    { (exit 1); exit 1; }; }
3766 fi
3767
3768 fi
3769 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3770 echo "${ECHO_T}$ac_cv_target" >&6; }
3771 case $ac_cv_target in
3772 *-*-*) ;;
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3774 echo "$as_me: error: invalid value of canonical target" >&2;}
3775    { (exit 1); exit 1; }; };;
3776 esac
3777 target=$ac_cv_target
3778 ac_save_IFS=$IFS; IFS='-'
3779 set x $ac_cv_target
3780 shift
3781 target_cpu=$1
3782 target_vendor=$2
3783 shift; shift
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3786 target_os=$*
3787 IFS=$ac_save_IFS
3788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3789
3790
3791 # The aliases save the names the user supplied, while $host etc.
3792 # will get canonicalized.
3793 test -n "$target_alias" &&
3794   test "$program_prefix$program_suffix$program_transform_name" = \
3795     NONENONEs,x,x, &&
3796   program_prefix=${target_alias}-
3797
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3799 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3800 if test "${llvm_cv_os_type+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   case $host in
3804   *-*-aix*)
3805     llvm_cv_link_all_option="-Wl,--whole-archive"
3806     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807     llvm_cv_os_type="AIX"
3808     llvm_cv_platform_type="Unix" ;;
3809   *-*-irix*)
3810     llvm_cv_link_all_option="-Wl,--whole-archive"
3811     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812     llvm_cv_os_type="IRIX"
3813     llvm_cv_platform_type="Unix" ;;
3814   *-*-cygwin*)
3815     llvm_cv_link_all_option="-Wl,--whole-archive"
3816     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817     llvm_cv_os_type="Cygwin"
3818     llvm_cv_platform_type="Unix" ;;
3819   *-*-darwin*)
3820     llvm_cv_link_all_option="-Wl,-all_load"
3821     llvm_cv_no_link_all_option="-Wl,-noall_load"
3822     llvm_cv_os_type="Darwin"
3823     llvm_cv_platform_type="Unix" ;;
3824   *-*-minix*)
3825     llvm_cv_link_all_option="-Wl,-all_load"
3826     llvm_cv_no_link_all_option="-Wl,-noall_load"
3827     llvm_cv_os_type="Minix"
3828     llvm_cv_platform_type="Unix" ;;
3829   *-*-freebsd* | *-*-kfreebsd-gnu)
3830     llvm_cv_link_all_option="-Wl,--whole-archive"
3831     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832     llvm_cv_os_type="FreeBSD"
3833     llvm_cv_platform_type="Unix" ;;
3834   *-*-openbsd*)
3835     llvm_cv_link_all_option="-Wl,--whole-archive"
3836     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837     llvm_cv_os_type="OpenBSD"
3838     llvm_cv_platform_type="Unix" ;;
3839   *-*-netbsd*)
3840     llvm_cv_link_all_option="-Wl,--whole-archive"
3841     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842     llvm_cv_os_type="NetBSD"
3843     llvm_cv_platform_type="Unix" ;;
3844   *-*-dragonfly*)
3845     llvm_cv_link_all_option="-Wl,--whole-archive"
3846     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847     llvm_cv_os_type="DragonFly"
3848     llvm_cv_platform_type="Unix" ;;
3849   *-*-hpux*)
3850     llvm_cv_link_all_option="-Wl,--whole-archive"
3851     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852     llvm_cv_os_type="HP-UX"
3853     llvm_cv_platform_type="Unix" ;;
3854   *-*-interix*)
3855     llvm_cv_link_all_option="-Wl,--whole-archive"
3856     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857     llvm_cv_os_type="Interix"
3858     llvm_cv_platform_type="Unix" ;;
3859   *-*-linux*)
3860     llvm_cv_link_all_option="-Wl,--whole-archive"
3861     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862     llvm_cv_os_type="Linux"
3863     llvm_cv_platform_type="Unix" ;;
3864   *-*-gnu*)
3865     llvm_cv_link_all_option="-Wl,--whole-archive"
3866     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867     llvm_cv_os_type="GNU"
3868     llvm_cv_platform_type="Unix" ;;
3869   *-*-solaris*)
3870     llvm_cv_link_all_option="-Wl,-z,allextract"
3871     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3872     llvm_cv_os_type="SunOS"
3873     llvm_cv_platform_type="Unix" ;;
3874   *-*-auroraux*)
3875     llvm_cv_link_all_option="-Wl,-z,allextract"
3876     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3877     llvm_cv_os_type="AuroraUX"
3878     llvm_cv_platform_type="Unix" ;;
3879   *-*-win32*)
3880     llvm_cv_link_all_option="-Wl,--whole-archive"
3881     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3882     llvm_cv_os_type="Win32"
3883     llvm_cv_platform_type="Win32" ;;
3884   *-*-mingw*)
3885     llvm_cv_link_all_option="-Wl,--whole-archive"
3886     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887     llvm_cv_os_type="MingW"
3888     llvm_cv_platform_type="Win32" ;;
3889   *-*-haiku*)
3890     llvm_cv_link_all_option="-Wl,--whole-archive"
3891     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892     llvm_cv_os_type="Haiku"
3893     llvm_cv_platform_type="Unix" ;;
3894   *-unknown-eabi*)
3895     llvm_cv_link_all_option="-Wl,--whole-archive"
3896     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897     llvm_cv_os_type="Freestanding"
3898     llvm_cv_platform_type="Unix" ;;
3899   *-unknown-elf*)
3900     llvm_cv_link_all_option="-Wl,--whole-archive"
3901     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3902     llvm_cv_os_type="Freestanding"
3903     llvm_cv_platform_type="Unix" ;;
3904   *)
3905     llvm_cv_link_all_option=""
3906     llvm_cv_no_link_all_option=""
3907     llvm_cv_os_type="Unknown"
3908     llvm_cv_platform_type="Unknown" ;;
3909 esac
3910 fi
3911 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3912 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3913
3914 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3915 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3916 if test "${llvm_cv_target_os_type+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   case $target in
3920   *-*-aix*)
3921     llvm_cv_target_os_type="AIX" ;;
3922   *-*-irix*)
3923     llvm_cv_target_os_type="IRIX" ;;
3924   *-*-cygwin*)
3925     llvm_cv_target_os_type="Cygwin" ;;
3926   *-*-darwin*)
3927     llvm_cv_target_os_type="Darwin" ;;
3928   *-*-minix*)
3929     llvm_cv_target_os_type="Minix" ;;
3930   *-*-freebsd* | *-*-kfreebsd-gnu)
3931     llvm_cv_target_os_type="FreeBSD" ;;
3932   *-*-openbsd*)
3933     llvm_cv_target_os_type="OpenBSD" ;;
3934   *-*-netbsd*)
3935     llvm_cv_target_os_type="NetBSD" ;;
3936   *-*-dragonfly*)
3937     llvm_cv_target_os_type="DragonFly" ;;
3938   *-*-hpux*)
3939     llvm_cv_target_os_type="HP-UX" ;;
3940   *-*-interix*)
3941     llvm_cv_target_os_type="Interix" ;;
3942   *-*-linux*)
3943     llvm_cv_target_os_type="Linux" ;;
3944   *-*-gnu*)
3945     llvm_cv_target_os_type="GNU" ;;
3946   *-*-solaris*)
3947     llvm_cv_target_os_type="SunOS" ;;
3948   *-*-auroraux*)
3949     llvm_cv_target_os_type="AuroraUX" ;;
3950   *-*-win32*)
3951     llvm_cv_target_os_type="Win32" ;;
3952   *-*-mingw*)
3953     llvm_cv_target_os_type="MingW" ;;
3954   *-*-haiku*)
3955     llvm_cv_target_os_type="Haiku" ;;
3956   *-*-rtems*)
3957     llvm_cv_target_os_type="RTEMS" ;;
3958   *-*-nacl*)
3959     llvm_cv_target_os_type="NativeClient" ;;
3960   *-unknown-eabi*)
3961     llvm_cv_target_os_type="Freestanding" ;;
3962   *)
3963     llvm_cv_target_os_type="Unknown" ;;
3964 esac
3965 fi
3966 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3967 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3968
3969 if test "$llvm_cv_os_type" = "Unknown" ; then
3970   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3971 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3972    { (exit 1); exit 1; }; }
3973 fi
3974
3975 OS=$llvm_cv_os_type
3976
3977 HOST_OS=$llvm_cv_os_type
3978
3979 TARGET_OS=$llvm_cv_target_os_type
3980
3981
3982 LINKALL=$llvm_cv_link_all_option
3983
3984 NOLINKALL=$llvm_cv_no_link_all_option
3985
3986
3987 case $llvm_cv_platform_type in
3988   Unix)
3989
3990 cat >>confdefs.h <<\_ACEOF
3991 #define LLVM_ON_UNIX 1
3992 _ACEOF
3993
3994     LLVM_ON_UNIX=1
3995
3996     LLVM_ON_WIN32=0
3997
3998     ;;
3999   Win32)
4000
4001 cat >>confdefs.h <<\_ACEOF
4002 #define LLVM_ON_WIN32 1
4003 _ACEOF
4004
4005     LLVM_ON_UNIX=0
4006
4007     LLVM_ON_WIN32=1
4008
4009     ;;
4010 esac
4011
4012 { echo "$as_me:$LINENO: checking target architecture" >&5
4013 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4014 if test "${llvm_cv_target_arch+set}" = set; then
4015   echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017   case $target in
4018   i?86-*)                 llvm_cv_target_arch="x86" ;;
4019   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4020   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4021   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4022   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4023   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4024   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4025   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4026   xcore-*)                llvm_cv_target_arch="XCore" ;;
4027   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4028   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4029   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4030   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4031   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4032   *)                      llvm_cv_target_arch="Unknown" ;;
4033 esac
4034 fi
4035 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4036 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4037
4038 if test "$llvm_cv_target_arch" = "Unknown" ; then
4039   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4040 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4041 fi
4042
4043 case "$llvm_cv_target_arch" in
4044     x86)     LLVM_NATIVE_ARCH="X86" ;;
4045     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4046     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4047 esac
4048
4049 ARCH=$llvm_cv_target_arch
4050
4051
4052 case $host in
4053   i?86-*)                 host_arch="x86" ;;
4054   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4055   sparc*-*)               host_arch="Sparc" ;;
4056   powerpc*-*)             host_arch="PowerPC" ;;
4057   arm*-*)                 host_arch="ARM" ;;
4058   aarch64*-*)             host_arch="AArch64" ;;
4059   mips-* | mips64-*)      host_arch="Mips" ;;
4060   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4061   xcore-*)                host_arch="XCore" ;;
4062   msp430-*)               host_arch="MSP430" ;;
4063   hexagon-*)              host_arch="Hexagon" ;;
4064   mblaze-*)               host_arch="MBlaze" ;;
4065   s390x-*)                host_arch="SystemZ" ;;
4066   *)                      host_arch="Unknown" ;;
4067 esac
4068
4069 if test "$host_arch" = "Unknown" ; then
4070   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4071 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4072 fi
4073
4074 HOST_ARCH=$host_arch
4075
4076
4077
4078
4079 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4080 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4081 if test "${ac_cv_path_GREP+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   # Extract the first word of "grep ggrep" to use in msg output
4085 if test -z "$GREP"; then
4086 set dummy grep ggrep; ac_prog_name=$2
4087 if test "${ac_cv_path_GREP+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   ac_path_GREP_found=false
4091 # Loop through the user's path and test for each of PROGNAME-LIST
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_prog in grep ggrep; do
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4100     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4101     # Check for GNU ac_path_GREP and select it if it is found.
4102   # Check for GNU $ac_path_GREP
4103 case `"$ac_path_GREP" --version 2>&1` in
4104 *GNU*)
4105   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4106 *)
4107   ac_count=0
4108   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4109   while :
4110   do
4111     cat "conftest.in" "conftest.in" >"conftest.tmp"
4112     mv "conftest.tmp" "conftest.in"
4113     cp "conftest.in" "conftest.nl"
4114     echo 'GREP' >> "conftest.nl"
4115     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117     ac_count=`expr $ac_count + 1`
4118     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4119       # Best one so far, save it but keep looking for a better one
4120       ac_cv_path_GREP="$ac_path_GREP"
4121       ac_path_GREP_max=$ac_count
4122     fi
4123     # 10*(2^10) chars as input seems more than enough
4124     test $ac_count -gt 10 && break
4125   done
4126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 esac
4128
4129
4130     $ac_path_GREP_found && break 3
4131   done
4132 done
4133
4134 done
4135 IFS=$as_save_IFS
4136
4137
4138 fi
4139
4140 GREP="$ac_cv_path_GREP"
4141 if test -z "$GREP"; then
4142   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4143 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4144    { (exit 1); exit 1; }; }
4145 fi
4146
4147 else
4148   ac_cv_path_GREP=$GREP
4149 fi
4150
4151
4152 fi
4153 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4154 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4155  GREP="$ac_cv_path_GREP"
4156
4157
4158 { echo "$as_me:$LINENO: checking for egrep" >&5
4159 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4160 if test "${ac_cv_path_EGREP+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4164    then ac_cv_path_EGREP="$GREP -E"
4165    else
4166      # Extract the first word of "egrep" to use in msg output
4167 if test -z "$EGREP"; then
4168 set dummy egrep; ac_prog_name=$2
4169 if test "${ac_cv_path_EGREP+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   ac_path_EGREP_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179   for ac_prog in egrep; do
4180   for ac_exec_ext in '' $ac_executable_extensions; do
4181     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4182     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4183     # Check for GNU ac_path_EGREP and select it if it is found.
4184   # Check for GNU $ac_path_EGREP
4185 case `"$ac_path_EGREP" --version 2>&1` in
4186 *GNU*)
4187   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4188 *)
4189   ac_count=0
4190   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4191   while :
4192   do
4193     cat "conftest.in" "conftest.in" >"conftest.tmp"
4194     mv "conftest.tmp" "conftest.in"
4195     cp "conftest.in" "conftest.nl"
4196     echo 'EGREP' >> "conftest.nl"
4197     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199     ac_count=`expr $ac_count + 1`
4200     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4201       # Best one so far, save it but keep looking for a better one
4202       ac_cv_path_EGREP="$ac_path_EGREP"
4203       ac_path_EGREP_max=$ac_count
4204     fi
4205     # 10*(2^10) chars as input seems more than enough
4206     test $ac_count -gt 10 && break
4207   done
4208   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 esac
4210
4211
4212     $ac_path_EGREP_found && break 3
4213   done
4214 done
4215
4216 done
4217 IFS=$as_save_IFS
4218
4219
4220 fi
4221
4222 EGREP="$ac_cv_path_EGREP"
4223 if test -z "$EGREP"; then
4224   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4225 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4226    { (exit 1); exit 1; }; }
4227 fi
4228
4229 else
4230   ac_cv_path_EGREP=$EGREP
4231 fi
4232
4233
4234    fi
4235 fi
4236 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4237 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4238  EGREP="$ac_cv_path_EGREP"
4239
4240
4241 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4242 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4243 if test "${ac_cv_header_stdc+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 #include <stdlib.h>
4253 #include <stdarg.h>
4254 #include <string.h>
4255 #include <float.h>
4256
4257 int
4258 main ()
4259 {
4260
4261   ;
4262   return 0;
4263 }
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (ac_try="$ac_compile"
4267 case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_compile") 2>conftest.er1
4273   ac_status=$?
4274   grep -v '^ *+' conftest.er1 >conftest.err
4275   rm -f conftest.er1
4276   cat conftest.err >&5
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); } &&
4279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4280   { (case "(($ac_try" in
4281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282   *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285   (eval "$ac_try") 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; } &&
4289          { ac_try='test -s conftest.$ac_objext'
4290   { (case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295   (eval "$ac_try") 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }; }; then
4299   ac_cv_header_stdc=yes
4300 else
4301   echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304         ac_cv_header_stdc=no
4305 fi
4306
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308
4309 if test $ac_cv_header_stdc = yes; then
4310   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4311   cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 #include <string.h>
4318
4319 _ACEOF
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321   $EGREP "memchr" >/dev/null 2>&1; then
4322   :
4323 else
4324   ac_cv_header_stdc=no
4325 fi
4326 rm -f conftest*
4327
4328 fi
4329
4330 if test $ac_cv_header_stdc = yes; then
4331   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332   cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 #include <stdlib.h>
4339
4340 _ACEOF
4341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342   $EGREP "free" >/dev/null 2>&1; then
4343   :
4344 else
4345   ac_cv_header_stdc=no
4346 fi
4347 rm -f conftest*
4348
4349 fi
4350
4351 if test $ac_cv_header_stdc = yes; then
4352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4353   if test "$cross_compiling" = yes; then
4354   :
4355 else
4356   cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h.  */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h.  */
4362 #include <ctype.h>
4363 #include <stdlib.h>
4364 #if ((' ' & 0x0FF) == 0x020)
4365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 #else
4368 # define ISLOWER(c) \
4369                    (('a' <= (c) && (c) <= 'i') \
4370                      || ('j' <= (c) && (c) <= 'r') \
4371                      || ('s' <= (c) && (c) <= 'z'))
4372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373 #endif
4374
4375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4376 int
4377 main ()
4378 {
4379   int i;
4380   for (i = 0; i < 256; i++)
4381     if (XOR (islower (i), ISLOWER (i))
4382         || toupper (i) != TOUPPER (i))
4383       return 2;
4384   return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest$ac_exeext
4388 if { (ac_try="$ac_link"
4389 case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394   (eval "$ac_link") 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4398   { (case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   :
4408 else
4409   echo "$as_me: program exited with status $ac_status" >&5
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 ( exit $ac_status )
4414 ac_cv_header_stdc=no
4415 fi
4416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4417 fi
4418
4419
4420 fi
4421 fi
4422 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4423 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4424 if test $ac_cv_header_stdc = yes; then
4425
4426 cat >>confdefs.h <<\_ACEOF
4427 #define STDC_HEADERS 1
4428 _ACEOF
4429
4430 fi
4431
4432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4443                   inttypes.h stdint.h unistd.h
4444 do
4445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h.  */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h.  */
4457 $ac_includes_default
4458
4459 #include <$ac_header>
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4463 case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468   (eval "$ac_compile") 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } &&
4475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4476   { (case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481   (eval "$ac_try") 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; } &&
4485          { ac_try='test -s conftest.$ac_objext'
4486   { (case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_try") 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }; }; then
4495   eval "$as_ac_Header=yes"
4496 else
4497   echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500         eval "$as_ac_Header=no"
4501 fi
4502
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 fi
4505 ac_res=`eval echo '${'$as_ac_Header'}'`
4506                { echo "$as_me:$LINENO: result: $ac_res" >&5
4507 echo "${ECHO_T}$ac_res" >&6; }
4508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4509   cat >>confdefs.h <<_ACEOF
4510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4511 _ACEOF
4512
4513 fi
4514
4515 done
4516
4517
4518 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4519 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4520 if test "${ac_cv_c_bigendian+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   # See if sys/param.h defines the BYTE_ORDER macro.
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 #include <sys/types.h>
4531 #include <sys/param.h>
4532
4533 int
4534 main ()
4535 {
4536 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4537  bogus endian macros
4538 #endif
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (ac_try="$ac_compile"
4546 case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551   (eval "$ac_compile") 2>conftest.er1
4552   ac_status=$?
4553   grep -v '^ *+' conftest.er1 >conftest.err
4554   rm -f conftest.er1
4555   cat conftest.err >&5
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); } &&
4558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4559   { (case "(($ac_try" in
4560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561   *) ac_try_echo=$ac_try;;
4562 esac
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564   (eval "$ac_try") 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; } &&
4568          { ac_try='test -s conftest.$ac_objext'
4569   { (case "(($ac_try" in
4570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571   *) ac_try_echo=$ac_try;;
4572 esac
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574   (eval "$ac_try") 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; }; then
4578   # It does; now see whether it defined to BIG_ENDIAN or not.
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h.  */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h.  */
4585 #include <sys/types.h>
4586 #include <sys/param.h>
4587
4588 int
4589 main ()
4590 {
4591 #if BYTE_ORDER != BIG_ENDIAN
4592  not big endian
4593 #endif
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (ac_try="$ac_compile"
4601 case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606   (eval "$ac_compile") 2>conftest.er1
4607   ac_status=$?
4608   grep -v '^ *+' conftest.er1 >conftest.err
4609   rm -f conftest.er1
4610   cat conftest.err >&5
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); } &&
4613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4614   { (case "(($ac_try" in
4615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616   *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619   (eval "$ac_try") 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; } &&
4623          { ac_try='test -s conftest.$ac_objext'
4624   { (case "(($ac_try" in
4625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626   *) ac_try_echo=$ac_try;;
4627 esac
4628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629   (eval "$ac_try") 2>&5
4630   ac_status=$?
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); }; }; then
4633   ac_cv_c_bigendian=yes
4634 else
4635   echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638         ac_cv_c_bigendian=no
4639 fi
4640
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646         # It does not; compile a test program.
4647 if test "$cross_compiling" = yes; then
4648   # try to guess the endianness by grepping values into an object file
4649   ac_cv_c_bigendian=unknown
4650   cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4657 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4658 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4659 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4660 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4661 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4662 int
4663 main ()
4664 {
4665  _ascii (); _ebcdic ();
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (ac_try="$ac_compile"
4672 case "(($ac_try" in
4673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674   *) ac_try_echo=$ac_try;;
4675 esac
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677   (eval "$ac_compile") 2>conftest.er1
4678   ac_status=$?
4679   grep -v '^ *+' conftest.er1 >conftest.err
4680   rm -f conftest.er1
4681   cat conftest.err >&5
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); } &&
4684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4685   { (case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690   (eval "$ac_try") 2>&5
4691   ac_status=$?
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; } &&
4694          { ac_try='test -s conftest.$ac_objext'
4695   { (case "(($ac_try" in
4696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697   *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700   (eval "$ac_try") 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }; }; then
4704   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4705   ac_cv_c_bigendian=yes
4706 fi
4707 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4708   if test "$ac_cv_c_bigendian" = unknown; then
4709     ac_cv_c_bigendian=no
4710   else
4711     # finding both strings is unlikely to happen, but who knows?
4712     ac_cv_c_bigendian=unknown
4713   fi
4714 fi
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719
4720 fi
4721
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 else
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 $ac_includes_default
4731 int
4732 main ()
4733 {
4734
4735   /* Are we little or big endian?  From Harbison&Steele.  */
4736   union
4737   {
4738     long int l;
4739     char c[sizeof (long int)];
4740   } u;
4741   u.l = 1;
4742   return u.c[sizeof (long int) - 1] == 1;
4743
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 rm -f conftest$ac_exeext
4749 if { (ac_try="$ac_link"
4750 case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755   (eval "$ac_link") 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4759   { (case "(($ac_try" in
4760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761   *) ac_try_echo=$ac_try;;
4762 esac
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764   (eval "$ac_try") 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   ac_cv_c_bigendian=no
4769 else
4770   echo "$as_me: program exited with status $ac_status" >&5
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 ( exit $ac_status )
4775 ac_cv_c_bigendian=yes
4776 fi
4777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778 fi
4779
4780
4781 fi
4782
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 fi
4785 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4786 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4787 case $ac_cv_c_bigendian in
4788   yes)
4789     ENDIAN=big
4790  ;;
4791   no)
4792     ENDIAN=little
4793  ;;
4794   *)
4795     { { echo "$as_me:$LINENO: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4797 echo "$as_me: error: unknown endianness
4798 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4799    { (exit 1); exit 1; }; } ;;
4800 esac
4801
4802
4803 if test "$cross_compiling" = yes; then
4804   LLVM_CROSS_COMPILING=1
4805
4806
4807 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4808 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4809 if test "${ac_cv_build_exeext+set}" = set; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4813   ac_cv_build_exeext=.exe
4814 else
4815   ac_build_prefix=${build_alias}-
4816
4817   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4818 set dummy ${ac_build_prefix}gcc; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   if test -n "$BUILD_CC"; then
4825   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832   for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 BUILD_CC=$ac_cv_prog_BUILD_CC
4845 if test -n "$BUILD_CC"; then
4846   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4847 echo "${ECHO_T}$BUILD_CC" >&6; }
4848 else
4849   { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4851 fi
4852
4853
4854   if test -z "$BUILD_CC"; then
4855      # Extract the first word of "gcc", so it can be a program name with args.
4856 set dummy gcc; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   if test -n "$BUILD_CC"; then
4863   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870   for ac_exec_ext in '' $ac_executable_extensions; do
4871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872     ac_cv_prog_BUILD_CC="gcc"
4873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874     break 2
4875   fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 BUILD_CC=$ac_cv_prog_BUILD_CC
4883 if test -n "$BUILD_CC"; then
4884   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4885 echo "${ECHO_T}$BUILD_CC" >&6; }
4886 else
4887   { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4889 fi
4890
4891
4892      if test -z "$BUILD_CC"; then
4893        # Extract the first word of "cc", so it can be a program name with args.
4894 set dummy cc; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -n "$BUILD_CC"; then
4901   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4902 else
4903   ac_prog_rejected=no
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909   for ac_exec_ext in '' $ac_executable_extensions; do
4910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4911     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4912        ac_prog_rejected=yes
4913        continue
4914      fi
4915     ac_cv_prog_BUILD_CC="cc"
4916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923 if test $ac_prog_rejected = yes; then
4924   # We found a bogon in the path, so make sure we never use it.
4925   set dummy $ac_cv_prog_BUILD_CC
4926   shift
4927   if test $# != 0; then
4928     # We chose a different compiler from the bogus one.
4929     # However, it has the same basename, so the bogon will be chosen
4930     # first if we set BUILD_CC to just the basename; use the full file name.
4931     shift
4932     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4933   fi
4934 fi
4935 fi
4936 fi
4937 BUILD_CC=$ac_cv_prog_BUILD_CC
4938 if test -n "$BUILD_CC"; then
4939   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4940 echo "${ECHO_T}$BUILD_CC" >&6; }
4941 else
4942   { echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6; }
4944 fi
4945
4946
4947      fi
4948   fi
4949   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4950 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4951    { (exit 1); exit 1; }; }
4952   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4953   rm -f conftest*
4954   echo 'int main () { return 0; }' > conftest.$ac_ext
4955   ac_cv_build_exeext=
4956   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4957   (eval $ac_build_link) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; then
4961     for file in conftest.*; do
4962       case $file in
4963       *.c | *.o | *.obj | *.dSYM) ;;
4964       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4965       esac
4966     done
4967   else
4968     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4969 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4970    { (exit 1); exit 1; }; }
4971   fi
4972   rm -f conftest*
4973   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4974 fi
4975 fi
4976
4977 BUILD_EXEEXT=""
4978 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4979 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4980 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4981 ac_build_exeext=$BUILD_EXEEXT
4982
4983   ac_build_prefix=${build_alias}-
4984   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4985 set dummy ${ac_build_prefix}g++; ac_word=$2
4986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   if test -n "$BUILD_CXX"; then
4992   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999   for ac_exec_ext in '' $ac_executable_extensions; do
5000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5001     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003     break 2
5004   fi
5005 done
5006 done
5007 IFS=$as_save_IFS
5008
5009 fi
5010 fi
5011 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5012 if test -n "$BUILD_CXX"; then
5013   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5014 echo "${ECHO_T}$BUILD_CXX" >&6; }
5015 else
5016   { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5018 fi
5019
5020
5021   if test -z "$BUILD_CXX"; then
5022      # Extract the first word of "g++", so it can be a program name with args.
5023 set dummy g++; ac_word=$2
5024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5026 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   if test -n "$BUILD_CXX"; then
5030   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037   for ac_exec_ext in '' $ac_executable_extensions; do
5038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5039     ac_cv_prog_BUILD_CXX="g++"
5040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044 done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5050 if test -n "$BUILD_CXX"; then
5051   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5052 echo "${ECHO_T}$BUILD_CXX" >&6; }
5053 else
5054   { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5056 fi
5057
5058
5059      if test -z "$BUILD_CXX"; then
5060        # Extract the first word of "c++", so it can be a program name with args.
5061 set dummy c++; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   if test -n "$BUILD_CXX"; then
5068   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5069 else
5070   ac_prog_rejected=no
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5078     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5079        ac_prog_rejected=yes
5080        continue
5081      fi
5082     ac_cv_prog_BUILD_CXX="c++"
5083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084     break 2
5085   fi
5086 done
5087 done
5088 IFS=$as_save_IFS
5089
5090 if test $ac_prog_rejected = yes; then
5091   # We found a bogon in the path, so make sure we never use it.
5092   set dummy $ac_cv_prog_BUILD_CXX
5093   shift
5094   if test $# != 0; then
5095     # We chose a different compiler from the bogus one.
5096     # However, it has the same basename, so the bogon will be chosen
5097     # first if we set BUILD_CXX to just the basename; use the full file name.
5098     shift
5099     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5100   fi
5101 fi
5102 fi
5103 fi
5104 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5105 if test -n "$BUILD_CXX"; then
5106   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5107 echo "${ECHO_T}$BUILD_CXX" >&6; }
5108 else
5109   { echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6; }
5111 fi
5112
5113
5114      fi
5115   fi
5116 else
5117   LLVM_CROSS_COMPILING=0
5118
5119 fi
5120
5121 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5122   cvsbuild="yes"
5123   optimize="no"
5124   CVSBUILD=CVSBUILD=1
5125
5126 else
5127   cvsbuild="no"
5128   optimize="yes"
5129 fi
5130
5131
5132 # Check whether --enable-libcpp was given.
5133 if test "${enable_libcpp+set}" = set; then
5134   enableval=$enable_libcpp;
5135 else
5136   enableval=default
5137 fi
5138
5139 case "$enableval" in
5140   yes) ENABLE_LIBCPP=1
5141  ;;
5142   no)  ENABLE_LIBCPP=0
5143  ;;
5144   default) ENABLE_LIBCPP=0
5145 ;;
5146   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5148    { (exit 1); exit 1; }; } ;;
5149 esac
5150
5151 # Check whether --enable-cxx11 was given.
5152 if test "${enable_cxx11+set}" = set; then
5153   enableval=$enable_cxx11;
5154 else
5155   enableval=default
5156 fi
5157
5158 case "$enableval" in
5159   yes) ENABLE_CXX11=1
5160  ;;
5161   no)  ENABLE_CXX11=0
5162  ;;
5163   default) ENABLE_CXX11=0
5164 ;;
5165   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5166 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5167    { (exit 1); exit 1; }; } ;;
5168 esac
5169
5170 # Check whether --enable-split-dwarf was given.
5171 if test "${enable_split_dwarf+set}" = set; then
5172   enableval=$enable_split_dwarf;
5173 else
5174   enableval=default
5175 fi
5176
5177 case "$enableval" in
5178   yes) ENABLE_SPLIT_DWARF=1
5179  ;;
5180   no)  ENABLE_SPLIT_DWARF=0
5181  ;;
5182   default) ENABLE_SPLIT_DWARF=0
5183 ;;
5184   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5185 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5186    { (exit 1); exit 1; }; } ;;
5187 esac
5188
5189 clang_arcmt="yes"
5190 # Check whether --enable-clang-arcmt was given.
5191 if test "${enable_clang_arcmt+set}" = set; then
5192   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5193 else
5194   enableval="yes"
5195 fi
5196
5197 case "$enableval" in
5198   yes) ENABLE_CLANG_ARCMT=1
5199  ;;
5200   no)  ENABLE_CLANG_ARCMT=0
5201  ;;
5202   default) ENABLE_CLANG_ARCMT=1
5203 ;;
5204   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5205 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5206    { (exit 1); exit 1; }; } ;;
5207 esac
5208
5209 clang_static_analyzer="yes"
5210 # Check whether --enable-clang-static-analyzer was given.
5211 if test "${enable_clang_static_analyzer+set}" = set; then
5212   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5213 else
5214   enableval="yes"
5215 fi
5216
5217 case "$enableval" in
5218   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5219  ;;
5220   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5221  ;;
5222   default) ENABLE_CLANG_STATIC_ANALYZER=1
5223 ;;
5224   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5226    { (exit 1); exit 1; }; } ;;
5227 esac
5228
5229 # Check whether --enable-clang-rewriter was given.
5230 if test "${enable_clang_rewriter+set}" = set; then
5231   enableval=$enable_clang_rewriter;
5232 else
5233   enableval="yes"
5234 fi
5235
5236 case "$enableval" in
5237   yes) ENABLE_CLANG_REWRITER=1
5238  ;;
5239   no)
5240     if test ${clang_arcmt} != "no" ; then
5241       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5242 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5243    { (exit 1); exit 1; }; }
5244     fi
5245     if test ${clang_static_analyzer} != "no" ; then
5246       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5247 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5248    { (exit 1); exit 1; }; }
5249     fi
5250     ENABLE_CLANG_REWRITER=0
5251
5252     ;;
5253   default) ENABLE_CLANG_REWRITER=1
5254 ;;
5255   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5256 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5257    { (exit 1); exit 1; }; } ;;
5258 esac
5259
5260 # Check whether --enable-optimized was given.
5261 if test "${enable_optimized+set}" = set; then
5262   enableval=$enable_optimized;
5263 else
5264   enableval=$optimize
5265 fi
5266
5267 if test ${enableval} = "no" ; then
5268   ENABLE_OPTIMIZED=
5269
5270 else
5271   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5272
5273 fi
5274
5275 # Check whether --enable-profiling was given.
5276 if test "${enable_profiling+set}" = set; then
5277   enableval=$enable_profiling;
5278 else
5279   enableval="no"
5280 fi
5281
5282 if test ${enableval} = "no" ; then
5283   ENABLE_PROFILING=
5284
5285 else
5286   ENABLE_PROFILING=ENABLE_PROFILING=1
5287
5288 fi
5289
5290 # Check whether --enable-assertions was given.
5291 if test "${enable_assertions+set}" = set; then
5292   enableval=$enable_assertions;
5293 else
5294   enableval="yes"
5295 fi
5296
5297 if test ${enableval} = "yes" ; then
5298   DISABLE_ASSERTIONS=
5299
5300 else
5301   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5302
5303 fi
5304
5305 # Check whether --enable-werror was given.
5306 if test "${enable_werror+set}" = set; then
5307   enableval=$enable_werror;
5308 else
5309   enableval="no"
5310 fi
5311
5312 case "$enableval" in
5313   yes) ENABLE_WERROR=1
5314  ;;
5315   no)  ENABLE_WERROR=0
5316  ;;
5317   default) ENABLE_WERROR=0
5318 ;;
5319   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5320 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5321    { (exit 1); exit 1; }; } ;;
5322 esac
5323
5324 # Check whether --enable-expensive-checks was given.
5325 if test "${enable_expensive_checks+set}" = set; then
5326   enableval=$enable_expensive_checks;
5327 else
5328   enableval="no"
5329 fi
5330
5331 if test ${enableval} = "yes" ; then
5332   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5333
5334   EXPENSIVE_CHECKS=yes
5335
5336 else
5337   ENABLE_EXPENSIVE_CHECKS=
5338
5339   EXPENSIVE_CHECKS=no
5340
5341 fi
5342
5343 # Check whether --enable-debug-runtime was given.
5344 if test "${enable_debug_runtime+set}" = set; then
5345   enableval=$enable_debug_runtime;
5346 else
5347   enableval=no
5348 fi
5349
5350 if test ${enableval} = "no" ; then
5351   DEBUG_RUNTIME=
5352
5353 else
5354   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5355
5356 fi
5357
5358 # Check whether --enable-debug-symbols was given.
5359 if test "${enable_debug_symbols+set}" = set; then
5360   enableval=$enable_debug_symbols;
5361 else
5362   enableval=no
5363 fi
5364
5365 if test ${enableval} = "no" ; then
5366   DEBUG_SYMBOLS=
5367
5368 else
5369   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5370
5371 fi
5372
5373 # Check whether --enable-keep-symbols was given.
5374 if test "${enable_keep_symbols+set}" = set; then
5375   enableval=$enable_keep_symbols;
5376 else
5377   enableval=no
5378 fi
5379
5380 if test ${enableval} = "no" ; then
5381   KEEP_SYMBOLS=
5382
5383 else
5384   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5385
5386 fi
5387
5388 # Check whether --enable-jit was given.
5389 if test "${enable_jit+set}" = set; then
5390   enableval=$enable_jit;
5391 else
5392   enableval=default
5393 fi
5394
5395 if test ${enableval} = "no"
5396 then
5397   JIT=
5398
5399 else
5400   case "$llvm_cv_target_arch" in
5401     x86)         TARGET_HAS_JIT=1
5402  ;;
5403     Sparc)       TARGET_HAS_JIT=0
5404  ;;
5405     PowerPC)     TARGET_HAS_JIT=1
5406  ;;
5407     x86_64)      TARGET_HAS_JIT=1
5408  ;;
5409     ARM)         TARGET_HAS_JIT=1
5410  ;;
5411     AArch64)     TARGET_HAS_JIT=0
5412  ;;
5413     Mips)        TARGET_HAS_JIT=1
5414  ;;
5415     XCore)       TARGET_HAS_JIT=0
5416  ;;
5417     MSP430)      TARGET_HAS_JIT=0
5418  ;;
5419     Hexagon)     TARGET_HAS_JIT=0
5420  ;;
5421     MBlaze)      TARGET_HAS_JIT=0
5422  ;;
5423     NVPTX)       TARGET_HAS_JIT=0
5424  ;;
5425     SystemZ)     TARGET_HAS_JIT=1
5426  ;;
5427     *)           TARGET_HAS_JIT=0
5428  ;;
5429   esac
5430 fi
5431
5432 # Check whether --enable-docs was given.
5433 if test "${enable_docs+set}" = set; then
5434   enableval=$enable_docs;
5435 else
5436   enableval=default
5437 fi
5438
5439 case "$enableval" in
5440   yes) ENABLE_DOCS=1
5441  ;;
5442   no)  ENABLE_DOCS=0
5443  ;;
5444   default) ENABLE_DOCS=1
5445  ;;
5446   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5447 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5448    { (exit 1); exit 1; }; } ;;
5449 esac
5450
5451 # Check whether --enable-doxygen was given.
5452 if test "${enable_doxygen+set}" = set; then
5453   enableval=$enable_doxygen;
5454 else
5455   enableval=default
5456 fi
5457
5458 case "$enableval" in
5459   yes) ENABLE_DOXYGEN=1
5460  ;;
5461   no)  ENABLE_DOXYGEN=0
5462  ;;
5463   default) ENABLE_DOXYGEN=0
5464  ;;
5465   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5466 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5467    { (exit 1); exit 1; }; } ;;
5468 esac
5469
5470 # Check whether --enable-threads was given.
5471 if test "${enable_threads+set}" = set; then
5472   enableval=$enable_threads;
5473 else
5474   enableval=default
5475 fi
5476
5477 case "$enableval" in
5478   yes) LLVM_ENABLE_THREADS=1
5479  ;;
5480   no)  LLVM_ENABLE_THREADS=0
5481  ;;
5482   default) LLVM_ENABLE_THREADS=1
5483  ;;
5484   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5485 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5486    { (exit 1); exit 1; }; } ;;
5487 esac
5488
5489 cat >>confdefs.h <<_ACEOF
5490 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5491 _ACEOF
5492
5493
5494 # Check whether --enable-pthreads was given.
5495 if test "${enable_pthreads+set}" = set; then
5496   enableval=$enable_pthreads;
5497 else
5498   enableval=default
5499 fi
5500
5501 case "$enableval" in
5502   yes) ENABLE_PTHREADS=1
5503  ;;
5504   no)  ENABLE_PTHREADS=0
5505  ;;
5506   default) ENABLE_PTHREADS=1
5507  ;;
5508   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5509 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5510    { (exit 1); exit 1; }; } ;;
5511 esac
5512
5513 # Check whether --enable-zlib was given.
5514 if test "${enable_zlib+set}" = set; then
5515   enableval=$enable_zlib;
5516 else
5517   enableval=default
5518 fi
5519
5520 case "$enableval" in
5521   yes) LLVM_ENABLE_ZLIB=1
5522  ;;
5523   no)  LLVM_ENABLE_ZLIB=0
5524  ;;
5525   default) LLVM_ENABLE_ZLIB=1
5526  ;;
5527   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5528 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5529    { (exit 1); exit 1; }; } ;;
5530 esac
5531
5532 cat >>confdefs.h <<_ACEOF
5533 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5534 _ACEOF
5535
5536
5537 # Check whether --enable-pic was given.
5538 if test "${enable_pic+set}" = set; then
5539   enableval=$enable_pic;
5540 else
5541   enableval=default
5542 fi
5543
5544 case "$enableval" in
5545   yes) ENABLE_PIC=1
5546  ;;
5547   no)  ENABLE_PIC=0
5548  ;;
5549   default) ENABLE_PIC=1
5550  ;;
5551   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5552 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5553    { (exit 1); exit 1; }; } ;;
5554 esac
5555
5556 cat >>confdefs.h <<_ACEOF
5557 #define ENABLE_PIC $ENABLE_PIC
5558 _ACEOF
5559
5560
5561 # Check whether --enable-shared was given.
5562 if test "${enable_shared+set}" = set; then
5563   enableval=$enable_shared;
5564 else
5565   enableval=default
5566 fi
5567
5568 case "$enableval" in
5569   yes) ENABLE_SHARED=1
5570  ;;
5571   no)  ENABLE_SHARED=0
5572  ;;
5573   default) ENABLE_SHARED=0
5574  ;;
5575   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5576 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5577    { (exit 1); exit 1; }; } ;;
5578 esac
5579
5580 # Check whether --enable-embed-stdcxx was given.
5581 if test "${enable_embed_stdcxx+set}" = set; then
5582   enableval=$enable_embed_stdcxx;
5583 else
5584   enableval=default
5585 fi
5586
5587 case "$enableval" in
5588   yes) ENABLE_EMBED_STDCXX=1
5589  ;;
5590   no)  ENABLE_EMBED_STDCXX=0
5591  ;;
5592   default) ENABLE_EMBED_STDCXX=0
5593  ;;
5594   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5596    { (exit 1); exit 1; }; } ;;
5597 esac
5598
5599 # Check whether --enable-timestamps was given.
5600 if test "${enable_timestamps+set}" = set; then
5601   enableval=$enable_timestamps;
5602 else
5603   enableval=default
5604 fi
5605
5606 case "$enableval" in
5607   yes) ENABLE_TIMESTAMPS=1
5608  ;;
5609   no)  ENABLE_TIMESTAMPS=0
5610  ;;
5611   default) ENABLE_TIMESTAMPS=1
5612  ;;
5613   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5614 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5615    { (exit 1); exit 1; }; } ;;
5616 esac
5617
5618 cat >>confdefs.h <<_ACEOF
5619 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5620 _ACEOF
5621
5622
5623
5624 # Check whether --enable-backtraces was given.
5625 if test "${enable_backtraces+set}" = set; then
5626   enableval=$enable_backtraces;
5627 else
5628   enableval=default
5629 fi
5630
5631 case "$enableval" in
5632   yes) ENABLE_BACKTRACES=1
5633  ;;
5634   no)  ENABLE_BACKTRACES=0
5635  ;;
5636   default) ENABLE_BACKTRACES=1
5637  ;;
5638   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5639 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5640    { (exit 1); exit 1; }; } ;;
5641 esac
5642
5643 cat >>confdefs.h <<_ACEOF
5644 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5645 _ACEOF
5646
5647
5648 TARGETS_TO_BUILD=""
5649 # Check whether --enable-targets was given.
5650 if test "${enable_targets+set}" = set; then
5651   enableval=$enable_targets;
5652 else
5653   enableval=all
5654 fi
5655
5656 if test "$enableval" = host-only ; then
5657   enableval=host
5658 fi
5659 case "$enableval" in
5660   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5661   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5662       case "$a_target" in
5663         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5664         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5665         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5666         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5667         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5668         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5669         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5670         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5671         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5672         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5673         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5674         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5675         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5676         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5677         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5678         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5679         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5680         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5681         host) case "$llvm_cv_target_arch" in
5682             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5683             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5684             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5685             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5686             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5687             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5688             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5689             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5690             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5691             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5692             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5693             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5694             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5695             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5696 echo "$as_me: error: Can not set target to build" >&2;}
5697    { (exit 1); exit 1; }; } ;;
5698           esac ;;
5699         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5700 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5701    { (exit 1); exit 1; }; } ;;
5702       esac
5703   done
5704   ;;
5705 esac
5706
5707 # Check whether --enable-experimental-targets was given.
5708 if test "${enable_experimental_targets+set}" = set; then
5709   enableval=$enable_experimental_targets;
5710 else
5711   enableval=disable
5712 fi
5713
5714
5715 if test ${enableval} != "disable"
5716 then
5717   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5718 fi
5719
5720 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5721
5722
5723 for a_target in $TARGETS_TO_BUILD; do
5724   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5725
5726 cat >>confdefs.h <<_ACEOF
5727 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5728 _ACEOF
5729
5730     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5731     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5732     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5733     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5734     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5735       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5736     fi
5737     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5738       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5739     fi
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5743 _ACEOF
5744
5745
5746 cat >>confdefs.h <<_ACEOF
5747 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5748 _ACEOF
5749
5750
5751 cat >>confdefs.h <<_ACEOF
5752 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5753 _ACEOF
5754
5755
5756 cat >>confdefs.h <<_ACEOF
5757 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5758 _ACEOF
5759
5760     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5761
5762 cat >>confdefs.h <<_ACEOF
5763 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5764 _ACEOF
5765
5766     fi
5767     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5768
5769 cat >>confdefs.h <<_ACEOF
5770 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5771 _ACEOF
5772
5773     fi
5774   fi
5775 done
5776
5777 LLVM_ENUM_TARGETS=""
5778 LLVM_ENUM_ASM_PRINTERS=""
5779 LLVM_ENUM_ASM_PARSERS=""
5780 LLVM_ENUM_DISASSEMBLERS=""
5781 for target_to_build in $TARGETS_TO_BUILD; do
5782   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5783   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5784     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5785   fi
5786   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5787     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5788   fi
5789   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5790     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5791   fi
5792 done
5793
5794
5795
5796
5797
5798
5799 # Check whether --with-optimize-option was given.
5800 if test "${with_optimize_option+set}" = set; then
5801   withval=$with_optimize_option;
5802 else
5803   withval=default
5804 fi
5805
5806 { echo "$as_me:$LINENO: checking optimization flags" >&5
5807 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5808 case "$withval" in
5809   default)
5810     case "$llvm_cv_os_type" in
5811     FreeBSD) optimize_option=-O2 ;;
5812     MingW) optimize_option=-O2 ;;
5813     *)     optimize_option=-O3 ;;
5814     esac ;;
5815   *) optimize_option="$withval" ;;
5816 esac
5817 OPTIMIZE_OPTION=$optimize_option
5818
5819 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5820 echo "${ECHO_T}$optimize_option" >&6; }
5821
5822
5823 # Check whether --with-extra-options was given.
5824 if test "${with_extra_options+set}" = set; then
5825   withval=$with_extra_options;
5826 else
5827   withval=default
5828 fi
5829
5830 case "$withval" in
5831   default) EXTRA_OPTIONS= ;;
5832   *) EXTRA_OPTIONS=$withval ;;
5833 esac
5834 EXTRA_OPTIONS=$EXTRA_OPTIONS
5835
5836
5837
5838 # Check whether --with-extra-ld-options was given.
5839 if test "${with_extra_ld_options+set}" = set; then
5840   withval=$with_extra_ld_options;
5841 else
5842   withval=default
5843 fi
5844
5845 case "$withval" in
5846   default) EXTRA_LD_OPTIONS= ;;
5847   *) EXTRA_LD_OPTIONS=$withval ;;
5848 esac
5849 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5850
5851
5852 # Check whether --enable-bindings was given.
5853 if test "${enable_bindings+set}" = set; then
5854   enableval=$enable_bindings;
5855 else
5856   enableval=default
5857 fi
5858
5859 BINDINGS_TO_BUILD=""
5860 case "$enableval" in
5861   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5862   all ) BINDINGS_TO_BUILD="ocaml" ;;
5863   none | no) BINDINGS_TO_BUILD="" ;;
5864   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5865       case "$a_binding" in
5866         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5867         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5868 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5869    { (exit 1); exit 1; }; } ;;
5870       esac
5871   done
5872   ;;
5873 esac
5874
5875
5876 # Check whether --with-ocaml-libdir was given.
5877 if test "${with_ocaml_libdir+set}" = set; then
5878   withval=$with_ocaml_libdir;
5879 else
5880   withval=auto
5881 fi
5882
5883 case "$withval" in
5884   auto) with_ocaml_libdir="$withval" ;;
5885   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5886   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5887 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5888    { (exit 1); exit 1; }; } ;;
5889 esac
5890
5891
5892 # Check whether --with-clang-srcdir was given.
5893 if test "${with_clang_srcdir+set}" = set; then
5894   withval=$with_clang_srcdir;
5895 else
5896   withval="-"
5897 fi
5898
5899 case "$withval" in
5900   -) clang_src_root="" ;;
5901   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5902   *) clang_src_root="$ac_pwd/$withval" ;;
5903 esac
5904 CLANG_SRC_ROOT=$clang_src_root
5905
5906
5907
5908 # Check whether --with-clang-resource-dir was given.
5909 if test "${with_clang_resource_dir+set}" = set; then
5910   withval=$with_clang_resource_dir;
5911 else
5912   withval=""
5913 fi
5914
5915
5916 cat >>confdefs.h <<_ACEOF
5917 #define CLANG_RESOURCE_DIR "$withval"
5918 _ACEOF
5919
5920
5921
5922 # Check whether --with-c-include-dirs was given.
5923 if test "${with_c_include_dirs+set}" = set; then
5924   withval=$with_c_include_dirs;
5925 else
5926   withval=""
5927 fi
5928
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define C_INCLUDE_DIRS "$withval"
5932 _ACEOF
5933
5934
5935 # Clang normally uses the system c++ headers and libraries. With this option,
5936 # clang will use the ones provided by a gcc installation instead. This option should
5937 # be passed the same value that was used with --prefix when configuring gcc.
5938
5939 # Check whether --with-gcc-toolchain was given.
5940 if test "${with_gcc_toolchain+set}" = set; then
5941   withval=$with_gcc_toolchain;
5942 else
5943   withval=""
5944 fi
5945
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define GCC_INSTALL_PREFIX "$withval"
5949 _ACEOF
5950
5951
5952
5953 # Check whether --with-default-sysroot was given.
5954 if test "${with_default_sysroot+set}" = set; then
5955   withval=$with_default_sysroot;
5956 else
5957   withval=""
5958 fi
5959
5960
5961 cat >>confdefs.h <<_ACEOF
5962 #define DEFAULT_SYSROOT "$withval"
5963 _ACEOF
5964
5965
5966
5967 # Check whether --with-binutils-include was given.
5968 if test "${with_binutils_include+set}" = set; then
5969   withval=$with_binutils_include;
5970 else
5971   withval=default
5972 fi
5973
5974 case "$withval" in
5975   default) WITH_BINUTILS_INCDIR=default ;;
5976   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5977   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5978 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5979    { (exit 1); exit 1; }; } ;;
5980 esac
5981 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5982   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5983
5984   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5985      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5986      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5987 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5988    { (exit 1); exit 1; }; };
5989   fi
5990 fi
5991
5992
5993 # Check whether --with-bug-report-url was given.
5994 if test "${with_bug_report_url+set}" = set; then
5995   withval=$with_bug_report_url;
5996 else
5997   withval="http://llvm.org/bugs/"
5998 fi
5999
6000
6001 cat >>confdefs.h <<_ACEOF
6002 #define BUG_REPORT_URL "$withval"
6003 _ACEOF
6004
6005
6006 # Check whether --enable-libffi was given.
6007 if test "${enable_libffi+set}" = set; then
6008   enableval=$enable_libffi; case "$enableval" in
6009     yes) llvm_cv_enable_libffi="yes" ;;
6010     no)  llvm_cv_enable_libffi="no"  ;;
6011     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6012 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6013    { (exit 1); exit 1; }; } ;;
6014   esac
6015 else
6016   llvm_cv_enable_libffi=no
6017 fi
6018
6019
6020
6021 # Check whether --with-internal-prefix was given.
6022 if test "${with_internal_prefix+set}" = set; then
6023   withval=$with_internal_prefix;
6024 else
6025   withval=""
6026 fi
6027
6028 INTERNAL_PREFIX=$withval
6029
6030
6031
6032 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6033 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6034 if test "${lt_cv_path_NM+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   if test -n "$NM"; then
6038   # Let the user override the test.
6039   lt_cv_path_NM="$NM"
6040 else
6041   lt_nm_to_check="${ac_tool_prefix}nm"
6042   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6043     lt_nm_to_check="$lt_nm_to_check nm"
6044   fi
6045   for lt_tmp_nm in $lt_nm_to_check; do
6046     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6048       IFS="$lt_save_ifs"
6049       test -z "$ac_dir" && ac_dir=.
6050       tmp_nm="$ac_dir/$lt_tmp_nm"
6051       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6052         # Check to see if the nm accepts a BSD-compat flag.
6053         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6054         #   nm: unknown option "B" ignored
6055         # Tru64's nm complains that /dev/null is an invalid object file
6056         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6057         */dev/null* | *'Invalid file or object type'*)
6058           lt_cv_path_NM="$tmp_nm -B"
6059           break
6060           ;;
6061         *)
6062           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6063           */dev/null*)
6064             lt_cv_path_NM="$tmp_nm -p"
6065             break
6066             ;;
6067           *)
6068             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6069             continue # so that we can try to find one that supports BSD flags
6070             ;;
6071           esac
6072           ;;
6073         esac
6074       fi
6075     done
6076     IFS="$lt_save_ifs"
6077   done
6078   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6079 fi
6080 fi
6081 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6082 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6083 NM="$lt_cv_path_NM"
6084
6085
6086
6087 { echo "$as_me:$LINENO: checking for GNU make" >&5
6088 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6089 if test "${llvm_cv_gnu_make_command+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   llvm_cv_gnu_make_command=''
6093  for a in "$MAKE" make gmake gnumake ; do
6094   if test -z "$a" ; then continue ; fi ;
6095   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6096   then
6097    llvm_cv_gnu_make_command=$a ;
6098    break;
6099   fi
6100  done
6101 fi
6102 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6103 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6104  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6105    ifGNUmake='' ;
6106  else
6107    ifGNUmake='#' ;
6108    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6109 echo "${ECHO_T}\"Not found\"" >&6; };
6110  fi
6111
6112
6113 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6114 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6115 LN_S=$as_ln_s
6116 if test "$LN_S" = "ln -s"; then
6117   { echo "$as_me:$LINENO: result: yes" >&5
6118 echo "${ECHO_T}yes" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6121 echo "${ECHO_T}no, using $LN_S" >&6; }
6122 fi
6123
6124 # Extract the first word of "cmp", so it can be a program name with args.
6125 set dummy cmp; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_path_CMP+set}" = set; then
6129   echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131   case $CMP in
6132   [\\/]* | ?:[\\/]*)
6133   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6134   ;;
6135   *)
6136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139   IFS=$as_save_IFS
6140   test -z "$as_dir" && as_dir=.
6141   for ac_exec_ext in '' $ac_executable_extensions; do
6142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6143     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145     break 2
6146   fi
6147 done
6148 done
6149 IFS=$as_save_IFS
6150
6151   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6152   ;;
6153 esac
6154 fi
6155 CMP=$ac_cv_path_CMP
6156 if test -n "$CMP"; then
6157   { echo "$as_me:$LINENO: result: $CMP" >&5
6158 echo "${ECHO_T}$CMP" >&6; }
6159 else
6160   { echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6; }
6162 fi
6163
6164
6165 # Extract the first word of "cp", so it can be a program name with args.
6166 set dummy cp; ac_word=$2
6167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169 if test "${ac_cv_path_CP+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   case $CP in
6173   [\\/]* | ?:[\\/]*)
6174   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6175   ;;
6176   *)
6177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182   for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6193   ;;
6194 esac
6195 fi
6196 CP=$ac_cv_path_CP
6197 if test -n "$CP"; then
6198   { echo "$as_me:$LINENO: result: $CP" >&5
6199 echo "${ECHO_T}$CP" >&6; }
6200 else
6201   { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6203 fi
6204
6205
6206 # Extract the first word of "date", so it can be a program name with args.
6207 set dummy date; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_path_DATE+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   case $DATE in
6214   [\\/]* | ?:[\\/]*)
6215   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6216   ;;
6217   *)
6218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221   IFS=$as_save_IFS
6222   test -z "$as_dir" && as_dir=.
6223   for ac_exec_ext in '' $ac_executable_extensions; do
6224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6225     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227     break 2
6228   fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6234   ;;
6235 esac
6236 fi
6237 DATE=$ac_cv_path_DATE
6238 if test -n "$DATE"; then
6239   { echo "$as_me:$LINENO: result: $DATE" >&5
6240 echo "${ECHO_T}$DATE" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6244 fi
6245
6246
6247 # Extract the first word of "find", so it can be a program name with args.
6248 set dummy find; ac_word=$2
6249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6251 if test "${ac_cv_path_FIND+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254   case $FIND in
6255   [\\/]* | ?:[\\/]*)
6256   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6257   ;;
6258   *)
6259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264   for ac_exec_ext in '' $ac_executable_extensions; do
6265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6266     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6275   ;;
6276 esac
6277 fi
6278 FIND=$ac_cv_path_FIND
6279 if test -n "$FIND"; then
6280   { echo "$as_me:$LINENO: result: $FIND" >&5
6281 echo "${ECHO_T}$FIND" >&6; }
6282 else
6283   { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6285 fi
6286
6287
6288 # Extract the first word of "grep", so it can be a program name with args.
6289 set dummy grep; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_path_GREP+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   case $GREP in
6296   [\\/]* | ?:[\\/]*)
6297   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6298   ;;
6299   *)
6300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305   for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312 done
6313 IFS=$as_save_IFS
6314
6315   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6316   ;;
6317 esac
6318 fi
6319 GREP=$ac_cv_path_GREP
6320 if test -n "$GREP"; then
6321   { echo "$as_me:$LINENO: result: $GREP" >&5
6322 echo "${ECHO_T}$GREP" >&6; }
6323 else
6324   { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6326 fi
6327
6328
6329 # Extract the first word of "mkdir", so it can be a program name with args.
6330 set dummy mkdir; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_path_MKDIR+set}" = set; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336   case $MKDIR in
6337   [\\/]* | ?:[\\/]*)
6338   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6339   ;;
6340   *)
6341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
6345   test -z "$as_dir" && as_dir=.
6346   for ac_exec_ext in '' $ac_executable_extensions; do
6347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6348     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350     break 2
6351   fi
6352 done
6353 done
6354 IFS=$as_save_IFS
6355
6356   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6357   ;;
6358 esac
6359 fi
6360 MKDIR=$ac_cv_path_MKDIR
6361 if test -n "$MKDIR"; then
6362   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6363 echo "${ECHO_T}$MKDIR" >&6; }
6364 else
6365   { echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6; }
6367 fi
6368
6369
6370 # Extract the first word of "mv", so it can be a program name with args.
6371 set dummy mv; ac_word=$2
6372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374 if test "${ac_cv_path_MV+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   case $MV in
6378   [\\/]* | ?:[\\/]*)
6379   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6380   ;;
6381   *)
6382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387   for ac_exec_ext in '' $ac_executable_extensions; do
6388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6398   ;;
6399 esac
6400 fi
6401 MV=$ac_cv_path_MV
6402 if test -n "$MV"; then
6403   { echo "$as_me:$LINENO: result: $MV" >&5
6404 echo "${ECHO_T}$MV" >&6; }
6405 else
6406   { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6408 fi
6409
6410
6411 if test -n "$ac_tool_prefix"; then
6412   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_RANLIB+set}" = set; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   if test -n "$RANLIB"; then
6420   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427   for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 RANLIB=$ac_cv_prog_RANLIB
6440 if test -n "$RANLIB"; then
6441   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6442 echo "${ECHO_T}$RANLIB" >&6; }
6443 else
6444   { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6446 fi
6447
6448
6449 fi
6450 if test -z "$ac_cv_prog_RANLIB"; then
6451   ac_ct_RANLIB=$RANLIB
6452   # Extract the first word of "ranlib", so it can be a program name with args.
6453 set dummy ranlib; ac_word=$2
6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   if test -n "$ac_ct_RANLIB"; then
6460   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467   for ac_exec_ext in '' $ac_executable_extensions; do
6468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469     ac_cv_prog_ac_ct_RANLIB="ranlib"
6470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6476
6477 fi
6478 fi
6479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6480 if test -n "$ac_ct_RANLIB"; then
6481   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6482 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6483 else
6484   { echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6; }
6486 fi
6487
6488   if test "x$ac_ct_RANLIB" = x; then
6489     RANLIB=":"
6490   else
6491     case $cross_compiling:$ac_tool_warned in
6492 yes:)
6493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6494 whose name does not start with the host triplet.  If you think this
6495 configuration is useful to you, please write to autoconf@gnu.org." >&5
6496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6497 whose name does not start with the host triplet.  If you think this
6498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6499 ac_tool_warned=yes ;;
6500 esac
6501     RANLIB=$ac_ct_RANLIB
6502   fi
6503 else
6504   RANLIB="$ac_cv_prog_RANLIB"
6505 fi
6506
6507 if test -n "$ac_tool_prefix"; then
6508   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6509 set dummy ${ac_tool_prefix}ar; ac_word=$2
6510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512 if test "${ac_cv_prog_AR+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   if test -n "$AR"; then
6516   ac_cv_prog_AR="$AR" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521   IFS=$as_save_IFS
6522   test -z "$as_dir" && as_dir=.
6523   for ac_exec_ext in '' $ac_executable_extensions; do
6524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6525     ac_cv_prog_AR="${ac_tool_prefix}ar"
6526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527     break 2
6528   fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 AR=$ac_cv_prog_AR
6536 if test -n "$AR"; then
6537   { echo "$as_me:$LINENO: result: $AR" >&5
6538 echo "${ECHO_T}$AR" >&6; }
6539 else
6540   { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6542 fi
6543
6544
6545 fi
6546 if test -z "$ac_cv_prog_AR"; then
6547   ac_ct_AR=$AR
6548   # Extract the first word of "ar", so it can be a program name with args.
6549 set dummy ar; ac_word=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   if test -n "$ac_ct_AR"; then
6556   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561   IFS=$as_save_IFS
6562   test -z "$as_dir" && as_dir=.
6563   for ac_exec_ext in '' $ac_executable_extensions; do
6564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6565     ac_cv_prog_ac_ct_AR="ar"
6566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567     break 2
6568   fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6576 if test -n "$ac_ct_AR"; then
6577   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6578 echo "${ECHO_T}$ac_ct_AR" >&6; }
6579 else
6580   { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6582 fi
6583
6584   if test "x$ac_ct_AR" = x; then
6585     AR="false"
6586   else
6587     case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6590 whose name does not start with the host triplet.  If you think this
6591 configuration is useful to you, please write to autoconf@gnu.org." >&5
6592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet.  If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6595 ac_tool_warned=yes ;;
6596 esac
6597     AR=$ac_ct_AR
6598   fi
6599 else
6600   AR="$ac_cv_prog_AR"
6601 fi
6602
6603 # Extract the first word of "rm", so it can be a program name with args.
6604 set dummy rm; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_path_RM+set}" = set; then
6608   echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610   case $RM in
6611   [\\/]* | ?:[\\/]*)
6612   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6613   ;;
6614   *)
6615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618   IFS=$as_save_IFS
6619   test -z "$as_dir" && as_dir=.
6620   for ac_exec_ext in '' $ac_executable_extensions; do
6621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6622     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624     break 2
6625   fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6631   ;;
6632 esac
6633 fi
6634 RM=$ac_cv_path_RM
6635 if test -n "$RM"; then
6636   { echo "$as_me:$LINENO: result: $RM" >&5
6637 echo "${ECHO_T}$RM" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643
6644 # Extract the first word of "sed", so it can be a program name with args.
6645 set dummy sed; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_path_SED+set}" = set; then
6649   echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651   case $SED in
6652   [\\/]* | ?:[\\/]*)
6653   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6654   ;;
6655   *)
6656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659   IFS=$as_save_IFS
6660   test -z "$as_dir" && as_dir=.
6661   for ac_exec_ext in '' $ac_executable_extensions; do
6662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6663     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665     break 2
6666   fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6670
6671   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6672   ;;
6673 esac
6674 fi
6675 SED=$ac_cv_path_SED
6676 if test -n "$SED"; then
6677   { echo "$as_me:$LINENO: result: $SED" >&5
6678 echo "${ECHO_T}$SED" >&6; }
6679 else
6680   { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6682 fi
6683
6684
6685 # Extract the first word of "tar", so it can be a program name with args.
6686 set dummy tar; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_TAR+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   case $TAR in
6693   [\\/]* | ?:[\\/]*)
6694   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6695   ;;
6696   *)
6697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702   for ac_exec_ext in '' $ac_executable_extensions; do
6703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709 done
6710 IFS=$as_save_IFS
6711
6712   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6713   ;;
6714 esac
6715 fi
6716 TAR=$ac_cv_path_TAR
6717 if test -n "$TAR"; then
6718   { echo "$as_me:$LINENO: result: $TAR" >&5
6719 echo "${ECHO_T}$TAR" >&6; }
6720 else
6721   { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6723 fi
6724
6725
6726 # Extract the first word of "pwd", so it can be a program name with args.
6727 set dummy pwd; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_BINPWD+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   case $BINPWD in
6734   [\\/]* | ?:[\\/]*)
6735   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6736   ;;
6737   *)
6738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743   for ac_exec_ext in '' $ac_executable_extensions; do
6744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6752
6753   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6754   ;;
6755 esac
6756 fi
6757 BINPWD=$ac_cv_path_BINPWD
6758 if test -n "$BINPWD"; then
6759   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6760 echo "${ECHO_T}$BINPWD" >&6; }
6761 else
6762   { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 fi
6765
6766
6767
6768 # Extract the first word of "Graphviz", so it can be a program name with args.
6769 set dummy Graphviz; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   case $GRAPHVIZ in
6776   [\\/]* | ?:[\\/]*)
6777   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6778   ;;
6779   *)
6780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6796   ;;
6797 esac
6798 fi
6799 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6800 if test -n "$GRAPHVIZ"; then
6801   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6802 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6803 else
6804   { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6806 fi
6807
6808
6809 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6810
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_GRAPHVIZ 1
6813 _ACEOF
6814
6815     if test "$llvm_cv_os_type" = "MingW" ; then
6816     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6817   fi
6818
6819 cat >>confdefs.h <<_ACEOF
6820 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6821 _ACEOF
6822
6823 fi
6824 # Extract the first word of "dot", so it can be a program name with args.
6825 set dummy dot; ac_word=$2
6826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828 if test "${ac_cv_path_DOT+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   case $DOT in
6832   [\\/]* | ?:[\\/]*)
6833   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6834   ;;
6835   *)
6836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6852   ;;
6853 esac
6854 fi
6855 DOT=$ac_cv_path_DOT
6856 if test -n "$DOT"; then
6857   { echo "$as_me:$LINENO: result: $DOT" >&5
6858 echo "${ECHO_T}$DOT" >&6; }
6859 else
6860   { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6862 fi
6863
6864
6865 if test "$DOT" != "echo dot" ; then
6866
6867 cat >>confdefs.h <<\_ACEOF
6868 #define HAVE_DOT 1
6869 _ACEOF
6870
6871     if test "$llvm_cv_os_type" = "MingW" ; then
6872     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6873   fi
6874
6875 cat >>confdefs.h <<_ACEOF
6876 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6877 _ACEOF
6878
6879 fi
6880 # Extract the first word of "fdp", so it can be a program name with args.
6881 set dummy fdp; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_FDP+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   case $FDP in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6908   ;;
6909 esac
6910 fi
6911 FDP=$ac_cv_path_FDP
6912 if test -n "$FDP"; then
6913   { echo "$as_me:$LINENO: result: $FDP" >&5
6914 echo "${ECHO_T}$FDP" >&6; }
6915 else
6916   { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6918 fi
6919
6920
6921 if test "$FDP" != "echo fdp" ; then
6922
6923 cat >>confdefs.h <<\_ACEOF
6924 #define HAVE_FDP 1
6925 _ACEOF
6926
6927     if test "$llvm_cv_os_type" = "MingW" ; then
6928     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6929   fi
6930
6931 cat >>confdefs.h <<_ACEOF
6932 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6933 _ACEOF
6934
6935 fi
6936 # Extract the first word of "neato", so it can be a program name with args.
6937 set dummy neato; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_NEATO+set}" = set; then
6941   echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943   case $NEATO in
6944   [\\/]* | ?:[\\/]*)
6945   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6946   ;;
6947   *)
6948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953   for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6964   ;;
6965 esac
6966 fi
6967 NEATO=$ac_cv_path_NEATO
6968 if test -n "$NEATO"; then
6969   { echo "$as_me:$LINENO: result: $NEATO" >&5
6970 echo "${ECHO_T}$NEATO" >&6; }
6971 else
6972   { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6974 fi
6975
6976
6977 if test "$NEATO" != "echo neato" ; then
6978
6979 cat >>confdefs.h <<\_ACEOF
6980 #define HAVE_NEATO 1
6981 _ACEOF
6982
6983     if test "$llvm_cv_os_type" = "MingW" ; then
6984     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6985   fi
6986
6987 cat >>confdefs.h <<_ACEOF
6988 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6989 _ACEOF
6990
6991 fi
6992 # Extract the first word of "twopi", so it can be a program name with args.
6993 set dummy twopi; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_TWOPI+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   case $TWOPI in
7000   [\\/]* | ?:[\\/]*)
7001   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7002   ;;
7003   *)
7004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007   IFS=$as_save_IFS
7008   test -z "$as_dir" && as_dir=.
7009   for ac_exec_ext in '' $ac_executable_extensions; do
7010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013     break 2
7014   fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7020   ;;
7021 esac
7022 fi
7023 TWOPI=$ac_cv_path_TWOPI
7024 if test -n "$TWOPI"; then
7025   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7026 echo "${ECHO_T}$TWOPI" >&6; }
7027 else
7028   { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7030 fi
7031
7032
7033 if test "$TWOPI" != "echo twopi" ; then
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define HAVE_TWOPI 1
7037 _ACEOF
7038
7039     if test "$llvm_cv_os_type" = "MingW" ; then
7040     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7041   fi
7042
7043 cat >>confdefs.h <<_ACEOF
7044 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7045 _ACEOF
7046
7047 fi
7048 # Extract the first word of "circo", so it can be a program name with args.
7049 set dummy circo; ac_word=$2
7050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052 if test "${ac_cv_path_CIRCO+set}" = set; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   case $CIRCO in
7056   [\\/]* | ?:[\\/]*)
7057   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7058   ;;
7059   *)
7060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063   IFS=$as_save_IFS
7064   test -z "$as_dir" && as_dir=.
7065   for ac_exec_ext in '' $ac_executable_extensions; do
7066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7067     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069     break 2
7070   fi
7071 done
7072 done
7073 IFS=$as_save_IFS
7074
7075   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7076   ;;
7077 esac
7078 fi
7079 CIRCO=$ac_cv_path_CIRCO
7080 if test -n "$CIRCO"; then
7081   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7082 echo "${ECHO_T}$CIRCO" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088
7089 if test "$CIRCO" != "echo circo" ; then
7090
7091 cat >>confdefs.h <<\_ACEOF
7092 #define HAVE_CIRCO 1
7093 _ACEOF
7094
7095     if test "$llvm_cv_os_type" = "MingW" ; then
7096     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7097   fi
7098
7099 cat >>confdefs.h <<_ACEOF
7100 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7101 _ACEOF
7102
7103 fi
7104 for ac_prog in gv gsview32
7105 do
7106   # Extract the first word of "$ac_prog", so it can be a program name with args.
7107 set dummy $ac_prog; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_path_GV+set}" = set; then
7111   echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113   case $GV in
7114   [\\/]* | ?:[\\/]*)
7115   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7116   ;;
7117   *)
7118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121   IFS=$as_save_IFS
7122   test -z "$as_dir" && as_dir=.
7123   for ac_exec_ext in '' $ac_executable_extensions; do
7124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127     break 2
7128   fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133   ;;
7134 esac
7135 fi
7136 GV=$ac_cv_path_GV
7137 if test -n "$GV"; then
7138   { echo "$as_me:$LINENO: result: $GV" >&5
7139 echo "${ECHO_T}$GV" >&6; }
7140 else
7141   { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7143 fi
7144
7145
7146   test -n "$GV" && break
7147 done
7148 test -n "$GV" || GV="echo gv"
7149
7150 if test "$GV" != "echo gv" ; then
7151
7152 cat >>confdefs.h <<\_ACEOF
7153 #define HAVE_GV 1
7154 _ACEOF
7155
7156     if test "$llvm_cv_os_type" = "MingW" ; then
7157     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7158   fi
7159
7160 cat >>confdefs.h <<_ACEOF
7161 #define LLVM_PATH_GV "$GV${EXEEXT}"
7162 _ACEOF
7163
7164 fi
7165 # Extract the first word of "dotty", so it can be a program name with args.
7166 set dummy dotty; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_DOTTY+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   case $DOTTY in
7173   [\\/]* | ?:[\\/]*)
7174   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7175   ;;
7176   *)
7177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182   for ac_exec_ext in '' $ac_executable_extensions; do
7183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7193   ;;
7194 esac
7195 fi
7196 DOTTY=$ac_cv_path_DOTTY
7197 if test -n "$DOTTY"; then
7198   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7199 echo "${ECHO_T}$DOTTY" >&6; }
7200 else
7201   { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7204
7205
7206 if test "$DOTTY" != "echo dotty" ; then
7207
7208 cat >>confdefs.h <<\_ACEOF
7209 #define HAVE_DOTTY 1
7210 _ACEOF
7211
7212     if test "$llvm_cv_os_type" = "MingW" ; then
7213     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7214   fi
7215
7216 cat >>confdefs.h <<_ACEOF
7217 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7218 _ACEOF
7219
7220 fi
7221 # Extract the first word of "xdot.py", so it can be a program name with args.
7222 set dummy xdot.py; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   case $XDOT_PY in
7229   [\\/]* | ?:[\\/]*)
7230   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7231   ;;
7232   *)
7233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238   for ac_exec_ext in '' $ac_executable_extensions; do
7239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7249   ;;
7250 esac
7251 fi
7252 XDOT_PY=$ac_cv_path_XDOT_PY
7253 if test -n "$XDOT_PY"; then
7254   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7255 echo "${ECHO_T}$XDOT_PY" >&6; }
7256 else
7257   { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7259 fi
7260
7261
7262 if test "$XDOT_PY" != "echo xdot.py" ; then
7263
7264 cat >>confdefs.h <<\_ACEOF
7265 #define HAVE_XDOT_PY 1
7266 _ACEOF
7267
7268     if test "$llvm_cv_os_type" = "MingW" ; then
7269     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7270   fi
7271
7272 cat >>confdefs.h <<_ACEOF
7273 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7274 _ACEOF
7275
7276 fi
7277
7278 # Find a good install program.  We prefer a C program (faster),
7279 # so one script is as good as another.  But avoid the broken or
7280 # incompatible versions:
7281 # SysV /etc/install, /usr/sbin/install
7282 # SunOS /usr/etc/install
7283 # IRIX /sbin/install
7284 # AIX /bin/install
7285 # AmigaOS /C/install, which installs bootblocks on floppy discs
7286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7289 # OS/2's system install, which has a completely different semantic
7290 # ./install, which can be erroneously created by make from ./install.sh.
7291 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7292 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7293 if test -z "$INSTALL"; then
7294 if test "${ac_cv_path_install+set}" = set; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302   # Account for people who put trailing slashes in PATH elements.
7303 case $as_dir/ in
7304   ./ | .// | /cC/* | \
7305   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7306   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7307   /usr/ucb/* ) ;;
7308   *)
7309     # OSF1 and SCO ODT 3.0 have their own names for install.
7310     # Don't use installbsd from OSF since it installs stuff as root
7311     # by default.
7312     for ac_prog in ginstall scoinst install; do
7313       for ac_exec_ext in '' $ac_executable_extensions; do
7314         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7315           if test $ac_prog = install &&
7316             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7317             # AIX install.  It has an incompatible calling convention.
7318             :
7319           elif test $ac_prog = install &&
7320             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7321             # program-specific install script used by HP pwplus--don't use.
7322             :
7323           else
7324             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7325             break 3
7326           fi
7327         fi
7328       done
7329     done
7330     ;;
7331 esac
7332 done
7333 IFS=$as_save_IFS
7334
7335
7336 fi
7337   if test "${ac_cv_path_install+set}" = set; then
7338     INSTALL=$ac_cv_path_install
7339   else
7340     # As a last resort, use the slow shell script.  Don't cache a
7341     # value for INSTALL within a source directory, because that will
7342     # break other packages using the cache if that directory is
7343     # removed, or if the value is a relative name.
7344     INSTALL=$ac_install_sh
7345   fi
7346 fi
7347 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7348 echo "${ECHO_T}$INSTALL" >&6; }
7349
7350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7351 # It thinks the first close brace ends the variable substitution.
7352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7353
7354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7355
7356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7357
7358 case "$INSTALL" in
7359  [\\/$]* | ?:[\\/]* ) ;;
7360  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7361 esac
7362
7363 # Extract the first word of "bzip2", so it can be a program name with args.
7364 set dummy bzip2; ac_word=$2
7365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7367 if test "${ac_cv_path_BZIP2+set}" = set; then
7368   echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370   case $BZIP2 in
7371   [\\/]* | ?:[\\/]*)
7372   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7373   ;;
7374   *)
7375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380   for ac_exec_ext in '' $ac_executable_extensions; do
7381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7382     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387 done
7388 IFS=$as_save_IFS
7389
7390   ;;
7391 esac
7392 fi
7393 BZIP2=$ac_cv_path_BZIP2
7394 if test -n "$BZIP2"; then
7395   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7396 echo "${ECHO_T}$BZIP2" >&6; }
7397 else
7398   { echo "$as_me:$LINENO: result: no" >&5
7399 echo "${ECHO_T}no" >&6; }
7400 fi
7401
7402
7403 # Extract the first word of "cat", so it can be a program name with args.
7404 set dummy cat; ac_word=$2
7405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7407 if test "${ac_cv_path_CAT+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   case $CAT in
7411   [\\/]* | ?:[\\/]*)
7412   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7413   ;;
7414   *)
7415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418   IFS=$as_save_IFS
7419   test -z "$as_dir" && as_dir=.
7420   for ac_exec_ext in '' $ac_executable_extensions; do
7421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7422     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424     break 2
7425   fi
7426 done
7427 done
7428 IFS=$as_save_IFS
7429
7430   ;;
7431 esac
7432 fi
7433 CAT=$ac_cv_path_CAT
7434 if test -n "$CAT"; then
7435   { echo "$as_me:$LINENO: result: $CAT" >&5
7436 echo "${ECHO_T}$CAT" >&6; }
7437 else
7438   { echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6; }
7440 fi
7441
7442
7443 # Extract the first word of "doxygen", so it can be a program name with args.
7444 set dummy doxygen; ac_word=$2
7445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   case $DOXYGEN in
7451   [\\/]* | ?:[\\/]*)
7452   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7453   ;;
7454   *)
7455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460   for ac_exec_ext in '' $ac_executable_extensions; do
7461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7462     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467 done
7468 IFS=$as_save_IFS
7469
7470   ;;
7471 esac
7472 fi
7473 DOXYGEN=$ac_cv_path_DOXYGEN
7474 if test -n "$DOXYGEN"; then
7475   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7476 echo "${ECHO_T}$DOXYGEN" >&6; }
7477 else
7478   { echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6; }
7480 fi
7481
7482
7483 # Extract the first word of "groff", so it can be a program name with args.
7484 set dummy groff; ac_word=$2
7485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487 if test "${ac_cv_path_GROFF+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   case $GROFF in
7491   [\\/]* | ?:[\\/]*)
7492   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7493   ;;
7494   *)
7495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500   for ac_exec_ext in '' $ac_executable_extensions; do
7501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7502     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510   ;;
7511 esac
7512 fi
7513 GROFF=$ac_cv_path_GROFF
7514 if test -n "$GROFF"; then
7515   { echo "$as_me:$LINENO: result: $GROFF" >&5
7516 echo "${ECHO_T}$GROFF" >&6; }
7517 else
7518   { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7520 fi
7521
7522
7523 # Extract the first word of "gzip", so it can be a program name with args.
7524 set dummy gzip; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   case $GZIPBIN in
7531   [\\/]* | ?:[\\/]*)
7532   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7533   ;;
7534   *)
7535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540   for ac_exec_ext in '' $ac_executable_extensions; do
7541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550   ;;
7551 esac
7552 fi
7553 GZIPBIN=$ac_cv_path_GZIPBIN
7554 if test -n "$GZIPBIN"; then
7555   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7556 echo "${ECHO_T}$GZIPBIN" >&6; }
7557 else
7558   { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7560 fi
7561
7562
7563 # Extract the first word of "pdfroff", so it can be a program name with args.
7564 set dummy pdfroff; ac_word=$2
7565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567 if test "${ac_cv_path_PDFROFF+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   case $PDFROFF in
7571   [\\/]* | ?:[\\/]*)
7572   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7573   ;;
7574   *)
7575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580   for ac_exec_ext in '' $ac_executable_extensions; do
7581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7582     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590   ;;
7591 esac
7592 fi
7593 PDFROFF=$ac_cv_path_PDFROFF
7594 if test -n "$PDFROFF"; then
7595   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7596 echo "${ECHO_T}$PDFROFF" >&6; }
7597 else
7598   { echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6; }
7600 fi
7601
7602
7603 # Extract the first word of "zip", so it can be a program name with args.
7604 set dummy zip; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_ZIP+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   case $ZIP in
7611   [\\/]* | ?:[\\/]*)
7612   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7613   ;;
7614   *)
7615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618   IFS=$as_save_IFS
7619   test -z "$as_dir" && as_dir=.
7620   for ac_exec_ext in '' $ac_executable_extensions; do
7621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624     break 2
7625   fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630   ;;
7631 esac
7632 fi
7633 ZIP=$ac_cv_path_ZIP
7634 if test -n "$ZIP"; then
7635   { echo "$as_me:$LINENO: result: $ZIP" >&5
7636 echo "${ECHO_T}$ZIP" >&6; }
7637 else
7638   { echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6; }
7640 fi
7641
7642
7643 for ac_prog in ocamlc
7644 do
7645   # Extract the first word of "$ac_prog", so it can be a program name with args.
7646 set dummy $ac_prog; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_path_OCAMLC+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   case $OCAMLC in
7653   [\\/]* | ?:[\\/]*)
7654   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7655   ;;
7656   *)
7657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660   IFS=$as_save_IFS
7661   test -z "$as_dir" && as_dir=.
7662   for ac_exec_ext in '' $ac_executable_extensions; do
7663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7664     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666     break 2
7667   fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672   ;;
7673 esac
7674 fi
7675 OCAMLC=$ac_cv_path_OCAMLC
7676 if test -n "$OCAMLC"; then
7677   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7678 echo "${ECHO_T}$OCAMLC" >&6; }
7679 else
7680   { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7682 fi
7683
7684
7685   test -n "$OCAMLC" && break
7686 done
7687
7688 for ac_prog in ocamlopt
7689 do
7690   # Extract the first word of "$ac_prog", so it can be a program name with args.
7691 set dummy $ac_prog; ac_word=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7695   echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697   case $OCAMLOPT in
7698   [\\/]* | ?:[\\/]*)
7699   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7700   ;;
7701   *)
7702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707   for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717   ;;
7718 esac
7719 fi
7720 OCAMLOPT=$ac_cv_path_OCAMLOPT
7721 if test -n "$OCAMLOPT"; then
7722   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7723 echo "${ECHO_T}$OCAMLOPT" >&6; }
7724 else
7725   { echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6; }
7727 fi
7728
7729
7730   test -n "$OCAMLOPT" && break
7731 done
7732
7733 for ac_prog in ocamldep
7734 do
7735   # Extract the first word of "$ac_prog", so it can be a program name with args.
7736 set dummy $ac_prog; ac_word=$2
7737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   case $OCAMLDEP in
7743   [\\/]* | ?:[\\/]*)
7744   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7745   ;;
7746   *)
7747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752   for ac_exec_ext in '' $ac_executable_extensions; do
7753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7754     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762   ;;
7763 esac
7764 fi
7765 OCAMLDEP=$ac_cv_path_OCAMLDEP
7766 if test -n "$OCAMLDEP"; then
7767   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7768 echo "${ECHO_T}$OCAMLDEP" >&6; }
7769 else
7770   { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7772 fi
7773
7774
7775   test -n "$OCAMLDEP" && break
7776 done
7777
7778 for ac_prog in ocamldoc
7779 do
7780   # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   case $OCAMLDOC in
7788   [\\/]* | ?:[\\/]*)
7789   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7790   ;;
7791   *)
7792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795   IFS=$as_save_IFS
7796   test -z "$as_dir" && as_dir=.
7797   for ac_exec_ext in '' $ac_executable_extensions; do
7798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7799     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801     break 2
7802   fi
7803 done
7804 done
7805 IFS=$as_save_IFS
7806
7807   ;;
7808 esac
7809 fi
7810 OCAMLDOC=$ac_cv_path_OCAMLDOC
7811 if test -n "$OCAMLDOC"; then
7812   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7813 echo "${ECHO_T}$OCAMLDOC" >&6; }
7814 else
7815   { echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6; }
7817 fi
7818
7819
7820   test -n "$OCAMLDOC" && break
7821 done
7822
7823 for ac_prog in gas as
7824 do
7825   # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_path_GAS+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   case $GAS in
7833   [\\/]* | ?:[\\/]*)
7834   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7835   ;;
7836   *)
7837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840   IFS=$as_save_IFS
7841   test -z "$as_dir" && as_dir=.
7842   for ac_exec_ext in '' $ac_executable_extensions; do
7843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7844     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7846     break 2
7847   fi
7848 done
7849 done
7850 IFS=$as_save_IFS
7851
7852   ;;
7853 esac
7854 fi
7855 GAS=$ac_cv_path_GAS
7856 if test -n "$GAS"; then
7857   { echo "$as_me:$LINENO: result: $GAS" >&5
7858 echo "${ECHO_T}$GAS" >&6; }
7859 else
7860   { echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6; }
7862 fi
7863
7864
7865   test -n "$GAS" && break
7866 done
7867
7868
7869 { echo "$as_me:$LINENO: checking for linker version" >&5
7870 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7871 if test "${llvm_cv_link_version+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874
7875    version_string="$(ld -v 2>&1 | head -1)"
7876
7877    # Check for ld64.
7878    if (echo "$version_string" | grep -q "ld64"); then
7879      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7880    else
7881      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7882    fi
7883
7884 fi
7885 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7886 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7887
7888 cat >>confdefs.h <<_ACEOF
7889 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7890 _ACEOF
7891
7892
7893
7894 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7895 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7896 if test "${llvm_cv_link_use_r+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899    ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905   oldcflags="$CFLAGS"
7906   CFLAGS="$CFLAGS -Wl,-R."
7907   cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h.  */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h.  */
7913
7914 int
7915 main ()
7916 {
7917
7918   ;
7919   return 0;
7920 }
7921 _ACEOF
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (ac_try="$ac_link"
7924 case "(($ac_try" in
7925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926   *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929   (eval "$ac_link") 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7937   { (case "(($ac_try" in
7938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939   *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942   (eval "$ac_try") 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; } &&
7946          { ac_try='test -s conftest$ac_exeext'
7947   { (case "(($ac_try" in
7948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949   *) ac_try_echo=$ac_try;;
7950 esac
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952   (eval "$ac_try") 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); }; }; then
7956   llvm_cv_link_use_r=yes
7957 else
7958   echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961         llvm_cv_link_use_r=no
7962 fi
7963
7964 rm -f core conftest.err conftest.$ac_objext \
7965       conftest$ac_exeext conftest.$ac_ext
7966   CFLAGS="$oldcflags"
7967   ac_ext=c
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972
7973
7974 fi
7975 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7976 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7977 if test "$llvm_cv_link_use_r" = yes ; then
7978
7979 cat >>confdefs.h <<\_ACEOF
7980 #define HAVE_LINK_R 1
7981 _ACEOF
7982
7983   fi
7984
7985
7986 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7987 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7988 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7989   echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991    ac_ext=c
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997   oldcflags="$CFLAGS"
7998   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7999   cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005
8006 int
8007 main ()
8008 {
8009
8010   ;
8011   return 0;
8012 }
8013 _ACEOF
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (ac_try="$ac_link"
8016 case "(($ac_try" in
8017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018   *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021   (eval "$ac_link") 2>conftest.er1
8022   ac_status=$?
8023   grep -v '^ *+' conftest.er1 >conftest.err
8024   rm -f conftest.er1
8025   cat conftest.err >&5
8026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027   (exit $ac_status); } &&
8028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029   { (case "(($ac_try" in
8030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031   *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034   (eval "$ac_try") 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); }; } &&
8038          { ac_try='test -s conftest$ac_exeext'
8039   { (case "(($ac_try" in
8040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041   *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044   (eval "$ac_try") 2>&5
8045   ac_status=$?
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); }; }; then
8048   llvm_cv_link_use_export_dynamic=yes
8049 else
8050   echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053         llvm_cv_link_use_export_dynamic=no
8054 fi
8055
8056 rm -f core conftest.err conftest.$ac_objext \
8057       conftest$ac_exeext conftest.$ac_ext
8058   CFLAGS="$oldcflags"
8059   ac_ext=c
8060 ac_cpp='$CPP $CPPFLAGS'
8061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8064
8065
8066 fi
8067 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8068 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8069 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8070
8071 cat >>confdefs.h <<\_ACEOF
8072 #define HAVE_LINK_EXPORT_DYNAMIC 1
8073 _ACEOF
8074
8075   fi
8076
8077
8078 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8079 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8080 if test "${llvm_cv_link_use_version_script+set}" = set; then
8081   echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083    ac_ext=c
8084 ac_cpp='$CPP $CPPFLAGS'
8085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088
8089   oldcflags="$CFLAGS"
8090
8091   # The following code is from the autoconf manual,
8092   # "11.13: Limitations of Usual Tools".
8093   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8094   # Use mktemp if possible; otherwise fall back on mkdir,
8095   # with $RANDOM to make collisions less likely.
8096   : ${TMPDIR=/tmp}
8097   {
8098     tmp=`
8099       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8100     ` &&
8101     test -n "$tmp" && test -d "$tmp"
8102   } || {
8103     tmp=$TMPDIR/foo$$-$RANDOM
8104     (umask 077 && mkdir "$tmp")
8105   } || exit $?
8106
8107   echo "{" > "$tmp/export.map"
8108   echo "  global: main;" >> "$tmp/export.map"
8109   echo "  local: *;" >> "$tmp/export.map"
8110   echo "};" >> "$tmp/export.map"
8111
8112   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8113   cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119
8120 int
8121 main ()
8122 {
8123
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8130 case "(($ac_try" in
8131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132   *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135   (eval "$ac_link") 2>conftest.er1
8136   ac_status=$?
8137   grep -v '^ *+' conftest.er1 >conftest.err
8138   rm -f conftest.er1
8139   cat conftest.err >&5
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); } &&
8142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8143   { (case "(($ac_try" in
8144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145   *) ac_try_echo=$ac_try;;
8146 esac
8147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148   (eval "$ac_try") 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; } &&
8152          { ac_try='test -s conftest$ac_exeext'
8153   { (case "(($ac_try" in
8154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155   *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158   (eval "$ac_try") 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; }; then
8162   llvm_cv_link_use_version_script=yes
8163 else
8164   echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8166
8167         llvm_cv_link_use_version_script=no
8168 fi
8169
8170 rm -f core conftest.err conftest.$ac_objext \
8171       conftest$ac_exeext conftest.$ac_ext
8172   rm "$tmp/export.map"
8173   rmdir "$tmp"
8174   CFLAGS="$oldcflags"
8175   ac_ext=c
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181
8182 fi
8183 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8184 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8185 if test "$llvm_cv_link_use_version_script" = yes ; then
8186   HAVE_LINK_VERSION_SCRIPT=1
8187
8188   fi
8189
8190
8191
8192
8193 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8194 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8195 if test "${ac_cv_c_const+set}" = set; then
8196   echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198   cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h.  */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h.  */
8204
8205 int
8206 main ()
8207 {
8208 /* FIXME: Include the comments suggested by Paul. */
8209 #ifndef __cplusplus
8210   /* Ultrix mips cc rejects this.  */
8211   typedef int charset[2];
8212   const charset x;
8213   /* SunOS 4.1.1 cc rejects this.  */
8214   char const *const *ccp;
8215   char **p;
8216   /* NEC SVR4.0.2 mips cc rejects this.  */
8217   struct point {int x, y;};
8218   static struct point const zero = {0,0};
8219   /* AIX XL C 1.02.0.0 rejects this.
8220      It does not let you subtract one const X* pointer from another in
8221      an arm of an if-expression whose if-part is not a constant
8222      expression */
8223   const char *g = "string";
8224   ccp = &g + (g ? g-g : 0);
8225   /* HPUX 7.0 cc rejects these. */
8226   ++ccp;
8227   p = (char**) ccp;
8228   ccp = (char const *const *) p;
8229   { /* SCO 3.2v4 cc rejects this.  */
8230     char *t;
8231     char const *s = 0 ? (char *) 0 : (char const *) 0;
8232
8233     *t++ = 0;
8234     if (s) return 0;
8235   }
8236   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8237     int x[] = {25, 17};
8238     const int *foo = &x[0];
8239     ++foo;
8240   }
8241   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8242     typedef const int *iptr;
8243     iptr p = 0;
8244     ++p;
8245   }
8246   { /* AIX XL C 1.02.0.0 rejects this saying
8247        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8248     struct s { int j; const int *ap[3]; };
8249     struct s *b; b->j = 5;
8250   }
8251   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8252     const int foo = 10;
8253     if (!foo) return 0;
8254   }
8255   return !x[0] && !zero.x;
8256 #endif
8257
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8264 case "(($ac_try" in
8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266   *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269   (eval "$ac_compile") 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } &&
8276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8277   { (case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_try") 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); }; } &&
8286          { ac_try='test -s conftest.$ac_objext'
8287   { (case "(($ac_try" in
8288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289   *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292   (eval "$ac_try") 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; }; then
8296   ac_cv_c_const=yes
8297 else
8298   echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301         ac_cv_c_const=no
8302 fi
8303
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 fi
8306 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8307 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8308 if test $ac_cv_c_const = no; then
8309
8310 cat >>confdefs.h <<\_ACEOF
8311 #define const
8312 _ACEOF
8313
8314 fi
8315
8316
8317
8318
8319
8320
8321 ac_header_dirent=no
8322 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8323   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8324 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8325 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   cat >conftest.$ac_ext <<_ACEOF
8330 /* confdefs.h.  */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h.  */
8335 #include <sys/types.h>
8336 #include <$ac_hdr>
8337
8338 int
8339 main ()
8340 {
8341 if ((DIR *) 0)
8342 return 0;
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8349 case "(($ac_try" in
8350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351   *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354   (eval "$ac_compile") 2>conftest.er1
8355   ac_status=$?
8356   grep -v '^ *+' conftest.er1 >conftest.err
8357   rm -f conftest.er1
8358   cat conftest.err >&5
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362   { (case "(($ac_try" in
8363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364   *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367   (eval "$ac_try") 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); }; } &&
8371          { ac_try='test -s conftest.$ac_objext'
8372   { (case "(($ac_try" in
8373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374   *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377   (eval "$ac_try") 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; }; then
8381   eval "$as_ac_Header=yes"
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386         eval "$as_ac_Header=no"
8387 fi
8388
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 fi
8391 ac_res=`eval echo '${'$as_ac_Header'}'`
8392                { echo "$as_me:$LINENO: result: $ac_res" >&5
8393 echo "${ECHO_T}$ac_res" >&6; }
8394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8395   cat >>confdefs.h <<_ACEOF
8396 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8397 _ACEOF
8398
8399 ac_header_dirent=$ac_hdr; break
8400 fi
8401
8402 done
8403 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8404 if test $ac_header_dirent = dirent.h; then
8405   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8406 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8407 if test "${ac_cv_search_opendir+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   ac_func_search_save_LIBS=$LIBS
8411 cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h.  */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h.  */
8417
8418 /* Override any GCC internal prototype to avoid an error.
8419    Use char because int might match the return type of a GCC
8420    builtin and then its argument prototype would still apply.  */
8421 #ifdef __cplusplus
8422 extern "C"
8423 #endif
8424 char opendir ();
8425 int
8426 main ()
8427 {
8428 return opendir ();
8429   ;
8430   return 0;
8431 }
8432 _ACEOF
8433 for ac_lib in '' dir; do
8434   if test -z "$ac_lib"; then
8435     ac_res="none required"
8436   else
8437     ac_res=-l$ac_lib
8438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8439   fi
8440   rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8442 case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_link") 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } &&
8454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455   { (case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_try") 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; } &&
8464          { ac_try='test -s conftest$ac_exeext'
8465   { (case "(($ac_try" in
8466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467   *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470   (eval "$ac_try") 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; }; then
8474   ac_cv_search_opendir=$ac_res
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext \
8483       conftest$ac_exeext
8484   if test "${ac_cv_search_opendir+set}" = set; then
8485   break
8486 fi
8487 done
8488 if test "${ac_cv_search_opendir+set}" = set; then
8489   :
8490 else
8491   ac_cv_search_opendir=no
8492 fi
8493 rm conftest.$ac_ext
8494 LIBS=$ac_func_search_save_LIBS
8495 fi
8496 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8497 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8498 ac_res=$ac_cv_search_opendir
8499 if test "$ac_res" != no; then
8500   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8501
8502 fi
8503
8504 else
8505   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8506 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8507 if test "${ac_cv_search_opendir+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   ac_func_search_save_LIBS=$LIBS
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h.  */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h.  */
8517
8518 /* Override any GCC internal prototype to avoid an error.
8519    Use char because int might match the return type of a GCC
8520    builtin and then its argument prototype would still apply.  */
8521 #ifdef __cplusplus
8522 extern "C"
8523 #endif
8524 char opendir ();
8525 int
8526 main ()
8527 {
8528 return opendir ();
8529   ;
8530   return 0;
8531 }
8532 _ACEOF
8533 for ac_lib in '' x; do
8534   if test -z "$ac_lib"; then
8535     ac_res="none required"
8536   else
8537     ac_res=-l$ac_lib
8538     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8539   fi
8540   rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (ac_try="$ac_link"
8542 case "(($ac_try" in
8543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544   *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547   (eval "$ac_link") 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555   { (case "(($ac_try" in
8556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557   *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560   (eval "$ac_try") 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; } &&
8564          { ac_try='test -s conftest$ac_exeext'
8565   { (case "(($ac_try" in
8566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567   *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570   (eval "$ac_try") 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; }; then
8574   ac_cv_search_opendir=$ac_res
8575 else
8576   echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8578
8579
8580 fi
8581
8582 rm -f core conftest.err conftest.$ac_objext \
8583       conftest$ac_exeext
8584   if test "${ac_cv_search_opendir+set}" = set; then
8585   break
8586 fi
8587 done
8588 if test "${ac_cv_search_opendir+set}" = set; then
8589   :
8590 else
8591   ac_cv_search_opendir=no
8592 fi
8593 rm conftest.$ac_ext
8594 LIBS=$ac_func_search_save_LIBS
8595 fi
8596 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8597 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8598 ac_res=$ac_cv_search_opendir
8599 if test "$ac_res" != no; then
8600   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8601
8602 fi
8603
8604 fi
8605
8606
8607 for ac_header in dlfcn.h
8608 do
8609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8611   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 fi
8616 ac_res=`eval echo '${'$as_ac_Header'}'`
8617                { echo "$as_me:$LINENO: result: $ac_res" >&5
8618 echo "${ECHO_T}$ac_res" >&6; }
8619 else
8620   # Is the header compilable?
8621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h.  */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h.  */
8629 $ac_includes_default
8630 #include <$ac_header>
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8634 case "(($ac_try" in
8635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636   *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639   (eval "$ac_compile") 2>conftest.er1
8640   ac_status=$?
8641   grep -v '^ *+' conftest.er1 >conftest.err
8642   rm -f conftest.er1
8643   cat conftest.err >&5
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); } &&
8646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8647   { (case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_try") 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; } &&
8656          { ac_try='test -s conftest.$ac_objext'
8657   { (case "(($ac_try" in
8658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659   *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662   (eval "$ac_try") 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   ac_header_compiler=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671         ac_header_compiler=no
8672 fi
8673
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8676 echo "${ECHO_T}$ac_header_compiler" >&6; }
8677
8678 # Is the header present?
8679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h.  */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h.  */
8687 #include <$ac_header>
8688 _ACEOF
8689 if { (ac_try="$ac_cpp conftest.$ac_ext"
8690 case "(($ac_try" in
8691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692   *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8696   ac_status=$?
8697   grep -v '^ *+' conftest.er1 >conftest.err
8698   rm -f conftest.er1
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } >/dev/null; then
8702   if test -s conftest.err; then
8703     ac_cpp_err=$ac_c_preproc_warn_flag
8704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8705   else
8706     ac_cpp_err=
8707   fi
8708 else
8709   ac_cpp_err=yes
8710 fi
8711 if test -z "$ac_cpp_err"; then
8712   ac_header_preproc=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717   ac_header_preproc=no
8718 fi
8719
8720 rm -f conftest.err conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8722 echo "${ECHO_T}$ac_header_preproc" >&6; }
8723
8724 # So?  What about this header?
8725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8726   yes:no: )
8727     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8731     ac_header_preproc=yes
8732     ;;
8733   no:yes:* )
8734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8737 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8738     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8740     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8741 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8744     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8746     ( cat <<\_ASBOX
8747 ## ------------------------------------ ##
8748 ## Report this to http://llvm.org/bugs/ ##
8749 ## ------------------------------------ ##
8750 _ASBOX
8751      ) | sed "s/^/$as_me: WARNING:     /" >&2
8752     ;;
8753 esac
8754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8757   echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759   eval "$as_ac_Header=\$ac_header_preproc"
8760 fi
8761 ac_res=`eval echo '${'$as_ac_Header'}'`
8762                { echo "$as_me:$LINENO: result: $ac_res" >&5
8763 echo "${ECHO_T}$ac_res" >&6; }
8764
8765 fi
8766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8767   cat >>confdefs.h <<_ACEOF
8768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8769 _ACEOF
8770
8771 fi
8772
8773 done
8774
8775 # Check whether --enable-ltdl-install was given.
8776 if test "${enable_ltdl_install+set}" = set; then
8777   enableval=$enable_ltdl_install;
8778 fi
8779
8780
8781
8782
8783 if test x"${enable_ltdl_install-no}" != xno; then
8784   INSTALL_LTDL_TRUE=
8785   INSTALL_LTDL_FALSE='#'
8786 else
8787   INSTALL_LTDL_TRUE='#'
8788   INSTALL_LTDL_FALSE=
8789 fi
8790
8791
8792
8793 if test x"${enable_ltdl_convenience-no}" != xno; then
8794   CONVENIENCE_LTDL_TRUE=
8795   CONVENIENCE_LTDL_FALSE='#'
8796 else
8797   CONVENIENCE_LTDL_TRUE='#'
8798   CONVENIENCE_LTDL_FALSE=
8799 fi
8800
8801
8802 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8803 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8804 library_names_spec=
8805 libname_spec='lib$name'
8806 soname_spec=
8807 shrext_cmds=".so"
8808 postinstall_cmds=
8809 postuninstall_cmds=
8810 finish_cmds=
8811 finish_eval=
8812 shlibpath_var=
8813 shlibpath_overrides_runpath=unknown
8814 version_type=none
8815 dynamic_linker="$host_os ld.so"
8816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8817 if test "$GCC" = yes; then
8818   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8819   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8820     # if the path contains ";" then we assume it to be the separator
8821     # otherwise default to the standard path separator (i.e. ":") - it is
8822     # assumed that no part of a normal pathname contains ";" but that should
8823     # okay in the real world where ";" in dirpaths is itself problematic.
8824     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8825   else
8826     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8827   fi
8828 else
8829   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8830 fi
8831 need_lib_prefix=unknown
8832 hardcode_into_libs=no
8833
8834 # when you set need_version to no, make sure it does not cause -set_version
8835 # flags to be left without arguments
8836 need_version=unknown
8837
8838 case $host_os in
8839 aix3*)
8840   version_type=linux
8841   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8842   shlibpath_var=LIBPATH
8843
8844   # AIX 3 has no versioning support, so we append a major version to the name.
8845   soname_spec='${libname}${release}${shared_ext}$major'
8846   ;;
8847
8848 aix4* | aix5*)
8849   version_type=linux
8850   need_lib_prefix=no
8851   need_version=no
8852   hardcode_into_libs=yes
8853   if test "$host_cpu" = ia64; then
8854     # AIX 5 supports IA64
8855     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8856     shlibpath_var=LD_LIBRARY_PATH
8857   else
8858     # With GCC up to 2.95.x, collect2 would create an import file
8859     # for dependence libraries.  The import file would start with
8860     # the line `#! .'.  This would cause the generated library to
8861     # depend on `.', always an invalid library.  This was fixed in
8862     # development snapshots of GCC prior to 3.0.
8863     case $host_os in
8864       aix4 | aix4.[01] | aix4.[01].*)
8865       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8866            echo ' yes '
8867            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8868         :
8869       else
8870         can_build_shared=no
8871       fi
8872       ;;
8873     esac
8874     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8875     # soname into executable. Probably we can add versioning support to
8876     # collect2, so additional links can be useful in future.
8877     if test "$aix_use_runtimelinking" = yes; then
8878       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8879       # instead of lib<name>.a to let people know that these are not
8880       # typical AIX shared libraries.
8881       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882     else
8883       # We preserve .a as extension for shared libraries through AIX4.2
8884       # and later when we are not doing run time linking.
8885       library_names_spec='${libname}${release}.a $libname.a'
8886       soname_spec='${libname}${release}${shared_ext}$major'
8887     fi
8888     shlibpath_var=LIBPATH
8889   fi
8890   ;;
8891
8892 amigaos*)
8893   library_names_spec='$libname.ixlibrary $libname.a'
8894   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8895   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'
8896   ;;
8897
8898 beos*)
8899   library_names_spec='${libname}${shared_ext}'
8900   dynamic_linker="$host_os ld.so"
8901   shlibpath_var=LIBRARY_PATH
8902   ;;
8903
8904 bsdi[45]*)
8905   version_type=linux
8906   need_version=no
8907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908   soname_spec='${libname}${release}${shared_ext}$major'
8909   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8910   shlibpath_var=LD_LIBRARY_PATH
8911   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8912   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8913   # the default ld.so.conf also contains /usr/contrib/lib and
8914   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8915   # libtool to hard-code these into programs
8916   ;;
8917
8918 cygwin* | mingw* | pw32*)
8919   version_type=windows
8920   shrext_cmds=".dll"
8921   need_version=no
8922   need_lib_prefix=no
8923
8924   case $GCC,$host_os in
8925   yes,cygwin* | yes,mingw* | yes,pw32*)
8926     library_names_spec='$libname.dll.a'
8927     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8928     postinstall_cmds='base_file=`basename \${file}`~
8929       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8930       dldir=$destdir/`dirname \$dlpath`~
8931       test -d \$dldir || mkdir -p \$dldir~
8932       $install_prog $dir/$dlname \$dldir/$dlname~
8933       chmod a+x \$dldir/$dlname'
8934     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8935       dlpath=$dir/\$dldll~
8936        $rm \$dlpath'
8937     shlibpath_overrides_runpath=yes
8938
8939     case $host_os in
8940     cygwin*)
8941       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8942       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8943       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8944       ;;
8945     mingw*)
8946       # MinGW DLLs use traditional 'lib' prefix
8947       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8948       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8949       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8950         # It is most probably a Windows format PATH printed by
8951         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8952         # path with ; separators, and with drive letters. We can handle the
8953         # drive letters (cygwin fileutils understands them), so leave them,
8954         # especially as we might pass files found there to a mingw objdump,
8955         # which wouldn't understand a cygwinified path. Ahh.
8956         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8957       else
8958         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8959       fi
8960       ;;
8961     pw32*)
8962       # pw32 DLLs use 'pw' prefix rather than 'lib'
8963       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8964       ;;
8965     esac
8966     ;;
8967
8968   *)
8969     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8970     ;;
8971   esac
8972   dynamic_linker='Win32 ld.exe'
8973   # FIXME: first we should search . and the directory the executable is in
8974   shlibpath_var=PATH
8975   ;;
8976
8977 darwin* | rhapsody*)
8978   dynamic_linker="$host_os dyld"
8979   version_type=darwin
8980   need_lib_prefix=no
8981   need_version=no
8982   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8983   soname_spec='${libname}${release}${major}$shared_ext'
8984   shlibpath_overrides_runpath=yes
8985   shlibpath_var=DYLD_LIBRARY_PATH
8986   shrext_cmds='.dylib'
8987   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8988   if test "$GCC" = yes; then
8989     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"`
8990   else
8991     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8992   fi
8993   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8994   ;;
8995
8996 dgux*)
8997   version_type=linux
8998   need_lib_prefix=no
8999   need_version=no
9000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9001   soname_spec='${libname}${release}${shared_ext}$major'
9002   shlibpath_var=LD_LIBRARY_PATH
9003   ;;
9004
9005 freebsd1.*)
9006   dynamic_linker=no
9007   ;;
9008
9009 kfreebsd*-gnu)
9010   version_type=linux
9011   need_lib_prefix=no
9012   need_version=no
9013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9014   soname_spec='${libname}${release}${shared_ext}$major'
9015   shlibpath_var=LD_LIBRARY_PATH
9016   shlibpath_overrides_runpath=no
9017   hardcode_into_libs=yes
9018   dynamic_linker='GNU ld.so'
9019   ;;
9020
9021 freebsd* | dragonfly*)
9022   # DragonFly does not have aout.  When/if they implement a new
9023   # versioning mechanism, adjust this.
9024   if test -x /usr/bin/objformat; then
9025     objformat=`/usr/bin/objformat`
9026   else
9027     case $host_os in
9028     freebsd[123].*) objformat=aout ;;
9029     *) objformat=elf ;;
9030     esac
9031   fi
9032   version_type=freebsd-$objformat
9033   case $version_type in
9034     freebsd-elf*)
9035       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9036       need_version=no
9037       need_lib_prefix=no
9038       ;;
9039     freebsd-*)
9040       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9041       need_version=yes
9042       ;;
9043   esac
9044   shlibpath_var=LD_LIBRARY_PATH
9045   case $host_os in
9046   freebsd2.*)
9047     shlibpath_overrides_runpath=yes
9048     ;;
9049   freebsd3.[01]* | freebsdelf3.[01]*)
9050     shlibpath_overrides_runpath=yes
9051     hardcode_into_libs=yes
9052     ;;
9053   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9054   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9055     shlibpath_overrides_runpath=no
9056     hardcode_into_libs=yes
9057     ;;
9058   freebsd*) # from 4.6 on
9059     shlibpath_overrides_runpath=yes
9060     hardcode_into_libs=yes
9061     ;;
9062   esac
9063   ;;
9064
9065 gnu*)
9066   version_type=linux
9067   need_lib_prefix=no
9068   need_version=no
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   hardcode_into_libs=yes
9073   ;;
9074
9075 hpux9* | hpux10* | hpux11*)
9076   # Give a soname corresponding to the major version so that dld.sl refuses to
9077   # link against other versions.
9078   version_type=sunos
9079   need_lib_prefix=no
9080   need_version=no
9081   case $host_cpu in
9082   ia64*)
9083     shrext_cmds='.so'
9084     hardcode_into_libs=yes
9085     dynamic_linker="$host_os dld.so"
9086     shlibpath_var=LD_LIBRARY_PATH
9087     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089     soname_spec='${libname}${release}${shared_ext}$major'
9090     if test "X$HPUX_IA64_MODE" = X32; then
9091       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9092     else
9093       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9094     fi
9095     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9096     ;;
9097    hppa*64*)
9098      shrext_cmds='.sl'
9099      hardcode_into_libs=yes
9100      dynamic_linker="$host_os dld.sl"
9101      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9102      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9103      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104      soname_spec='${libname}${release}${shared_ext}$major'
9105      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9106      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9107      ;;
9108    *)
9109     shrext_cmds='.sl'
9110     dynamic_linker="$host_os dld.sl"
9111     shlibpath_var=SHLIB_PATH
9112     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114     soname_spec='${libname}${release}${shared_ext}$major'
9115     ;;
9116   esac
9117   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9118   postinstall_cmds='chmod 555 $lib'
9119   ;;
9120
9121 interix3*)
9122   version_type=linux
9123   need_lib_prefix=no
9124   need_version=no
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9126   soname_spec='${libname}${release}${shared_ext}$major'
9127   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9128   shlibpath_var=LD_LIBRARY_PATH
9129   shlibpath_overrides_runpath=no
9130   hardcode_into_libs=yes
9131   ;;
9132
9133 irix5* | irix6* | nonstopux*)
9134   case $host_os in
9135     nonstopux*) version_type=nonstopux ;;
9136     *)
9137         if test "$lt_cv_prog_gnu_ld" = yes; then
9138                 version_type=linux
9139         else
9140                 version_type=irix
9141         fi ;;
9142   esac
9143   need_lib_prefix=no
9144   need_version=no
9145   soname_spec='${libname}${release}${shared_ext}$major'
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9147   case $host_os in
9148   irix5* | nonstopux*)
9149     libsuff= shlibsuff=
9150     ;;
9151   *)
9152     case $LD in # libtool.m4 will add one of these switches to LD
9153     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9154       libsuff= shlibsuff= libmagic=32-bit;;
9155     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9156       libsuff=32 shlibsuff=N32 libmagic=N32;;
9157     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9158       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9159     *) libsuff= shlibsuff= libmagic=never-match;;
9160     esac
9161     ;;
9162   esac
9163   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9164   shlibpath_overrides_runpath=no
9165   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9166   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9167   hardcode_into_libs=yes
9168   ;;
9169
9170 # No shared lib support for Linux oldld, aout, or coff.
9171 linux*oldld* | linux*aout* | linux*coff*)
9172   dynamic_linker=no
9173   ;;
9174
9175 # This must be Linux ELF.
9176 linux*)
9177   version_type=linux
9178   need_lib_prefix=no
9179   need_version=no
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181   soname_spec='${libname}${release}${shared_ext}$major'
9182   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9183   shlibpath_var=LD_LIBRARY_PATH
9184   shlibpath_overrides_runpath=no
9185   # This implies no fast_install, which is unacceptable.
9186   # Some rework will be needed to allow for fast_install
9187   # before this can be enabled.
9188   hardcode_into_libs=yes
9189
9190   # Append ld.so.conf contents to the search path
9191   if test -f /etc/ld.so.conf; then
9192     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' ' '`
9193     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9194   fi
9195
9196   # We used to test for /lib/ld.so.1 and disable shared libraries on
9197   # powerpc, because MkLinux only supported shared libraries with the
9198   # GNU dynamic linker.  Since this was broken with cross compilers,
9199   # most powerpc-linux boxes support dynamic linking these days and
9200   # people can always --disable-shared, the test was removed, and we
9201   # assume the GNU/Linux dynamic linker is in use.
9202   dynamic_linker='GNU/Linux ld.so'
9203   ;;
9204
9205 knetbsd*-gnu)
9206   version_type=linux
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   shlibpath_overrides_runpath=no
9213   hardcode_into_libs=yes
9214   dynamic_linker='GNU ld.so'
9215   ;;
9216
9217 netbsd*)
9218   version_type=sunos
9219   need_lib_prefix=no
9220   need_version=no
9221   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9223     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9224     dynamic_linker='NetBSD (a.out) ld.so'
9225   else
9226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9227     soname_spec='${libname}${release}${shared_ext}$major'
9228     dynamic_linker='NetBSD ld.elf_so'
9229   fi
9230   shlibpath_var=LD_LIBRARY_PATH
9231   shlibpath_overrides_runpath=yes
9232   hardcode_into_libs=yes
9233   ;;
9234
9235 newsos6)
9236   version_type=linux
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238   shlibpath_var=LD_LIBRARY_PATH
9239   shlibpath_overrides_runpath=yes
9240   ;;
9241
9242 nto-qnx*)
9243   version_type=linux
9244   need_lib_prefix=no
9245   need_version=no
9246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247   soname_spec='${libname}${release}${shared_ext}$major'
9248   shlibpath_var=LD_LIBRARY_PATH
9249   shlibpath_overrides_runpath=yes
9250   ;;
9251
9252 openbsd* | bitrig*)
9253   version_type=sunos
9254   sys_lib_dlsearch_path_spec="/usr/lib"
9255   need_lib_prefix=no
9256   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9257   case $host_os in
9258     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9259     *)                         need_version=no  ;;
9260   esac
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9263   shlibpath_var=LD_LIBRARY_PATH
9264   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9265     case $host_os in
9266       openbsd2.[89] | openbsd2.[89].*)
9267         shlibpath_overrides_runpath=no
9268         ;;
9269       *)
9270         shlibpath_overrides_runpath=yes
9271         ;;
9272       esac
9273   else
9274     shlibpath_overrides_runpath=yes
9275   fi
9276   ;;
9277
9278 os2*)
9279   libname_spec='$name'
9280   shrext_cmds=".dll"
9281   need_lib_prefix=no
9282   library_names_spec='$libname${shared_ext} $libname.a'
9283   dynamic_linker='OS/2 ld.exe'
9284   shlibpath_var=LIBPATH
9285   ;;
9286
9287 osf3* | osf4* | osf5*)
9288   version_type=osf
9289   need_lib_prefix=no
9290   need_version=no
9291   soname_spec='${libname}${release}${shared_ext}$major'
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293   shlibpath_var=LD_LIBRARY_PATH
9294   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9295   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9296   ;;
9297
9298 solaris*)
9299   version_type=linux
9300   need_lib_prefix=no
9301   need_version=no
9302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303   soname_spec='${libname}${release}${shared_ext}$major'
9304   shlibpath_var=LD_LIBRARY_PATH
9305   shlibpath_overrides_runpath=yes
9306   hardcode_into_libs=yes
9307   # ldd complains unless libraries are executable
9308   postinstall_cmds='chmod +x $lib'
9309   ;;
9310
9311 sunos4*)
9312   version_type=sunos
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9315   shlibpath_var=LD_LIBRARY_PATH
9316   shlibpath_overrides_runpath=yes
9317   if test "$with_gnu_ld" = yes; then
9318     need_lib_prefix=no
9319   fi
9320   need_version=yes
9321   ;;
9322
9323 sysv4 | sysv4.3*)
9324   version_type=linux
9325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326   soname_spec='${libname}${release}${shared_ext}$major'
9327   shlibpath_var=LD_LIBRARY_PATH
9328   case $host_vendor in
9329     sni)
9330       shlibpath_overrides_runpath=no
9331       need_lib_prefix=no
9332       export_dynamic_flag_spec='${wl}-Blargedynsym'
9333       runpath_var=LD_RUN_PATH
9334       ;;
9335     siemens)
9336       need_lib_prefix=no
9337       ;;
9338     motorola)
9339       need_lib_prefix=no
9340       need_version=no
9341       shlibpath_overrides_runpath=no
9342       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9343       ;;
9344   esac
9345   ;;
9346
9347 sysv4*MP*)
9348   if test -d /usr/nec ;then
9349     version_type=linux
9350     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9351     soname_spec='$libname${shared_ext}.$major'
9352     shlibpath_var=LD_LIBRARY_PATH
9353   fi
9354   ;;
9355
9356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9357   version_type=freebsd-elf
9358   need_lib_prefix=no
9359   need_version=no
9360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9361   soname_spec='${libname}${release}${shared_ext}$major'
9362   shlibpath_var=LD_LIBRARY_PATH
9363   hardcode_into_libs=yes
9364   if test "$with_gnu_ld" = yes; then
9365     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9366     shlibpath_overrides_runpath=no
9367   else
9368     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9369     shlibpath_overrides_runpath=yes
9370     case $host_os in
9371       sco3.2v5*)
9372         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9373         ;;
9374     esac
9375   fi
9376   sys_lib_dlsearch_path_spec='/usr/lib'
9377   ;;
9378
9379 uts4*)
9380   version_type=linux
9381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382   soname_spec='${libname}${release}${shared_ext}$major'
9383   shlibpath_var=LD_LIBRARY_PATH
9384   ;;
9385
9386 *)
9387   dynamic_linker=no
9388   ;;
9389 esac
9390 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9391 echo "${ECHO_T}$dynamic_linker" >&6; }
9392 test "$dynamic_linker" = no && can_build_shared=no
9393
9394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9395 if test "$GCC" = yes; then
9396   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9397 fi
9398
9399
9400 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9401 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_shlibext+set}" = set; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405
9406 module=yes
9407 eval libltdl_cv_shlibext=$shrext_cmds
9408
9409 fi
9410 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9411 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9412 if test -n "$libltdl_cv_shlibext"; then
9413
9414 cat >>confdefs.h <<_ACEOF
9415 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9416 _ACEOF
9417
9418 fi
9419
9420
9421 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9422 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9423 if test "${libltdl_cv_sys_search_path+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9427 fi
9428 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9429 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9430 if test -n "$libltdl_cv_sys_search_path"; then
9431   sys_search_path=
9432   for dir in $libltdl_cv_sys_search_path; do
9433     if test -z "$sys_search_path"; then
9434       sys_search_path="$dir"
9435     else
9436       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9437     fi
9438   done
9439
9440 cat >>confdefs.h <<_ACEOF
9441 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9442 _ACEOF
9443
9444 fi
9445
9446 { echo "$as_me:$LINENO: checking for objdir" >&5
9447 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9448 if test "${libltdl_cv_objdir+set}" = set; then
9449   echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451   libltdl_cv_objdir="$objdir"
9452   if test -n "$objdir"; then
9453     :
9454   else
9455     rm -f .libs 2>/dev/null
9456     mkdir .libs 2>/dev/null
9457     if test -d .libs; then
9458       libltdl_cv_objdir=.libs
9459     else
9460       # MS-DOS does not allow filenames that begin with a dot.
9461       libltdl_cv_objdir=_libs
9462     fi
9463   rmdir .libs 2>/dev/null
9464   fi
9465
9466 fi
9467 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9468 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9469
9470 cat >>confdefs.h <<_ACEOF
9471 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9472 _ACEOF
9473
9474
9475
9476
9477
9478
9479 # Check for command to grab the raw symbol name followed by C symbol from nm.
9480 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9481 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485
9486 # These are sane defaults that work on at least a few old systems.
9487 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9488
9489 # Character class describing NM global symbol codes.
9490 symcode='[BCDEGRST]'
9491
9492 # Regexp to match symbols that can be accessed directly from C.
9493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9494
9495 # Transform an extracted symbol line into a proper C declaration
9496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9497
9498 # Transform an extracted symbol line into symbol name and symbol address
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
9501 # Define system-specific variables.
9502 case $host_os in
9503 aix*)
9504   symcode='[BCDT]'
9505   ;;
9506 cygwin* | mingw* | pw32*)
9507   symcode='[ABCDGISTW]'
9508   ;;
9509 hpux*) # Its linker distinguishes data from code symbols
9510   if test "$host_cpu" = ia64; then
9511     symcode='[ABCDEGRST]'
9512   fi
9513   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9514   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'"
9515   ;;
9516 linux*)
9517   if test "$host_cpu" = ia64; then
9518     symcode='[ABCDGIRSTW]'
9519     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9520     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'"
9521   fi
9522   ;;
9523 irix* | nonstopux*)
9524   symcode='[BCDEGRST]'
9525   ;;
9526 osf*)
9527   symcode='[BCDEGQRST]'
9528   ;;
9529 solaris*)
9530   symcode='[BDRT]'
9531   ;;
9532 sco3.2v5*)
9533   symcode='[DT]'
9534   ;;
9535 sysv4.2uw2*)
9536   symcode='[DT]'
9537   ;;
9538 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9539   symcode='[ABDT]'
9540   ;;
9541 sysv4)
9542   symcode='[DFNSTU]'
9543   ;;
9544 esac
9545
9546 # Handle CRLF in mingw tool chain
9547 opt_cr=
9548 case $build_os in
9549 mingw*)
9550   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9551   ;;
9552 esac
9553
9554 # If we're using GNU nm, then use its standard symbol codes.
9555 case `$NM -V 2>&1` in
9556 *GNU* | *'with BFD'*)
9557   symcode='[ABCDGIRSTW]' ;;
9558 esac
9559
9560 # Try without a prefix undercore, then with it.
9561 for ac_symprfx in "" "_"; do
9562
9563   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9564   symxfrm="\\1 $ac_symprfx\\2 \\2"
9565
9566   # Write the raw and C identifiers.
9567   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9568
9569   # Check to see that the pipe works correctly.
9570   pipe_works=no
9571
9572   rm -f conftest*
9573   cat > conftest.$ac_ext <<EOF
9574 #ifdef __cplusplus
9575 extern "C" {
9576 #endif
9577 char nm_test_var;
9578 void nm_test_func(){}
9579 #ifdef __cplusplus
9580 }
9581 #endif
9582 int main(){nm_test_var='a';nm_test_func();return(0);}
9583 EOF
9584
9585   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586   (eval $ac_compile) 2>&5
9587   ac_status=$?
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); }; then
9590     # Now try to grab the symbols.
9591     nlist=conftest.nm
9592     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9593   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } && test -s "$nlist"; then
9597       # Try sorting and uniquifying the output.
9598       if sort "$nlist" | uniq > "$nlist"T; then
9599         mv -f "$nlist"T "$nlist"
9600       else
9601         rm -f "$nlist"T
9602       fi
9603
9604       # Make sure that we snagged all the symbols we need.
9605       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9606         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9607           cat <<EOF > conftest.$ac_ext
9608 #ifdef __cplusplus
9609 extern "C" {
9610 #endif
9611
9612 EOF
9613           # Now generate the symbol file.
9614           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9615
9616           cat <<EOF >> conftest.$ac_ext
9617 #if defined (__STDC__) && __STDC__
9618 # define lt_ptr_t void *
9619 #else
9620 # define lt_ptr_t char *
9621 # define const
9622 #endif
9623
9624 /* The mapping between symbol names and symbols. */
9625 const struct {
9626   const char *name;
9627   lt_ptr_t address;
9628 }
9629 lt_preloaded_symbols[] =
9630 {
9631 EOF
9632           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9633           cat <<\EOF >> conftest.$ac_ext
9634   {0, (lt_ptr_t) 0}
9635 };
9636
9637 #ifdef __cplusplus
9638 }
9639 #endif
9640 EOF
9641           # Now try linking the two files.
9642           mv conftest.$ac_objext conftstm.$ac_objext
9643           lt_save_LIBS="$LIBS"
9644           lt_save_CFLAGS="$CFLAGS"
9645           LIBS="conftstm.$ac_objext"
9646           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9647           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648   (eval $ac_link) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9652             pipe_works=yes
9653           fi
9654           LIBS="$lt_save_LIBS"
9655           CFLAGS="$lt_save_CFLAGS"
9656         else
9657           echo "cannot find nm_test_func in $nlist" >&5
9658         fi
9659       else
9660         echo "cannot find nm_test_var in $nlist" >&5
9661       fi
9662     else
9663       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9664     fi
9665   else
9666     echo "$progname: failed program was:" >&5
9667     cat conftest.$ac_ext >&5
9668   fi
9669   rm -f conftest* conftst*
9670
9671   # Do not use the global_symbol_pipe unless it works.
9672   if test "$pipe_works" = yes; then
9673     break
9674   else
9675     lt_cv_sys_global_symbol_pipe=
9676   fi
9677 done
9678
9679 fi
9680
9681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9682   lt_cv_sys_global_symbol_to_cdecl=
9683 fi
9684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9685   { echo "$as_me:$LINENO: result: failed" >&5
9686 echo "${ECHO_T}failed" >&6; }
9687 else
9688   { echo "$as_me:$LINENO: result: ok" >&5
9689 echo "${ECHO_T}ok" >&6; }
9690 fi
9691
9692
9693 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9694 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9695 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9696   echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9699     libltdl_cv_preloaded_symbols=yes
9700   else
9701     libltdl_cv_preloaded_symbols=no
9702   fi
9703
9704 fi
9705 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9706 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9707 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9708
9709 cat >>confdefs.h <<\_ACEOF
9710 #define HAVE_PRELOADED_SYMBOLS 1
9711 _ACEOF
9712
9713 fi
9714
9715 LIBADD_DL=
9716
9717 ac_ext=c
9718 ac_cpp='$CPP $CPPFLAGS'
9719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9722
9723
9724 { echo "$as_me:$LINENO: checking for shl_load" >&5
9725 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9726 if test "${ac_cv_func_shl_load+set}" = set; then
9727   echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729   cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9737 #define shl_load innocuous_shl_load
9738
9739 /* System header to define __stub macros and hopefully few prototypes,
9740     which can conflict with char shl_load (); below.
9741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9742     <limits.h> exists even on freestanding compilers.  */
9743
9744 #ifdef __STDC__
9745 # include <limits.h>
9746 #else
9747 # include <assert.h>
9748 #endif
9749
9750 #undef shl_load
9751
9752 /* Override any GCC internal prototype to avoid an error.
9753    Use char because int might match the return type of a GCC
9754    builtin and then its argument prototype would still apply.  */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 char shl_load ();
9759 /* The GNU C library defines this for functions which it implements
9760     to always fail with ENOSYS.  Some functions are actually named
9761     something starting with __ and the normal name is an alias.  */
9762 #if defined __stub_shl_load || defined __stub___shl_load
9763 choke me
9764 #endif
9765
9766 int
9767 main ()
9768 {
9769 return shl_load ();
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9776 case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_link") 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789   { (case "(($ac_try" in
9790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791   *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794   (eval "$ac_try") 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; } &&
9798          { ac_try='test -s conftest$ac_exeext'
9799   { (case "(($ac_try" in
9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801   *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804   (eval "$ac_try") 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; }; then
9808   ac_cv_func_shl_load=yes
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813         ac_cv_func_shl_load=no
9814 fi
9815
9816 rm -f core conftest.err conftest.$ac_objext \
9817       conftest$ac_exeext conftest.$ac_ext
9818 fi
9819 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9820 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9821 if test $ac_cv_func_shl_load = yes; then
9822
9823 cat >>confdefs.h <<\_ACEOF
9824 #define HAVE_SHL_LOAD 1
9825 _ACEOF
9826
9827 else
9828   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9829 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9830 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9831   echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833   ac_check_lib_save_LIBS=$LIBS
9834 LIBS="-ldld  $LIBS"
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h.  */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h.  */
9841
9842 /* Override any GCC internal prototype to avoid an error.
9843    Use char because int might match the return type of a GCC
9844    builtin and then its argument prototype would still apply.  */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 char shl_load ();
9849 int
9850 main ()
9851 {
9852 return shl_load ();
9853   ;
9854   return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9859 case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_link") 2>conftest.er1
9865   ac_status=$?
9866   grep -v '^ *+' conftest.er1 >conftest.err
9867   rm -f conftest.er1
9868   cat conftest.err >&5
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); } &&
9871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9872   { (case "(($ac_try" in
9873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874   *) ac_try_echo=$ac_try;;
9875 esac
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877   (eval "$ac_try") 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; } &&
9881          { ac_try='test -s conftest$ac_exeext'
9882   { (case "(($ac_try" in
9883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884   *) ac_try_echo=$ac_try;;
9885 esac
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887   (eval "$ac_try") 2>&5
9888   ac_status=$?
9889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890   (exit $ac_status); }; }; then
9891   ac_cv_lib_dld_shl_load=yes
9892 else
9893   echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9895
9896         ac_cv_lib_dld_shl_load=no
9897 fi
9898
9899 rm -f core conftest.err conftest.$ac_objext \
9900       conftest$ac_exeext conftest.$ac_ext
9901 LIBS=$ac_check_lib_save_LIBS
9902 fi
9903 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9904 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9905 if test $ac_cv_lib_dld_shl_load = yes; then
9906
9907 cat >>confdefs.h <<\_ACEOF
9908 #define HAVE_SHL_LOAD 1
9909 _ACEOF
9910
9911         LIBADD_DL="$LIBADD_DL -ldld"
9912 else
9913   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9916   echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918   ac_check_lib_save_LIBS=$LIBS
9919 LIBS="-ldl  $LIBS"
9920 cat >conftest.$ac_ext <<_ACEOF
9921 /* confdefs.h.  */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h.  */
9926
9927 /* Override any GCC internal prototype to avoid an error.
9928    Use char because int might match the return type of a GCC
9929    builtin and then its argument prototype would still apply.  */
9930 #ifdef __cplusplus
9931 extern "C"
9932 #endif
9933 char dlopen ();
9934 int
9935 main ()
9936 {
9937 return dlopen ();
9938   ;
9939   return 0;
9940 }
9941 _ACEOF
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (ac_try="$ac_link"
9944 case "(($ac_try" in
9945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946   *) ac_try_echo=$ac_try;;
9947 esac
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949   (eval "$ac_link") 2>conftest.er1
9950   ac_status=$?
9951   grep -v '^ *+' conftest.er1 >conftest.err
9952   rm -f conftest.er1
9953   cat conftest.err >&5
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); } &&
9956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9957   { (case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_try") 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }; } &&
9966          { ac_try='test -s conftest$ac_exeext'
9967   { (case "(($ac_try" in
9968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969   *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972   (eval "$ac_try") 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_lib_dl_dlopen=yes
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981         ac_cv_lib_dl_dlopen=no
9982 fi
9983
9984 rm -f core conftest.err conftest.$ac_objext \
9985       conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9987 fi
9988 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9989 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9990 if test $ac_cv_lib_dl_dlopen = yes; then
9991
9992 cat >>confdefs.h <<\_ACEOF
9993 #define HAVE_LIBDL 1
9994 _ACEOF
9995
9996                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9997 else
9998   cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h.  */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h.  */
10004 #if HAVE_DLFCN_H
10005 #  include <dlfcn.h>
10006 #endif
10007
10008 int
10009 main ()
10010 {
10011 dlopen(0, 0);
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (ac_try="$ac_link"
10018 case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023   (eval "$ac_link") 2>conftest.er1
10024   ac_status=$?
10025   grep -v '^ *+' conftest.er1 >conftest.err
10026   rm -f conftest.er1
10027   cat conftest.err >&5
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); } &&
10030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10031   { (case "(($ac_try" in
10032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033   *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036   (eval "$ac_try") 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; } &&
10040          { ac_try='test -s conftest$ac_exeext'
10041   { (case "(($ac_try" in
10042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043   *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046   (eval "$ac_try") 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; }; then
10050
10051 cat >>confdefs.h <<\_ACEOF
10052 #define HAVE_LIBDL 1
10053 _ACEOF
10054  libltdl_cv_func_dlopen="yes"
10055 else
10056   echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10058
10059         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10062   echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064   ac_check_lib_save_LIBS=$LIBS
10065 LIBS="-lsvld  $LIBS"
10066 cat >conftest.$ac_ext <<_ACEOF
10067 /* confdefs.h.  */
10068 _ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h.  */
10072
10073 /* Override any GCC internal prototype to avoid an error.
10074    Use char because int might match the return type of a GCC
10075    builtin and then its argument prototype would still apply.  */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 char dlopen ();
10080 int
10081 main ()
10082 {
10083 return dlopen ();
10084   ;
10085   return 0;
10086 }
10087 _ACEOF
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (ac_try="$ac_link"
10090 case "(($ac_try" in
10091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092   *) ac_try_echo=$ac_try;;
10093 esac
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095   (eval "$ac_link") 2>conftest.er1
10096   ac_status=$?
10097   grep -v '^ *+' conftest.er1 >conftest.err
10098   rm -f conftest.er1
10099   cat conftest.err >&5
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); } &&
10102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10103   { (case "(($ac_try" in
10104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105   *) ac_try_echo=$ac_try;;
10106 esac
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108   (eval "$ac_try") 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; } &&
10112          { ac_try='test -s conftest$ac_exeext'
10113   { (case "(($ac_try" in
10114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115   *) ac_try_echo=$ac_try;;
10116 esac
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118   (eval "$ac_try") 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; }; then
10122   ac_cv_lib_svld_dlopen=yes
10123 else
10124   echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10126
10127         ac_cv_lib_svld_dlopen=no
10128 fi
10129
10130 rm -f core conftest.err conftest.$ac_objext \
10131       conftest$ac_exeext conftest.$ac_ext
10132 LIBS=$ac_check_lib_save_LIBS
10133 fi
10134 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10136 if test $ac_cv_lib_svld_dlopen = yes; then
10137
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_LIBDL 1
10140 _ACEOF
10141
10142                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10143 else
10144   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10145 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10146 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   ac_check_lib_save_LIBS=$LIBS
10150 LIBS="-ldld  $LIBS"
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157
10158 /* Override any GCC internal prototype to avoid an error.
10159    Use char because int might match the return type of a GCC
10160    builtin and then its argument prototype would still apply.  */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 char dld_link ();
10165 int
10166 main ()
10167 {
10168 return dld_link ();
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177   *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180   (eval "$ac_link") 2>conftest.er1
10181   ac_status=$?
10182   grep -v '^ *+' conftest.er1 >conftest.err
10183   rm -f conftest.er1
10184   cat conftest.err >&5
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); } &&
10187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10188   { (case "(($ac_try" in
10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190   *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193   (eval "$ac_try") 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; } &&
10197          { ac_try='test -s conftest$ac_exeext'
10198   { (case "(($ac_try" in
10199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200   *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203   (eval "$ac_try") 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; }; then
10207   ac_cv_lib_dld_dld_link=yes
10208 else
10209   echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212         ac_cv_lib_dld_dld_link=no
10213 fi
10214
10215 rm -f core conftest.err conftest.$ac_objext \
10216       conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10218 fi
10219 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10220 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10221 if test $ac_cv_lib_dld_dld_link = yes; then
10222
10223 cat >>confdefs.h <<\_ACEOF
10224 #define HAVE_DLD 1
10225 _ACEOF
10226
10227                 LIBADD_DL="$LIBADD_DL -ldld"
10228 else
10229   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10230 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10231 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234   cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10242 #define _dyld_func_lookup innocuous__dyld_func_lookup
10243
10244 /* System header to define __stub macros and hopefully few prototypes,
10245     which can conflict with char _dyld_func_lookup (); below.
10246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10247     <limits.h> exists even on freestanding compilers.  */
10248
10249 #ifdef __STDC__
10250 # include <limits.h>
10251 #else
10252 # include <assert.h>
10253 #endif
10254
10255 #undef _dyld_func_lookup
10256
10257 /* Override any GCC internal prototype to avoid an error.
10258    Use char because int might match the return type of a GCC
10259    builtin and then its argument prototype would still apply.  */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char _dyld_func_lookup ();
10264 /* The GNU C library defines this for functions which it implements
10265     to always fail with ENOSYS.  Some functions are actually named
10266     something starting with __ and the normal name is an alias.  */
10267 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10268 choke me
10269 #endif
10270
10271 int
10272 main ()
10273 {
10274 return _dyld_func_lookup ();
10275   ;
10276   return 0;
10277 }
10278 _ACEOF
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (ac_try="$ac_link"
10281 case "(($ac_try" in
10282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283   *) ac_try_echo=$ac_try;;
10284 esac
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286   (eval "$ac_link") 2>conftest.er1
10287   ac_status=$?
10288   grep -v '^ *+' conftest.er1 >conftest.err
10289   rm -f conftest.er1
10290   cat conftest.err >&5
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } &&
10293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10294   { (case "(($ac_try" in
10295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296   *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299   (eval "$ac_try") 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; } &&
10303          { ac_try='test -s conftest$ac_exeext'
10304   { (case "(($ac_try" in
10305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306   *) ac_try_echo=$ac_try;;
10307 esac
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309   (eval "$ac_try") 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; }; then
10313   ac_cv_func__dyld_func_lookup=yes
10314 else
10315   echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318         ac_cv_func__dyld_func_lookup=no
10319 fi
10320
10321 rm -f core conftest.err conftest.$ac_objext \
10322       conftest$ac_exeext conftest.$ac_ext
10323 fi
10324 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10325 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10326 if test $ac_cv_func__dyld_func_lookup = yes; then
10327
10328 cat >>confdefs.h <<\_ACEOF
10329 #define HAVE_DYLD 1
10330 _ACEOF
10331
10332 fi
10333
10334
10335 fi
10336
10337
10338 fi
10339
10340
10341 fi
10342
10343 rm -f core conftest.err conftest.$ac_objext \
10344       conftest$ac_exeext conftest.$ac_ext
10345
10346 fi
10347
10348
10349 fi
10350
10351
10352 fi
10353
10354
10355 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10356 then
10357   lt_save_LIBS="$LIBS"
10358   LIBS="$LIBS $LIBADD_DL"
10359
10360 for ac_func in dlerror
10361 do
10362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h.  */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h.  */
10374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10376 #define $ac_func innocuous_$ac_func
10377
10378 /* System header to define __stub macros and hopefully few prototypes,
10379     which can conflict with char $ac_func (); below.
10380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10381     <limits.h> exists even on freestanding compilers.  */
10382
10383 #ifdef __STDC__
10384 # include <limits.h>
10385 #else
10386 # include <assert.h>
10387 #endif
10388
10389 #undef $ac_func
10390
10391 /* Override any GCC internal prototype to avoid an error.
10392    Use char because int might match the return type of a GCC
10393    builtin and then its argument prototype would still apply.  */
10394 #ifdef __cplusplus
10395 extern "C"
10396 #endif
10397 char $ac_func ();
10398 /* The GNU C library defines this for functions which it implements
10399     to always fail with ENOSYS.  Some functions are actually named
10400     something starting with __ and the normal name is an alias.  */
10401 #if defined __stub_$ac_func || defined __stub___$ac_func
10402 choke me
10403 #endif
10404
10405 int
10406 main ()
10407 {
10408 return $ac_func ();
10409   ;
10410   return 0;
10411 }
10412 _ACEOF
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (ac_try="$ac_link"
10415 case "(($ac_try" in
10416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417   *) ac_try_echo=$ac_try;;
10418 esac
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420   (eval "$ac_link") 2>conftest.er1
10421   ac_status=$?
10422   grep -v '^ *+' conftest.er1 >conftest.err
10423   rm -f conftest.er1
10424   cat conftest.err >&5
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } &&
10427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10428   { (case "(($ac_try" in
10429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430   *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433   (eval "$ac_try") 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); }; } &&
10437          { ac_try='test -s conftest$ac_exeext'
10438   { (case "(($ac_try" in
10439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440   *) ac_try_echo=$ac_try;;
10441 esac
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443   (eval "$ac_try") 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }; }; then
10447   eval "$as_ac_var=yes"
10448 else
10449   echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10451
10452         eval "$as_ac_var=no"
10453 fi
10454
10455 rm -f core conftest.err conftest.$ac_objext \
10456       conftest$ac_exeext conftest.$ac_ext
10457 fi
10458 ac_res=`eval echo '${'$as_ac_var'}'`
10459                { echo "$as_me:$LINENO: result: $ac_res" >&5
10460 echo "${ECHO_T}$ac_res" >&6; }
10461 if test `eval echo '${'$as_ac_var'}'` = yes; then
10462   cat >>confdefs.h <<_ACEOF
10463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10464 _ACEOF
10465
10466 fi
10467 done
10468
10469   LIBS="$lt_save_LIBS"
10470 fi
10471 ac_ext=c
10472 ac_cpp='$CPP $CPPFLAGS'
10473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10476
10477
10478
10479 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10480 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10481 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484   ac_cv_sys_symbol_underscore=no
10485   cat > conftest.$ac_ext <<EOF
10486 void nm_test_func(){}
10487 int main(){nm_test_func;return 0;}
10488 EOF
10489   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10490   (eval $ac_compile) 2>&5
10491   ac_status=$?
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); }; then
10494     # Now try to grab the symbols.
10495     ac_nlist=conftest.nm
10496     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10497   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); } && test -s "$ac_nlist"; then
10501       # See whether the symbols have a leading underscore.
10502       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10503         ac_cv_sys_symbol_underscore=yes
10504       else
10505         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10506           :
10507         else
10508           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10509         fi
10510       fi
10511     else
10512       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10513     fi
10514   else
10515     echo "configure: failed program was:" >&5
10516     cat conftest.c >&5
10517   fi
10518   rm -rf conftest*
10519
10520 fi
10521 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10522 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10523
10524
10525 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10526   if test x"$libltdl_cv_func_dlopen" = xyes ||
10527      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10528         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10529 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10530 if test "${libltdl_cv_need_uscore+set}" = set; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533   libltdl_cv_need_uscore=unknown
10534           save_LIBS="$LIBS"
10535           LIBS="$LIBS $LIBADD_DL"
10536           if test "$cross_compiling" = yes; then :
10537   libltdl_cv_need_uscore=cross
10538 else
10539   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10540   lt_status=$lt_dlunknown
10541   cat > conftest.$ac_ext <<EOF
10542 #line 10542 "configure"
10543 #include "confdefs.h"
10544
10545 #if HAVE_DLFCN_H
10546 #include <dlfcn.h>
10547 #endif
10548
10549 #include <stdio.h>
10550
10551 #ifdef RTLD_GLOBAL
10552 #  define LT_DLGLOBAL           RTLD_GLOBAL
10553 #else
10554 #  ifdef DL_GLOBAL
10555 #    define LT_DLGLOBAL         DL_GLOBAL
10556 #  else
10557 #    define LT_DLGLOBAL         0
10558 #  endif
10559 #endif
10560
10561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10562    find out it does not work in some platform. */
10563 #ifndef LT_DLLAZY_OR_NOW
10564 #  ifdef RTLD_LAZY
10565 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10566 #  else
10567 #    ifdef DL_LAZY
10568 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10569 #    else
10570 #      ifdef RTLD_NOW
10571 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10572 #      else
10573 #        ifdef DL_NOW
10574 #          define LT_DLLAZY_OR_NOW      DL_NOW
10575 #        else
10576 #          define LT_DLLAZY_OR_NOW      0
10577 #        endif
10578 #      endif
10579 #    endif
10580 #  endif
10581 #endif
10582
10583 #ifdef __cplusplus
10584 extern "C" void exit (int);
10585 #endif
10586
10587 void fnord() { int i=42;}
10588 int main ()
10589 {
10590   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10591   int status = $lt_dlunknown;
10592
10593   if (self)
10594     {
10595       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10596       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10597       /* dlclose (self); */
10598     }
10599   else
10600     puts (dlerror ());
10601
10602     exit (status);
10603 }
10604 EOF
10605   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606   (eval $ac_link) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10610     (./conftest; exit; ) >&5 2>/dev/null
10611     lt_status=$?
10612     case x$lt_status in
10613       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10614       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10615       x$lt_dlunknown|x*)  ;;
10616     esac
10617   else :
10618     # compilation failed
10619
10620   fi
10621 fi
10622 rm -fr conftest*
10623
10624           LIBS="$save_LIBS"
10625
10626 fi
10627 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10628 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10629   fi
10630 fi
10631
10632 if test x"$libltdl_cv_need_uscore" = xyes; then
10633
10634 cat >>confdefs.h <<\_ACEOF
10635 #define NEED_USCORE 1
10636 _ACEOF
10637
10638 fi
10639
10640
10641 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10642 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10643 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   # PORTME does your system automatically load deplibs for dlopen?
10647   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10648   # For now, we just catch OSes we know something about -- in the
10649   # future, we'll try test this programmatically.
10650   libltdl_cv_sys_dlopen_deplibs=unknown
10651   case "$host_os" in
10652   aix3*|aix4.1.*|aix4.2.*)
10653     # Unknown whether this is true for these versions of AIX, but
10654     # we want this `case' here to explicitly catch those versions.
10655     libltdl_cv_sys_dlopen_deplibs=unknown
10656     ;;
10657   aix[45]*)
10658     libltdl_cv_sys_dlopen_deplibs=yes
10659     ;;
10660   darwin*)
10661     # Assuming the user has installed a libdl from somewhere, this is true
10662     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10663     libltdl_cv_sys_dlopen_deplibs=yes
10664     ;;
10665   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10666     # GNU and its variants, using gnu ld.so (Glibc)
10667     libltdl_cv_sys_dlopen_deplibs=yes
10668     ;;
10669   hpux10*|hpux11*)
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   interix*)
10673     libltdl_cv_sys_dlopen_deplibs=yes
10674     ;;
10675   irix[12345]*|irix6.[01]*)
10676     # Catch all versions of IRIX before 6.2, and indicate that we don't
10677     # know how it worked for any of those versions.
10678     libltdl_cv_sys_dlopen_deplibs=unknown
10679     ;;
10680   irix*)
10681     # The case above catches anything before 6.2, and it's known that
10682     # at 6.2 and later dlopen does load deplibs.
10683     libltdl_cv_sys_dlopen_deplibs=yes
10684     ;;
10685   netbsd*)
10686     libltdl_cv_sys_dlopen_deplibs=yes
10687     ;;
10688   openbsd*)
10689     libltdl_cv_sys_dlopen_deplibs=yes
10690     ;;
10691   osf[1234]*)
10692     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10693     # it did *not* use an RPATH in a shared library to find objects the
10694     # library depends on, so we explicitly say `no'.
10695     libltdl_cv_sys_dlopen_deplibs=no
10696     ;;
10697   osf5.0|osf5.0a|osf5.1)
10698     # dlopen *does* load deplibs and with the right loader patch applied
10699     # it even uses RPATH in a shared library to search for shared objects
10700     # that the library depends on, but there's no easy way to know if that
10701     # patch is installed.  Since this is the case, all we can really
10702     # say is unknown -- it depends on the patch being installed.  If
10703     # it is, this changes to `yes'.  Without it, it would be `no'.
10704     libltdl_cv_sys_dlopen_deplibs=unknown
10705     ;;
10706   osf*)
10707     # the two cases above should catch all versions of osf <= 5.1.  Read
10708     # the comments above for what we know about them.
10709     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10710     # is used to find them so we can finally say `yes'.
10711     libltdl_cv_sys_dlopen_deplibs=yes
10712     ;;
10713   solaris*)
10714     libltdl_cv_sys_dlopen_deplibs=yes
10715     ;;
10716   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10717     libltdl_cv_sys_dlopen_deplibs=yes
10718     ;;
10719   esac
10720
10721 fi
10722 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10723 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10724 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10725
10726 cat >>confdefs.h <<\_ACEOF
10727 #define LTDL_DLOPEN_DEPLIBS 1
10728 _ACEOF
10729
10730 fi
10731
10732
10733 for ac_header in argz.h
10734 do
10735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10740   echo $ECHO_N "(cached) $ECHO_C" >&6
10741 fi
10742 ac_res=`eval echo '${'$as_ac_Header'}'`
10743                { echo "$as_me:$LINENO: result: $ac_res" >&5
10744 echo "${ECHO_T}$ac_res" >&6; }
10745 else
10746   # Is the header compilable?
10747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10749 cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h.  */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h.  */
10755 $ac_includes_default
10756 #include <$ac_header>
10757 _ACEOF
10758 rm -f conftest.$ac_objext
10759 if { (ac_try="$ac_compile"
10760 case "(($ac_try" in
10761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762   *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765   (eval "$ac_compile") 2>conftest.er1
10766   ac_status=$?
10767   grep -v '^ *+' conftest.er1 >conftest.err
10768   rm -f conftest.er1
10769   cat conftest.err >&5
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); } &&
10772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10773   { (case "(($ac_try" in
10774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775   *) ac_try_echo=$ac_try;;
10776 esac
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778   (eval "$ac_try") 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); }; } &&
10782          { ac_try='test -s conftest.$ac_objext'
10783   { (case "(($ac_try" in
10784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785   *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788   (eval "$ac_try") 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; }; then
10792   ac_header_compiler=yes
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797         ac_header_compiler=no
10798 fi
10799
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10802 echo "${ECHO_T}$ac_header_compiler" >&6; }
10803
10804 # Is the header present?
10805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813 #include <$ac_header>
10814 _ACEOF
10815 if { (ac_try="$ac_cpp conftest.$ac_ext"
10816 case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10822   ac_status=$?
10823   grep -v '^ *+' conftest.er1 >conftest.err
10824   rm -f conftest.er1
10825   cat conftest.err >&5
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } >/dev/null; then
10828   if test -s conftest.err; then
10829     ac_cpp_err=$ac_c_preproc_warn_flag
10830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10831   else
10832     ac_cpp_err=
10833   fi
10834 else
10835   ac_cpp_err=yes
10836 fi
10837 if test -z "$ac_cpp_err"; then
10838   ac_header_preproc=yes
10839 else
10840   echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10842
10843   ac_header_preproc=no
10844 fi
10845
10846 rm -f conftest.err conftest.$ac_ext
10847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10848 echo "${ECHO_T}$ac_header_preproc" >&6; }
10849
10850 # So?  What about this header?
10851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10852   yes:no: )
10853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10857     ac_header_preproc=yes
10858     ;;
10859   no:yes:* )
10860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10872     ( cat <<\_ASBOX
10873 ## ------------------------------------ ##
10874 ## Report this to http://llvm.org/bugs/ ##
10875 ## ------------------------------------ ##
10876 _ASBOX
10877      ) | sed "s/^/$as_me: WARNING:     /" >&2
10878     ;;
10879 esac
10880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   eval "$as_ac_Header=\$ac_header_preproc"
10886 fi
10887 ac_res=`eval echo '${'$as_ac_Header'}'`
10888                { echo "$as_me:$LINENO: result: $ac_res" >&5
10889 echo "${ECHO_T}$ac_res" >&6; }
10890
10891 fi
10892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10893   cat >>confdefs.h <<_ACEOF
10894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10895 _ACEOF
10896
10897 fi
10898
10899 done
10900
10901
10902 { echo "$as_me:$LINENO: checking for error_t" >&5
10903 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10904 if test "${ac_cv_type_error_t+set}" = set; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #if HAVE_ARGZ_H
10914 #  include <argz.h>
10915 #endif
10916
10917 typedef error_t ac__type_new_;
10918 int
10919 main ()
10920 {
10921 if ((ac__type_new_ *) 0)
10922   return 0;
10923 if (sizeof (ac__type_new_))
10924   return 0;
10925   ;
10926   return 0;
10927 }
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_compile") 2>conftest.er1
10937   ac_status=$?
10938   grep -v '^ *+' conftest.er1 >conftest.err
10939   rm -f conftest.er1
10940   cat conftest.err >&5
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); } &&
10943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10944   { (case "(($ac_try" in
10945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946   *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949   (eval "$ac_try") 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); }; } &&
10953          { ac_try='test -s conftest.$ac_objext'
10954   { (case "(($ac_try" in
10955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956   *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959   (eval "$ac_try") 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); }; }; then
10963   ac_cv_type_error_t=yes
10964 else
10965   echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10967
10968         ac_cv_type_error_t=no
10969 fi
10970
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 fi
10973 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10974 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10975 if test $ac_cv_type_error_t = yes; then
10976
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_ERROR_T 1
10979 _ACEOF
10980
10981
10982 else
10983
10984 cat >>confdefs.h <<\_ACEOF
10985 #define error_t int
10986 _ACEOF
10987
10988 fi
10989
10990
10991
10992
10993
10994
10995
10996 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10997 do
10998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11002   echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004   cat >conftest.$ac_ext <<_ACEOF
11005 /* confdefs.h.  */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h.  */
11010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11012 #define $ac_func innocuous_$ac_func
11013
11014 /* System header to define __stub macros and hopefully few prototypes,
11015     which can conflict with char $ac_func (); below.
11016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11017     <limits.h> exists even on freestanding compilers.  */
11018
11019 #ifdef __STDC__
11020 # include <limits.h>
11021 #else
11022 # include <assert.h>
11023 #endif
11024
11025 #undef $ac_func
11026
11027 /* Override any GCC internal prototype to avoid an error.
11028    Use char because int might match the return type of a GCC
11029    builtin and then its argument prototype would still apply.  */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 char $ac_func ();
11034 /* The GNU C library defines this for functions which it implements
11035     to always fail with ENOSYS.  Some functions are actually named
11036     something starting with __ and the normal name is an alias.  */
11037 #if defined __stub_$ac_func || defined __stub___$ac_func
11038 choke me
11039 #endif
11040
11041 int
11042 main ()
11043 {
11044 return $ac_func ();
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (ac_try="$ac_link"
11051 case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056   (eval "$ac_link") 2>conftest.er1
11057   ac_status=$?
11058   grep -v '^ *+' conftest.er1 >conftest.err
11059   rm -f conftest.er1
11060   cat conftest.err >&5
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); } &&
11063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11064   { (case "(($ac_try" in
11065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066   *) ac_try_echo=$ac_try;;
11067 esac
11068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069   (eval "$ac_try") 2>&5
11070   ac_status=$?
11071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); }; } &&
11073          { ac_try='test -s conftest$ac_exeext'
11074   { (case "(($ac_try" in
11075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076   *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079   (eval "$ac_try") 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); }; }; then
11083   eval "$as_ac_var=yes"
11084 else
11085   echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088         eval "$as_ac_var=no"
11089 fi
11090
11091 rm -f core conftest.err conftest.$ac_objext \
11092       conftest$ac_exeext conftest.$ac_ext
11093 fi
11094 ac_res=`eval echo '${'$as_ac_var'}'`
11095                { echo "$as_me:$LINENO: result: $ac_res" >&5
11096 echo "${ECHO_T}$ac_res" >&6; }
11097 if test `eval echo '${'$as_ac_var'}'` = yes; then
11098   cat >>confdefs.h <<_ACEOF
11099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100 _ACEOF
11101
11102 fi
11103 done
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11132                   stdio.h unistd.h
11133 do
11134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 fi
11141 ac_res=`eval echo '${'$as_ac_Header'}'`
11142                { echo "$as_me:$LINENO: result: $ac_res" >&5
11143 echo "${ECHO_T}$ac_res" >&6; }
11144 else
11145   # Is the header compilable?
11146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h.  */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h.  */
11154 $ac_includes_default
11155 #include <$ac_header>
11156 _ACEOF
11157 rm -f conftest.$ac_objext
11158 if { (ac_try="$ac_compile"
11159 case "(($ac_try" in
11160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161   *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164   (eval "$ac_compile") 2>conftest.er1
11165   ac_status=$?
11166   grep -v '^ *+' conftest.er1 >conftest.err
11167   rm -f conftest.er1
11168   cat conftest.err >&5
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); } &&
11171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172   { (case "(($ac_try" in
11173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174   *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177   (eval "$ac_try") 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; } &&
11181          { ac_try='test -s conftest.$ac_objext'
11182   { (case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187   (eval "$ac_try") 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); }; }; then
11191   ac_header_compiler=yes
11192 else
11193   echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11195
11196         ac_header_compiler=no
11197 fi
11198
11199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201 echo "${ECHO_T}$ac_header_compiler" >&6; }
11202
11203 # Is the header present?
11204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 #include <$ac_header>
11213 _ACEOF
11214 if { (ac_try="$ac_cpp conftest.$ac_ext"
11215 case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } >/dev/null; then
11227   if test -s conftest.err; then
11228     ac_cpp_err=$ac_c_preproc_warn_flag
11229     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11230   else
11231     ac_cpp_err=
11232   fi
11233 else
11234   ac_cpp_err=yes
11235 fi
11236 if test -z "$ac_cpp_err"; then
11237   ac_header_preproc=yes
11238 else
11239   echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242   ac_header_preproc=no
11243 fi
11244
11245 rm -f conftest.err conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247 echo "${ECHO_T}$ac_header_preproc" >&6; }
11248
11249 # So?  What about this header?
11250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251   yes:no: )
11252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256     ac_header_preproc=yes
11257     ;;
11258   no:yes:* )
11259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11271     ( cat <<\_ASBOX
11272 ## ------------------------------------ ##
11273 ## Report this to http://llvm.org/bugs/ ##
11274 ## ------------------------------------ ##
11275 _ASBOX
11276      ) | sed "s/^/$as_me: WARNING:     /" >&2
11277     ;;
11278 esac
11279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   eval "$as_ac_Header=\$ac_header_preproc"
11285 fi
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287                { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11289
11290 fi
11291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292   cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11294 _ACEOF
11295
11296 fi
11297
11298 done
11299
11300
11301
11302
11303
11304 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11305 do
11306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311   echo $ECHO_N "(cached) $ECHO_C" >&6
11312 fi
11313 ac_res=`eval echo '${'$as_ac_Header'}'`
11314                { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11316 else
11317   # Is the header compilable?
11318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h.  */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h.  */
11326 $ac_includes_default
11327 #include <$ac_header>
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (ac_try="$ac_compile"
11331 case "(($ac_try" in
11332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333   *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336   (eval "$ac_compile") 2>conftest.er1
11337   ac_status=$?
11338   grep -v '^ *+' conftest.er1 >conftest.err
11339   rm -f conftest.er1
11340   cat conftest.err >&5
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } &&
11343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11344   { (case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_try") 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; } &&
11353          { ac_try='test -s conftest.$ac_objext'
11354   { (case "(($ac_try" in
11355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356   *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359   (eval "$ac_try") 2>&5
11360   ac_status=$?
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); }; }; then
11363   ac_header_compiler=yes
11364 else
11365   echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11367
11368         ac_header_compiler=no
11369 fi
11370
11371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11373 echo "${ECHO_T}$ac_header_compiler" >&6; }
11374
11375 # Is the header present?
11376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h.  */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h.  */
11384 #include <$ac_header>
11385 _ACEOF
11386 if { (ac_try="$ac_cpp conftest.$ac_ext"
11387 case "(($ac_try" in
11388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389   *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11393   ac_status=$?
11394   grep -v '^ *+' conftest.er1 >conftest.err
11395   rm -f conftest.er1
11396   cat conftest.err >&5
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); } >/dev/null; then
11399   if test -s conftest.err; then
11400     ac_cpp_err=$ac_c_preproc_warn_flag
11401     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11402   else
11403     ac_cpp_err=
11404   fi
11405 else
11406   ac_cpp_err=yes
11407 fi
11408 if test -z "$ac_cpp_err"; then
11409   ac_header_preproc=yes
11410 else
11411   echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11413
11414   ac_header_preproc=no
11415 fi
11416
11417 rm -f conftest.err conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11419 echo "${ECHO_T}$ac_header_preproc" >&6; }
11420
11421 # So?  What about this header?
11422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11423   yes:no: )
11424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11428     ac_header_preproc=yes
11429     ;;
11430   no:yes:* )
11431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11443     ( cat <<\_ASBOX
11444 ## ------------------------------------ ##
11445 ## Report this to http://llvm.org/bugs/ ##
11446 ## ------------------------------------ ##
11447 _ASBOX
11448      ) | sed "s/^/$as_me: WARNING:     /" >&2
11449     ;;
11450 esac
11451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454   echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456   eval "$as_ac_Header=\$ac_header_preproc"
11457 fi
11458 ac_res=`eval echo '${'$as_ac_Header'}'`
11459                { echo "$as_me:$LINENO: result: $ac_res" >&5
11460 echo "${ECHO_T}$ac_res" >&6; }
11461
11462 fi
11463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11464   cat >>confdefs.h <<_ACEOF
11465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11466 _ACEOF
11467
11468 fi
11469
11470 done
11471
11472
11473
11474 for ac_header in string.h strings.h
11475 do
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481   echo $ECHO_N "(cached) $ECHO_C" >&6
11482 fi
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484                { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11486 else
11487   # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h.  */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h.  */
11496 $ac_includes_default
11497 #include <$ac_header>
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_compile") 2>conftest.er1
11507   ac_status=$?
11508   grep -v '^ *+' conftest.er1 >conftest.err
11509   rm -f conftest.er1
11510   cat conftest.err >&5
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); } &&
11513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11514   { (case "(($ac_try" in
11515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516   *) ac_try_echo=$ac_try;;
11517 esac
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519   (eval "$ac_try") 2>&5
11520   ac_status=$?
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); }; } &&
11523          { ac_try='test -s conftest.$ac_objext'
11524   { (case "(($ac_try" in
11525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526   *) ac_try_echo=$ac_try;;
11527 esac
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529   (eval "$ac_try") 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; }; then
11533   ac_header_compiler=yes
11534 else
11535   echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538         ac_header_compiler=no
11539 fi
11540
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11543 echo "${ECHO_T}$ac_header_compiler" >&6; }
11544
11545 # Is the header present?
11546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554 #include <$ac_header>
11555 _ACEOF
11556 if { (ac_try="$ac_cpp conftest.$ac_ext"
11557 case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11563   ac_status=$?
11564   grep -v '^ *+' conftest.er1 >conftest.err
11565   rm -f conftest.er1
11566   cat conftest.err >&5
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } >/dev/null; then
11569   if test -s conftest.err; then
11570     ac_cpp_err=$ac_c_preproc_warn_flag
11571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11572   else
11573     ac_cpp_err=
11574   fi
11575 else
11576   ac_cpp_err=yes
11577 fi
11578 if test -z "$ac_cpp_err"; then
11579   ac_header_preproc=yes
11580 else
11581   echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11583
11584   ac_header_preproc=no
11585 fi
11586
11587 rm -f conftest.err conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11589 echo "${ECHO_T}$ac_header_preproc" >&6; }
11590
11591 # So?  What about this header?
11592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11593   yes:no: )
11594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11598     ac_header_preproc=yes
11599     ;;
11600   no:yes:* )
11601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11613     ( cat <<\_ASBOX
11614 ## ------------------------------------ ##
11615 ## Report this to http://llvm.org/bugs/ ##
11616 ## ------------------------------------ ##
11617 _ASBOX
11618      ) | sed "s/^/$as_me: WARNING:     /" >&2
11619     ;;
11620 esac
11621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11624   echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626   eval "$as_ac_Header=\$ac_header_preproc"
11627 fi
11628 ac_res=`eval echo '${'$as_ac_Header'}'`
11629                { echo "$as_me:$LINENO: result: $ac_res" >&5
11630 echo "${ECHO_T}$ac_res" >&6; }
11631
11632 fi
11633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11634   cat >>confdefs.h <<_ACEOF
11635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11636 _ACEOF
11637  break
11638 fi
11639
11640 done
11641
11642
11643
11644
11645 for ac_func in strchr index
11646 do
11647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11661 #define $ac_func innocuous_$ac_func
11662
11663 /* System header to define __stub macros and hopefully few prototypes,
11664     which can conflict with char $ac_func (); below.
11665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666     <limits.h> exists even on freestanding compilers.  */
11667
11668 #ifdef __STDC__
11669 # include <limits.h>
11670 #else
11671 # include <assert.h>
11672 #endif
11673
11674 #undef $ac_func
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677    Use char because int might match the return type of a GCC
11678    builtin and then its argument prototype would still apply.  */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char $ac_func ();
11683 /* The GNU C library defines this for functions which it implements
11684     to always fail with ENOSYS.  Some functions are actually named
11685     something starting with __ and the normal name is an alias.  */
11686 #if defined __stub_$ac_func || defined __stub___$ac_func
11687 choke me
11688 #endif
11689
11690 int
11691 main ()
11692 {
11693 return $ac_func ();
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705   (eval "$ac_link") 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } &&
11712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713   { (case "(($ac_try" in
11714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715   *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718   (eval "$ac_try") 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; } &&
11722          { ac_try='test -s conftest$ac_exeext'
11723   { (case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_try") 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; }; then
11732   eval "$as_ac_var=yes"
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737         eval "$as_ac_var=no"
11738 fi
11739
11740 rm -f core conftest.err conftest.$ac_objext \
11741       conftest$ac_exeext conftest.$ac_ext
11742 fi
11743 ac_res=`eval echo '${'$as_ac_var'}'`
11744                { echo "$as_me:$LINENO: result: $ac_res" >&5
11745 echo "${ECHO_T}$ac_res" >&6; }
11746 if test `eval echo '${'$as_ac_var'}'` = yes; then
11747   cat >>confdefs.h <<_ACEOF
11748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11749 _ACEOF
11750  break
11751 fi
11752 done
11753
11754
11755
11756 for ac_func in strrchr rindex
11757 do
11758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h.  */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h.  */
11770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11772 #define $ac_func innocuous_$ac_func
11773
11774 /* System header to define __stub macros and hopefully few prototypes,
11775     which can conflict with char $ac_func (); below.
11776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11777     <limits.h> exists even on freestanding compilers.  */
11778
11779 #ifdef __STDC__
11780 # include <limits.h>
11781 #else
11782 # include <assert.h>
11783 #endif
11784
11785 #undef $ac_func
11786
11787 /* Override any GCC internal prototype to avoid an error.
11788    Use char because int might match the return type of a GCC
11789    builtin and then its argument prototype would still apply.  */
11790 #ifdef __cplusplus
11791 extern "C"
11792 #endif
11793 char $ac_func ();
11794 /* The GNU C library defines this for functions which it implements
11795     to always fail with ENOSYS.  Some functions are actually named
11796     something starting with __ and the normal name is an alias.  */
11797 #if defined __stub_$ac_func || defined __stub___$ac_func
11798 choke me
11799 #endif
11800
11801 int
11802 main ()
11803 {
11804 return $ac_func ();
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (ac_try="$ac_link"
11811 case "(($ac_try" in
11812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813   *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816   (eval "$ac_link") 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824   { (case "(($ac_try" in
11825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826   *) ac_try_echo=$ac_try;;
11827 esac
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829   (eval "$ac_try") 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; } &&
11833          { ac_try='test -s conftest$ac_exeext'
11834   { (case "(($ac_try" in
11835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836   *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839   (eval "$ac_try") 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; }; then
11843   eval "$as_ac_var=yes"
11844 else
11845   echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848         eval "$as_ac_var=no"
11849 fi
11850
11851 rm -f core conftest.err conftest.$ac_objext \
11852       conftest$ac_exeext conftest.$ac_ext
11853 fi
11854 ac_res=`eval echo '${'$as_ac_var'}'`
11855                { echo "$as_me:$LINENO: result: $ac_res" >&5
11856 echo "${ECHO_T}$ac_res" >&6; }
11857 if test `eval echo '${'$as_ac_var'}'` = yes; then
11858   cat >>confdefs.h <<_ACEOF
11859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11860 _ACEOF
11861  break
11862 fi
11863 done
11864
11865
11866
11867 for ac_func in memcpy bcopy
11868 do
11869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11873   echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875   cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h.  */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h.  */
11881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11883 #define $ac_func innocuous_$ac_func
11884
11885 /* System header to define __stub macros and hopefully few prototypes,
11886     which can conflict with char $ac_func (); below.
11887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888     <limits.h> exists even on freestanding compilers.  */
11889
11890 #ifdef __STDC__
11891 # include <limits.h>
11892 #else
11893 # include <assert.h>
11894 #endif
11895
11896 #undef $ac_func
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899    Use char because int might match the return type of a GCC
11900    builtin and then its argument prototype would still apply.  */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char $ac_func ();
11905 /* The GNU C library defines this for functions which it implements
11906     to always fail with ENOSYS.  Some functions are actually named
11907     something starting with __ and the normal name is an alias.  */
11908 #if defined __stub_$ac_func || defined __stub___$ac_func
11909 choke me
11910 #endif
11911
11912 int
11913 main ()
11914 {
11915 return $ac_func ();
11916   ;
11917   return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924   *) ac_try_echo=$ac_try;;
11925 esac
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927   (eval "$ac_link") 2>conftest.er1
11928   ac_status=$?
11929   grep -v '^ *+' conftest.er1 >conftest.err
11930   rm -f conftest.er1
11931   cat conftest.err >&5
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); } &&
11934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11935   { (case "(($ac_try" in
11936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937   *) ac_try_echo=$ac_try;;
11938 esac
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940   (eval "$ac_try") 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; } &&
11944          { ac_try='test -s conftest$ac_exeext'
11945   { (case "(($ac_try" in
11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947   *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950   (eval "$ac_try") 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954   eval "$as_ac_var=yes"
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959         eval "$as_ac_var=no"
11960 fi
11961
11962 rm -f core conftest.err conftest.$ac_objext \
11963       conftest$ac_exeext conftest.$ac_ext
11964 fi
11965 ac_res=`eval echo '${'$as_ac_var'}'`
11966                { echo "$as_me:$LINENO: result: $ac_res" >&5
11967 echo "${ECHO_T}$ac_res" >&6; }
11968 if test `eval echo '${'$as_ac_var'}'` = yes; then
11969   cat >>confdefs.h <<_ACEOF
11970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11971 _ACEOF
11972  break
11973 fi
11974 done
11975
11976
11977
11978 for ac_func in memmove strcmp
11979 do
11980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11994 #define $ac_func innocuous_$ac_func
11995
11996 /* System header to define __stub macros and hopefully few prototypes,
11997     which can conflict with char $ac_func (); below.
11998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999     <limits.h> exists even on freestanding compilers.  */
12000
12001 #ifdef __STDC__
12002 # include <limits.h>
12003 #else
12004 # include <assert.h>
12005 #endif
12006
12007 #undef $ac_func
12008
12009 /* Override any GCC internal prototype to avoid an error.
12010    Use char because int might match the return type of a GCC
12011    builtin and then its argument prototype would still apply.  */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 char $ac_func ();
12016 /* The GNU C library defines this for functions which it implements
12017     to always fail with ENOSYS.  Some functions are actually named
12018     something starting with __ and the normal name is an alias.  */
12019 #if defined __stub_$ac_func || defined __stub___$ac_func
12020 choke me
12021 #endif
12022
12023 int
12024 main ()
12025 {
12026 return $ac_func ();
12027   ;
12028   return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (ac_try="$ac_link"
12033 case "(($ac_try" in
12034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035   *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038   (eval "$ac_link") 2>conftest.er1
12039   ac_status=$?
12040   grep -v '^ *+' conftest.er1 >conftest.err
12041   rm -f conftest.er1
12042   cat conftest.err >&5
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); } &&
12045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12046   { (case "(($ac_try" in
12047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048   *) ac_try_echo=$ac_try;;
12049 esac
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051   (eval "$ac_try") 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); }; } &&
12055          { ac_try='test -s conftest$ac_exeext'
12056   { (case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061   (eval "$ac_try") 2>&5
12062   ac_status=$?
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); }; }; then
12065   eval "$as_ac_var=yes"
12066 else
12067   echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12069
12070         eval "$as_ac_var=no"
12071 fi
12072
12073 rm -f core conftest.err conftest.$ac_objext \
12074       conftest$ac_exeext conftest.$ac_ext
12075 fi
12076 ac_res=`eval echo '${'$as_ac_var'}'`
12077                { echo "$as_me:$LINENO: result: $ac_res" >&5
12078 echo "${ECHO_T}$ac_res" >&6; }
12079 if test `eval echo '${'$as_ac_var'}'` = yes; then
12080   cat >>confdefs.h <<_ACEOF
12081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12082 _ACEOF
12083
12084 fi
12085 done
12086
12087
12088
12089
12090 for ac_func in closedir opendir readdir
12091 do
12092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098   cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12106 #define $ac_func innocuous_$ac_func
12107
12108 /* System header to define __stub macros and hopefully few prototypes,
12109     which can conflict with char $ac_func (); below.
12110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12111     <limits.h> exists even on freestanding compilers.  */
12112
12113 #ifdef __STDC__
12114 # include <limits.h>
12115 #else
12116 # include <assert.h>
12117 #endif
12118
12119 #undef $ac_func
12120
12121 /* Override any GCC internal prototype to avoid an error.
12122    Use char because int might match the return type of a GCC
12123    builtin and then its argument prototype would still apply.  */
12124 #ifdef __cplusplus
12125 extern "C"
12126 #endif
12127 char $ac_func ();
12128 /* The GNU C library defines this for functions which it implements
12129     to always fail with ENOSYS.  Some functions are actually named
12130     something starting with __ and the normal name is an alias.  */
12131 #if defined __stub_$ac_func || defined __stub___$ac_func
12132 choke me
12133 #endif
12134
12135 int
12136 main ()
12137 {
12138 return $ac_func ();
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (ac_try="$ac_link"
12145 case "(($ac_try" in
12146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147   *) ac_try_echo=$ac_try;;
12148 esac
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150   (eval "$ac_link") 2>conftest.er1
12151   ac_status=$?
12152   grep -v '^ *+' conftest.er1 >conftest.err
12153   rm -f conftest.er1
12154   cat conftest.err >&5
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); } &&
12157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12158   { (case "(($ac_try" in
12159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160   *) ac_try_echo=$ac_try;;
12161 esac
12162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163   (eval "$ac_try") 2>&5
12164   ac_status=$?
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); }; } &&
12167          { ac_try='test -s conftest$ac_exeext'
12168   { (case "(($ac_try" in
12169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170   *) ac_try_echo=$ac_try;;
12171 esac
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173   (eval "$ac_try") 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); }; }; then
12177   eval "$as_ac_var=yes"
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12181
12182         eval "$as_ac_var=no"
12183 fi
12184
12185 rm -f core conftest.err conftest.$ac_objext \
12186       conftest$ac_exeext conftest.$ac_ext
12187 fi
12188 ac_res=`eval echo '${'$as_ac_var'}'`
12189                { echo "$as_me:$LINENO: result: $ac_res" >&5
12190 echo "${ECHO_T}$ac_res" >&6; }
12191 if test `eval echo '${'$as_ac_var'}'` = yes; then
12192   cat >>confdefs.h <<_ACEOF
12193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12194 _ACEOF
12195
12196 fi
12197 done
12198
12199
12200
12201 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12202 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12203
12204 ICC=no
12205 IXX=no
12206 case $CC in
12207   icc*|icpc*)
12208     ICC=yes
12209     IXX=yes
12210     ;;
12211    *)
12212     ;;
12213 esac
12214
12215 if test "$GCC" != "yes" && test "$ICC" != "yes"
12216 then
12217   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12218 echo "$as_me: error: gcc|icc required but not found" >&2;}
12219    { (exit 1); exit 1; }; }
12220 fi
12221
12222 if test "$GXX" != "yes" && test "$IXX" != "yes"
12223 then
12224   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12225 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12226    { (exit 1); exit 1; }; }
12227 fi
12228
12229 if test "$GCC" = "yes"
12230 then
12231   cat >conftest.$ac_ext <<_ACEOF
12232
12233   /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238
12239     #if !defined(__GNUC__) || __GNUC__ < 3
12240     #error Unsupported GCC version
12241     #endif
12242
12243
12244 _ACEOF
12245 rm -f conftest.$ac_objext
12246 if { (ac_try="$ac_compile"
12247 case "(($ac_try" in
12248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249   *) ac_try_echo=$ac_try;;
12250 esac
12251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12252   (eval "$ac_compile") 2>conftest.er1
12253   ac_status=$?
12254   grep -v '^ *+' conftest.er1 >conftest.err
12255   rm -f conftest.er1
12256   cat conftest.err >&5
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); } &&
12259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12260   { (case "(($ac_try" in
12261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262   *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265   (eval "$ac_try") 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; } &&
12269          { ac_try='test -s conftest.$ac_objext'
12270   { (case "(($ac_try" in
12271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272   *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275   (eval "$ac_try") 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); }; }; then
12279   :
12280 else
12281   echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12285 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12286    { (exit 1); exit 1; }; }
12287 fi
12288
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290 fi
12291
12292 if test -z "$llvm_cv_gnu_make_command"
12293 then
12294   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12295 echo "$as_me: error: GNU Make required but not found" >&2;}
12296    { (exit 1); exit 1; }; }
12297 fi
12298
12299 { echo "$as_me:$LINENO: result: ok" >&5
12300 echo "${ECHO_T}ok" >&6; }
12301
12302 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12303 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12304 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12305
12306 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12307
12308 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12309
12310
12311 NO_UNINITIALIZED=
12312 NO_MAYBE_UNINITIALIZED=
12313 if test "$GXX" = "yes"
12314 then
12315   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12316
12317         if test -z "$NO_MAYBE_UNINITIALIZED"
12318   then
12319     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12320
12321   fi
12322 fi
12323 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12324 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12325
12326
12327 # Check whether --with-python was given.
12328 if test "${with_python+set}" = set; then
12329   withval=$with_python; PYTHON="$withval"
12330 fi
12331
12332
12333 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12334   { echo "$as_me:$LINENO: checking for python" >&5
12335 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12336   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12337 echo "${ECHO_T}user defined: $with_python" >&6; }
12338 else
12339   if test -n "$PYTHON" ; then
12340     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12341 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12342   fi
12343
12344   # Extract the first word of "python python2 python26", so it can be a program name with args.
12345 set dummy python python2 python26; ac_word=$2
12346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12348 if test "${ac_cv_path_PYTHON+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   case $PYTHON in
12352   [\\/]* | ?:[\\/]*)
12353   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12354   ;;
12355   *)
12356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359   IFS=$as_save_IFS
12360   test -z "$as_dir" && as_dir=.
12361   for ac_exec_ext in '' $ac_executable_extensions; do
12362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12363     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12365     break 2
12366   fi
12367 done
12368 done
12369 IFS=$as_save_IFS
12370
12371   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12372 echo "${ECHO_T}not found" >&6; }
12373                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12374 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12375    { (exit 1); exit 1; }; }"
12376   ;;
12377 esac
12378 fi
12379 PYTHON=$ac_cv_path_PYTHON
12380 if test -n "$PYTHON"; then
12381   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12382 echo "${ECHO_T}$PYTHON" >&6; }
12383 else
12384   { echo "$as_me:$LINENO: result: no" >&5
12385 echo "${ECHO_T}no" >&6; }
12386 fi
12387
12388
12389 fi
12390
12391 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12392 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12393 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12394 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12395 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12396 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12397 if   test "$ac_python_version_major" -eq "2" \
12398    && test "$ac_python_version_minor" -ge "5" ; then
12399   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12400 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12401 else
12402   { echo "$as_me:$LINENO: result: not found" >&5
12403 echo "${ECHO_T}not found" >&6; }
12404   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12405 See \`config.log' for more details." >&5
12406 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12407 See \`config.log' for more details." >&2;}
12408    { (exit 1); exit 1; }; }
12409 fi
12410
12411
12412
12413 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12414 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12415 if test "${ac_cv_lib_m_sin+set}" = set; then
12416   echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418   ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-lm  $LIBS"
12420 cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h.  */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h.  */
12426
12427 /* Override any GCC internal prototype to avoid an error.
12428    Use char because int might match the return type of a GCC
12429    builtin and then its argument prototype would still apply.  */
12430 #ifdef __cplusplus
12431 extern "C"
12432 #endif
12433 char sin ();
12434 int
12435 main ()
12436 {
12437 return sin ();
12438   ;
12439   return 0;
12440 }
12441 _ACEOF
12442 rm -f conftest.$ac_objext conftest$ac_exeext
12443 if { (ac_try="$ac_link"
12444 case "(($ac_try" in
12445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446   *) ac_try_echo=$ac_try;;
12447 esac
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449   (eval "$ac_link") 2>conftest.er1
12450   ac_status=$?
12451   grep -v '^ *+' conftest.er1 >conftest.err
12452   rm -f conftest.er1
12453   cat conftest.err >&5
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); } &&
12456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12457   { (case "(($ac_try" in
12458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459   *) ac_try_echo=$ac_try;;
12460 esac
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462   (eval "$ac_try") 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); }; } &&
12466          { ac_try='test -s conftest$ac_exeext'
12467   { (case "(($ac_try" in
12468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469   *) ac_try_echo=$ac_try;;
12470 esac
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472   (eval "$ac_try") 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   ac_cv_lib_m_sin=yes
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481         ac_cv_lib_m_sin=no
12482 fi
12483
12484 rm -f core conftest.err conftest.$ac_objext \
12485       conftest$ac_exeext conftest.$ac_ext
12486 LIBS=$ac_check_lib_save_LIBS
12487 fi
12488 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12489 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12490 if test $ac_cv_lib_m_sin = yes; then
12491   cat >>confdefs.h <<_ACEOF
12492 #define HAVE_LIBM 1
12493 _ACEOF
12494
12495   LIBS="-lm $LIBS"
12496
12497 fi
12498
12499 if test "$llvm_cv_os_type" = "MingW" ; then
12500
12501 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12502 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12503 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12504   echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506   ac_check_lib_save_LIBS=$LIBS
12507 LIBS="-limagehlp  $LIBS"
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h.  */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h.  */
12514
12515
12516 int
12517 main ()
12518 {
12519 return main ();
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (ac_try="$ac_link"
12526 case "(($ac_try" in
12527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528   *) ac_try_echo=$ac_try;;
12529 esac
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531   (eval "$ac_link") 2>conftest.er1
12532   ac_status=$?
12533   grep -v '^ *+' conftest.er1 >conftest.err
12534   rm -f conftest.er1
12535   cat conftest.err >&5
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); } &&
12538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12539   { (case "(($ac_try" in
12540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541   *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544   (eval "$ac_try") 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; } &&
12548          { ac_try='test -s conftest$ac_exeext'
12549   { (case "(($ac_try" in
12550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551   *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554   (eval "$ac_try") 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; }; then
12558   ac_cv_lib_imagehlp_main=yes
12559 else
12560   echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563         ac_cv_lib_imagehlp_main=no
12564 fi
12565
12566 rm -f core conftest.err conftest.$ac_objext \
12567       conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12569 fi
12570 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12571 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12572 if test $ac_cv_lib_imagehlp_main = yes; then
12573   cat >>confdefs.h <<_ACEOF
12574 #define HAVE_LIBIMAGEHLP 1
12575 _ACEOF
12576
12577   LIBS="-limagehlp $LIBS"
12578
12579 fi
12580
12581
12582 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12583 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12584 if test "${ac_cv_lib_psapi_main+set}" = set; then
12585   echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587   ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lpsapi  $LIBS"
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595
12596
12597 int
12598 main ()
12599 {
12600 return main ();
12601   ;
12602   return 0;
12603 }
12604 _ACEOF
12605 rm -f conftest.$ac_objext conftest$ac_exeext
12606 if { (ac_try="$ac_link"
12607 case "(($ac_try" in
12608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609   *) ac_try_echo=$ac_try;;
12610 esac
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612   (eval "$ac_link") 2>conftest.er1
12613   ac_status=$?
12614   grep -v '^ *+' conftest.er1 >conftest.err
12615   rm -f conftest.er1
12616   cat conftest.err >&5
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); } &&
12619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12620   { (case "(($ac_try" in
12621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622   *) ac_try_echo=$ac_try;;
12623 esac
12624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625   (eval "$ac_try") 2>&5
12626   ac_status=$?
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); }; } &&
12629          { ac_try='test -s conftest$ac_exeext'
12630   { (case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_try") 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; }; then
12639   ac_cv_lib_psapi_main=yes
12640 else
12641   echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12643
12644         ac_cv_lib_psapi_main=no
12645 fi
12646
12647 rm -f core conftest.err conftest.$ac_objext \
12648       conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12650 fi
12651 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12652 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12653 if test $ac_cv_lib_psapi_main = yes; then
12654   cat >>confdefs.h <<_ACEOF
12655 #define HAVE_LIBPSAPI 1
12656 _ACEOF
12657
12658   LIBS="-lpsapi $LIBS"
12659
12660 fi
12661
12662 fi
12663
12664 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12665 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12666 if test "${ac_cv_search_dlopen+set}" = set; then
12667   echo $ECHO_N "(cached) $ECHO_C" >&6
12668 else
12669   ac_func_search_save_LIBS=$LIBS
12670 cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h.  */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h.  */
12676
12677 /* Override any GCC internal prototype to avoid an error.
12678    Use char because int might match the return type of a GCC
12679    builtin and then its argument prototype would still apply.  */
12680 #ifdef __cplusplus
12681 extern "C"
12682 #endif
12683 char dlopen ();
12684 int
12685 main ()
12686 {
12687 return dlopen ();
12688   ;
12689   return 0;
12690 }
12691 _ACEOF
12692 for ac_lib in '' dl; do
12693   if test -z "$ac_lib"; then
12694     ac_res="none required"
12695   else
12696     ac_res=-l$ac_lib
12697     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12698   fi
12699   rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (ac_try="$ac_link"
12701 case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706   (eval "$ac_link") 2>conftest.er1
12707   ac_status=$?
12708   grep -v '^ *+' conftest.er1 >conftest.err
12709   rm -f conftest.er1
12710   cat conftest.err >&5
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } &&
12713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12714   { (case "(($ac_try" in
12715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716   *) ac_try_echo=$ac_try;;
12717 esac
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719   (eval "$ac_try") 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; } &&
12723          { ac_try='test -s conftest$ac_exeext'
12724   { (case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729   (eval "$ac_try") 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); }; }; then
12733   ac_cv_search_dlopen=$ac_res
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738
12739 fi
12740
12741 rm -f core conftest.err conftest.$ac_objext \
12742       conftest$ac_exeext
12743   if test "${ac_cv_search_dlopen+set}" = set; then
12744   break
12745 fi
12746 done
12747 if test "${ac_cv_search_dlopen+set}" = set; then
12748   :
12749 else
12750   ac_cv_search_dlopen=no
12751 fi
12752 rm conftest.$ac_ext
12753 LIBS=$ac_func_search_save_LIBS
12754 fi
12755 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12756 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12757 ac_res=$ac_cv_search_dlopen
12758 if test "$ac_res" != no; then
12759   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12760
12761 cat >>confdefs.h <<\_ACEOF
12762 #define HAVE_DLOPEN 1
12763 _ACEOF
12764
12765 else
12766   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12767 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12768 fi
12769
12770
12771 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12772 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12773 if test "${ac_cv_search_clock_gettime+set}" = set; then
12774   echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776   ac_func_search_save_LIBS=$LIBS
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h.  */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h.  */
12783
12784 /* Override any GCC internal prototype to avoid an error.
12785    Use char because int might match the return type of a GCC
12786    builtin and then its argument prototype would still apply.  */
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 char clock_gettime ();
12791 int
12792 main ()
12793 {
12794 return clock_gettime ();
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 for ac_lib in '' rt; do
12800   if test -z "$ac_lib"; then
12801     ac_res="none required"
12802   else
12803     ac_res=-l$ac_lib
12804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12805   fi
12806   rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (ac_try="$ac_link"
12808 case "(($ac_try" in
12809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810   *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813   (eval "$ac_link") 2>conftest.er1
12814   ac_status=$?
12815   grep -v '^ *+' conftest.er1 >conftest.err
12816   rm -f conftest.er1
12817   cat conftest.err >&5
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } &&
12820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12821   { (case "(($ac_try" in
12822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823   *) ac_try_echo=$ac_try;;
12824 esac
12825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12826   (eval "$ac_try") 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; } &&
12830          { ac_try='test -s conftest$ac_exeext'
12831   { (case "(($ac_try" in
12832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833   *) ac_try_echo=$ac_try;;
12834 esac
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836   (eval "$ac_try") 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; }; then
12840   ac_cv_search_clock_gettime=$ac_res
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845
12846 fi
12847
12848 rm -f core conftest.err conftest.$ac_objext \
12849       conftest$ac_exeext
12850   if test "${ac_cv_search_clock_gettime+set}" = set; then
12851   break
12852 fi
12853 done
12854 if test "${ac_cv_search_clock_gettime+set}" = set; then
12855   :
12856 else
12857   ac_cv_search_clock_gettime=no
12858 fi
12859 rm conftest.$ac_ext
12860 LIBS=$ac_func_search_save_LIBS
12861 fi
12862 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12863 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12864 ac_res=$ac_cv_search_clock_gettime
12865 if test "$ac_res" != no; then
12866   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12867
12868 fi
12869
12870
12871 if test "$llvm_cv_enable_libffi" = "yes" ; then
12872   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12873 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12874 if test "${ac_cv_search_ffi_call+set}" = set; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877   ac_func_search_save_LIBS=$LIBS
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h.  */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h.  */
12884
12885 /* Override any GCC internal prototype to avoid an error.
12886    Use char because int might match the return type of a GCC
12887    builtin and then its argument prototype would still apply.  */
12888 #ifdef __cplusplus
12889 extern "C"
12890 #endif
12891 char ffi_call ();
12892 int
12893 main ()
12894 {
12895 return ffi_call ();
12896   ;
12897   return 0;
12898 }
12899 _ACEOF
12900 for ac_lib in '' ffi; do
12901   if test -z "$ac_lib"; then
12902     ac_res="none required"
12903   else
12904     ac_res=-l$ac_lib
12905     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12906   fi
12907   rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (ac_try="$ac_link"
12909 case "(($ac_try" in
12910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911   *) ac_try_echo=$ac_try;;
12912 esac
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914   (eval "$ac_link") 2>conftest.er1
12915   ac_status=$?
12916   grep -v '^ *+' conftest.er1 >conftest.err
12917   rm -f conftest.er1
12918   cat conftest.err >&5
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } &&
12921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12922   { (case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_try") 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; } &&
12931          { ac_try='test -s conftest$ac_exeext'
12932   { (case "(($ac_try" in
12933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934   *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937   (eval "$ac_try") 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); }; }; then
12941   ac_cv_search_ffi_call=$ac_res
12942 else
12943   echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12945
12946
12947 fi
12948
12949 rm -f core conftest.err conftest.$ac_objext \
12950       conftest$ac_exeext
12951   if test "${ac_cv_search_ffi_call+set}" = set; then
12952   break
12953 fi
12954 done
12955 if test "${ac_cv_search_ffi_call+set}" = set; then
12956   :
12957 else
12958   ac_cv_search_ffi_call=no
12959 fi
12960 rm conftest.$ac_ext
12961 LIBS=$ac_func_search_save_LIBS
12962 fi
12963 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12964 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12965 ac_res=$ac_cv_search_ffi_call
12966 if test "$ac_res" != no; then
12967   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12968
12969 cat >>confdefs.h <<\_ACEOF
12970 #define HAVE_FFI_CALL 1
12971 _ACEOF
12972
12973 else
12974   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12975 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12976    { (exit 1); exit 1; }; }
12977 fi
12978
12979 fi
12980
12981 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12982 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12983 if test "${ac_cv_search_mallinfo+set}" = set; then
12984   echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986   ac_func_search_save_LIBS=$LIBS
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h.  */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h.  */
12993
12994 /* Override any GCC internal prototype to avoid an error.
12995    Use char because int might match the return type of a GCC
12996    builtin and then its argument prototype would still apply.  */
12997 #ifdef __cplusplus
12998 extern "C"
12999 #endif
13000 char mallinfo ();
13001 int
13002 main ()
13003 {
13004 return mallinfo ();
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 for ac_lib in '' malloc; do
13010   if test -z "$ac_lib"; then
13011     ac_res="none required"
13012   else
13013     ac_res=-l$ac_lib
13014     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13015   fi
13016   rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020   *) ac_try_echo=$ac_try;;
13021 esac
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023   (eval "$ac_link") 2>conftest.er1
13024   ac_status=$?
13025   grep -v '^ *+' conftest.er1 >conftest.err
13026   rm -f conftest.er1
13027   cat conftest.err >&5
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } &&
13030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13031   { (case "(($ac_try" in
13032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033   *) ac_try_echo=$ac_try;;
13034 esac
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036   (eval "$ac_try") 2>&5
13037   ac_status=$?
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); }; } &&
13040          { ac_try='test -s conftest$ac_exeext'
13041   { (case "(($ac_try" in
13042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043   *) ac_try_echo=$ac_try;;
13044 esac
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046   (eval "$ac_try") 2>&5
13047   ac_status=$?
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); }; }; then
13050   ac_cv_search_mallinfo=$ac_res
13051 else
13052   echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
13055
13056 fi
13057
13058 rm -f core conftest.err conftest.$ac_objext \
13059       conftest$ac_exeext
13060   if test "${ac_cv_search_mallinfo+set}" = set; then
13061   break
13062 fi
13063 done
13064 if test "${ac_cv_search_mallinfo+set}" = set; then
13065   :
13066 else
13067   ac_cv_search_mallinfo=no
13068 fi
13069 rm conftest.$ac_ext
13070 LIBS=$ac_func_search_save_LIBS
13071 fi
13072 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13073 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13074 ac_res=$ac_cv_search_mallinfo
13075 if test "$ac_res" != no; then
13076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13077
13078 cat >>confdefs.h <<\_ACEOF
13079 #define HAVE_MALLINFO 1
13080 _ACEOF
13081
13082 fi
13083
13084
13085 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13086
13087 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13088 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13089 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13090   echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092   ac_check_lib_save_LIBS=$LIBS
13093 LIBS="-lpthread  $LIBS"
13094 cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h.  */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h.  */
13100
13101 /* Override any GCC internal prototype to avoid an error.
13102    Use char because int might match the return type of a GCC
13103    builtin and then its argument prototype would still apply.  */
13104 #ifdef __cplusplus
13105 extern "C"
13106 #endif
13107 char pthread_mutex_init ();
13108 int
13109 main ()
13110 {
13111 return pthread_mutex_init ();
13112   ;
13113   return 0;
13114 }
13115 _ACEOF
13116 rm -f conftest.$ac_objext conftest$ac_exeext
13117 if { (ac_try="$ac_link"
13118 case "(($ac_try" in
13119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120   *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123   (eval "$ac_link") 2>conftest.er1
13124   ac_status=$?
13125   grep -v '^ *+' conftest.er1 >conftest.err
13126   rm -f conftest.er1
13127   cat conftest.err >&5
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); } &&
13130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13131   { (case "(($ac_try" in
13132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133   *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136   (eval "$ac_try") 2>&5
13137   ac_status=$?
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); }; } &&
13140          { ac_try='test -s conftest$ac_exeext'
13141   { (case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_try") 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); }; }; then
13150   ac_cv_lib_pthread_pthread_mutex_init=yes
13151 else
13152   echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13154
13155         ac_cv_lib_pthread_pthread_mutex_init=no
13156 fi
13157
13158 rm -f core conftest.err conftest.$ac_objext \
13159       conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13161 fi
13162 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13163 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13164 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13165   cat >>confdefs.h <<_ACEOF
13166 #define HAVE_LIBPTHREAD 1
13167 _ACEOF
13168
13169   LIBS="-lpthread $LIBS"
13170
13171 fi
13172
13173   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13174 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13175 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13176   echo $ECHO_N "(cached) $ECHO_C" >&6
13177 else
13178   ac_func_search_save_LIBS=$LIBS
13179 cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h.  */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h.  */
13185
13186 /* Override any GCC internal prototype to avoid an error.
13187    Use char because int might match the return type of a GCC
13188    builtin and then its argument prototype would still apply.  */
13189 #ifdef __cplusplus
13190 extern "C"
13191 #endif
13192 char pthread_mutex_lock ();
13193 int
13194 main ()
13195 {
13196 return pthread_mutex_lock ();
13197   ;
13198   return 0;
13199 }
13200 _ACEOF
13201 for ac_lib in '' pthread; do
13202   if test -z "$ac_lib"; then
13203     ac_res="none required"
13204   else
13205     ac_res=-l$ac_lib
13206     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13207   fi
13208   rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (ac_try="$ac_link"
13210 case "(($ac_try" in
13211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212   *) ac_try_echo=$ac_try;;
13213 esac
13214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215   (eval "$ac_link") 2>conftest.er1
13216   ac_status=$?
13217   grep -v '^ *+' conftest.er1 >conftest.err
13218   rm -f conftest.er1
13219   cat conftest.err >&5
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); } &&
13222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13223   { (case "(($ac_try" in
13224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225   *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228   (eval "$ac_try") 2>&5
13229   ac_status=$?
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); }; } &&
13232          { ac_try='test -s conftest$ac_exeext'
13233   { (case "(($ac_try" in
13234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235   *) ac_try_echo=$ac_try;;
13236 esac
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238   (eval "$ac_try") 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; }; then
13242   ac_cv_search_pthread_mutex_lock=$ac_res
13243 else
13244   echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247
13248 fi
13249
13250 rm -f core conftest.err conftest.$ac_objext \
13251       conftest$ac_exeext
13252   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13253   break
13254 fi
13255 done
13256 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13257   :
13258 else
13259   ac_cv_search_pthread_mutex_lock=no
13260 fi
13261 rm conftest.$ac_ext
13262 LIBS=$ac_func_search_save_LIBS
13263 fi
13264 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13265 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13266 ac_res=$ac_cv_search_pthread_mutex_lock
13267 if test "$ac_res" != no; then
13268   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13269
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_PTHREAD_MUTEX_LOCK 1
13272 _ACEOF
13273
13274 fi
13275
13276   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13277 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13278 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   ac_func_search_save_LIBS=$LIBS
13282 cat >conftest.$ac_ext <<_ACEOF
13283 /* confdefs.h.  */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h.  */
13288
13289 /* Override any GCC internal prototype to avoid an error.
13290    Use char because int might match the return type of a GCC
13291    builtin and then its argument prototype would still apply.  */
13292 #ifdef __cplusplus
13293 extern "C"
13294 #endif
13295 char pthread_rwlock_init ();
13296 int
13297 main ()
13298 {
13299 return pthread_rwlock_init ();
13300   ;
13301   return 0;
13302 }
13303 _ACEOF
13304 for ac_lib in '' pthread; do
13305   if test -z "$ac_lib"; then
13306     ac_res="none required"
13307   else
13308     ac_res=-l$ac_lib
13309     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13310   fi
13311   rm -f conftest.$ac_objext conftest$ac_exeext
13312 if { (ac_try="$ac_link"
13313 case "(($ac_try" in
13314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315   *) ac_try_echo=$ac_try;;
13316 esac
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318   (eval "$ac_link") 2>conftest.er1
13319   ac_status=$?
13320   grep -v '^ *+' conftest.er1 >conftest.err
13321   rm -f conftest.er1
13322   cat conftest.err >&5
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); } &&
13325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13326   { (case "(($ac_try" in
13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328   *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331   (eval "$ac_try") 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; } &&
13335          { ac_try='test -s conftest$ac_exeext'
13336   { (case "(($ac_try" in
13337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338   *) ac_try_echo=$ac_try;;
13339 esac
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341   (eval "$ac_try") 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }; }; then
13345   ac_cv_search_pthread_rwlock_init=$ac_res
13346 else
13347   echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13349
13350
13351 fi
13352
13353 rm -f core conftest.err conftest.$ac_objext \
13354       conftest$ac_exeext
13355   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13356   break
13357 fi
13358 done
13359 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13360   :
13361 else
13362   ac_cv_search_pthread_rwlock_init=no
13363 fi
13364 rm conftest.$ac_ext
13365 LIBS=$ac_func_search_save_LIBS
13366 fi
13367 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13368 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13369 ac_res=$ac_cv_search_pthread_rwlock_init
13370 if test "$ac_res" != no; then
13371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13372
13373 cat >>confdefs.h <<\_ACEOF
13374 #define HAVE_PTHREAD_RWLOCK_INIT 1
13375 _ACEOF
13376
13377 fi
13378
13379   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13380 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13381 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   ac_func_search_save_LIBS=$LIBS
13385 cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h.  */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h.  */
13391
13392 /* Override any GCC internal prototype to avoid an error.
13393    Use char because int might match the return type of a GCC
13394    builtin and then its argument prototype would still apply.  */
13395 #ifdef __cplusplus
13396 extern "C"
13397 #endif
13398 char pthread_getspecific ();
13399 int
13400 main ()
13401 {
13402 return pthread_getspecific ();
13403   ;
13404   return 0;
13405 }
13406 _ACEOF
13407 for ac_lib in '' pthread; do
13408   if test -z "$ac_lib"; then
13409     ac_res="none required"
13410   else
13411     ac_res=-l$ac_lib
13412     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13413   fi
13414   rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (ac_try="$ac_link"
13416 case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421   (eval "$ac_link") 2>conftest.er1
13422   ac_status=$?
13423   grep -v '^ *+' conftest.er1 >conftest.err
13424   rm -f conftest.er1
13425   cat conftest.err >&5
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } &&
13428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13429   { (case "(($ac_try" in
13430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431   *) ac_try_echo=$ac_try;;
13432 esac
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434   (eval "$ac_try") 2>&5
13435   ac_status=$?
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); }; } &&
13438          { ac_try='test -s conftest$ac_exeext'
13439   { (case "(($ac_try" in
13440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441   *) ac_try_echo=$ac_try;;
13442 esac
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444   (eval "$ac_try") 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; }; then
13448   ac_cv_search_pthread_getspecific=$ac_res
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453
13454 fi
13455
13456 rm -f core conftest.err conftest.$ac_objext \
13457       conftest$ac_exeext
13458   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13459   break
13460 fi
13461 done
13462 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13463   :
13464 else
13465   ac_cv_search_pthread_getspecific=no
13466 fi
13467 rm conftest.$ac_ext
13468 LIBS=$ac_func_search_save_LIBS
13469 fi
13470 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13471 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13472 ac_res=$ac_cv_search_pthread_getspecific
13473 if test "$ac_res" != no; then
13474   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13475
13476 cat >>confdefs.h <<\_ACEOF
13477 #define HAVE_PTHREAD_GETSPECIFIC 1
13478 _ACEOF
13479
13480 fi
13481
13482 fi
13483
13484 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13485
13486 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13487 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13488 if test "${ac_cv_lib_z_compress2+set}" = set; then
13489   echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491   ac_check_lib_save_LIBS=$LIBS
13492 LIBS="-lz  $LIBS"
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h.  */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h.  */
13499
13500 /* Override any GCC internal prototype to avoid an error.
13501    Use char because int might match the return type of a GCC
13502    builtin and then its argument prototype would still apply.  */
13503 #ifdef __cplusplus
13504 extern "C"
13505 #endif
13506 char compress2 ();
13507 int
13508 main ()
13509 {
13510 return compress2 ();
13511   ;
13512   return 0;
13513 }
13514 _ACEOF
13515 rm -f conftest.$ac_objext conftest$ac_exeext
13516 if { (ac_try="$ac_link"
13517 case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_link") 2>conftest.er1
13523   ac_status=$?
13524   grep -v '^ *+' conftest.er1 >conftest.err
13525   rm -f conftest.er1
13526   cat conftest.err >&5
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13530   { (case "(($ac_try" in
13531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532   *) ac_try_echo=$ac_try;;
13533 esac
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535   (eval "$ac_try") 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; } &&
13539          { ac_try='test -s conftest$ac_exeext'
13540   { (case "(($ac_try" in
13541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542   *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545   (eval "$ac_try") 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); }; }; then
13549   ac_cv_lib_z_compress2=yes
13550 else
13551   echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13553
13554         ac_cv_lib_z_compress2=no
13555 fi
13556
13557 rm -f core conftest.err conftest.$ac_objext \
13558       conftest$ac_exeext conftest.$ac_ext
13559 LIBS=$ac_check_lib_save_LIBS
13560 fi
13561 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13562 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13563 if test $ac_cv_lib_z_compress2 = yes; then
13564   cat >>confdefs.h <<_ACEOF
13565 #define HAVE_LIBZ 1
13566 _ACEOF
13567
13568   LIBS="-lz $LIBS"
13569
13570 fi
13571
13572 fi
13573
13574
13575 # Check whether --with-udis86 was given.
13576 if test "${with_udis86+set}" = set; then
13577   withval=$with_udis86;
13578       USE_UDIS86=1
13579
13580       case "$withval" in
13581         /usr/lib|yes) ;;
13582         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13583       esac
13584
13585 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13586 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13588   echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590   ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-ludis86  $LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13598
13599 /* Override any GCC internal prototype to avoid an error.
13600    Use char because int might match the return type of a GCC
13601    builtin and then its argument prototype would still apply.  */
13602 #ifdef __cplusplus
13603 extern "C"
13604 #endif
13605 char ud_init ();
13606 int
13607 main ()
13608 {
13609 return ud_init ();
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618   *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621   (eval "$ac_link") 2>conftest.er1
13622   ac_status=$?
13623   grep -v '^ *+' conftest.er1 >conftest.err
13624   rm -f conftest.er1
13625   cat conftest.err >&5
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629   { (case "(($ac_try" in
13630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631   *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634   (eval "$ac_try") 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; } &&
13638          { ac_try='test -s conftest$ac_exeext'
13639   { (case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_try") 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }; }; then
13648   ac_cv_lib_udis86_ud_init=yes
13649 else
13650   echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653         ac_cv_lib_udis86_ud_init=no
13654 fi
13655
13656 rm -f core conftest.err conftest.$ac_objext \
13657       conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13659 fi
13660 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13661 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13662 if test $ac_cv_lib_udis86_ud_init = yes; then
13663   cat >>confdefs.h <<_ACEOF
13664 #define HAVE_LIBUDIS86 1
13665 _ACEOF
13666
13667   LIBS="-ludis86 $LIBS"
13668
13669 else
13670
13671         echo "Error! You need to have libudis86 around."
13672         exit -1
13673
13674 fi
13675
13676
13677 else
13678   USE_UDIS86=0
13679
13680 fi
13681
13682
13683 cat >>confdefs.h <<_ACEOF
13684 #define USE_UDIS86 $USE_UDIS86
13685 _ACEOF
13686
13687
13688
13689 # Check whether --with-oprofile was given.
13690 if test "${with_oprofile+set}" = set; then
13691   withval=$with_oprofile;
13692       USE_OPROFILE=1
13693
13694       case "$withval" in
13695         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13696         no) llvm_cv_oppath=
13697             USE_OPROFILE=0
13698  ;;
13699         *) llvm_cv_oppath="${withval}/lib/oprofile"
13700            CPPFLAGS="-I${withval}/include";;
13701       esac
13702       case $llvm_cv_os_type in
13703         Linux)
13704           if test -n "$llvm_cv_oppath" ; then
13705             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13706                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13707 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13708 if test "${ac_cv_search_bfd_init+set}" = set; then
13709   echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711   ac_func_search_save_LIBS=$LIBS
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718
13719 /* Override any GCC internal prototype to avoid an error.
13720    Use char because int might match the return type of a GCC
13721    builtin and then its argument prototype would still apply.  */
13722 #ifdef __cplusplus
13723 extern "C"
13724 #endif
13725 char bfd_init ();
13726 int
13727 main ()
13728 {
13729 return bfd_init ();
13730   ;
13731   return 0;
13732 }
13733 _ACEOF
13734 for ac_lib in '' bfd; do
13735   if test -z "$ac_lib"; then
13736     ac_res="none required"
13737   else
13738     ac_res=-l$ac_lib
13739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13740   fi
13741   rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (ac_try="$ac_link"
13743 case "(($ac_try" in
13744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745   *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748   (eval "$ac_link") 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756   { (case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761   (eval "$ac_try") 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; } &&
13765          { ac_try='test -s conftest$ac_exeext'
13766   { (case "(($ac_try" in
13767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768   *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771   (eval "$ac_try") 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; }; then
13775   ac_cv_search_bfd_init=$ac_res
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780
13781 fi
13782
13783 rm -f core conftest.err conftest.$ac_objext \
13784       conftest$ac_exeext
13785   if test "${ac_cv_search_bfd_init+set}" = set; then
13786   break
13787 fi
13788 done
13789 if test "${ac_cv_search_bfd_init+set}" = set; then
13790   :
13791 else
13792   ac_cv_search_bfd_init=no
13793 fi
13794 rm conftest.$ac_ext
13795 LIBS=$ac_func_search_save_LIBS
13796 fi
13797 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13798 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13799 ac_res=$ac_cv_search_bfd_init
13800 if test "$ac_res" != no; then
13801   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13802
13803 fi
13804
13805             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13806 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13807 if test "${ac_cv_search_op_open_agent+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   ac_func_search_save_LIBS=$LIBS
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h.  */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h.  */
13817
13818 /* Override any GCC internal prototype to avoid an error.
13819    Use char because int might match the return type of a GCC
13820    builtin and then its argument prototype would still apply.  */
13821 #ifdef __cplusplus
13822 extern "C"
13823 #endif
13824 char op_open_agent ();
13825 int
13826 main ()
13827 {
13828 return op_open_agent ();
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 for ac_lib in '' opagent; do
13834   if test -z "$ac_lib"; then
13835     ac_res="none required"
13836   else
13837     ac_res=-l$ac_lib
13838     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13839   fi
13840   rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_link") 2>conftest.er1
13848   ac_status=$?
13849   grep -v '^ *+' conftest.er1 >conftest.err
13850   rm -f conftest.er1
13851   cat conftest.err >&5
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } &&
13854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855   { (case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_try") 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; } &&
13864          { ac_try='test -s conftest$ac_exeext'
13865   { (case "(($ac_try" in
13866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867   *) ac_try_echo=$ac_try;;
13868 esac
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870   (eval "$ac_try") 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_search_op_open_agent=$ac_res
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879
13880 fi
13881
13882 rm -f core conftest.err conftest.$ac_objext \
13883       conftest$ac_exeext
13884   if test "${ac_cv_search_op_open_agent+set}" = set; then
13885   break
13886 fi
13887 done
13888 if test "${ac_cv_search_op_open_agent+set}" = set; then
13889   :
13890 else
13891   ac_cv_search_op_open_agent=no
13892 fi
13893 rm conftest.$ac_ext
13894 LIBS=$ac_func_search_save_LIBS
13895 fi
13896 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13897 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13898 ac_res=$ac_cv_search_op_open_agent
13899 if test "$ac_res" != no; then
13900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13901
13902 else
13903
13904               echo "Error! You need to have libopagent around."
13905               exit -1
13906
13907 fi
13908
13909             if test "${ac_cv_header_opagent_h+set}" = set; then
13910   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13911 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13912 if test "${ac_cv_header_opagent_h+set}" = set; then
13913   echo $ECHO_N "(cached) $ECHO_C" >&6
13914 fi
13915 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13916 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13917 else
13918   # Is the header compilable?
13919 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13920 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13921 cat >conftest.$ac_ext <<_ACEOF
13922 /* confdefs.h.  */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h.  */
13927 $ac_includes_default
13928 #include <opagent.h>
13929 _ACEOF
13930 rm -f conftest.$ac_objext
13931 if { (ac_try="$ac_compile"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937   (eval "$ac_compile") 2>conftest.er1
13938   ac_status=$?
13939   grep -v '^ *+' conftest.er1 >conftest.err
13940   rm -f conftest.er1
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } &&
13944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945   { (case "(($ac_try" in
13946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947   *) ac_try_echo=$ac_try;;
13948 esac
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950   (eval "$ac_try") 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; } &&
13954          { ac_try='test -s conftest.$ac_objext'
13955   { (case "(($ac_try" in
13956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957   *) ac_try_echo=$ac_try;;
13958 esac
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960   (eval "$ac_try") 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); }; }; then
13964   ac_header_compiler=yes
13965 else
13966   echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969         ac_header_compiler=no
13970 fi
13971
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 echo "${ECHO_T}$ac_header_compiler" >&6; }
13975
13976 # Is the header present?
13977 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13978 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13980 /* confdefs.h.  */
13981 _ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h.  */
13985 #include <opagent.h>
13986 _ACEOF
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990   *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994   ac_status=$?
13995   grep -v '^ *+' conftest.er1 >conftest.err
13996   rm -f conftest.er1
13997   cat conftest.err >&5
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); } >/dev/null; then
14000   if test -s conftest.err; then
14001     ac_cpp_err=$ac_c_preproc_warn_flag
14002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14003   else
14004     ac_cpp_err=
14005   fi
14006 else
14007   ac_cpp_err=yes
14008 fi
14009 if test -z "$ac_cpp_err"; then
14010   ac_header_preproc=yes
14011 else
14012   echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14014
14015   ac_header_preproc=no
14016 fi
14017
14018 rm -f conftest.err conftest.$ac_ext
14019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14020 echo "${ECHO_T}$ac_header_preproc" >&6; }
14021
14022 # So?  What about this header?
14023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14024   yes:no: )
14025     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14026 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14027     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14028 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14029     ac_header_preproc=yes
14030     ;;
14031   no:yes:* )
14032     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14033 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14034     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14035 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14036     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14037 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14038     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14039 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14040     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14041 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14042     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14043 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14044     ( cat <<\_ASBOX
14045 ## ------------------------------------ ##
14046 ## Report this to http://llvm.org/bugs/ ##
14047 ## ------------------------------------ ##
14048 _ASBOX
14049      ) | sed "s/^/$as_me: WARNING:     /" >&2
14050     ;;
14051 esac
14052 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14053 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14054 if test "${ac_cv_header_opagent_h+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   ac_cv_header_opagent_h=$ac_header_preproc
14058 fi
14059 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14060 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14061
14062 fi
14063 if test $ac_cv_header_opagent_h = yes; then
14064   :
14065 else
14066
14067               echo "Error! You need to have opagent.h around."
14068               exit -1
14069
14070 fi
14071
14072
14073           fi ;;
14074         *)
14075           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14076 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14077    { (exit 1); exit 1; }; } ;;
14078       esac
14079
14080 else
14081
14082       USE_OPROFILE=0
14083
14084
14085 fi
14086
14087
14088 cat >>confdefs.h <<_ACEOF
14089 #define LLVM_USE_OPROFILE $USE_OPROFILE
14090 _ACEOF
14091
14092
14093
14094 # Check whether --with-intel-jitevents was given.
14095 if test "${with_intel_jitevents+set}" = set; then
14096   withval=$with_intel_jitevents;
14097        case "$withval" in
14098           yes) USE_INTEL_JITEVENTS=1
14099 ;;
14100           no)  USE_INTEL_JITEVENTS=0
14101 ;;
14102           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14103 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14104    { (exit 1); exit 1; }; };;
14105        esac
14106
14107       case $llvm_cv_os_type in
14108         Linux|Win32|Cygwin|MingW) ;;
14109         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14110 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14111    { (exit 1); exit 1; }; };;
14112       esac
14113
14114       case "$llvm_cv_target_arch" in
14115         x86|x86_64) ;;
14116         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14117 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14118    { (exit 1); exit 1; }; };;
14119       esac
14120
14121 else
14122
14123       USE_INTEL_JITEVENTS=0
14124
14125
14126 fi
14127
14128
14129 cat >>confdefs.h <<_ACEOF
14130 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14131 _ACEOF
14132
14133
14134 for ac_prog in xml2-config
14135 do
14136   # Extract the first word of "$ac_prog", so it can be a program name with args.
14137 set dummy $ac_prog; ac_word=$2
14138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14140 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14141   echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143   if test -n "$XML2CONFIG"; then
14144   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14145 else
14146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14148 do
14149   IFS=$as_save_IFS
14150   test -z "$as_dir" && as_dir=.
14151   for ac_exec_ext in '' $ac_executable_extensions; do
14152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14153     ac_cv_prog_XML2CONFIG="$ac_prog"
14154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14155     break 2
14156   fi
14157 done
14158 done
14159 IFS=$as_save_IFS
14160
14161 fi
14162 fi
14163 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14164 if test -n "$XML2CONFIG"; then
14165   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14166 echo "${ECHO_T}$XML2CONFIG" >&6; }
14167 else
14168   { echo "$as_me:$LINENO: result: no" >&5
14169 echo "${ECHO_T}no" >&6; }
14170 fi
14171
14172
14173   test -n "$XML2CONFIG" && break
14174 done
14175
14176
14177 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14178 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14179 if test "x$XML2CONFIG" = "x"; then
14180  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14181 echo "${ECHO_T}xml2-config not found" >&6; }
14182 else
14183  LIBXML2_INC=`$XML2CONFIG --cflags`
14184  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14185 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14186  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14187 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14188 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   ac_check_lib_save_LIBS=$LIBS
14192 LIBS="-lxml2  $LIBS"
14193 cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199
14200 /* Override any GCC internal prototype to avoid an error.
14201    Use char because int might match the return type of a GCC
14202    builtin and then its argument prototype would still apply.  */
14203 #ifdef __cplusplus
14204 extern "C"
14205 #endif
14206 char xmlReadFile ();
14207 int
14208 main ()
14209 {
14210 return xmlReadFile ();
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (ac_try="$ac_link"
14217 case "(($ac_try" in
14218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219   *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222   (eval "$ac_link") 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } &&
14229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14230   { (case "(($ac_try" in
14231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232   *) ac_try_echo=$ac_try;;
14233 esac
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235   (eval "$ac_try") 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }; } &&
14239          { ac_try='test -s conftest$ac_exeext'
14240   { (case "(($ac_try" in
14241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242   *) ac_try_echo=$ac_try;;
14243 esac
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245   (eval "$ac_try") 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; }; then
14249   ac_cv_lib_xml2_xmlReadFile=yes
14250 else
14251   echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14253
14254         ac_cv_lib_xml2_xmlReadFile=no
14255 fi
14256
14257 rm -f core conftest.err conftest.$ac_objext \
14258       conftest$ac_exeext conftest.$ac_ext
14259 LIBS=$ac_check_lib_save_LIBS
14260 fi
14261 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14262 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14263 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14264
14265 cat >>confdefs.h <<\_ACEOF
14266 #define CLANG_HAVE_LIBXML 1
14267 _ACEOF
14268
14269                                 LIBXML2_LIBS="-lxml2"
14270 fi
14271
14272 fi
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282 ac_header_dirent=no
14283 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14284   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14285 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14286 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14288   echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290   cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296 #include <sys/types.h>
14297 #include <$ac_hdr>
14298
14299 int
14300 main ()
14301 {
14302 if ((DIR *) 0)
14303 return 0;
14304   ;
14305   return 0;
14306 }
14307 _ACEOF
14308 rm -f conftest.$ac_objext
14309 if { (ac_try="$ac_compile"
14310 case "(($ac_try" in
14311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312   *) ac_try_echo=$ac_try;;
14313 esac
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315   (eval "$ac_compile") 2>conftest.er1
14316   ac_status=$?
14317   grep -v '^ *+' conftest.er1 >conftest.err
14318   rm -f conftest.er1
14319   cat conftest.err >&5
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); } &&
14322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14323   { (case "(($ac_try" in
14324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325   *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328   (eval "$ac_try") 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; } &&
14332          { ac_try='test -s conftest.$ac_objext'
14333   { (case "(($ac_try" in
14334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335   *) ac_try_echo=$ac_try;;
14336 esac
14337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14338   (eval "$ac_try") 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; }; then
14342   eval "$as_ac_Header=yes"
14343 else
14344   echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347         eval "$as_ac_Header=no"
14348 fi
14349
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351 fi
14352 ac_res=`eval echo '${'$as_ac_Header'}'`
14353                { echo "$as_me:$LINENO: result: $ac_res" >&5
14354 echo "${ECHO_T}$ac_res" >&6; }
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356   cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14358 _ACEOF
14359
14360 ac_header_dirent=$ac_hdr; break
14361 fi
14362
14363 done
14364 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14365 if test $ac_header_dirent = dirent.h; then
14366   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14367 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14368 if test "${ac_cv_search_opendir+set}" = set; then
14369   echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371   ac_func_search_save_LIBS=$LIBS
14372 cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h.  */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h.  */
14378
14379 /* Override any GCC internal prototype to avoid an error.
14380    Use char because int might match the return type of a GCC
14381    builtin and then its argument prototype would still apply.  */
14382 #ifdef __cplusplus
14383 extern "C"
14384 #endif
14385 char opendir ();
14386 int
14387 main ()
14388 {
14389 return opendir ();
14390   ;
14391   return 0;
14392 }
14393 _ACEOF
14394 for ac_lib in '' dir; do
14395   if test -z "$ac_lib"; then
14396     ac_res="none required"
14397   else
14398     ac_res=-l$ac_lib
14399     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14400   fi
14401   rm -f conftest.$ac_objext conftest$ac_exeext
14402 if { (ac_try="$ac_link"
14403 case "(($ac_try" in
14404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405   *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408   (eval "$ac_link") 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } &&
14415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14416   { (case "(($ac_try" in
14417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418   *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421   (eval "$ac_try") 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; } &&
14425          { ac_try='test -s conftest$ac_exeext'
14426   { (case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431   (eval "$ac_try") 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; }; then
14435   ac_cv_search_opendir=$ac_res
14436 else
14437   echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440
14441 fi
14442
14443 rm -f core conftest.err conftest.$ac_objext \
14444       conftest$ac_exeext
14445   if test "${ac_cv_search_opendir+set}" = set; then
14446   break
14447 fi
14448 done
14449 if test "${ac_cv_search_opendir+set}" = set; then
14450   :
14451 else
14452   ac_cv_search_opendir=no
14453 fi
14454 rm conftest.$ac_ext
14455 LIBS=$ac_func_search_save_LIBS
14456 fi
14457 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14458 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14459 ac_res=$ac_cv_search_opendir
14460 if test "$ac_res" != no; then
14461   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14462
14463 fi
14464
14465 else
14466   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14467 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14468 if test "${ac_cv_search_opendir+set}" = set; then
14469   echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471   ac_func_search_save_LIBS=$LIBS
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h.  */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h.  */
14478
14479 /* Override any GCC internal prototype to avoid an error.
14480    Use char because int might match the return type of a GCC
14481    builtin and then its argument prototype would still apply.  */
14482 #ifdef __cplusplus
14483 extern "C"
14484 #endif
14485 char opendir ();
14486 int
14487 main ()
14488 {
14489 return opendir ();
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 for ac_lib in '' x; do
14495   if test -z "$ac_lib"; then
14496     ac_res="none required"
14497   else
14498     ac_res=-l$ac_lib
14499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14500   fi
14501   rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (ac_try="$ac_link"
14503 case "(($ac_try" in
14504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505   *) ac_try_echo=$ac_try;;
14506 esac
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508   (eval "$ac_link") 2>conftest.er1
14509   ac_status=$?
14510   grep -v '^ *+' conftest.er1 >conftest.err
14511   rm -f conftest.er1
14512   cat conftest.err >&5
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); } &&
14515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14516   { (case "(($ac_try" in
14517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518   *) ac_try_echo=$ac_try;;
14519 esac
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521   (eval "$ac_try") 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; } &&
14525          { ac_try='test -s conftest$ac_exeext'
14526   { (case "(($ac_try" in
14527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528   *) ac_try_echo=$ac_try;;
14529 esac
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531   (eval "$ac_try") 2>&5
14532   ac_status=$?
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); }; }; then
14535   ac_cv_search_opendir=$ac_res
14536 else
14537   echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540
14541 fi
14542
14543 rm -f core conftest.err conftest.$ac_objext \
14544       conftest$ac_exeext
14545   if test "${ac_cv_search_opendir+set}" = set; then
14546   break
14547 fi
14548 done
14549 if test "${ac_cv_search_opendir+set}" = set; then
14550   :
14551 else
14552   ac_cv_search_opendir=no
14553 fi
14554 rm conftest.$ac_ext
14555 LIBS=$ac_func_search_save_LIBS
14556 fi
14557 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14558 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14559 ac_res=$ac_cv_search_opendir
14560 if test "$ac_res" != no; then
14561   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14562
14563 fi
14564
14565 fi
14566
14567 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14568 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14569 if test "${ac_cv_header_mmap_anon+set}" = set; then
14570   echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572    ac_ext=c
14573 ac_cpp='$CPP $CPPFLAGS'
14574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14577
14578   cat >conftest.$ac_ext <<_ACEOF
14579 /* confdefs.h.  */
14580 _ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h.  */
14584 #include <sys/mman.h>
14585 #include <unistd.h>
14586 #include <fcntl.h>
14587 int
14588 main ()
14589 {
14590 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14591   ;
14592   return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599   *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602   (eval "$ac_compile") 2>conftest.er1
14603   ac_status=$?
14604   grep -v '^ *+' conftest.er1 >conftest.err
14605   rm -f conftest.er1
14606   cat conftest.err >&5
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } &&
14609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610   { (case "(($ac_try" in
14611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612   *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615   (eval "$ac_try") 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; } &&
14619          { ac_try='test -s conftest.$ac_objext'
14620   { (case "(($ac_try" in
14621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622   *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625   (eval "$ac_try") 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; }; then
14629   ac_cv_header_mmap_anon=yes
14630 else
14631   echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634         ac_cv_header_mmap_anon=no
14635 fi
14636
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638   ac_ext=c
14639 ac_cpp='$CPP $CPPFLAGS'
14640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14643
14644
14645 fi
14646 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14647 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14648 if test "$ac_cv_header_mmap_anon" = yes; then
14649
14650 cat >>confdefs.h <<\_ACEOF
14651 #define HAVE_MMAP_ANONYMOUS 1
14652 _ACEOF
14653
14654 fi
14655
14656 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14657 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14658 if test "${ac_cv_header_stat_broken+set}" = set; then
14659   echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661   cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667 #include <sys/types.h>
14668 #include <sys/stat.h>
14669
14670 #if defined S_ISBLK && defined S_IFDIR
14671 # if S_ISBLK (S_IFDIR)
14672 You lose.
14673 # endif
14674 #endif
14675
14676 #if defined S_ISBLK && defined S_IFCHR
14677 # if S_ISBLK (S_IFCHR)
14678 You lose.
14679 # endif
14680 #endif
14681
14682 #if defined S_ISLNK && defined S_IFREG
14683 # if S_ISLNK (S_IFREG)
14684 You lose.
14685 # endif
14686 #endif
14687
14688 #if defined S_ISSOCK && defined S_IFREG
14689 # if S_ISSOCK (S_IFREG)
14690 You lose.
14691 # endif
14692 #endif
14693
14694 _ACEOF
14695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14696   $EGREP "You lose" >/dev/null 2>&1; then
14697   ac_cv_header_stat_broken=yes
14698 else
14699   ac_cv_header_stat_broken=no
14700 fi
14701 rm -f conftest*
14702
14703 fi
14704 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14705 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14706 if test $ac_cv_header_stat_broken = yes; then
14707
14708 cat >>confdefs.h <<\_ACEOF
14709 #define STAT_MACROS_BROKEN 1
14710 _ACEOF
14711
14712 fi
14713
14714 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14715 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14716 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719   cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 #include <sys/types.h>
14726 #include <sys/wait.h>
14727 #ifndef WEXITSTATUS
14728 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14729 #endif
14730 #ifndef WIFEXITED
14731 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14732 #endif
14733
14734 int
14735 main ()
14736 {
14737   int s;
14738   wait (&s);
14739   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14740   ;
14741   return 0;
14742 }
14743 _ACEOF
14744 rm -f conftest.$ac_objext
14745 if { (ac_try="$ac_compile"
14746 case "(($ac_try" in
14747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748   *) ac_try_echo=$ac_try;;
14749 esac
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751   (eval "$ac_compile") 2>conftest.er1
14752   ac_status=$?
14753   grep -v '^ *+' conftest.er1 >conftest.err
14754   rm -f conftest.er1
14755   cat conftest.err >&5
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } &&
14758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14759   { (case "(($ac_try" in
14760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761   *) ac_try_echo=$ac_try;;
14762 esac
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764   (eval "$ac_try") 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; } &&
14768          { ac_try='test -s conftest.$ac_objext'
14769   { (case "(($ac_try" in
14770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771   *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774   (eval "$ac_try") 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); }; }; then
14778   ac_cv_header_sys_wait_h=yes
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783         ac_cv_header_sys_wait_h=no
14784 fi
14785
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 fi
14788 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14789 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14790 if test $ac_cv_header_sys_wait_h = yes; then
14791
14792 cat >>confdefs.h <<\_ACEOF
14793 #define HAVE_SYS_WAIT_H 1
14794 _ACEOF
14795
14796 fi
14797
14798 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14799 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14800 if test "${ac_cv_header_time+set}" = set; then
14801   echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803   cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h.  */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h.  */
14809 #include <sys/types.h>
14810 #include <sys/time.h>
14811 #include <time.h>
14812
14813 int
14814 main ()
14815 {
14816 if ((struct tm *) 0)
14817 return 0;
14818   ;
14819   return 0;
14820 }
14821 _ACEOF
14822 rm -f conftest.$ac_objext
14823 if { (ac_try="$ac_compile"
14824 case "(($ac_try" in
14825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826   *) ac_try_echo=$ac_try;;
14827 esac
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829   (eval "$ac_compile") 2>conftest.er1
14830   ac_status=$?
14831   grep -v '^ *+' conftest.er1 >conftest.err
14832   rm -f conftest.er1
14833   cat conftest.err >&5
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); } &&
14836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14837   { (case "(($ac_try" in
14838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839   *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842   (eval "$ac_try") 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; } &&
14846          { ac_try='test -s conftest.$ac_objext'
14847   { (case "(($ac_try" in
14848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849   *) ac_try_echo=$ac_try;;
14850 esac
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852   (eval "$ac_try") 2>&5
14853   ac_status=$?
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); }; }; then
14856   ac_cv_header_time=yes
14857 else
14858   echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861         ac_cv_header_time=no
14862 fi
14863
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 fi
14866 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14867 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14868 if test $ac_cv_header_time = yes; then
14869
14870 cat >>confdefs.h <<\_ACEOF
14871 #define TIME_WITH_SYS_TIME 1
14872 _ACEOF
14873
14874 fi
14875
14876
14877 ac_ext=cpp
14878 ac_cpp='$CXXCPP $CPPFLAGS'
14879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14882
14883 ac_ext=cpp
14884 ac_cpp='$CXXCPP $CPPFLAGS'
14885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14888 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14889 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14890 if test -z "$CXXCPP"; then
14891   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894       # Double quotes because CXXCPP needs to be expanded
14895     for CXXCPP in "$CXX -E" "/lib/cpp"
14896     do
14897       ac_preproc_ok=false
14898 for ac_cxx_preproc_warn_flag in '' yes
14899 do
14900   # Use a header file that comes with gcc, so configuring glibc
14901   # with a fresh cross-compiler works.
14902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14903   # <limits.h> exists even on freestanding compilers.
14904   # On the NeXT, cc -E runs the code through the compiler's parser,
14905   # not just through cpp. "Syntax error" is here to catch this case.
14906   cat >conftest.$ac_ext <<_ACEOF
14907 /* confdefs.h.  */
14908 _ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h.  */
14912 #ifdef __STDC__
14913 # include <limits.h>
14914 #else
14915 # include <assert.h>
14916 #endif
14917                      Syntax error
14918 _ACEOF
14919 if { (ac_try="$ac_cpp conftest.$ac_ext"
14920 case "(($ac_try" in
14921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922   *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14926   ac_status=$?
14927   grep -v '^ *+' conftest.er1 >conftest.err
14928   rm -f conftest.er1
14929   cat conftest.err >&5
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); } >/dev/null; then
14932   if test -s conftest.err; then
14933     ac_cpp_err=$ac_cxx_preproc_warn_flag
14934     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14935   else
14936     ac_cpp_err=
14937   fi
14938 else
14939   ac_cpp_err=yes
14940 fi
14941 if test -z "$ac_cpp_err"; then
14942   :
14943 else
14944   echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14946
14947   # Broken: fails on valid input.
14948 continue
14949 fi
14950
14951 rm -f conftest.err conftest.$ac_ext
14952
14953   # OK, works on sane cases.  Now check whether nonexistent headers
14954   # can be detected and how.
14955   cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h.  */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h.  */
14961 #include <ac_nonexistent.h>
14962 _ACEOF
14963 if { (ac_try="$ac_cpp conftest.$ac_ext"
14964 case "(($ac_try" in
14965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966   *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14970   ac_status=$?
14971   grep -v '^ *+' conftest.er1 >conftest.err
14972   rm -f conftest.er1
14973   cat conftest.err >&5
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } >/dev/null; then
14976   if test -s conftest.err; then
14977     ac_cpp_err=$ac_cxx_preproc_warn_flag
14978     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14979   else
14980     ac_cpp_err=
14981   fi
14982 else
14983   ac_cpp_err=yes
14984 fi
14985 if test -z "$ac_cpp_err"; then
14986   # Broken: success on invalid input.
14987 continue
14988 else
14989   echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992   # Passes both tests.
14993 ac_preproc_ok=:
14994 break
14995 fi
14996
14997 rm -f conftest.err conftest.$ac_ext
14998
14999 done
15000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15001 rm -f conftest.err conftest.$ac_ext
15002 if $ac_preproc_ok; then
15003   break
15004 fi
15005
15006     done
15007     ac_cv_prog_CXXCPP=$CXXCPP
15008
15009 fi
15010   CXXCPP=$ac_cv_prog_CXXCPP
15011 else
15012   ac_cv_prog_CXXCPP=$CXXCPP
15013 fi
15014 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15015 echo "${ECHO_T}$CXXCPP" >&6; }
15016 ac_preproc_ok=false
15017 for ac_cxx_preproc_warn_flag in '' yes
15018 do
15019   # Use a header file that comes with gcc, so configuring glibc
15020   # with a fresh cross-compiler works.
15021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15022   # <limits.h> exists even on freestanding compilers.
15023   # On the NeXT, cc -E runs the code through the compiler's parser,
15024   # not just through cpp. "Syntax error" is here to catch this case.
15025   cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h.  */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h.  */
15031 #ifdef __STDC__
15032 # include <limits.h>
15033 #else
15034 # include <assert.h>
15035 #endif
15036                      Syntax error
15037 _ACEOF
15038 if { (ac_try="$ac_cpp conftest.$ac_ext"
15039 case "(($ac_try" in
15040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041   *) ac_try_echo=$ac_try;;
15042 esac
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15045   ac_status=$?
15046   grep -v '^ *+' conftest.er1 >conftest.err
15047   rm -f conftest.er1
15048   cat conftest.err >&5
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } >/dev/null; then
15051   if test -s conftest.err; then
15052     ac_cpp_err=$ac_cxx_preproc_warn_flag
15053     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15054   else
15055     ac_cpp_err=
15056   fi
15057 else
15058   ac_cpp_err=yes
15059 fi
15060 if test -z "$ac_cpp_err"; then
15061   :
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066   # Broken: fails on valid input.
15067 continue
15068 fi
15069
15070 rm -f conftest.err conftest.$ac_ext
15071
15072   # OK, works on sane cases.  Now check whether nonexistent headers
15073   # can be detected and how.
15074   cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080 #include <ac_nonexistent.h>
15081 _ACEOF
15082 if { (ac_try="$ac_cpp conftest.$ac_ext"
15083 case "(($ac_try" in
15084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085   *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15089   ac_status=$?
15090   grep -v '^ *+' conftest.er1 >conftest.err
15091   rm -f conftest.er1
15092   cat conftest.err >&5
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); } >/dev/null; then
15095   if test -s conftest.err; then
15096     ac_cpp_err=$ac_cxx_preproc_warn_flag
15097     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15098   else
15099     ac_cpp_err=
15100   fi
15101 else
15102   ac_cpp_err=yes
15103 fi
15104 if test -z "$ac_cpp_err"; then
15105   # Broken: success on invalid input.
15106 continue
15107 else
15108   echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15110
15111   # Passes both tests.
15112 ac_preproc_ok=:
15113 break
15114 fi
15115
15116 rm -f conftest.err conftest.$ac_ext
15117
15118 done
15119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15120 rm -f conftest.err conftest.$ac_ext
15121 if $ac_preproc_ok; then
15122   :
15123 else
15124   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15125 See \`config.log' for more details." >&5
15126 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15127 See \`config.log' for more details." >&2;}
15128    { (exit 1); exit 1; }; }
15129 fi
15130
15131 ac_ext=cpp
15132 ac_cpp='$CXXCPP $CPPFLAGS'
15133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15136
15137
15138
15139 for ac_header in cxxabi.h
15140 do
15141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15146   echo $ECHO_N "(cached) $ECHO_C" >&6
15147 fi
15148 ac_res=`eval echo '${'$as_ac_Header'}'`
15149                { echo "$as_me:$LINENO: result: $ac_res" >&5
15150 echo "${ECHO_T}$ac_res" >&6; }
15151 else
15152   # Is the header compilable?
15153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15155 cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h.  */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h.  */
15161 $ac_includes_default
15162 #include <$ac_header>
15163 _ACEOF
15164 rm -f conftest.$ac_objext
15165 if { (ac_try="$ac_compile"
15166 case "(($ac_try" in
15167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168   *) ac_try_echo=$ac_try;;
15169 esac
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171   (eval "$ac_compile") 2>conftest.er1
15172   ac_status=$?
15173   grep -v '^ *+' conftest.er1 >conftest.err
15174   rm -f conftest.er1
15175   cat conftest.err >&5
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } &&
15178          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15179   { (case "(($ac_try" in
15180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181   *) ac_try_echo=$ac_try;;
15182 esac
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184   (eval "$ac_try") 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; } &&
15188          { ac_try='test -s conftest.$ac_objext'
15189   { (case "(($ac_try" in
15190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191   *) ac_try_echo=$ac_try;;
15192 esac
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194   (eval "$ac_try") 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }; then
15198   ac_header_compiler=yes
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203         ac_header_compiler=no
15204 fi
15205
15206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15208 echo "${ECHO_T}$ac_header_compiler" >&6; }
15209
15210 # Is the header present?
15211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h.  */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h.  */
15219 #include <$ac_header>
15220 _ACEOF
15221 if { (ac_try="$ac_cpp conftest.$ac_ext"
15222 case "(($ac_try" in
15223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224   *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15228   ac_status=$?
15229   grep -v '^ *+' conftest.er1 >conftest.err
15230   rm -f conftest.er1
15231   cat conftest.err >&5
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } >/dev/null; then
15234   if test -s conftest.err; then
15235     ac_cpp_err=$ac_cxx_preproc_warn_flag
15236     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15237   else
15238     ac_cpp_err=
15239   fi
15240 else
15241   ac_cpp_err=yes
15242 fi
15243 if test -z "$ac_cpp_err"; then
15244   ac_header_preproc=yes
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249   ac_header_preproc=no
15250 fi
15251
15252 rm -f conftest.err conftest.$ac_ext
15253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15254 echo "${ECHO_T}$ac_header_preproc" >&6; }
15255
15256 # So?  What about this header?
15257 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15258   yes:no: )
15259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15263     ac_header_preproc=yes
15264     ;;
15265   no:yes:* )
15266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15278     ( cat <<\_ASBOX
15279 ## ------------------------------------ ##
15280 ## Report this to http://llvm.org/bugs/ ##
15281 ## ------------------------------------ ##
15282 _ASBOX
15283      ) | sed "s/^/$as_me: WARNING:     /" >&2
15284     ;;
15285 esac
15286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   eval "$as_ac_Header=\$ac_header_preproc"
15292 fi
15293 ac_res=`eval echo '${'$as_ac_Header'}'`
15294                { echo "$as_me:$LINENO: result: $ac_res" >&5
15295 echo "${ECHO_T}$ac_res" >&6; }
15296
15297 fi
15298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15299   cat >>confdefs.h <<_ACEOF
15300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15301 _ACEOF
15302
15303 fi
15304
15305 done
15306
15307 ac_ext=c
15308 ac_cpp='$CPP $CPPFLAGS'
15309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15312
15313
15314
15315
15316
15317
15318
15319 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15320 do
15321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15326   echo $ECHO_N "(cached) $ECHO_C" >&6
15327 fi
15328 ac_res=`eval echo '${'$as_ac_Header'}'`
15329                { echo "$as_me:$LINENO: result: $ac_res" >&5
15330 echo "${ECHO_T}$ac_res" >&6; }
15331 else
15332   # Is the header compilable?
15333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15335 cat >conftest.$ac_ext <<_ACEOF
15336 /* confdefs.h.  */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h.  */
15341 $ac_includes_default
15342 #include <$ac_header>
15343 _ACEOF
15344 rm -f conftest.$ac_objext
15345 if { (ac_try="$ac_compile"
15346 case "(($ac_try" in
15347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348   *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351   (eval "$ac_compile") 2>conftest.er1
15352   ac_status=$?
15353   grep -v '^ *+' conftest.er1 >conftest.err
15354   rm -f conftest.er1
15355   cat conftest.err >&5
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); } &&
15358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15359   { (case "(($ac_try" in
15360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361   *) ac_try_echo=$ac_try;;
15362 esac
15363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364   (eval "$ac_try") 2>&5
15365   ac_status=$?
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); }; } &&
15368          { ac_try='test -s conftest.$ac_objext'
15369   { (case "(($ac_try" in
15370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371   *) ac_try_echo=$ac_try;;
15372 esac
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374   (eval "$ac_try") 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); }; }; then
15378   ac_header_compiler=yes
15379 else
15380   echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383         ac_header_compiler=no
15384 fi
15385
15386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15388 echo "${ECHO_T}$ac_header_compiler" >&6; }
15389
15390 # Is the header present?
15391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15393 cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h.  */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h.  */
15399 #include <$ac_header>
15400 _ACEOF
15401 if { (ac_try="$ac_cpp conftest.$ac_ext"
15402 case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } >/dev/null; then
15414   if test -s conftest.err; then
15415     ac_cpp_err=$ac_c_preproc_warn_flag
15416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15417   else
15418     ac_cpp_err=
15419   fi
15420 else
15421   ac_cpp_err=yes
15422 fi
15423 if test -z "$ac_cpp_err"; then
15424   ac_header_preproc=yes
15425 else
15426   echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429   ac_header_preproc=no
15430 fi
15431
15432 rm -f conftest.err conftest.$ac_ext
15433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15434 echo "${ECHO_T}$ac_header_preproc" >&6; }
15435
15436 # So?  What about this header?
15437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15438   yes:no: )
15439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15443     ac_header_preproc=yes
15444     ;;
15445   no:yes:* )
15446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15458     ( cat <<\_ASBOX
15459 ## ------------------------------------ ##
15460 ## Report this to http://llvm.org/bugs/ ##
15461 ## ------------------------------------ ##
15462 _ASBOX
15463      ) | sed "s/^/$as_me: WARNING:     /" >&2
15464     ;;
15465 esac
15466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15469   echo $ECHO_N "(cached) $ECHO_C" >&6
15470 else
15471   eval "$as_ac_Header=\$ac_header_preproc"
15472 fi
15473 ac_res=`eval echo '${'$as_ac_Header'}'`
15474                { echo "$as_me:$LINENO: result: $ac_res" >&5
15475 echo "${ECHO_T}$ac_res" >&6; }
15476
15477 fi
15478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15479   cat >>confdefs.h <<_ACEOF
15480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15481 _ACEOF
15482
15483 fi
15484
15485 done
15486
15487
15488
15489
15490
15491
15492
15493 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15494 do
15495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15500   echo $ECHO_N "(cached) $ECHO_C" >&6
15501 fi
15502 ac_res=`eval echo '${'$as_ac_Header'}'`
15503                { echo "$as_me:$LINENO: result: $ac_res" >&5
15504 echo "${ECHO_T}$ac_res" >&6; }
15505 else
15506   # Is the header compilable?
15507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h.  */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h.  */
15515 $ac_includes_default
15516 #include <$ac_header>
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (ac_try="$ac_compile"
15520 case "(($ac_try" in
15521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522   *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525   (eval "$ac_compile") 2>conftest.er1
15526   ac_status=$?
15527   grep -v '^ *+' conftest.er1 >conftest.err
15528   rm -f conftest.er1
15529   cat conftest.err >&5
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); } &&
15532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15533   { (case "(($ac_try" in
15534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535   *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538   (eval "$ac_try") 2>&5
15539   ac_status=$?
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); }; } &&
15542          { ac_try='test -s conftest.$ac_objext'
15543   { (case "(($ac_try" in
15544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545   *) ac_try_echo=$ac_try;;
15546 esac
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548   (eval "$ac_try") 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); }; }; then
15552   ac_header_compiler=yes
15553 else
15554   echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15556
15557         ac_header_compiler=no
15558 fi
15559
15560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15562 echo "${ECHO_T}$ac_header_compiler" >&6; }
15563
15564 # Is the header present?
15565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h.  */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h.  */
15573 #include <$ac_header>
15574 _ACEOF
15575 if { (ac_try="$ac_cpp conftest.$ac_ext"
15576 case "(($ac_try" in
15577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578   *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15582   ac_status=$?
15583   grep -v '^ *+' conftest.er1 >conftest.err
15584   rm -f conftest.er1
15585   cat conftest.err >&5
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); } >/dev/null; then
15588   if test -s conftest.err; then
15589     ac_cpp_err=$ac_c_preproc_warn_flag
15590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15591   else
15592     ac_cpp_err=
15593   fi
15594 else
15595   ac_cpp_err=yes
15596 fi
15597 if test -z "$ac_cpp_err"; then
15598   ac_header_preproc=yes
15599 else
15600   echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603   ac_header_preproc=no
15604 fi
15605
15606 rm -f conftest.err conftest.$ac_ext
15607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15608 echo "${ECHO_T}$ac_header_preproc" >&6; }
15609
15610 # So?  What about this header?
15611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15612   yes:no: )
15613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15617     ac_header_preproc=yes
15618     ;;
15619   no:yes:* )
15620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15622     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15623 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15624     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15626     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15627 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15630     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15632     ( cat <<\_ASBOX
15633 ## ------------------------------------ ##
15634 ## Report this to http://llvm.org/bugs/ ##
15635 ## ------------------------------------ ##
15636 _ASBOX
15637      ) | sed "s/^/$as_me: WARNING:     /" >&2
15638     ;;
15639 esac
15640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643   echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645   eval "$as_ac_Header=\$ac_header_preproc"
15646 fi
15647 ac_res=`eval echo '${'$as_ac_Header'}'`
15648                { echo "$as_me:$LINENO: result: $ac_res" >&5
15649 echo "${ECHO_T}$ac_res" >&6; }
15650
15651 fi
15652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15653   cat >>confdefs.h <<_ACEOF
15654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15655 _ACEOF
15656
15657 fi
15658
15659 done
15660
15661
15662
15663 for ac_header in utime.h windows.h
15664 do
15665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670   echo $ECHO_N "(cached) $ECHO_C" >&6
15671 fi
15672 ac_res=`eval echo '${'$as_ac_Header'}'`
15673                { echo "$as_me:$LINENO: result: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15675 else
15676   # Is the header compilable?
15677 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h.  */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h.  */
15685 $ac_includes_default
15686 #include <$ac_header>
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692   *) ac_try_echo=$ac_try;;
15693 esac
15694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695   (eval "$ac_compile") 2>conftest.er1
15696   ac_status=$?
15697   grep -v '^ *+' conftest.er1 >conftest.err
15698   rm -f conftest.er1
15699   cat conftest.err >&5
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } &&
15702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703   { (case "(($ac_try" in
15704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705   *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708   (eval "$ac_try") 2>&5
15709   ac_status=$?
15710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711   (exit $ac_status); }; } &&
15712          { ac_try='test -s conftest.$ac_objext'
15713   { (case "(($ac_try" in
15714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715   *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718   (eval "$ac_try") 2>&5
15719   ac_status=$?
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); }; }; then
15722   ac_header_compiler=yes
15723 else
15724   echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15726
15727         ac_header_compiler=no
15728 fi
15729
15730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15732 echo "${ECHO_T}$ac_header_compiler" >&6; }
15733
15734 # Is the header present?
15735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15737 cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743 #include <$ac_header>
15744 _ACEOF
15745 if { (ac_try="$ac_cpp conftest.$ac_ext"
15746 case "(($ac_try" in
15747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748   *) ac_try_echo=$ac_try;;
15749 esac
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15752   ac_status=$?
15753   grep -v '^ *+' conftest.er1 >conftest.err
15754   rm -f conftest.er1
15755   cat conftest.err >&5
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } >/dev/null; then
15758   if test -s conftest.err; then
15759     ac_cpp_err=$ac_c_preproc_warn_flag
15760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15761   else
15762     ac_cpp_err=
15763   fi
15764 else
15765   ac_cpp_err=yes
15766 fi
15767 if test -z "$ac_cpp_err"; then
15768   ac_header_preproc=yes
15769 else
15770   echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15772
15773   ac_header_preproc=no
15774 fi
15775
15776 rm -f conftest.err conftest.$ac_ext
15777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15778 echo "${ECHO_T}$ac_header_preproc" >&6; }
15779
15780 # So?  What about this header?
15781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15782   yes:no: )
15783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15787     ac_header_preproc=yes
15788     ;;
15789   no:yes:* )
15790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15802     ( cat <<\_ASBOX
15803 ## ------------------------------------ ##
15804 ## Report this to http://llvm.org/bugs/ ##
15805 ## ------------------------------------ ##
15806 _ASBOX
15807      ) | sed "s/^/$as_me: WARNING:     /" >&2
15808     ;;
15809 esac
15810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813   echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815   eval "$as_ac_Header=\$ac_header_preproc"
15816 fi
15817 ac_res=`eval echo '${'$as_ac_Header'}'`
15818                { echo "$as_me:$LINENO: result: $ac_res" >&5
15819 echo "${ECHO_T}$ac_res" >&6; }
15820
15821 fi
15822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15823   cat >>confdefs.h <<_ACEOF
15824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15825 _ACEOF
15826
15827 fi
15828
15829 done
15830
15831
15832
15833
15834
15835
15836 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15837 do
15838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15840   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15843   echo $ECHO_N "(cached) $ECHO_C" >&6
15844 fi
15845 ac_res=`eval echo '${'$as_ac_Header'}'`
15846                { echo "$as_me:$LINENO: result: $ac_res" >&5
15847 echo "${ECHO_T}$ac_res" >&6; }
15848 else
15849   # Is the header compilable?
15850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15852 cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858 $ac_includes_default
15859 #include <$ac_header>
15860 _ACEOF
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865   *) ac_try_echo=$ac_try;;
15866 esac
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868   (eval "$ac_compile") 2>conftest.er1
15869   ac_status=$?
15870   grep -v '^ *+' conftest.er1 >conftest.err
15871   rm -f conftest.er1
15872   cat conftest.err >&5
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); } &&
15875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15876   { (case "(($ac_try" in
15877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878   *) ac_try_echo=$ac_try;;
15879 esac
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881   (eval "$ac_try") 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; } &&
15885          { ac_try='test -s conftest.$ac_objext'
15886   { (case "(($ac_try" in
15887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888   *) ac_try_echo=$ac_try;;
15889 esac
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891   (eval "$ac_try") 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; }; then
15895   ac_header_compiler=yes
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900         ac_header_compiler=no
15901 fi
15902
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15905 echo "${ECHO_T}$ac_header_compiler" >&6; }
15906
15907 # Is the header present?
15908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15910 cat >conftest.$ac_ext <<_ACEOF
15911 /* confdefs.h.  */
15912 _ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h.  */
15916 #include <$ac_header>
15917 _ACEOF
15918 if { (ac_try="$ac_cpp conftest.$ac_ext"
15919 case "(($ac_try" in
15920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921   *) ac_try_echo=$ac_try;;
15922 esac
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15925   ac_status=$?
15926   grep -v '^ *+' conftest.er1 >conftest.err
15927   rm -f conftest.er1
15928   cat conftest.err >&5
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); } >/dev/null; then
15931   if test -s conftest.err; then
15932     ac_cpp_err=$ac_c_preproc_warn_flag
15933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15934   else
15935     ac_cpp_err=
15936   fi
15937 else
15938   ac_cpp_err=yes
15939 fi
15940 if test -z "$ac_cpp_err"; then
15941   ac_header_preproc=yes
15942 else
15943   echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946   ac_header_preproc=no
15947 fi
15948
15949 rm -f conftest.err conftest.$ac_ext
15950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951 echo "${ECHO_T}$ac_header_preproc" >&6; }
15952
15953 # So?  What about this header?
15954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15955   yes:no: )
15956     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15960     ac_header_preproc=yes
15961     ;;
15962   no:yes:* )
15963     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15965     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15966 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15967     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15969     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15970 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15973     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15975     ( cat <<\_ASBOX
15976 ## ------------------------------------ ##
15977 ## Report this to http://llvm.org/bugs/ ##
15978 ## ------------------------------------ ##
15979 _ASBOX
15980      ) | sed "s/^/$as_me: WARNING:     /" >&2
15981     ;;
15982 esac
15983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986   echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988   eval "$as_ac_Header=\$ac_header_preproc"
15989 fi
15990 ac_res=`eval echo '${'$as_ac_Header'}'`
15991                { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15993
15994 fi
15995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15996   cat >>confdefs.h <<_ACEOF
15997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15998 _ACEOF
15999
16000 fi
16001
16002 done
16003
16004
16005
16006
16007
16008 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16009 do
16010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16012   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015   echo $ECHO_N "(cached) $ECHO_C" >&6
16016 fi
16017 ac_res=`eval echo '${'$as_ac_Header'}'`
16018                { echo "$as_me:$LINENO: result: $ac_res" >&5
16019 echo "${ECHO_T}$ac_res" >&6; }
16020 else
16021   # Is the header compilable?
16022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030 $ac_includes_default
16031 #include <$ac_header>
16032 _ACEOF
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_compile") 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } &&
16047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048   { (case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_try") 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; } &&
16057          { ac_try='test -s conftest.$ac_objext'
16058   { (case "(($ac_try" in
16059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060   *) ac_try_echo=$ac_try;;
16061 esac
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063   (eval "$ac_try") 2>&5
16064   ac_status=$?
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); }; }; then
16067   ac_header_compiler=yes
16068 else
16069   echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16071
16072         ac_header_compiler=no
16073 fi
16074
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 echo "${ECHO_T}$ac_header_compiler" >&6; }
16078
16079 # Is the header present?
16080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088 #include <$ac_header>
16089 _ACEOF
16090 if { (ac_try="$ac_cpp conftest.$ac_ext"
16091 case "(($ac_try" in
16092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093   *) ac_try_echo=$ac_try;;
16094 esac
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16097   ac_status=$?
16098   grep -v '^ *+' conftest.er1 >conftest.err
16099   rm -f conftest.er1
16100   cat conftest.err >&5
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } >/dev/null; then
16103   if test -s conftest.err; then
16104     ac_cpp_err=$ac_c_preproc_warn_flag
16105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16106   else
16107     ac_cpp_err=
16108   fi
16109 else
16110   ac_cpp_err=yes
16111 fi
16112 if test -z "$ac_cpp_err"; then
16113   ac_header_preproc=yes
16114 else
16115   echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16117
16118   ac_header_preproc=no
16119 fi
16120
16121 rm -f conftest.err conftest.$ac_ext
16122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16123 echo "${ECHO_T}$ac_header_preproc" >&6; }
16124
16125 # So?  What about this header?
16126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16127   yes:no: )
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16132     ac_header_preproc=yes
16133     ;;
16134   no:yes:* )
16135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16147     ( cat <<\_ASBOX
16148 ## ------------------------------------ ##
16149 ## Report this to http://llvm.org/bugs/ ##
16150 ## ------------------------------------ ##
16151 _ASBOX
16152      ) | sed "s/^/$as_me: WARNING:     /" >&2
16153     ;;
16154 esac
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158   echo $ECHO_N "(cached) $ECHO_C" >&6
16159 else
16160   eval "$as_ac_Header=\$ac_header_preproc"
16161 fi
16162 ac_res=`eval echo '${'$as_ac_Header'}'`
16163                { echo "$as_me:$LINENO: result: $ac_res" >&5
16164 echo "${ECHO_T}$ac_res" >&6; }
16165
16166 fi
16167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16168   cat >>confdefs.h <<_ACEOF
16169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16170 _ACEOF
16171
16172 fi
16173
16174 done
16175
16176
16177 for ac_header in valgrind/valgrind.h
16178 do
16179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16181   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16184   echo $ECHO_N "(cached) $ECHO_C" >&6
16185 fi
16186 ac_res=`eval echo '${'$as_ac_Header'}'`
16187                { echo "$as_me:$LINENO: result: $ac_res" >&5
16188 echo "${ECHO_T}$ac_res" >&6; }
16189 else
16190   # Is the header compilable?
16191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16193 cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h.  */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h.  */
16199 $ac_includes_default
16200 #include <$ac_header>
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (ac_try="$ac_compile"
16204 case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_compile") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } &&
16216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16217   { (case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_try") 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }; } &&
16226          { ac_try='test -s conftest.$ac_objext'
16227   { (case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232   (eval "$ac_try") 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }; }; then
16236   ac_header_compiler=yes
16237 else
16238   echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16240
16241         ac_header_compiler=no
16242 fi
16243
16244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16246 echo "${ECHO_T}$ac_header_compiler" >&6; }
16247
16248 # Is the header present?
16249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h.  */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h.  */
16257 #include <$ac_header>
16258 _ACEOF
16259 if { (ac_try="$ac_cpp conftest.$ac_ext"
16260 case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16266   ac_status=$?
16267   grep -v '^ *+' conftest.er1 >conftest.err
16268   rm -f conftest.er1
16269   cat conftest.err >&5
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); } >/dev/null; then
16272   if test -s conftest.err; then
16273     ac_cpp_err=$ac_c_preproc_warn_flag
16274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16275   else
16276     ac_cpp_err=
16277   fi
16278 else
16279   ac_cpp_err=yes
16280 fi
16281 if test -z "$ac_cpp_err"; then
16282   ac_header_preproc=yes
16283 else
16284   echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16286
16287   ac_header_preproc=no
16288 fi
16289
16290 rm -f conftest.err conftest.$ac_ext
16291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16292 echo "${ECHO_T}$ac_header_preproc" >&6; }
16293
16294 # So?  What about this header?
16295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16296   yes:no: )
16297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16301     ac_header_preproc=yes
16302     ;;
16303   no:yes:* )
16304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16316     ( cat <<\_ASBOX
16317 ## ------------------------------------ ##
16318 ## Report this to http://llvm.org/bugs/ ##
16319 ## ------------------------------------ ##
16320 _ASBOX
16321      ) | sed "s/^/$as_me: WARNING:     /" >&2
16322     ;;
16323 esac
16324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16327   echo $ECHO_N "(cached) $ECHO_C" >&6
16328 else
16329   eval "$as_ac_Header=\$ac_header_preproc"
16330 fi
16331 ac_res=`eval echo '${'$as_ac_Header'}'`
16332                { echo "$as_me:$LINENO: result: $ac_res" >&5
16333 echo "${ECHO_T}$ac_res" >&6; }
16334
16335 fi
16336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16337   cat >>confdefs.h <<_ACEOF
16338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16339 _ACEOF
16340
16341 fi
16342
16343 done
16344
16345
16346 for ac_header in fenv.h
16347 do
16348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16353   echo $ECHO_N "(cached) $ECHO_C" >&6
16354 fi
16355 ac_res=`eval echo '${'$as_ac_Header'}'`
16356                { echo "$as_me:$LINENO: result: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16358 else
16359   # Is the header compilable?
16360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16362 cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h.  */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h.  */
16368 $ac_includes_default
16369 #include <$ac_header>
16370 _ACEOF
16371 rm -f conftest.$ac_objext
16372 if { (ac_try="$ac_compile"
16373 case "(($ac_try" in
16374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375   *) ac_try_echo=$ac_try;;
16376 esac
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378   (eval "$ac_compile") 2>conftest.er1
16379   ac_status=$?
16380   grep -v '^ *+' conftest.er1 >conftest.err
16381   rm -f conftest.er1
16382   cat conftest.err >&5
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); } &&
16385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16386   { (case "(($ac_try" in
16387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388   *) ac_try_echo=$ac_try;;
16389 esac
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391   (eval "$ac_try") 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; } &&
16395          { ac_try='test -s conftest.$ac_objext'
16396   { (case "(($ac_try" in
16397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398   *) ac_try_echo=$ac_try;;
16399 esac
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401   (eval "$ac_try") 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; }; then
16405   ac_header_compiler=yes
16406 else
16407   echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16409
16410         ac_header_compiler=no
16411 fi
16412
16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16415 echo "${ECHO_T}$ac_header_compiler" >&6; }
16416
16417 # Is the header present?
16418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16420 cat >conftest.$ac_ext <<_ACEOF
16421 /* confdefs.h.  */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h.  */
16426 #include <$ac_header>
16427 _ACEOF
16428 if { (ac_try="$ac_cpp conftest.$ac_ext"
16429 case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16435   ac_status=$?
16436   grep -v '^ *+' conftest.er1 >conftest.err
16437   rm -f conftest.er1
16438   cat conftest.err >&5
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); } >/dev/null; then
16441   if test -s conftest.err; then
16442     ac_cpp_err=$ac_c_preproc_warn_flag
16443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16444   else
16445     ac_cpp_err=
16446   fi
16447 else
16448   ac_cpp_err=yes
16449 fi
16450 if test -z "$ac_cpp_err"; then
16451   ac_header_preproc=yes
16452 else
16453   echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16455
16456   ac_header_preproc=no
16457 fi
16458
16459 rm -f conftest.err conftest.$ac_ext
16460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16461 echo "${ECHO_T}$ac_header_preproc" >&6; }
16462
16463 # So?  What about this header?
16464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16465   yes:no: )
16466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16470     ac_header_preproc=yes
16471     ;;
16472   no:yes:* )
16473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16485     ( cat <<\_ASBOX
16486 ## ------------------------------------ ##
16487 ## Report this to http://llvm.org/bugs/ ##
16488 ## ------------------------------------ ##
16489 _ASBOX
16490      ) | sed "s/^/$as_me: WARNING:     /" >&2
16491     ;;
16492 esac
16493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16496   echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498   eval "$as_ac_Header=\$ac_header_preproc"
16499 fi
16500 ac_res=`eval echo '${'$as_ac_Header'}'`
16501                { echo "$as_me:$LINENO: result: $ac_res" >&5
16502 echo "${ECHO_T}$ac_res" >&6; }
16503
16504 fi
16505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16506   cat >>confdefs.h <<_ACEOF
16507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16508 _ACEOF
16509
16510 fi
16511
16512 done
16513
16514 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16515 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16516 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16517   echo $ECHO_N "(cached) $ECHO_C" >&6
16518 else
16519   cat >conftest.$ac_ext <<_ACEOF
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525 #include <fenv.h>
16526
16527 int
16528 main ()
16529 {
16530 #ifndef FE_ALL_EXCEPT
16531   char *p = (char *) FE_ALL_EXCEPT;
16532   return !p;
16533 #endif
16534
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_compile") 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } &&
16553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554   { (case "(($ac_try" in
16555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556   *) ac_try_echo=$ac_try;;
16557 esac
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559   (eval "$ac_try") 2>&5
16560   ac_status=$?
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); }; } &&
16563          { ac_try='test -s conftest.$ac_objext'
16564   { (case "(($ac_try" in
16565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566   *) ac_try_echo=$ac_try;;
16567 esac
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569   (eval "$ac_try") 2>&5
16570   ac_status=$?
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; }; then
16573   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16574 else
16575   echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578         ac_cv_have_decl_FE_ALL_EXCEPT=no
16579 fi
16580
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 fi
16583 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16584 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16585 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16586
16587 cat >>confdefs.h <<_ACEOF
16588 #define HAVE_DECL_FE_ALL_EXCEPT 1
16589 _ACEOF
16590
16591
16592 else
16593   cat >>confdefs.h <<_ACEOF
16594 #define HAVE_DECL_FE_ALL_EXCEPT 0
16595 _ACEOF
16596
16597
16598 fi
16599 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16600 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16601 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16602   echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604   cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610 #include <fenv.h>
16611
16612 int
16613 main ()
16614 {
16615 #ifndef FE_INEXACT
16616   char *p = (char *) FE_INEXACT;
16617   return !p;
16618 #endif
16619
16620   ;
16621   return 0;
16622 }
16623 _ACEOF
16624 rm -f conftest.$ac_objext
16625 if { (ac_try="$ac_compile"
16626 case "(($ac_try" in
16627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628   *) ac_try_echo=$ac_try;;
16629 esac
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631   (eval "$ac_compile") 2>conftest.er1
16632   ac_status=$?
16633   grep -v '^ *+' conftest.er1 >conftest.err
16634   rm -f conftest.er1
16635   cat conftest.err >&5
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); } &&
16638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16639   { (case "(($ac_try" in
16640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641   *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644   (eval "$ac_try") 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; } &&
16648          { ac_try='test -s conftest.$ac_objext'
16649   { (case "(($ac_try" in
16650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651   *) ac_try_echo=$ac_try;;
16652 esac
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654   (eval "$ac_try") 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; }; then
16658   ac_cv_have_decl_FE_INEXACT=yes
16659 else
16660   echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16662
16663         ac_cv_have_decl_FE_INEXACT=no
16664 fi
16665
16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 fi
16668 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16669 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16670 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16671
16672 cat >>confdefs.h <<_ACEOF
16673 #define HAVE_DECL_FE_INEXACT 1
16674 _ACEOF
16675
16676
16677 else
16678   cat >>confdefs.h <<_ACEOF
16679 #define HAVE_DECL_FE_INEXACT 0
16680 _ACEOF
16681
16682
16683 fi
16684
16685
16686 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16687
16688 for ac_header in pthread.h
16689 do
16690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16692   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 fi
16697 ac_res=`eval echo '${'$as_ac_Header'}'`
16698                { echo "$as_me:$LINENO: result: $ac_res" >&5
16699 echo "${ECHO_T}$ac_res" >&6; }
16700 else
16701   # Is the header compilable?
16702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16704 cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710 $ac_includes_default
16711 #include <$ac_header>
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720   (eval "$ac_compile") 2>conftest.er1
16721   ac_status=$?
16722   grep -v '^ *+' conftest.er1 >conftest.err
16723   rm -f conftest.er1
16724   cat conftest.err >&5
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); } &&
16727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728   { (case "(($ac_try" in
16729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730   *) ac_try_echo=$ac_try;;
16731 esac
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733   (eval "$ac_try") 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); }; } &&
16737          { ac_try='test -s conftest.$ac_objext'
16738   { (case "(($ac_try" in
16739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740   *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743   (eval "$ac_try") 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); }; }; then
16747   ac_header_compiler=yes
16748 else
16749   echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752         ac_header_compiler=no
16753 fi
16754
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16757 echo "${ECHO_T}$ac_header_compiler" >&6; }
16758
16759 # Is the header present?
16760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h.  */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h.  */
16768 #include <$ac_header>
16769 _ACEOF
16770 if { (ac_try="$ac_cpp conftest.$ac_ext"
16771 case "(($ac_try" in
16772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773   *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16777   ac_status=$?
16778   grep -v '^ *+' conftest.er1 >conftest.err
16779   rm -f conftest.er1
16780   cat conftest.err >&5
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } >/dev/null; then
16783   if test -s conftest.err; then
16784     ac_cpp_err=$ac_c_preproc_warn_flag
16785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16786   else
16787     ac_cpp_err=
16788   fi
16789 else
16790   ac_cpp_err=yes
16791 fi
16792 if test -z "$ac_cpp_err"; then
16793   ac_header_preproc=yes
16794 else
16795   echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16797
16798   ac_header_preproc=no
16799 fi
16800
16801 rm -f conftest.err conftest.$ac_ext
16802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16803 echo "${ECHO_T}$ac_header_preproc" >&6; }
16804
16805 # So?  What about this header?
16806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16807   yes:no: )
16808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16812     ac_header_preproc=yes
16813     ;;
16814   no:yes:* )
16815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16827     ( cat <<\_ASBOX
16828 ## ------------------------------------ ##
16829 ## Report this to http://llvm.org/bugs/ ##
16830 ## ------------------------------------ ##
16831 _ASBOX
16832      ) | sed "s/^/$as_me: WARNING:     /" >&2
16833     ;;
16834 esac
16835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16838   echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840   eval "$as_ac_Header=\$ac_header_preproc"
16841 fi
16842 ac_res=`eval echo '${'$as_ac_Header'}'`
16843                { echo "$as_me:$LINENO: result: $ac_res" >&5
16844 echo "${ECHO_T}$ac_res" >&6; }
16845
16846 fi
16847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16848   cat >>confdefs.h <<_ACEOF
16849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16850 _ACEOF
16851  HAVE_PTHREAD=1
16852
16853 else
16854   HAVE_PTHREAD=0
16855
16856 fi
16857
16858 done
16859
16860 else
16861   HAVE_PTHREAD=0
16862
16863 fi
16864 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16865
16866 for ac_header in zlib.h
16867 do
16868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16870   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16873   echo $ECHO_N "(cached) $ECHO_C" >&6
16874 fi
16875 ac_res=`eval echo '${'$as_ac_Header'}'`
16876                { echo "$as_me:$LINENO: result: $ac_res" >&5
16877 echo "${ECHO_T}$ac_res" >&6; }
16878 else
16879   # Is the header compilable?
16880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888 $ac_includes_default
16889 #include <$ac_header>
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (ac_try="$ac_compile"
16893 case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_compile") 2>conftest.er1
16899   ac_status=$?
16900   grep -v '^ *+' conftest.er1 >conftest.err
16901   rm -f conftest.er1
16902   cat conftest.err >&5
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); } &&
16905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16906   { (case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_try") 2>&5
16912   ac_status=$?
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); }; } &&
16915          { ac_try='test -s conftest.$ac_objext'
16916   { (case "(($ac_try" in
16917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918   *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921   (eval "$ac_try") 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; }; then
16925   ac_header_compiler=yes
16926 else
16927   echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16929
16930         ac_header_compiler=no
16931 fi
16932
16933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16935 echo "${ECHO_T}$ac_header_compiler" >&6; }
16936
16937 # Is the header present?
16938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16940 cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h.  */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h.  */
16946 #include <$ac_header>
16947 _ACEOF
16948 if { (ac_try="$ac_cpp conftest.$ac_ext"
16949 case "(($ac_try" in
16950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951   *) ac_try_echo=$ac_try;;
16952 esac
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16955   ac_status=$?
16956   grep -v '^ *+' conftest.er1 >conftest.err
16957   rm -f conftest.er1
16958   cat conftest.err >&5
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); } >/dev/null; then
16961   if test -s conftest.err; then
16962     ac_cpp_err=$ac_c_preproc_warn_flag
16963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16964   else
16965     ac_cpp_err=
16966   fi
16967 else
16968   ac_cpp_err=yes
16969 fi
16970 if test -z "$ac_cpp_err"; then
16971   ac_header_preproc=yes
16972 else
16973   echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16975
16976   ac_header_preproc=no
16977 fi
16978
16979 rm -f conftest.err conftest.$ac_ext
16980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16981 echo "${ECHO_T}$ac_header_preproc" >&6; }
16982
16983 # So?  What about this header?
16984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16985   yes:no: )
16986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16990     ac_header_preproc=yes
16991     ;;
16992   no:yes:* )
16993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17005     ( cat <<\_ASBOX
17006 ## ------------------------------------ ##
17007 ## Report this to http://llvm.org/bugs/ ##
17008 ## ------------------------------------ ##
17009 _ASBOX
17010      ) | sed "s/^/$as_me: WARNING:     /" >&2
17011     ;;
17012 esac
17013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17016   echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018   eval "$as_ac_Header=\$ac_header_preproc"
17019 fi
17020 ac_res=`eval echo '${'$as_ac_Header'}'`
17021                { echo "$as_me:$LINENO: result: $ac_res" >&5
17022 echo "${ECHO_T}$ac_res" >&6; }
17023
17024 fi
17025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17026   cat >>confdefs.h <<_ACEOF
17027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17028 _ACEOF
17029  HAVE_LIBZ=1
17030
17031 else
17032   HAVE_LIBZ=0
17033
17034 fi
17035
17036 done
17037
17038 else
17039   HAVE_LIBZ=0
17040
17041 fi
17042
17043 if test "$llvm_cv_enable_libffi" = "yes" ; then
17044
17045
17046 for ac_header in ffi.h ffi/ffi.h
17047 do
17048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17050   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17053   echo $ECHO_N "(cached) $ECHO_C" >&6
17054 fi
17055 ac_res=`eval echo '${'$as_ac_Header'}'`
17056                { echo "$as_me:$LINENO: result: $ac_res" >&5
17057 echo "${ECHO_T}$ac_res" >&6; }
17058 else
17059   # Is the header compilable?
17060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17062 cat >conftest.$ac_ext <<_ACEOF
17063 /* confdefs.h.  */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h.  */
17068 $ac_includes_default
17069 #include <$ac_header>
17070 _ACEOF
17071 rm -f conftest.$ac_objext
17072 if { (ac_try="$ac_compile"
17073 case "(($ac_try" in
17074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075   *) ac_try_echo=$ac_try;;
17076 esac
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078   (eval "$ac_compile") 2>conftest.er1
17079   ac_status=$?
17080   grep -v '^ *+' conftest.er1 >conftest.err
17081   rm -f conftest.er1
17082   cat conftest.err >&5
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); } &&
17085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086   { (case "(($ac_try" in
17087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088   *) ac_try_echo=$ac_try;;
17089 esac
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091   (eval "$ac_try") 2>&5
17092   ac_status=$?
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); }; } &&
17095          { ac_try='test -s conftest.$ac_objext'
17096   { (case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_try") 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; }; then
17105   ac_header_compiler=yes
17106 else
17107   echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110         ac_header_compiler=no
17111 fi
17112
17113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17115 echo "${ECHO_T}$ac_header_compiler" >&6; }
17116
17117 # Is the header present?
17118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17120 cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h.  */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h.  */
17126 #include <$ac_header>
17127 _ACEOF
17128 if { (ac_try="$ac_cpp conftest.$ac_ext"
17129 case "(($ac_try" in
17130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131   *) ac_try_echo=$ac_try;;
17132 esac
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17135   ac_status=$?
17136   grep -v '^ *+' conftest.er1 >conftest.err
17137   rm -f conftest.er1
17138   cat conftest.err >&5
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); } >/dev/null; then
17141   if test -s conftest.err; then
17142     ac_cpp_err=$ac_c_preproc_warn_flag
17143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17144   else
17145     ac_cpp_err=
17146   fi
17147 else
17148   ac_cpp_err=yes
17149 fi
17150 if test -z "$ac_cpp_err"; then
17151   ac_header_preproc=yes
17152 else
17153   echo "$as_me: failed program was:" >&5
17154 sed 's/^/| /' conftest.$ac_ext >&5
17155
17156   ac_header_preproc=no
17157 fi
17158
17159 rm -f conftest.err conftest.$ac_ext
17160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17161 echo "${ECHO_T}$ac_header_preproc" >&6; }
17162
17163 # So?  What about this header?
17164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17165   yes:no: )
17166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17170     ac_header_preproc=yes
17171     ;;
17172   no:yes:* )
17173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17185     ( cat <<\_ASBOX
17186 ## ------------------------------------ ##
17187 ## Report this to http://llvm.org/bugs/ ##
17188 ## ------------------------------------ ##
17189 _ASBOX
17190      ) | sed "s/^/$as_me: WARNING:     /" >&2
17191     ;;
17192 esac
17193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198   eval "$as_ac_Header=\$ac_header_preproc"
17199 fi
17200 ac_res=`eval echo '${'$as_ac_Header'}'`
17201                { echo "$as_me:$LINENO: result: $ac_res" >&5
17202 echo "${ECHO_T}$ac_res" >&6; }
17203
17204 fi
17205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17206   cat >>confdefs.h <<_ACEOF
17207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17208 _ACEOF
17209
17210 fi
17211
17212 done
17213
17214 fi
17215
17216
17217 for ac_header in CrashReporterClient.h
17218 do
17219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17221   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 fi
17226 ac_res=`eval echo '${'$as_ac_Header'}'`
17227                { echo "$as_me:$LINENO: result: $ac_res" >&5
17228 echo "${ECHO_T}$ac_res" >&6; }
17229 else
17230   # Is the header compilable?
17231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17233 cat >conftest.$ac_ext <<_ACEOF
17234 /* confdefs.h.  */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h.  */
17239 $ac_includes_default
17240 #include <$ac_header>
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (ac_try="$ac_compile"
17244 case "(($ac_try" in
17245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246   *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249   (eval "$ac_compile") 2>conftest.er1
17250   ac_status=$?
17251   grep -v '^ *+' conftest.er1 >conftest.err
17252   rm -f conftest.er1
17253   cat conftest.err >&5
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); } &&
17256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17257   { (case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_try") 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); }; } &&
17266          { ac_try='test -s conftest.$ac_objext'
17267   { (case "(($ac_try" in
17268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269   *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272   (eval "$ac_try") 2>&5
17273   ac_status=$?
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); }; }; then
17276   ac_header_compiler=yes
17277 else
17278   echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17280
17281         ac_header_compiler=no
17282 fi
17283
17284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17286 echo "${ECHO_T}$ac_header_compiler" >&6; }
17287
17288 # Is the header present?
17289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17291 cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h.  */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h.  */
17297 #include <$ac_header>
17298 _ACEOF
17299 if { (ac_try="$ac_cpp conftest.$ac_ext"
17300 case "(($ac_try" in
17301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302   *) ac_try_echo=$ac_try;;
17303 esac
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17306   ac_status=$?
17307   grep -v '^ *+' conftest.er1 >conftest.err
17308   rm -f conftest.er1
17309   cat conftest.err >&5
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); } >/dev/null; then
17312   if test -s conftest.err; then
17313     ac_cpp_err=$ac_c_preproc_warn_flag
17314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17315   else
17316     ac_cpp_err=
17317   fi
17318 else
17319   ac_cpp_err=yes
17320 fi
17321 if test -z "$ac_cpp_err"; then
17322   ac_header_preproc=yes
17323 else
17324   echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327   ac_header_preproc=no
17328 fi
17329
17330 rm -f conftest.err conftest.$ac_ext
17331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17332 echo "${ECHO_T}$ac_header_preproc" >&6; }
17333
17334 # So?  What about this header?
17335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17336   yes:no: )
17337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17341     ac_header_preproc=yes
17342     ;;
17343   no:yes:* )
17344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17356     ( cat <<\_ASBOX
17357 ## ------------------------------------ ##
17358 ## Report this to http://llvm.org/bugs/ ##
17359 ## ------------------------------------ ##
17360 _ASBOX
17361      ) | sed "s/^/$as_me: WARNING:     /" >&2
17362     ;;
17363 esac
17364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17367   echo $ECHO_N "(cached) $ECHO_C" >&6
17368 else
17369   eval "$as_ac_Header=\$ac_header_preproc"
17370 fi
17371 ac_res=`eval echo '${'$as_ac_Header'}'`
17372                { echo "$as_me:$LINENO: result: $ac_res" >&5
17373 echo "${ECHO_T}$ac_res" >&6; }
17374
17375 fi
17376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17377   cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17379 _ACEOF
17380
17381 fi
17382
17383 done
17384
17385
17386 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17387 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17388 cat >conftest.$ac_ext <<_ACEOF
17389
17390   /* confdefs.h.  */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h.  */
17395
17396     extern const char *__crashreporter_info__;
17397     int main() {
17398       __crashreporter_info__ = "test";
17399       return 0;
17400     }
17401
17402
17403 _ACEOF
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408   *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411   (eval "$ac_link") 2>conftest.er1
17412   ac_status=$?
17413   grep -v '^ *+' conftest.er1 >conftest.err
17414   rm -f conftest.er1
17415   cat conftest.err >&5
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); } &&
17418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419   { (case "(($ac_try" in
17420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421   *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424   (eval "$ac_try") 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; } &&
17428          { ac_try='test -s conftest$ac_exeext'
17429   { (case "(($ac_try" in
17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431   *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434   (eval "$ac_try") 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; }; then
17438
17439   { echo "$as_me:$LINENO: result: yes" >&5
17440 echo "${ECHO_T}yes" >&6; }
17441
17442 cat >>confdefs.h <<\_ACEOF
17443 #define HAVE_CRASHREPORTER_INFO 1
17444 _ACEOF
17445
17446
17447 else
17448   echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451
17452   { echo "$as_me:$LINENO: result: no" >&5
17453 echo "${ECHO_T}no" >&6; }
17454
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_CRASHREPORTER_INFO 0
17457 _ACEOF
17458
17459
17460 fi
17461
17462 rm -f core conftest.err conftest.$ac_objext \
17463       conftest$ac_exeext conftest.$ac_ext
17464
17465
17466
17467   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17468 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17469 if test "${ac_cv_huge_val_sanity+set}" = set; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472
17473     ac_ext=cpp
17474 ac_cpp='$CXXCPP $CPPFLAGS'
17475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17478
17479     ac_save_CXXFLAGS=$CXXFLAGS
17480     CXXFLAGS="$CXXFLAGS -pedantic"
17481     if test "$cross_compiling" = yes; then
17482   ac_cv_huge_val_sanity=yes
17483 else
17484   cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h.  */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h.  */
17490 #include <math.h>
17491 int
17492 main ()
17493 {
17494 double x = HUGE_VAL; return x != x;
17495   ;
17496   return 0;
17497 }
17498 _ACEOF
17499 rm -f conftest$ac_exeext
17500 if { (ac_try="$ac_link"
17501 case "(($ac_try" in
17502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503   *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506   (eval "$ac_link") 2>&5
17507   ac_status=$?
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17510   { (case "(($ac_try" in
17511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512   *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515   (eval "$ac_try") 2>&5
17516   ac_status=$?
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); }; }; then
17519   ac_cv_huge_val_sanity=yes
17520 else
17521   echo "$as_me: program exited with status $ac_status" >&5
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 ( exit $ac_status )
17526 ac_cv_huge_val_sanity=no
17527 fi
17528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17529 fi
17530
17531
17532     CXXFLAGS=$ac_save_CXXFLAGS
17533     ac_ext=c
17534 ac_cpp='$CPP $CPPFLAGS'
17535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17538
17539
17540 fi
17541 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17542 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17543   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17544
17545
17546 { echo "$as_me:$LINENO: checking for pid_t" >&5
17547 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17548 if test "${ac_cv_type_pid_t+set}" = set; then
17549   echo $ECHO_N "(cached) $ECHO_C" >&6
17550 else
17551   cat >conftest.$ac_ext <<_ACEOF
17552 /* confdefs.h.  */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h.  */
17557 $ac_includes_default
17558 typedef pid_t ac__type_new_;
17559 int
17560 main ()
17561 {
17562 if ((ac__type_new_ *) 0)
17563   return 0;
17564 if (sizeof (ac__type_new_))
17565   return 0;
17566   ;
17567   return 0;
17568 }
17569 _ACEOF
17570 rm -f conftest.$ac_objext
17571 if { (ac_try="$ac_compile"
17572 case "(($ac_try" in
17573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574   *) ac_try_echo=$ac_try;;
17575 esac
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577   (eval "$ac_compile") 2>conftest.er1
17578   ac_status=$?
17579   grep -v '^ *+' conftest.er1 >conftest.err
17580   rm -f conftest.er1
17581   cat conftest.err >&5
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); } &&
17584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17585   { (case "(($ac_try" in
17586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587   *) ac_try_echo=$ac_try;;
17588 esac
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590   (eval "$ac_try") 2>&5
17591   ac_status=$?
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); }; } &&
17594          { ac_try='test -s conftest.$ac_objext'
17595   { (case "(($ac_try" in
17596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597   *) ac_try_echo=$ac_try;;
17598 esac
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600   (eval "$ac_try") 2>&5
17601   ac_status=$?
17602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603   (exit $ac_status); }; }; then
17604   ac_cv_type_pid_t=yes
17605 else
17606   echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609         ac_cv_type_pid_t=no
17610 fi
17611
17612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613 fi
17614 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17615 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17616 if test $ac_cv_type_pid_t = yes; then
17617   :
17618 else
17619
17620 cat >>confdefs.h <<_ACEOF
17621 #define pid_t int
17622 _ACEOF
17623
17624 fi
17625
17626 { echo "$as_me:$LINENO: checking for size_t" >&5
17627 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17628 if test "${ac_cv_type_size_t+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637 $ac_includes_default
17638 typedef size_t ac__type_new_;
17639 int
17640 main ()
17641 {
17642 if ((ac__type_new_ *) 0)
17643   return 0;
17644 if (sizeof (ac__type_new_))
17645   return 0;
17646   ;
17647   return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext
17651 if { (ac_try="$ac_compile"
17652 case "(($ac_try" in
17653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654   *) ac_try_echo=$ac_try;;
17655 esac
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657   (eval "$ac_compile") 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665   { (case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670   (eval "$ac_try") 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; } &&
17674          { ac_try='test -s conftest.$ac_objext'
17675   { (case "(($ac_try" in
17676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677   *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680   (eval "$ac_try") 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; }; then
17684   ac_cv_type_size_t=yes
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         ac_cv_type_size_t=no
17690 fi
17691
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 fi
17694 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17695 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17696 if test $ac_cv_type_size_t = yes; then
17697   :
17698 else
17699
17700 cat >>confdefs.h <<_ACEOF
17701 #define size_t unsigned int
17702 _ACEOF
17703
17704 fi
17705
17706
17707 cat >>confdefs.h <<_ACEOF
17708 #define RETSIGTYPE void
17709 _ACEOF
17710
17711 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17712 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17713 if test "${ac_cv_struct_tm+set}" = set; then
17714   echo $ECHO_N "(cached) $ECHO_C" >&6
17715 else
17716   cat >conftest.$ac_ext <<_ACEOF
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722 #include <sys/types.h>
17723 #include <time.h>
17724
17725 int
17726 main ()
17727 {
17728 struct tm *tp; tp->tm_sec;
17729   ;
17730   return 0;
17731 }
17732 _ACEOF
17733 rm -f conftest.$ac_objext
17734 if { (ac_try="$ac_compile"
17735 case "(($ac_try" in
17736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737   *) ac_try_echo=$ac_try;;
17738 esac
17739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740   (eval "$ac_compile") 2>conftest.er1
17741   ac_status=$?
17742   grep -v '^ *+' conftest.er1 >conftest.err
17743   rm -f conftest.er1
17744   cat conftest.err >&5
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); } &&
17747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17748   { (case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753   (eval "$ac_try") 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); }; } &&
17757          { ac_try='test -s conftest.$ac_objext'
17758   { (case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_try") 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; }; then
17767   ac_cv_struct_tm=time.h
17768 else
17769   echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772         ac_cv_struct_tm=sys/time.h
17773 fi
17774
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776 fi
17777 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17778 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17779 if test $ac_cv_struct_tm = sys/time.h; then
17780
17781 cat >>confdefs.h <<\_ACEOF
17782 #define TM_IN_SYS_TIME 1
17783 _ACEOF
17784
17785 fi
17786
17787 { echo "$as_me:$LINENO: checking for int64_t" >&5
17788 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17789 if test "${ac_cv_type_int64_t+set}" = set; then
17790   echo $ECHO_N "(cached) $ECHO_C" >&6
17791 else
17792   cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h.  */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h.  */
17798 $ac_includes_default
17799 typedef int64_t ac__type_new_;
17800 int
17801 main ()
17802 {
17803 if ((ac__type_new_ *) 0)
17804   return 0;
17805 if (sizeof (ac__type_new_))
17806   return 0;
17807   ;
17808   return 0;
17809 }
17810 _ACEOF
17811 rm -f conftest.$ac_objext
17812 if { (ac_try="$ac_compile"
17813 case "(($ac_try" in
17814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815   *) ac_try_echo=$ac_try;;
17816 esac
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818   (eval "$ac_compile") 2>conftest.er1
17819   ac_status=$?
17820   grep -v '^ *+' conftest.er1 >conftest.err
17821   rm -f conftest.er1
17822   cat conftest.err >&5
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); } &&
17825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17826   { (case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831   (eval "$ac_try") 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; } &&
17835          { ac_try='test -s conftest.$ac_objext'
17836   { (case "(($ac_try" in
17837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838   *) ac_try_echo=$ac_try;;
17839 esac
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841   (eval "$ac_try") 2>&5
17842   ac_status=$?
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); }; }; then
17845   ac_cv_type_int64_t=yes
17846 else
17847   echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850         ac_cv_type_int64_t=no
17851 fi
17852
17853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854 fi
17855 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17856 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17857 if test $ac_cv_type_int64_t = yes; then
17858
17859 cat >>confdefs.h <<_ACEOF
17860 #define HAVE_INT64_T 1
17861 _ACEOF
17862
17863
17864 else
17865   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17866 echo "$as_me: error: Type int64_t required but not found" >&2;}
17867    { (exit 1); exit 1; }; }
17868 fi
17869
17870 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17871 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17872 if test "${ac_cv_type_uint64_t+set}" = set; then
17873   echo $ECHO_N "(cached) $ECHO_C" >&6
17874 else
17875   cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h.  */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h.  */
17881 $ac_includes_default
17882 typedef uint64_t ac__type_new_;
17883 int
17884 main ()
17885 {
17886 if ((ac__type_new_ *) 0)
17887   return 0;
17888 if (sizeof (ac__type_new_))
17889   return 0;
17890   ;
17891   return 0;
17892 }
17893 _ACEOF
17894 rm -f conftest.$ac_objext
17895 if { (ac_try="$ac_compile"
17896 case "(($ac_try" in
17897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898   *) ac_try_echo=$ac_try;;
17899 esac
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901   (eval "$ac_compile") 2>conftest.er1
17902   ac_status=$?
17903   grep -v '^ *+' conftest.er1 >conftest.err
17904   rm -f conftest.er1
17905   cat conftest.err >&5
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); } &&
17908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17909   { (case "(($ac_try" in
17910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911   *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914   (eval "$ac_try") 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); }; } &&
17918          { ac_try='test -s conftest.$ac_objext'
17919   { (case "(($ac_try" in
17920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921   *) ac_try_echo=$ac_try;;
17922 esac
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924   (eval "$ac_try") 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); }; }; then
17928   ac_cv_type_uint64_t=yes
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933         ac_cv_type_uint64_t=no
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937 fi
17938 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17939 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17940 if test $ac_cv_type_uint64_t = yes; then
17941
17942 cat >>confdefs.h <<_ACEOF
17943 #define HAVE_UINT64_T 1
17944 _ACEOF
17945
17946
17947 else
17948   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17949 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17950 if test "${ac_cv_type_u_int64_t+set}" = set; then
17951   echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953   cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h.  */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h.  */
17959 $ac_includes_default
17960 typedef u_int64_t ac__type_new_;
17961 int
17962 main ()
17963 {
17964 if ((ac__type_new_ *) 0)
17965   return 0;
17966 if (sizeof (ac__type_new_))
17967   return 0;
17968   ;
17969   return 0;
17970 }
17971 _ACEOF
17972 rm -f conftest.$ac_objext
17973 if { (ac_try="$ac_compile"
17974 case "(($ac_try" in
17975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976   *) ac_try_echo=$ac_try;;
17977 esac
17978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17979   (eval "$ac_compile") 2>conftest.er1
17980   ac_status=$?
17981   grep -v '^ *+' conftest.er1 >conftest.err
17982   rm -f conftest.er1
17983   cat conftest.err >&5
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); } &&
17986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17987   { (case "(($ac_try" in
17988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989   *) ac_try_echo=$ac_try;;
17990 esac
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992   (eval "$ac_try") 2>&5
17993   ac_status=$?
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); }; } &&
17996          { ac_try='test -s conftest.$ac_objext'
17997   { (case "(($ac_try" in
17998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999   *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002   (eval "$ac_try") 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); }; }; then
18006   ac_cv_type_u_int64_t=yes
18007 else
18008   echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011         ac_cv_type_u_int64_t=no
18012 fi
18013
18014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18015 fi
18016 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18017 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18018 if test $ac_cv_type_u_int64_t = yes; then
18019
18020 cat >>confdefs.h <<_ACEOF
18021 #define HAVE_U_INT64_T 1
18022 _ACEOF
18023
18024
18025 else
18026   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18027 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18028    { (exit 1); exit 1; }; }
18029 fi
18030
18031 fi
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18043 do
18044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18048   echo $ECHO_N "(cached) $ECHO_C" >&6
18049 else
18050   cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h.  */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h.  */
18056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18058 #define $ac_func innocuous_$ac_func
18059
18060 /* System header to define __stub macros and hopefully few prototypes,
18061     which can conflict with char $ac_func (); below.
18062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18063     <limits.h> exists even on freestanding compilers.  */
18064
18065 #ifdef __STDC__
18066 # include <limits.h>
18067 #else
18068 # include <assert.h>
18069 #endif
18070
18071 #undef $ac_func
18072
18073 /* Override any GCC internal prototype to avoid an error.
18074    Use char because int might match the return type of a GCC
18075    builtin and then its argument prototype would still apply.  */
18076 #ifdef __cplusplus
18077 extern "C"
18078 #endif
18079 char $ac_func ();
18080 /* The GNU C library defines this for functions which it implements
18081     to always fail with ENOSYS.  Some functions are actually named
18082     something starting with __ and the normal name is an alias.  */
18083 #if defined __stub_$ac_func || defined __stub___$ac_func
18084 choke me
18085 #endif
18086
18087 int
18088 main ()
18089 {
18090 return $ac_func ();
18091   ;
18092   return 0;
18093 }
18094 _ACEOF
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (ac_try="$ac_link"
18097 case "(($ac_try" in
18098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099   *) ac_try_echo=$ac_try;;
18100 esac
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102   (eval "$ac_link") 2>conftest.er1
18103   ac_status=$?
18104   grep -v '^ *+' conftest.er1 >conftest.err
18105   rm -f conftest.er1
18106   cat conftest.err >&5
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); } &&
18109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18110   { (case "(($ac_try" in
18111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112   *) ac_try_echo=$ac_try;;
18113 esac
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115   (eval "$ac_try") 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; } &&
18119          { ac_try='test -s conftest$ac_exeext'
18120   { (case "(($ac_try" in
18121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122   *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125   (eval "$ac_try") 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; }; then
18129   eval "$as_ac_var=yes"
18130 else
18131   echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18133
18134         eval "$as_ac_var=no"
18135 fi
18136
18137 rm -f core conftest.err conftest.$ac_objext \
18138       conftest$ac_exeext conftest.$ac_ext
18139 fi
18140 ac_res=`eval echo '${'$as_ac_var'}'`
18141                { echo "$as_me:$LINENO: result: $ac_res" >&5
18142 echo "${ECHO_T}$ac_res" >&6; }
18143 if test `eval echo '${'$as_ac_var'}'` = yes; then
18144   cat >>confdefs.h <<_ACEOF
18145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18146 _ACEOF
18147
18148 fi
18149 done
18150
18151
18152
18153
18154
18155 for ac_func in powf fmodf strtof round
18156 do
18157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18161   echo $ECHO_N "(cached) $ECHO_C" >&6
18162 else
18163   cat >conftest.$ac_ext <<_ACEOF
18164 /* confdefs.h.  */
18165 _ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h.  */
18169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18171 #define $ac_func innocuous_$ac_func
18172
18173 /* System header to define __stub macros and hopefully few prototypes,
18174     which can conflict with char $ac_func (); below.
18175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18176     <limits.h> exists even on freestanding compilers.  */
18177
18178 #ifdef __STDC__
18179 # include <limits.h>
18180 #else
18181 # include <assert.h>
18182 #endif
18183
18184 #undef $ac_func
18185
18186 /* Override any GCC internal prototype to avoid an error.
18187    Use char because int might match the return type of a GCC
18188    builtin and then its argument prototype would still apply.  */
18189 #ifdef __cplusplus
18190 extern "C"
18191 #endif
18192 char $ac_func ();
18193 /* The GNU C library defines this for functions which it implements
18194     to always fail with ENOSYS.  Some functions are actually named
18195     something starting with __ and the normal name is an alias.  */
18196 #if defined __stub_$ac_func || defined __stub___$ac_func
18197 choke me
18198 #endif
18199
18200 int
18201 main ()
18202 {
18203 return $ac_func ();
18204   ;
18205   return 0;
18206 }
18207 _ACEOF
18208 rm -f conftest.$ac_objext conftest$ac_exeext
18209 if { (ac_try="$ac_link"
18210 case "(($ac_try" in
18211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212   *) ac_try_echo=$ac_try;;
18213 esac
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215   (eval "$ac_link") 2>conftest.er1
18216   ac_status=$?
18217   grep -v '^ *+' conftest.er1 >conftest.err
18218   rm -f conftest.er1
18219   cat conftest.err >&5
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); } &&
18222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18223   { (case "(($ac_try" in
18224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225   *) ac_try_echo=$ac_try;;
18226 esac
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228   (eval "$ac_try") 2>&5
18229   ac_status=$?
18230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231   (exit $ac_status); }; } &&
18232          { ac_try='test -s conftest$ac_exeext'
18233   { (case "(($ac_try" in
18234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235   *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238   (eval "$ac_try") 2>&5
18239   ac_status=$?
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); }; }; then
18242   eval "$as_ac_var=yes"
18243 else
18244   echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18246
18247         eval "$as_ac_var=no"
18248 fi
18249
18250 rm -f core conftest.err conftest.$ac_objext \
18251       conftest$ac_exeext conftest.$ac_ext
18252 fi
18253 ac_res=`eval echo '${'$as_ac_var'}'`
18254                { echo "$as_me:$LINENO: result: $ac_res" >&5
18255 echo "${ECHO_T}$ac_res" >&6; }
18256 if test `eval echo '${'$as_ac_var'}'` = yes; then
18257   cat >>confdefs.h <<_ACEOF
18258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18259 _ACEOF
18260
18261 fi
18262 done
18263
18264
18265
18266
18267
18268
18269 for ac_func in log log2 log10 exp exp2
18270 do
18271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18275   echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277   cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h.  */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h.  */
18283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18285 #define $ac_func innocuous_$ac_func
18286
18287 /* System header to define __stub macros and hopefully few prototypes,
18288     which can conflict with char $ac_func (); below.
18289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290     <limits.h> exists even on freestanding compilers.  */
18291
18292 #ifdef __STDC__
18293 # include <limits.h>
18294 #else
18295 # include <assert.h>
18296 #endif
18297
18298 #undef $ac_func
18299
18300 /* Override any GCC internal prototype to avoid an error.
18301    Use char because int might match the return type of a GCC
18302    builtin and then its argument prototype would still apply.  */
18303 #ifdef __cplusplus
18304 extern "C"
18305 #endif
18306 char $ac_func ();
18307 /* The GNU C library defines this for functions which it implements
18308     to always fail with ENOSYS.  Some functions are actually named
18309     something starting with __ and the normal name is an alias.  */
18310 #if defined __stub_$ac_func || defined __stub___$ac_func
18311 choke me
18312 #endif
18313
18314 int
18315 main ()
18316 {
18317 return $ac_func ();
18318   ;
18319   return 0;
18320 }
18321 _ACEOF
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (ac_try="$ac_link"
18324 case "(($ac_try" in
18325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326   *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329   (eval "$ac_link") 2>conftest.er1
18330   ac_status=$?
18331   grep -v '^ *+' conftest.er1 >conftest.err
18332   rm -f conftest.er1
18333   cat conftest.err >&5
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } &&
18336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18337   { (case "(($ac_try" in
18338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339   *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342   (eval "$ac_try") 2>&5
18343   ac_status=$?
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); }; } &&
18346          { ac_try='test -s conftest$ac_exeext'
18347   { (case "(($ac_try" in
18348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349   *) ac_try_echo=$ac_try;;
18350 esac
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352   (eval "$ac_try") 2>&5
18353   ac_status=$?
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); }; }; then
18356   eval "$as_ac_var=yes"
18357 else
18358   echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18360
18361         eval "$as_ac_var=no"
18362 fi
18363
18364 rm -f core conftest.err conftest.$ac_objext \
18365       conftest$ac_exeext conftest.$ac_ext
18366 fi
18367 ac_res=`eval echo '${'$as_ac_var'}'`
18368                { echo "$as_me:$LINENO: result: $ac_res" >&5
18369 echo "${ECHO_T}$ac_res" >&6; }
18370 if test `eval echo '${'$as_ac_var'}'` = yes; then
18371   cat >>confdefs.h <<_ACEOF
18372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18373 _ACEOF
18374
18375 fi
18376 done
18377
18378
18379
18380
18381
18382
18383 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18384 do
18385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18389   echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391   cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h.  */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h.  */
18397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18399 #define $ac_func innocuous_$ac_func
18400
18401 /* System header to define __stub macros and hopefully few prototypes,
18402     which can conflict with char $ac_func (); below.
18403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18404     <limits.h> exists even on freestanding compilers.  */
18405
18406 #ifdef __STDC__
18407 # include <limits.h>
18408 #else
18409 # include <assert.h>
18410 #endif
18411
18412 #undef $ac_func
18413
18414 /* Override any GCC internal prototype to avoid an error.
18415    Use char because int might match the return type of a GCC
18416    builtin and then its argument prototype would still apply.  */
18417 #ifdef __cplusplus
18418 extern "C"
18419 #endif
18420 char $ac_func ();
18421 /* The GNU C library defines this for functions which it implements
18422     to always fail with ENOSYS.  Some functions are actually named
18423     something starting with __ and the normal name is an alias.  */
18424 #if defined __stub_$ac_func || defined __stub___$ac_func
18425 choke me
18426 #endif
18427
18428 int
18429 main ()
18430 {
18431 return $ac_func ();
18432   ;
18433   return 0;
18434 }
18435 _ACEOF
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (ac_try="$ac_link"
18438 case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_link") 2>conftest.er1
18444   ac_status=$?
18445   grep -v '^ *+' conftest.er1 >conftest.err
18446   rm -f conftest.er1
18447   cat conftest.err >&5
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); } &&
18450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18451   { (case "(($ac_try" in
18452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453   *) ac_try_echo=$ac_try;;
18454 esac
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456   (eval "$ac_try") 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); }; } &&
18460          { ac_try='test -s conftest$ac_exeext'
18461   { (case "(($ac_try" in
18462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463   *) ac_try_echo=$ac_try;;
18464 esac
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466   (eval "$ac_try") 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; }; then
18470   eval "$as_ac_var=yes"
18471 else
18472   echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18474
18475         eval "$as_ac_var=no"
18476 fi
18477
18478 rm -f core conftest.err conftest.$ac_objext \
18479       conftest$ac_exeext conftest.$ac_ext
18480 fi
18481 ac_res=`eval echo '${'$as_ac_var'}'`
18482                { echo "$as_me:$LINENO: result: $ac_res" >&5
18483 echo "${ECHO_T}$ac_res" >&6; }
18484 if test `eval echo '${'$as_ac_var'}'` = yes; then
18485   cat >>confdefs.h <<_ACEOF
18486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18487 _ACEOF
18488
18489 fi
18490 done
18491
18492
18493
18494
18495 for ac_func in isatty mkdtemp mkstemp
18496 do
18497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18501   echo $ECHO_N "(cached) $ECHO_C" >&6
18502 else
18503   cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h.  */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h.  */
18509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18511 #define $ac_func innocuous_$ac_func
18512
18513 /* System header to define __stub macros and hopefully few prototypes,
18514     which can conflict with char $ac_func (); below.
18515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18516     <limits.h> exists even on freestanding compilers.  */
18517
18518 #ifdef __STDC__
18519 # include <limits.h>
18520 #else
18521 # include <assert.h>
18522 #endif
18523
18524 #undef $ac_func
18525
18526 /* Override any GCC internal prototype to avoid an error.
18527    Use char because int might match the return type of a GCC
18528    builtin and then its argument prototype would still apply.  */
18529 #ifdef __cplusplus
18530 extern "C"
18531 #endif
18532 char $ac_func ();
18533 /* The GNU C library defines this for functions which it implements
18534     to always fail with ENOSYS.  Some functions are actually named
18535     something starting with __ and the normal name is an alias.  */
18536 #if defined __stub_$ac_func || defined __stub___$ac_func
18537 choke me
18538 #endif
18539
18540 int
18541 main ()
18542 {
18543 return $ac_func ();
18544   ;
18545   return 0;
18546 }
18547 _ACEOF
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552   *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555   (eval "$ac_link") 2>conftest.er1
18556   ac_status=$?
18557   grep -v '^ *+' conftest.er1 >conftest.err
18558   rm -f conftest.er1
18559   cat conftest.err >&5
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); } &&
18562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18563   { (case "(($ac_try" in
18564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565   *) ac_try_echo=$ac_try;;
18566 esac
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568   (eval "$ac_try") 2>&5
18569   ac_status=$?
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); }; } &&
18572          { ac_try='test -s conftest$ac_exeext'
18573   { (case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578   (eval "$ac_try") 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; }; then
18582   eval "$as_ac_var=yes"
18583 else
18584   echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18586
18587         eval "$as_ac_var=no"
18588 fi
18589
18590 rm -f core conftest.err conftest.$ac_objext \
18591       conftest$ac_exeext conftest.$ac_ext
18592 fi
18593 ac_res=`eval echo '${'$as_ac_var'}'`
18594                { echo "$as_me:$LINENO: result: $ac_res" >&5
18595 echo "${ECHO_T}$ac_res" >&6; }
18596 if test `eval echo '${'$as_ac_var'}'` = yes; then
18597   cat >>confdefs.h <<_ACEOF
18598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18599 _ACEOF
18600
18601 fi
18602 done
18603
18604
18605
18606
18607
18608
18609
18610
18611 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18612 do
18613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18617   echo $ECHO_N "(cached) $ECHO_C" >&6
18618 else
18619   cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h.  */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h.  */
18625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18627 #define $ac_func innocuous_$ac_func
18628
18629 /* System header to define __stub macros and hopefully few prototypes,
18630     which can conflict with char $ac_func (); below.
18631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18632     <limits.h> exists even on freestanding compilers.  */
18633
18634 #ifdef __STDC__
18635 # include <limits.h>
18636 #else
18637 # include <assert.h>
18638 #endif
18639
18640 #undef $ac_func
18641
18642 /* Override any GCC internal prototype to avoid an error.
18643    Use char because int might match the return type of a GCC
18644    builtin and then its argument prototype would still apply.  */
18645 #ifdef __cplusplus
18646 extern "C"
18647 #endif
18648 char $ac_func ();
18649 /* The GNU C library defines this for functions which it implements
18650     to always fail with ENOSYS.  Some functions are actually named
18651     something starting with __ and the normal name is an alias.  */
18652 #if defined __stub_$ac_func || defined __stub___$ac_func
18653 choke me
18654 #endif
18655
18656 int
18657 main ()
18658 {
18659 return $ac_func ();
18660   ;
18661   return 0;
18662 }
18663 _ACEOF
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668   *) ac_try_echo=$ac_try;;
18669 esac
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671   (eval "$ac_link") 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } &&
18678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679   { (case "(($ac_try" in
18680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681   *) ac_try_echo=$ac_try;;
18682 esac
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684   (eval "$ac_try") 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); }; } &&
18688          { ac_try='test -s conftest$ac_exeext'
18689   { (case "(($ac_try" in
18690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691   *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694   (eval "$ac_try") 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; }; then
18698   eval "$as_ac_var=yes"
18699 else
18700   echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18702
18703         eval "$as_ac_var=no"
18704 fi
18705
18706 rm -f core conftest.err conftest.$ac_objext \
18707       conftest$ac_exeext conftest.$ac_ext
18708 fi
18709 ac_res=`eval echo '${'$as_ac_var'}'`
18710                { echo "$as_me:$LINENO: result: $ac_res" >&5
18711 echo "${ECHO_T}$ac_res" >&6; }
18712 if test `eval echo '${'$as_ac_var'}'` = yes; then
18713   cat >>confdefs.h <<_ACEOF
18714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18715 _ACEOF
18716
18717 fi
18718 done
18719
18720
18721
18722
18723
18724 for ac_func in strerror strerror_r setenv arc4random
18725 do
18726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18730   echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732   cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h.  */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h.  */
18738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18740 #define $ac_func innocuous_$ac_func
18741
18742 /* System header to define __stub macros and hopefully few prototypes,
18743     which can conflict with char $ac_func (); below.
18744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18745     <limits.h> exists even on freestanding compilers.  */
18746
18747 #ifdef __STDC__
18748 # include <limits.h>
18749 #else
18750 # include <assert.h>
18751 #endif
18752
18753 #undef $ac_func
18754
18755 /* Override any GCC internal prototype to avoid an error.
18756    Use char because int might match the return type of a GCC
18757    builtin and then its argument prototype would still apply.  */
18758 #ifdef __cplusplus
18759 extern "C"
18760 #endif
18761 char $ac_func ();
18762 /* The GNU C library defines this for functions which it implements
18763     to always fail with ENOSYS.  Some functions are actually named
18764     something starting with __ and the normal name is an alias.  */
18765 #if defined __stub_$ac_func || defined __stub___$ac_func
18766 choke me
18767 #endif
18768
18769 int
18770 main ()
18771 {
18772 return $ac_func ();
18773   ;
18774   return 0;
18775 }
18776 _ACEOF
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781   *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784   (eval "$ac_link") 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } &&
18791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18792   { (case "(($ac_try" in
18793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794   *) ac_try_echo=$ac_try;;
18795 esac
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797   (eval "$ac_try") 2>&5
18798   ac_status=$?
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); }; } &&
18801          { ac_try='test -s conftest$ac_exeext'
18802   { (case "(($ac_try" in
18803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804   *) ac_try_echo=$ac_try;;
18805 esac
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807   (eval "$ac_try") 2>&5
18808   ac_status=$?
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); }; }; then
18811   eval "$as_ac_var=yes"
18812 else
18813   echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18815
18816         eval "$as_ac_var=no"
18817 fi
18818
18819 rm -f core conftest.err conftest.$ac_objext \
18820       conftest$ac_exeext conftest.$ac_ext
18821 fi
18822 ac_res=`eval echo '${'$as_ac_var'}'`
18823                { echo "$as_me:$LINENO: result: $ac_res" >&5
18824 echo "${ECHO_T}$ac_res" >&6; }
18825 if test `eval echo '${'$as_ac_var'}'` = yes; then
18826   cat >>confdefs.h <<_ACEOF
18827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18828 _ACEOF
18829
18830 fi
18831 done
18832
18833
18834
18835
18836
18837 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18838 do
18839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18843   echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845   cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h.  */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h.  */
18851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18853 #define $ac_func innocuous_$ac_func
18854
18855 /* System header to define __stub macros and hopefully few prototypes,
18856     which can conflict with char $ac_func (); below.
18857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18858     <limits.h> exists even on freestanding compilers.  */
18859
18860 #ifdef __STDC__
18861 # include <limits.h>
18862 #else
18863 # include <assert.h>
18864 #endif
18865
18866 #undef $ac_func
18867
18868 /* Override any GCC internal prototype to avoid an error.
18869    Use char because int might match the return type of a GCC
18870    builtin and then its argument prototype would still apply.  */
18871 #ifdef __cplusplus
18872 extern "C"
18873 #endif
18874 char $ac_func ();
18875 /* The GNU C library defines this for functions which it implements
18876     to always fail with ENOSYS.  Some functions are actually named
18877     something starting with __ and the normal name is an alias.  */
18878 #if defined __stub_$ac_func || defined __stub___$ac_func
18879 choke me
18880 #endif
18881
18882 int
18883 main ()
18884 {
18885 return $ac_func ();
18886   ;
18887   return 0;
18888 }
18889 _ACEOF
18890 rm -f conftest.$ac_objext conftest$ac_exeext
18891 if { (ac_try="$ac_link"
18892 case "(($ac_try" in
18893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894   *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897   (eval "$ac_link") 2>conftest.er1
18898   ac_status=$?
18899   grep -v '^ *+' conftest.er1 >conftest.err
18900   rm -f conftest.er1
18901   cat conftest.err >&5
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); } &&
18904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18905   { (case "(($ac_try" in
18906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907   *) ac_try_echo=$ac_try;;
18908 esac
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910   (eval "$ac_try") 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; } &&
18914          { ac_try='test -s conftest$ac_exeext'
18915   { (case "(($ac_try" in
18916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917   *) ac_try_echo=$ac_try;;
18918 esac
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920   (eval "$ac_try") 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; }; then
18924   eval "$as_ac_var=yes"
18925 else
18926   echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18928
18929         eval "$as_ac_var=no"
18930 fi
18931
18932 rm -f core conftest.err conftest.$ac_objext \
18933       conftest$ac_exeext conftest.$ac_ext
18934 fi
18935 ac_res=`eval echo '${'$as_ac_var'}'`
18936                { echo "$as_me:$LINENO: result: $ac_res" >&5
18937 echo "${ECHO_T}$ac_res" >&6; }
18938 if test `eval echo '${'$as_ac_var'}'` = yes; then
18939   cat >>confdefs.h <<_ACEOF
18940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18941 _ACEOF
18942
18943 fi
18944 done
18945
18946
18947
18948
18949
18950
18951 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18952 do
18953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18957   echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959   cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h.  */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h.  */
18965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18967 #define $ac_func innocuous_$ac_func
18968
18969 /* System header to define __stub macros and hopefully few prototypes,
18970     which can conflict with char $ac_func (); below.
18971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18972     <limits.h> exists even on freestanding compilers.  */
18973
18974 #ifdef __STDC__
18975 # include <limits.h>
18976 #else
18977 # include <assert.h>
18978 #endif
18979
18980 #undef $ac_func
18981
18982 /* Override any GCC internal prototype to avoid an error.
18983    Use char because int might match the return type of a GCC
18984    builtin and then its argument prototype would still apply.  */
18985 #ifdef __cplusplus
18986 extern "C"
18987 #endif
18988 char $ac_func ();
18989 /* The GNU C library defines this for functions which it implements
18990     to always fail with ENOSYS.  Some functions are actually named
18991     something starting with __ and the normal name is an alias.  */
18992 #if defined __stub_$ac_func || defined __stub___$ac_func
18993 choke me
18994 #endif
18995
18996 int
18997 main ()
18998 {
18999 return $ac_func ();
19000   ;
19001   return 0;
19002 }
19003 _ACEOF
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (ac_try="$ac_link"
19006 case "(($ac_try" in
19007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008   *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011   (eval "$ac_link") 2>conftest.er1
19012   ac_status=$?
19013   grep -v '^ *+' conftest.er1 >conftest.err
19014   rm -f conftest.er1
19015   cat conftest.err >&5
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); } &&
19018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19019   { (case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_try") 2>&5
19025   ac_status=$?
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); }; } &&
19028          { ac_try='test -s conftest$ac_exeext'
19029   { (case "(($ac_try" in
19030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031   *) ac_try_echo=$ac_try;;
19032 esac
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034   (eval "$ac_try") 2>&5
19035   ac_status=$?
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); }; }; then
19038   eval "$as_ac_var=yes"
19039 else
19040   echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19042
19043         eval "$as_ac_var=no"
19044 fi
19045
19046 rm -f core conftest.err conftest.$ac_objext \
19047       conftest$ac_exeext conftest.$ac_ext
19048 fi
19049 ac_res=`eval echo '${'$as_ac_var'}'`
19050                { echo "$as_me:$LINENO: result: $ac_res" >&5
19051 echo "${ECHO_T}$ac_res" >&6; }
19052 if test `eval echo '${'$as_ac_var'}'` = yes; then
19053   cat >>confdefs.h <<_ACEOF
19054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19055 _ACEOF
19056
19057 fi
19058 done
19059
19060 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19061 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19062 if test "${llvm_cv_c_printf_a+set}" = set; then
19063   echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065   ac_ext=c
19066 ac_cpp='$CPP $CPPFLAGS'
19067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19070
19071  if test "$cross_compiling" = yes; then
19072   llvmac_cv_c_printf_a=no
19073 else
19074   cat >conftest.$ac_ext <<_ACEOF
19075
19076   /* confdefs.h.  */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h.  */
19081
19082 #include <stdio.h>
19083 #include <stdlib.h>
19084
19085 int
19086 main ()
19087 {
19088
19089 volatile double A, B;
19090 char Buffer[100];
19091 A = 1;
19092 A /= 10.0;
19093 sprintf(Buffer, "%a", A);
19094 B = atof(Buffer);
19095 if (A != B)
19096   return (1);
19097 if (A != 0x1.999999999999ap-4)
19098   return (1);
19099 return (0);
19100   ;
19101   return 0;
19102 }
19103 _ACEOF
19104 rm -f conftest$ac_exeext
19105 if { (ac_try="$ac_link"
19106 case "(($ac_try" in
19107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108   *) ac_try_echo=$ac_try;;
19109 esac
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111   (eval "$ac_link") 2>&5
19112   ac_status=$?
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19115   { (case "(($ac_try" in
19116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117   *) ac_try_echo=$ac_try;;
19118 esac
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120   (eval "$ac_try") 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); }; }; then
19124   llvm_cv_c_printf_a=yes
19125 else
19126   echo "$as_me: program exited with status $ac_status" >&5
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19129
19130 ( exit $ac_status )
19131 llvmac_cv_c_printf_a=no
19132 fi
19133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19134 fi
19135
19136
19137  ac_ext=c
19138 ac_cpp='$CPP $CPPFLAGS'
19139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19142
19143 fi
19144 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19145 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19146  if test "$llvm_cv_c_printf_a" = "yes"; then
19147
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE_PRINTF_A 1
19150 _ACEOF
19151
19152  fi
19153
19154
19155
19156   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19157 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19158 if test "${ac_cv_func_rand48+set}" = set; then
19159   echo $ECHO_N "(cached) $ECHO_C" >&6
19160 else
19161
19162     ac_ext=cpp
19163 ac_cpp='$CXXCPP $CPPFLAGS'
19164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19167
19168     cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174 #include <stdlib.h>
19175 int
19176 main ()
19177 {
19178 srand48(0);lrand48();drand48();
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext
19184 if { (ac_try="$ac_compile"
19185 case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_compile") 2>conftest.er1
19191   ac_status=$?
19192   grep -v '^ *+' conftest.er1 >conftest.err
19193   rm -f conftest.er1
19194   cat conftest.err >&5
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } &&
19197          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19198   { (case "(($ac_try" in
19199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200   *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203   (eval "$ac_try") 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; } &&
19207          { ac_try='test -s conftest.$ac_objext'
19208   { (case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_try") 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; }; then
19217   ac_cv_func_rand48=yes
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222         ac_cv_func_rand48=no
19223 fi
19224
19225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226     ac_ext=c
19227 ac_cpp='$CPP $CPPFLAGS'
19228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231
19232
19233 fi
19234 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19235 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19236
19237 if test "$ac_cv_func_rand48" = "yes" ; then
19238
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_RAND48 1
19241 _ACEOF
19242
19243 fi
19244
19245
19246 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19247 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19248 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19249   echo $ECHO_N "(cached) $ECHO_C" >&6
19250 else
19251   cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h.  */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h.  */
19257 $ac_includes_default
19258 int
19259 main ()
19260 {
19261 #ifndef strerror_s
19262   char *p = (char *) strerror_s;
19263   return !p;
19264 #endif
19265
19266   ;
19267   return 0;
19268 }
19269 _ACEOF
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274   *) ac_try_echo=$ac_try;;
19275 esac
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277   (eval "$ac_compile") 2>conftest.er1
19278   ac_status=$?
19279   grep -v '^ *+' conftest.er1 >conftest.err
19280   rm -f conftest.er1
19281   cat conftest.err >&5
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); } &&
19284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19285   { (case "(($ac_try" in
19286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287   *) ac_try_echo=$ac_try;;
19288 esac
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290   (eval "$ac_try") 2>&5
19291   ac_status=$?
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); }; } &&
19294          { ac_try='test -s conftest.$ac_objext'
19295   { (case "(($ac_try" in
19296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297   *) ac_try_echo=$ac_try;;
19298 esac
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300   (eval "$ac_try") 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; }; then
19304   ac_cv_have_decl_strerror_s=yes
19305 else
19306   echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309         ac_cv_have_decl_strerror_s=no
19310 fi
19311
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313 fi
19314 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19315 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19316 if test $ac_cv_have_decl_strerror_s = yes; then
19317
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_DECL_STRERROR_S 1
19320 _ACEOF
19321
19322
19323 else
19324   cat >>confdefs.h <<_ACEOF
19325 #define HAVE_DECL_STRERROR_S 0
19326 _ACEOF
19327
19328
19329 fi
19330
19331
19332
19333 if test "$llvm_cv_os_type" = "MingW" ; then
19334   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19335 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19336 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19337   echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339   ac_check_lib_save_LIBS=$LIBS
19340 LIBS="-lgcc  $LIBS"
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347
19348 /* Override any GCC internal prototype to avoid an error.
19349    Use char because int might match the return type of a GCC
19350    builtin and then its argument prototype would still apply.  */
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 char _alloca ();
19355 int
19356 main ()
19357 {
19358 return _alloca ();
19359   ;
19360   return 0;
19361 }
19362 _ACEOF
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (ac_try="$ac_link"
19365 case "(($ac_try" in
19366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367   *) ac_try_echo=$ac_try;;
19368 esac
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370   (eval "$ac_link") 2>conftest.er1
19371   ac_status=$?
19372   grep -v '^ *+' conftest.er1 >conftest.err
19373   rm -f conftest.er1
19374   cat conftest.err >&5
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); } &&
19377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19378   { (case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_try") 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; } &&
19387          { ac_try='test -s conftest$ac_exeext'
19388   { (case "(($ac_try" in
19389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390   *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393   (eval "$ac_try") 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; }; then
19397   ac_cv_lib_gcc__alloca=yes
19398 else
19399   echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402         ac_cv_lib_gcc__alloca=no
19403 fi
19404
19405 rm -f core conftest.err conftest.$ac_objext \
19406       conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19408 fi
19409 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19410 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19411 if test $ac_cv_lib_gcc__alloca = yes; then
19412
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE__ALLOCA 1
19415 _ACEOF
19416
19417 fi
19418
19419   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19420 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19421 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   ac_check_lib_save_LIBS=$LIBS
19425 LIBS="-lgcc  $LIBS"
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432
19433 /* Override any GCC internal prototype to avoid an error.
19434    Use char because int might match the return type of a GCC
19435    builtin and then its argument prototype would still apply.  */
19436 #ifdef __cplusplus
19437 extern "C"
19438 #endif
19439 char __alloca ();
19440 int
19441 main ()
19442 {
19443 return __alloca ();
19444   ;
19445   return 0;
19446 }
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452   *) ac_try_echo=$ac_try;;
19453 esac
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455   (eval "$ac_link") 2>conftest.er1
19456   ac_status=$?
19457   grep -v '^ *+' conftest.er1 >conftest.err
19458   rm -f conftest.er1
19459   cat conftest.err >&5
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); } &&
19462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19463   { (case "(($ac_try" in
19464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465   *) ac_try_echo=$ac_try;;
19466 esac
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468   (eval "$ac_try") 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; } &&
19472          { ac_try='test -s conftest$ac_exeext'
19473   { (case "(($ac_try" in
19474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475   *) ac_try_echo=$ac_try;;
19476 esac
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478   (eval "$ac_try") 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   ac_cv_lib_gcc___alloca=yes
19483 else
19484   echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487         ac_cv_lib_gcc___alloca=no
19488 fi
19489
19490 rm -f core conftest.err conftest.$ac_objext \
19491       conftest$ac_exeext conftest.$ac_ext
19492 LIBS=$ac_check_lib_save_LIBS
19493 fi
19494 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19495 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19496 if test $ac_cv_lib_gcc___alloca = yes; then
19497
19498 cat >>confdefs.h <<\_ACEOF
19499 #define HAVE___ALLOCA 1
19500 _ACEOF
19501
19502 fi
19503
19504   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19505 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19506 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19507   echo $ECHO_N "(cached) $ECHO_C" >&6
19508 else
19509   ac_check_lib_save_LIBS=$LIBS
19510 LIBS="-lgcc  $LIBS"
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h.  */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h.  */
19517
19518 /* Override any GCC internal prototype to avoid an error.
19519    Use char because int might match the return type of a GCC
19520    builtin and then its argument prototype would still apply.  */
19521 #ifdef __cplusplus
19522 extern "C"
19523 #endif
19524 char __chkstk ();
19525 int
19526 main ()
19527 {
19528 return __chkstk ();
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_link") 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19548   { (case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553   (eval "$ac_try") 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; } &&
19557          { ac_try='test -s conftest$ac_exeext'
19558   { (case "(($ac_try" in
19559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560   *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563   (eval "$ac_try") 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; }; then
19567   ac_cv_lib_gcc___chkstk=yes
19568 else
19569   echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         ac_cv_lib_gcc___chkstk=no
19573 fi
19574
19575 rm -f core conftest.err conftest.$ac_objext \
19576       conftest$ac_exeext conftest.$ac_ext
19577 LIBS=$ac_check_lib_save_LIBS
19578 fi
19579 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19580 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19581 if test $ac_cv_lib_gcc___chkstk = yes; then
19582
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE___CHKSTK 1
19585 _ACEOF
19586
19587 fi
19588
19589   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19590 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19591 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   ac_check_lib_save_LIBS=$LIBS
19595 LIBS="-lgcc  $LIBS"
19596 cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h.  */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h.  */
19602
19603 /* Override any GCC internal prototype to avoid an error.
19604    Use char because int might match the return type of a GCC
19605    builtin and then its argument prototype would still apply.  */
19606 #ifdef __cplusplus
19607 extern "C"
19608 #endif
19609 char ___chkstk ();
19610 int
19611 main ()
19612 {
19613 return ___chkstk ();
19614   ;
19615   return 0;
19616 }
19617 _ACEOF
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (ac_try="$ac_link"
19620 case "(($ac_try" in
19621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622   *) ac_try_echo=$ac_try;;
19623 esac
19624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625   (eval "$ac_link") 2>conftest.er1
19626   ac_status=$?
19627   grep -v '^ *+' conftest.er1 >conftest.err
19628   rm -f conftest.er1
19629   cat conftest.err >&5
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); } &&
19632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19633   { (case "(($ac_try" in
19634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635   *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638   (eval "$ac_try") 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; } &&
19642          { ac_try='test -s conftest$ac_exeext'
19643   { (case "(($ac_try" in
19644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645   *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648   (eval "$ac_try") 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; }; then
19652   ac_cv_lib_gcc____chkstk=yes
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657         ac_cv_lib_gcc____chkstk=no
19658 fi
19659
19660 rm -f core conftest.err conftest.$ac_objext \
19661       conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19663 fi
19664 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19665 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19666 if test $ac_cv_lib_gcc____chkstk = yes; then
19667
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE____CHKSTK 1
19670 _ACEOF
19671
19672 fi
19673
19674
19675   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19676 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19677 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19678   echo $ECHO_N "(cached) $ECHO_C" >&6
19679 else
19680   ac_check_lib_save_LIBS=$LIBS
19681 LIBS="-lgcc  $LIBS"
19682 cat >conftest.$ac_ext <<_ACEOF
19683 /* confdefs.h.  */
19684 _ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h.  */
19688
19689 /* Override any GCC internal prototype to avoid an error.
19690    Use char because int might match the return type of a GCC
19691    builtin and then its argument prototype would still apply.  */
19692 #ifdef __cplusplus
19693 extern "C"
19694 #endif
19695 char __ashldi3 ();
19696 int
19697 main ()
19698 {
19699 return __ashldi3 ();
19700   ;
19701   return 0;
19702 }
19703 _ACEOF
19704 rm -f conftest.$ac_objext conftest$ac_exeext
19705 if { (ac_try="$ac_link"
19706 case "(($ac_try" in
19707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708   *) ac_try_echo=$ac_try;;
19709 esac
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711   (eval "$ac_link") 2>conftest.er1
19712   ac_status=$?
19713   grep -v '^ *+' conftest.er1 >conftest.err
19714   rm -f conftest.er1
19715   cat conftest.err >&5
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); } &&
19718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19719   { (case "(($ac_try" in
19720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721   *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724   (eval "$ac_try") 2>&5
19725   ac_status=$?
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); }; } &&
19728          { ac_try='test -s conftest$ac_exeext'
19729   { (case "(($ac_try" in
19730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731   *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734   (eval "$ac_try") 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); }; }; then
19738   ac_cv_lib_gcc___ashldi3=yes
19739 else
19740   echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743         ac_cv_lib_gcc___ashldi3=no
19744 fi
19745
19746 rm -f core conftest.err conftest.$ac_objext \
19747       conftest$ac_exeext conftest.$ac_ext
19748 LIBS=$ac_check_lib_save_LIBS
19749 fi
19750 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19751 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19752 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19753
19754 cat >>confdefs.h <<\_ACEOF
19755 #define HAVE___ASHLDI3 1
19756 _ACEOF
19757
19758 fi
19759
19760   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19761 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19762 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19763   echo $ECHO_N "(cached) $ECHO_C" >&6
19764 else
19765   ac_check_lib_save_LIBS=$LIBS
19766 LIBS="-lgcc  $LIBS"
19767 cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773
19774 /* Override any GCC internal prototype to avoid an error.
19775    Use char because int might match the return type of a GCC
19776    builtin and then its argument prototype would still apply.  */
19777 #ifdef __cplusplus
19778 extern "C"
19779 #endif
19780 char __ashrdi3 ();
19781 int
19782 main ()
19783 {
19784 return __ashrdi3 ();
19785   ;
19786   return 0;
19787 }
19788 _ACEOF
19789 rm -f conftest.$ac_objext conftest$ac_exeext
19790 if { (ac_try="$ac_link"
19791 case "(($ac_try" in
19792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793   *) ac_try_echo=$ac_try;;
19794 esac
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796   (eval "$ac_link") 2>conftest.er1
19797   ac_status=$?
19798   grep -v '^ *+' conftest.er1 >conftest.err
19799   rm -f conftest.er1
19800   cat conftest.err >&5
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); } &&
19803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19804   { (case "(($ac_try" in
19805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806   *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809   (eval "$ac_try") 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; } &&
19813          { ac_try='test -s conftest$ac_exeext'
19814   { (case "(($ac_try" in
19815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816   *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819   (eval "$ac_try") 2>&5
19820   ac_status=$?
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); }; }; then
19823   ac_cv_lib_gcc___ashrdi3=yes
19824 else
19825   echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828         ac_cv_lib_gcc___ashrdi3=no
19829 fi
19830
19831 rm -f core conftest.err conftest.$ac_objext \
19832       conftest$ac_exeext conftest.$ac_ext
19833 LIBS=$ac_check_lib_save_LIBS
19834 fi
19835 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19836 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19837 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19838
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE___ASHRDI3 1
19841 _ACEOF
19842
19843 fi
19844
19845   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19846 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19847 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19848   echo $ECHO_N "(cached) $ECHO_C" >&6
19849 else
19850   ac_check_lib_save_LIBS=$LIBS
19851 LIBS="-lgcc  $LIBS"
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h.  */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h.  */
19858
19859 /* Override any GCC internal prototype to avoid an error.
19860    Use char because int might match the return type of a GCC
19861    builtin and then its argument prototype would still apply.  */
19862 #ifdef __cplusplus
19863 extern "C"
19864 #endif
19865 char __divdi3 ();
19866 int
19867 main ()
19868 {
19869 return __divdi3 ();
19870   ;
19871   return 0;
19872 }
19873 _ACEOF
19874 rm -f conftest.$ac_objext conftest$ac_exeext
19875 if { (ac_try="$ac_link"
19876 case "(($ac_try" in
19877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878   *) ac_try_echo=$ac_try;;
19879 esac
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881   (eval "$ac_link") 2>conftest.er1
19882   ac_status=$?
19883   grep -v '^ *+' conftest.er1 >conftest.err
19884   rm -f conftest.er1
19885   cat conftest.err >&5
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); } &&
19888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19889   { (case "(($ac_try" in
19890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891   *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894   (eval "$ac_try") 2>&5
19895   ac_status=$?
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); }; } &&
19898          { ac_try='test -s conftest$ac_exeext'
19899   { (case "(($ac_try" in
19900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901   *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904   (eval "$ac_try") 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; }; then
19908   ac_cv_lib_gcc___divdi3=yes
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913         ac_cv_lib_gcc___divdi3=no
19914 fi
19915
19916 rm -f core conftest.err conftest.$ac_objext \
19917       conftest$ac_exeext conftest.$ac_ext
19918 LIBS=$ac_check_lib_save_LIBS
19919 fi
19920 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19921 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19922 if test $ac_cv_lib_gcc___divdi3 = yes; then
19923
19924 cat >>confdefs.h <<\_ACEOF
19925 #define HAVE___DIVDI3 1
19926 _ACEOF
19927
19928 fi
19929
19930   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19931 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19932 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935   ac_check_lib_save_LIBS=$LIBS
19936 LIBS="-lgcc  $LIBS"
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h.  */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h.  */
19943
19944 /* Override any GCC internal prototype to avoid an error.
19945    Use char because int might match the return type of a GCC
19946    builtin and then its argument prototype would still apply.  */
19947 #ifdef __cplusplus
19948 extern "C"
19949 #endif
19950 char __fixdfdi ();
19951 int
19952 main ()
19953 {
19954 return __fixdfdi ();
19955   ;
19956   return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966   (eval "$ac_link") 2>conftest.er1
19967   ac_status=$?
19968   grep -v '^ *+' conftest.er1 >conftest.err
19969   rm -f conftest.er1
19970   cat conftest.err >&5
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } &&
19973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19974   { (case "(($ac_try" in
19975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976   *) ac_try_echo=$ac_try;;
19977 esac
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979   (eval "$ac_try") 2>&5
19980   ac_status=$?
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); }; } &&
19983          { ac_try='test -s conftest$ac_exeext'
19984   { (case "(($ac_try" in
19985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986   *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989   (eval "$ac_try") 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; }; then
19993   ac_cv_lib_gcc___fixdfdi=yes
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998         ac_cv_lib_gcc___fixdfdi=no
19999 fi
20000
20001 rm -f core conftest.err conftest.$ac_objext \
20002       conftest$ac_exeext conftest.$ac_ext
20003 LIBS=$ac_check_lib_save_LIBS
20004 fi
20005 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20006 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20007 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE___FIXDFDI 1
20011 _ACEOF
20012
20013 fi
20014
20015   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20016 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20017 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   ac_check_lib_save_LIBS=$LIBS
20021 LIBS="-lgcc  $LIBS"
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h.  */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h.  */
20028
20029 /* Override any GCC internal prototype to avoid an error.
20030    Use char because int might match the return type of a GCC
20031    builtin and then its argument prototype would still apply.  */
20032 #ifdef __cplusplus
20033 extern "C"
20034 #endif
20035 char __fixsfdi ();
20036 int
20037 main ()
20038 {
20039 return __fixsfdi ();
20040   ;
20041   return 0;
20042 }
20043 _ACEOF
20044 rm -f conftest.$ac_objext conftest$ac_exeext
20045 if { (ac_try="$ac_link"
20046 case "(($ac_try" in
20047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048   *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051   (eval "$ac_link") 2>conftest.er1
20052   ac_status=$?
20053   grep -v '^ *+' conftest.er1 >conftest.err
20054   rm -f conftest.er1
20055   cat conftest.err >&5
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); } &&
20058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20059   { (case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064   (eval "$ac_try") 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; } &&
20068          { ac_try='test -s conftest$ac_exeext'
20069   { (case "(($ac_try" in
20070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071   *) ac_try_echo=$ac_try;;
20072 esac
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074   (eval "$ac_try") 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; }; then
20078   ac_cv_lib_gcc___fixsfdi=yes
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083         ac_cv_lib_gcc___fixsfdi=no
20084 fi
20085
20086 rm -f core conftest.err conftest.$ac_objext \
20087       conftest$ac_exeext conftest.$ac_ext
20088 LIBS=$ac_check_lib_save_LIBS
20089 fi
20090 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20091 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20092 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20093
20094 cat >>confdefs.h <<\_ACEOF
20095 #define HAVE___FIXSFDI 1
20096 _ACEOF
20097
20098 fi
20099
20100   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20101 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20102 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20103   echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105   ac_check_lib_save_LIBS=$LIBS
20106 LIBS="-lgcc  $LIBS"
20107 cat >conftest.$ac_ext <<_ACEOF
20108 /* confdefs.h.  */
20109 _ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h.  */
20113
20114 /* Override any GCC internal prototype to avoid an error.
20115    Use char because int might match the return type of a GCC
20116    builtin and then its argument prototype would still apply.  */
20117 #ifdef __cplusplus
20118 extern "C"
20119 #endif
20120 char __floatdidf ();
20121 int
20122 main ()
20123 {
20124 return __floatdidf ();
20125   ;
20126   return 0;
20127 }
20128 _ACEOF
20129 rm -f conftest.$ac_objext conftest$ac_exeext
20130 if { (ac_try="$ac_link"
20131 case "(($ac_try" in
20132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133   *) ac_try_echo=$ac_try;;
20134 esac
20135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136   (eval "$ac_link") 2>conftest.er1
20137   ac_status=$?
20138   grep -v '^ *+' conftest.er1 >conftest.err
20139   rm -f conftest.er1
20140   cat conftest.err >&5
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); } &&
20143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20144   { (case "(($ac_try" in
20145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146   *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149   (eval "$ac_try") 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; } &&
20153          { ac_try='test -s conftest$ac_exeext'
20154   { (case "(($ac_try" in
20155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156   *) ac_try_echo=$ac_try;;
20157 esac
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159   (eval "$ac_try") 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; }; then
20163   ac_cv_lib_gcc___floatdidf=yes
20164 else
20165   echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168         ac_cv_lib_gcc___floatdidf=no
20169 fi
20170
20171 rm -f core conftest.err conftest.$ac_objext \
20172       conftest$ac_exeext conftest.$ac_ext
20173 LIBS=$ac_check_lib_save_LIBS
20174 fi
20175 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20176 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20177 if test $ac_cv_lib_gcc___floatdidf = yes; then
20178
20179 cat >>confdefs.h <<\_ACEOF
20180 #define HAVE___FLOATDIDF 1
20181 _ACEOF
20182
20183 fi
20184
20185   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20186 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20187 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20188   echo $ECHO_N "(cached) $ECHO_C" >&6
20189 else
20190   ac_check_lib_save_LIBS=$LIBS
20191 LIBS="-lgcc  $LIBS"
20192 cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198
20199 /* Override any GCC internal prototype to avoid an error.
20200    Use char because int might match the return type of a GCC
20201    builtin and then its argument prototype would still apply.  */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 char __lshrdi3 ();
20206 int
20207 main ()
20208 {
20209 return __lshrdi3 ();
20210   ;
20211   return 0;
20212 }
20213 _ACEOF
20214 rm -f conftest.$ac_objext conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218   *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221   (eval "$ac_link") 2>conftest.er1
20222   ac_status=$?
20223   grep -v '^ *+' conftest.er1 >conftest.err
20224   rm -f conftest.er1
20225   cat conftest.err >&5
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); } &&
20228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20229   { (case "(($ac_try" in
20230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231   *) ac_try_echo=$ac_try;;
20232 esac
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234   (eval "$ac_try") 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; } &&
20238          { ac_try='test -s conftest$ac_exeext'
20239   { (case "(($ac_try" in
20240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241   *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244   (eval "$ac_try") 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; }; then
20248   ac_cv_lib_gcc___lshrdi3=yes
20249 else
20250   echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253         ac_cv_lib_gcc___lshrdi3=no
20254 fi
20255
20256 rm -f core conftest.err conftest.$ac_objext \
20257       conftest$ac_exeext conftest.$ac_ext
20258 LIBS=$ac_check_lib_save_LIBS
20259 fi
20260 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20261 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20262 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20263
20264 cat >>confdefs.h <<\_ACEOF
20265 #define HAVE___LSHRDI3 1
20266 _ACEOF
20267
20268 fi
20269
20270   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20271 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20272 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20273   echo $ECHO_N "(cached) $ECHO_C" >&6
20274 else
20275   ac_check_lib_save_LIBS=$LIBS
20276 LIBS="-lgcc  $LIBS"
20277 cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283
20284 /* Override any GCC internal prototype to avoid an error.
20285    Use char because int might match the return type of a GCC
20286    builtin and then its argument prototype would still apply.  */
20287 #ifdef __cplusplus
20288 extern "C"
20289 #endif
20290 char __moddi3 ();
20291 int
20292 main ()
20293 {
20294 return __moddi3 ();
20295   ;
20296   return 0;
20297 }
20298 _ACEOF
20299 rm -f conftest.$ac_objext conftest$ac_exeext
20300 if { (ac_try="$ac_link"
20301 case "(($ac_try" in
20302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303   *) ac_try_echo=$ac_try;;
20304 esac
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306   (eval "$ac_link") 2>conftest.er1
20307   ac_status=$?
20308   grep -v '^ *+' conftest.er1 >conftest.err
20309   rm -f conftest.er1
20310   cat conftest.err >&5
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } &&
20313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314   { (case "(($ac_try" in
20315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316   *) ac_try_echo=$ac_try;;
20317 esac
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319   (eval "$ac_try") 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; } &&
20323          { ac_try='test -s conftest$ac_exeext'
20324   { (case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_try") 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; }; then
20333   ac_cv_lib_gcc___moddi3=yes
20334 else
20335   echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20337
20338         ac_cv_lib_gcc___moddi3=no
20339 fi
20340
20341 rm -f core conftest.err conftest.$ac_objext \
20342       conftest$ac_exeext conftest.$ac_ext
20343 LIBS=$ac_check_lib_save_LIBS
20344 fi
20345 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20346 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20347 if test $ac_cv_lib_gcc___moddi3 = yes; then
20348
20349 cat >>confdefs.h <<\_ACEOF
20350 #define HAVE___MODDI3 1
20351 _ACEOF
20352
20353 fi
20354
20355   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20356 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20357 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20358   echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360   ac_check_lib_save_LIBS=$LIBS
20361 LIBS="-lgcc  $LIBS"
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368
20369 /* Override any GCC internal prototype to avoid an error.
20370    Use char because int might match the return type of a GCC
20371    builtin and then its argument prototype would still apply.  */
20372 #ifdef __cplusplus
20373 extern "C"
20374 #endif
20375 char __udivdi3 ();
20376 int
20377 main ()
20378 {
20379 return __udivdi3 ();
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_link") 2>conftest.er1
20392   ac_status=$?
20393   grep -v '^ *+' conftest.er1 >conftest.err
20394   rm -f conftest.er1
20395   cat conftest.err >&5
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } &&
20398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20399   { (case "(($ac_try" in
20400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401   *) ac_try_echo=$ac_try;;
20402 esac
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404   (eval "$ac_try") 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; } &&
20408          { ac_try='test -s conftest$ac_exeext'
20409   { (case "(($ac_try" in
20410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411   *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414   (eval "$ac_try") 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; }; then
20418   ac_cv_lib_gcc___udivdi3=yes
20419 else
20420   echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20422
20423         ac_cv_lib_gcc___udivdi3=no
20424 fi
20425
20426 rm -f core conftest.err conftest.$ac_objext \
20427       conftest$ac_exeext conftest.$ac_ext
20428 LIBS=$ac_check_lib_save_LIBS
20429 fi
20430 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20431 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20432 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20433
20434 cat >>confdefs.h <<\_ACEOF
20435 #define HAVE___UDIVDI3 1
20436 _ACEOF
20437
20438 fi
20439
20440   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20441 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20442 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20443   echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445   ac_check_lib_save_LIBS=$LIBS
20446 LIBS="-lgcc  $LIBS"
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h.  */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h.  */
20453
20454 /* Override any GCC internal prototype to avoid an error.
20455    Use char because int might match the return type of a GCC
20456    builtin and then its argument prototype would still apply.  */
20457 #ifdef __cplusplus
20458 extern "C"
20459 #endif
20460 char __umoddi3 ();
20461 int
20462 main ()
20463 {
20464 return __umoddi3 ();
20465   ;
20466   return 0;
20467 }
20468 _ACEOF
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (ac_try="$ac_link"
20471 case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476   (eval "$ac_link") 2>conftest.er1
20477   ac_status=$?
20478   grep -v '^ *+' conftest.er1 >conftest.err
20479   rm -f conftest.er1
20480   cat conftest.err >&5
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } &&
20483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484   { (case "(($ac_try" in
20485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486   *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489   (eval "$ac_try") 2>&5
20490   ac_status=$?
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); }; } &&
20493          { ac_try='test -s conftest$ac_exeext'
20494   { (case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_try") 2>&5
20500   ac_status=$?
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); }; }; then
20503   ac_cv_lib_gcc___umoddi3=yes
20504 else
20505   echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20507
20508         ac_cv_lib_gcc___umoddi3=no
20509 fi
20510
20511 rm -f core conftest.err conftest.$ac_objext \
20512       conftest$ac_exeext conftest.$ac_ext
20513 LIBS=$ac_check_lib_save_LIBS
20514 fi
20515 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20516 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20517 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20518
20519 cat >>confdefs.h <<\_ACEOF
20520 #define HAVE___UMODDI3 1
20521 _ACEOF
20522
20523 fi
20524
20525
20526   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20527 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20528 if test "${ac_cv_lib_gcc___main+set}" = set; then
20529   echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531   ac_check_lib_save_LIBS=$LIBS
20532 LIBS="-lgcc  $LIBS"
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539
20540 /* Override any GCC internal prototype to avoid an error.
20541    Use char because int might match the return type of a GCC
20542    builtin and then its argument prototype would still apply.  */
20543 #ifdef __cplusplus
20544 extern "C"
20545 #endif
20546 char __main ();
20547 int
20548 main ()
20549 {
20550 return __main ();
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (ac_try="$ac_link"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562   (eval "$ac_link") 2>conftest.er1
20563   ac_status=$?
20564   grep -v '^ *+' conftest.er1 >conftest.err
20565   rm -f conftest.er1
20566   cat conftest.err >&5
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } &&
20569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570   { (case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_try") 2>&5
20576   ac_status=$?
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); }; } &&
20579          { ac_try='test -s conftest$ac_exeext'
20580   { (case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_try") 2>&5
20586   ac_status=$?
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); }; }; then
20589   ac_cv_lib_gcc___main=yes
20590 else
20591   echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594         ac_cv_lib_gcc___main=no
20595 fi
20596
20597 rm -f core conftest.err conftest.$ac_objext \
20598       conftest$ac_exeext conftest.$ac_ext
20599 LIBS=$ac_check_lib_save_LIBS
20600 fi
20601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20602 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20603 if test $ac_cv_lib_gcc___main = yes; then
20604
20605 cat >>confdefs.h <<\_ACEOF
20606 #define HAVE___MAIN 1
20607 _ACEOF
20608
20609 fi
20610
20611   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20612 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20613 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20614   echo $ECHO_N "(cached) $ECHO_C" >&6
20615 else
20616   ac_check_lib_save_LIBS=$LIBS
20617 LIBS="-lgcc  $LIBS"
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h.  */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h.  */
20624
20625 /* Override any GCC internal prototype to avoid an error.
20626    Use char because int might match the return type of a GCC
20627    builtin and then its argument prototype would still apply.  */
20628 #ifdef __cplusplus
20629 extern "C"
20630 #endif
20631 char __cmpdi2 ();
20632 int
20633 main ()
20634 {
20635 return __cmpdi2 ();
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest.$ac_objext conftest$ac_exeext
20641 if { (ac_try="$ac_link"
20642 case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647   (eval "$ac_link") 2>conftest.er1
20648   ac_status=$?
20649   grep -v '^ *+' conftest.er1 >conftest.err
20650   rm -f conftest.er1
20651   cat conftest.err >&5
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); } &&
20654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655   { (case "(($ac_try" in
20656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657   *) ac_try_echo=$ac_try;;
20658 esac
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660   (eval "$ac_try") 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); }; } &&
20664          { ac_try='test -s conftest$ac_exeext'
20665   { (case "(($ac_try" in
20666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667   *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670   (eval "$ac_try") 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; }; then
20674   ac_cv_lib_gcc___cmpdi2=yes
20675 else
20676   echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679         ac_cv_lib_gcc___cmpdi2=no
20680 fi
20681
20682 rm -f core conftest.err conftest.$ac_objext \
20683       conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20685 fi
20686 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20687 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20688 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20689
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE___CMPDI2 1
20692 _ACEOF
20693
20694 fi
20695
20696 fi
20697
20698 if test "$llvm_cv_os_type" = "MingW" ; then
20699   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20700 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20701   cat >conftest.$ac_ext <<_ACEOF
20702
20703   /* confdefs.h.  */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h.  */
20708
20709     #include <windows.h>
20710     #include <imagehlp.h>
20711     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20712     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20713
20714
20715 _ACEOF
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_compile") 2>conftest.er1
20724   ac_status=$?
20725   grep -v '^ *+' conftest.er1 >conftest.err
20726   rm -f conftest.er1
20727   cat conftest.err >&5
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } &&
20730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20731   { (case "(($ac_try" in
20732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733   *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736   (eval "$ac_try") 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; } &&
20740          { ac_try='test -s conftest.$ac_objext'
20741   { (case "(($ac_try" in
20742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743   *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746   (eval "$ac_try") 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); }; }; then
20750
20751   { echo "$as_me:$LINENO: result: yes" >&5
20752 echo "${ECHO_T}yes" >&6; }
20753   llvm_cv_win32_elmcb_pcstr="PCSTR"
20754
20755 else
20756   echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759
20760   { echo "$as_me:$LINENO: result: no" >&5
20761 echo "${ECHO_T}no" >&6; }
20762   llvm_cv_win32_elmcb_pcstr="PSTR"
20763
20764 fi
20765
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767
20768 cat >>confdefs.h <<_ACEOF
20769 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20770 _ACEOF
20771
20772 fi
20773
20774
20775
20776   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20777 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20778 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20779   echo $ECHO_N "(cached) $ECHO_C" >&6
20780 else
20781
20782     ac_ext=cpp
20783 ac_cpp='$CXXCPP $CPPFLAGS'
20784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20787
20788     cat >conftest.$ac_ext <<_ACEOF
20789 /* confdefs.h.  */
20790 _ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h.  */
20794 #include <math.h>
20795 int
20796 main ()
20797 {
20798 float f; isnan(f);
20799   ;
20800   return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest.$ac_objext
20804 if { (ac_try="$ac_compile"
20805 case "(($ac_try" in
20806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807   *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810   (eval "$ac_compile") 2>conftest.er1
20811   ac_status=$?
20812   grep -v '^ *+' conftest.er1 >conftest.err
20813   rm -f conftest.er1
20814   cat conftest.err >&5
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } &&
20817          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20818   { (case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_try") 2>&5
20824   ac_status=$?
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); }; } &&
20827          { ac_try='test -s conftest.$ac_objext'
20828   { (case "(($ac_try" in
20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830   *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833   (eval "$ac_try") 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); }; }; then
20837   ac_cv_func_isnan_in_math_h=yes
20838 else
20839   echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842         ac_cv_func_isnan_in_math_h=no
20843 fi
20844
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846     ac_ext=c
20847 ac_cpp='$CPP $CPPFLAGS'
20848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20851
20852
20853 fi
20854 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20855 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20856
20857
20858 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20859
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_ISNAN_IN_MATH_H 1
20862 _ACEOF
20863
20864 fi
20865
20866
20867   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20868 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20869 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20870   echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872
20873     ac_ext=cpp
20874 ac_cpp='$CXXCPP $CPPFLAGS'
20875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20878
20879     cat >conftest.$ac_ext <<_ACEOF
20880 /* confdefs.h.  */
20881 _ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h.  */
20885 #include <cmath>
20886 int
20887 main ()
20888 {
20889 float f; isnan(f);
20890   ;
20891   return 0;
20892 }
20893 _ACEOF
20894 rm -f conftest.$ac_objext
20895 if { (ac_try="$ac_compile"
20896 case "(($ac_try" in
20897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898   *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901   (eval "$ac_compile") 2>conftest.er1
20902   ac_status=$?
20903   grep -v '^ *+' conftest.er1 >conftest.err
20904   rm -f conftest.er1
20905   cat conftest.err >&5
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } &&
20908          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20909   { (case "(($ac_try" in
20910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911   *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914   (eval "$ac_try") 2>&5
20915   ac_status=$?
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); }; } &&
20918          { ac_try='test -s conftest.$ac_objext'
20919   { (case "(($ac_try" in
20920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921   *) ac_try_echo=$ac_try;;
20922 esac
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924   (eval "$ac_try") 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; }; then
20928   ac_cv_func_isnan_in_cmath=yes
20929 else
20930   echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20932
20933         ac_cv_func_isnan_in_cmath=no
20934 fi
20935
20936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937     ac_ext=c
20938 ac_cpp='$CPP $CPPFLAGS'
20939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20942
20943
20944 fi
20945 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20946 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20947
20948 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20949
20950 cat >>confdefs.h <<\_ACEOF
20951 #define HAVE_ISNAN_IN_CMATH 1
20952 _ACEOF
20953
20954 fi
20955
20956
20957   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20958 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20959 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20960   echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962
20963     ac_ext=cpp
20964 ac_cpp='$CXXCPP $CPPFLAGS'
20965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20968
20969     cat >conftest.$ac_ext <<_ACEOF
20970 /* confdefs.h.  */
20971 _ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h.  */
20975 #include <cmath>
20976 int
20977 main ()
20978 {
20979 float f; std::isnan(f);
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988   *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991   (eval "$ac_compile") 2>conftest.er1
20992   ac_status=$?
20993   grep -v '^ *+' conftest.er1 >conftest.err
20994   rm -f conftest.er1
20995   cat conftest.err >&5
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); } &&
20998          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20999   { (case "(($ac_try" in
21000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001   *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004   (eval "$ac_try") 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; } &&
21008          { ac_try='test -s conftest.$ac_objext'
21009   { (case "(($ac_try" in
21010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011   *) ac_try_echo=$ac_try;;
21012 esac
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014   (eval "$ac_try") 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; }; then
21018   ac_cv_func_std_isnan_in_cmath=yes
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023         ac_cv_func_std_isnan_in_cmath=no
21024 fi
21025
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027     ac_ext=c
21028 ac_cpp='$CPP $CPPFLAGS'
21029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21032
21033
21034 fi
21035 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21036 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21037
21038 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21039
21040 cat >>confdefs.h <<\_ACEOF
21041 #define HAVE_STD_ISNAN_IN_CMATH 1
21042 _ACEOF
21043
21044 fi
21045
21046
21047
21048
21049   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21050 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21051 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21052   echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054
21055     ac_ext=cpp
21056 ac_cpp='$CXXCPP $CPPFLAGS'
21057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21060
21061     cat >conftest.$ac_ext <<_ACEOF
21062 /* confdefs.h.  */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h.  */
21067 #include <math.h>
21068 int
21069 main ()
21070 {
21071 float f; isinf(f);
21072   ;
21073   return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080   *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083   (eval "$ac_compile") 2>conftest.er1
21084   ac_status=$?
21085   grep -v '^ *+' conftest.er1 >conftest.err
21086   rm -f conftest.er1
21087   cat conftest.err >&5
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); } &&
21090          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21091   { (case "(($ac_try" in
21092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093   *) ac_try_echo=$ac_try;;
21094 esac
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096   (eval "$ac_try") 2>&5
21097   ac_status=$?
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); }; } &&
21100          { ac_try='test -s conftest.$ac_objext'
21101   { (case "(($ac_try" in
21102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103   *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106   (eval "$ac_try") 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; }; then
21110   ac_cv_func_isinf_in_math_h=yes
21111 else
21112   echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115         ac_cv_func_isinf_in_math_h=no
21116 fi
21117
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119     ac_ext=c
21120 ac_cpp='$CPP $CPPFLAGS'
21121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21124
21125
21126 fi
21127 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21128 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21129
21130 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21131
21132 cat >>confdefs.h <<\_ACEOF
21133 #define HAVE_ISINF_IN_MATH_H 1
21134 _ACEOF
21135
21136 fi
21137
21138
21139   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21140 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21141 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21142   echo $ECHO_N "(cached) $ECHO_C" >&6
21143 else
21144
21145     ac_ext=cpp
21146 ac_cpp='$CXXCPP $CPPFLAGS'
21147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21150
21151     cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h.  */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h.  */
21157 #include <cmath>
21158 int
21159 main ()
21160 {
21161 float f; isinf(f);
21162   ;
21163   return 0;
21164 }
21165 _ACEOF
21166 rm -f conftest.$ac_objext
21167 if { (ac_try="$ac_compile"
21168 case "(($ac_try" in
21169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170   *) ac_try_echo=$ac_try;;
21171 esac
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173   (eval "$ac_compile") 2>conftest.er1
21174   ac_status=$?
21175   grep -v '^ *+' conftest.er1 >conftest.err
21176   rm -f conftest.er1
21177   cat conftest.err >&5
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); } &&
21180          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21181   { (case "(($ac_try" in
21182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183   *) ac_try_echo=$ac_try;;
21184 esac
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186   (eval "$ac_try") 2>&5
21187   ac_status=$?
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); }; } &&
21190          { ac_try='test -s conftest.$ac_objext'
21191   { (case "(($ac_try" in
21192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193   *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196   (eval "$ac_try") 2>&5
21197   ac_status=$?
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); }; }; then
21200   ac_cv_func_isinf_in_cmath=yes
21201 else
21202   echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205         ac_cv_func_isinf_in_cmath=no
21206 fi
21207
21208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21209     ac_ext=c
21210 ac_cpp='$CPP $CPPFLAGS'
21211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21214
21215
21216 fi
21217 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21218 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21219
21220 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21221
21222 cat >>confdefs.h <<\_ACEOF
21223 #define HAVE_ISINF_IN_CMATH 1
21224 _ACEOF
21225
21226 fi
21227
21228
21229   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21230 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21231 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21232   echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234
21235     ac_ext=cpp
21236 ac_cpp='$CXXCPP $CPPFLAGS'
21237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21240
21241     cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h.  */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h.  */
21247 #include <cmath>
21248 int
21249 main ()
21250 {
21251 float f; std::isinf(f);
21252   ;
21253   return 0;
21254 }
21255 _ACEOF
21256 rm -f conftest.$ac_objext
21257 if { (ac_try="$ac_compile"
21258 case "(($ac_try" in
21259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260   *) ac_try_echo=$ac_try;;
21261 esac
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263   (eval "$ac_compile") 2>conftest.er1
21264   ac_status=$?
21265   grep -v '^ *+' conftest.er1 >conftest.err
21266   rm -f conftest.er1
21267   cat conftest.err >&5
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); } &&
21270          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21271   { (case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276   (eval "$ac_try") 2>&5
21277   ac_status=$?
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); }; } &&
21280          { ac_try='test -s conftest.$ac_objext'
21281   { (case "(($ac_try" in
21282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283   *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286   (eval "$ac_try") 2>&5
21287   ac_status=$?
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); }; }; then
21290   ac_cv_func_std_isinf_in_cmath=yes
21291 else
21292   echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21294
21295         ac_cv_func_std_isinf_in_cmath=no
21296 fi
21297
21298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21299     ac_ext=c
21300 ac_cpp='$CPP $CPPFLAGS'
21301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21304
21305
21306 fi
21307 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21308 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21309
21310 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21311
21312 cat >>confdefs.h <<\_ACEOF
21313 #define HAVE_STD_ISINF_IN_CMATH 1
21314 _ACEOF
21315
21316 fi
21317
21318
21319   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21320 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21321 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21322   echo $ECHO_N "(cached) $ECHO_C" >&6
21323 else
21324
21325     ac_ext=cpp
21326 ac_cpp='$CXXCPP $CPPFLAGS'
21327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21330
21331     cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337 #include <ieeefp.h>
21338 int
21339 main ()
21340 {
21341 float f; finite(f);
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 rm -f conftest.$ac_objext
21347 if { (ac_try="$ac_compile"
21348 case "(($ac_try" in
21349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350   *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353   (eval "$ac_compile") 2>conftest.er1
21354   ac_status=$?
21355   grep -v '^ *+' conftest.er1 >conftest.err
21356   rm -f conftest.er1
21357   cat conftest.err >&5
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); } &&
21360          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21361   { (case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_try") 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; } &&
21370          { ac_try='test -s conftest.$ac_objext'
21371   { (case "(($ac_try" in
21372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373   *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376   (eval "$ac_try") 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); }; }; then
21380   ac_cv_func_finite_in_ieeefp_h=yes
21381 else
21382   echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21384
21385         ac_cv_func_finite_in_ieeefp_h=no
21386 fi
21387
21388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389     ac_ext=c
21390 ac_cpp='$CPP $CPPFLAGS'
21391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21394
21395
21396 fi
21397 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21398 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21399
21400 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21401
21402 cat >>confdefs.h <<\_ACEOF
21403 #define HAVE_FINITE_IN_IEEEFP_H 1
21404 _ACEOF
21405
21406 fi
21407
21408
21409
21410 if test "$llvm_cv_platform_type" = "Unix" ; then
21411
21412
21413 for ac_header in stdlib.h unistd.h
21414 do
21415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21417   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420   echo $ECHO_N "(cached) $ECHO_C" >&6
21421 fi
21422 ac_res=`eval echo '${'$as_ac_Header'}'`
21423                { echo "$as_me:$LINENO: result: $ac_res" >&5
21424 echo "${ECHO_T}$ac_res" >&6; }
21425 else
21426   # Is the header compilable?
21427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21429 cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h.  */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h.  */
21435 $ac_includes_default
21436 #include <$ac_header>
21437 _ACEOF
21438 rm -f conftest.$ac_objext
21439 if { (ac_try="$ac_compile"
21440 case "(($ac_try" in
21441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442   *) ac_try_echo=$ac_try;;
21443 esac
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445   (eval "$ac_compile") 2>conftest.er1
21446   ac_status=$?
21447   grep -v '^ *+' conftest.er1 >conftest.err
21448   rm -f conftest.er1
21449   cat conftest.err >&5
21450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451   (exit $ac_status); } &&
21452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21453   { (case "(($ac_try" in
21454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455   *) ac_try_echo=$ac_try;;
21456 esac
21457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458   (eval "$ac_try") 2>&5
21459   ac_status=$?
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); }; } &&
21462          { ac_try='test -s conftest.$ac_objext'
21463   { (case "(($ac_try" in
21464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465   *) ac_try_echo=$ac_try;;
21466 esac
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468   (eval "$ac_try") 2>&5
21469   ac_status=$?
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); }; }; then
21472   ac_header_compiler=yes
21473 else
21474   echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21476
21477         ac_header_compiler=no
21478 fi
21479
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21482 echo "${ECHO_T}$ac_header_compiler" >&6; }
21483
21484 # Is the header present?
21485 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21487 cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21493 #include <$ac_header>
21494 _ACEOF
21495 if { (ac_try="$ac_cpp conftest.$ac_ext"
21496 case "(($ac_try" in
21497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498   *) ac_try_echo=$ac_try;;
21499 esac
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21502   ac_status=$?
21503   grep -v '^ *+' conftest.er1 >conftest.err
21504   rm -f conftest.er1
21505   cat conftest.err >&5
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } >/dev/null; then
21508   if test -s conftest.err; then
21509     ac_cpp_err=$ac_c_preproc_warn_flag
21510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21511   else
21512     ac_cpp_err=
21513   fi
21514 else
21515   ac_cpp_err=yes
21516 fi
21517 if test -z "$ac_cpp_err"; then
21518   ac_header_preproc=yes
21519 else
21520   echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21522
21523   ac_header_preproc=no
21524 fi
21525
21526 rm -f conftest.err conftest.$ac_ext
21527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21528 echo "${ECHO_T}$ac_header_preproc" >&6; }
21529
21530 # So?  What about this header?
21531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21532   yes:no: )
21533     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21537     ac_header_preproc=yes
21538     ;;
21539   no:yes:* )
21540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21542     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21543 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21544     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21546     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21547 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21550     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21552     ( cat <<\_ASBOX
21553 ## ------------------------------------ ##
21554 ## Report this to http://llvm.org/bugs/ ##
21555 ## ------------------------------------ ##
21556 _ASBOX
21557      ) | sed "s/^/$as_me: WARNING:     /" >&2
21558     ;;
21559 esac
21560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21563   echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565   eval "$as_ac_Header=\$ac_header_preproc"
21566 fi
21567 ac_res=`eval echo '${'$as_ac_Header'}'`
21568                { echo "$as_me:$LINENO: result: $ac_res" >&5
21569 echo "${ECHO_T}$ac_res" >&6; }
21570
21571 fi
21572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21573   cat >>confdefs.h <<_ACEOF
21574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21575 _ACEOF
21576
21577 fi
21578
21579 done
21580
21581
21582 for ac_func in getpagesize
21583 do
21584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21588   echo $ECHO_N "(cached) $ECHO_C" >&6
21589 else
21590   cat >conftest.$ac_ext <<_ACEOF
21591 /* confdefs.h.  */
21592 _ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h.  */
21596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21598 #define $ac_func innocuous_$ac_func
21599
21600 /* System header to define __stub macros and hopefully few prototypes,
21601     which can conflict with char $ac_func (); below.
21602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21603     <limits.h> exists even on freestanding compilers.  */
21604
21605 #ifdef __STDC__
21606 # include <limits.h>
21607 #else
21608 # include <assert.h>
21609 #endif
21610
21611 #undef $ac_func
21612
21613 /* Override any GCC internal prototype to avoid an error.
21614    Use char because int might match the return type of a GCC
21615    builtin and then its argument prototype would still apply.  */
21616 #ifdef __cplusplus
21617 extern "C"
21618 #endif
21619 char $ac_func ();
21620 /* The GNU C library defines this for functions which it implements
21621     to always fail with ENOSYS.  Some functions are actually named
21622     something starting with __ and the normal name is an alias.  */
21623 #if defined __stub_$ac_func || defined __stub___$ac_func
21624 choke me
21625 #endif
21626
21627 int
21628 main ()
21629 {
21630 return $ac_func ();
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (ac_try="$ac_link"
21637 case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_link") 2>conftest.er1
21643   ac_status=$?
21644   grep -v '^ *+' conftest.er1 >conftest.err
21645   rm -f conftest.er1
21646   cat conftest.err >&5
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); } &&
21649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21650   { (case "(($ac_try" in
21651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652   *) ac_try_echo=$ac_try;;
21653 esac
21654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655   (eval "$ac_try") 2>&5
21656   ac_status=$?
21657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658   (exit $ac_status); }; } &&
21659          { ac_try='test -s conftest$ac_exeext'
21660   { (case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_try") 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); }; }; then
21669   eval "$as_ac_var=yes"
21670 else
21671   echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674         eval "$as_ac_var=no"
21675 fi
21676
21677 rm -f core conftest.err conftest.$ac_objext \
21678       conftest$ac_exeext conftest.$ac_ext
21679 fi
21680 ac_res=`eval echo '${'$as_ac_var'}'`
21681                { echo "$as_me:$LINENO: result: $ac_res" >&5
21682 echo "${ECHO_T}$ac_res" >&6; }
21683 if test `eval echo '${'$as_ac_var'}'` = yes; then
21684   cat >>confdefs.h <<_ACEOF
21685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21686 _ACEOF
21687
21688 fi
21689 done
21690
21691 { echo "$as_me:$LINENO: checking for working mmap" >&5
21692 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21693 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21694   echo $ECHO_N "(cached) $ECHO_C" >&6
21695 else
21696   if test "$cross_compiling" = yes; then
21697   ac_cv_func_mmap_fixed_mapped=no
21698 else
21699   cat >conftest.$ac_ext <<_ACEOF
21700 /* confdefs.h.  */
21701 _ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h.  */
21705 $ac_includes_default
21706 /* malloc might have been renamed as rpl_malloc. */
21707 #undef malloc
21708
21709 /* Thanks to Mike Haertel and Jim Avera for this test.
21710    Here is a matrix of mmap possibilities:
21711         mmap private not fixed
21712         mmap private fixed at somewhere currently unmapped
21713         mmap private fixed at somewhere already mapped
21714         mmap shared not fixed
21715         mmap shared fixed at somewhere currently unmapped
21716         mmap shared fixed at somewhere already mapped
21717    For private mappings, we should verify that changes cannot be read()
21718    back from the file, nor mmap's back from the file at a different
21719    address.  (There have been systems where private was not correctly
21720    implemented like the infamous i386 svr4.0, and systems where the
21721    VM page cache was not coherent with the file system buffer cache
21722    like early versions of FreeBSD and possibly contemporary NetBSD.)
21723    For shared mappings, we should conversely verify that changes get
21724    propagated back to all the places they're supposed to be.
21725
21726    Grep wants private fixed already mapped.
21727    The main things grep needs to know about mmap are:
21728    * does it exist and is it safe to write into the mmap'd area
21729    * how to use it (BSD variants)  */
21730
21731 #include <fcntl.h>
21732 #include <sys/mman.h>
21733
21734 #if !STDC_HEADERS && !HAVE_STDLIB_H
21735 char *malloc ();
21736 #endif
21737
21738 /* This mess was copied from the GNU getpagesize.h.  */
21739 #if !HAVE_GETPAGESIZE
21740 /* Assume that all systems that can run configure have sys/param.h.  */
21741 # if !HAVE_SYS_PARAM_H
21742 #  define HAVE_SYS_PARAM_H 1
21743 # endif
21744
21745 # ifdef _SC_PAGESIZE
21746 #  define getpagesize() sysconf(_SC_PAGESIZE)
21747 # else /* no _SC_PAGESIZE */
21748 #  if HAVE_SYS_PARAM_H
21749 #   include <sys/param.h>
21750 #   ifdef EXEC_PAGESIZE
21751 #    define getpagesize() EXEC_PAGESIZE
21752 #   else /* no EXEC_PAGESIZE */
21753 #    ifdef NBPG
21754 #     define getpagesize() NBPG * CLSIZE
21755 #     ifndef CLSIZE
21756 #      define CLSIZE 1
21757 #     endif /* no CLSIZE */
21758 #    else /* no NBPG */
21759 #     ifdef NBPC
21760 #      define getpagesize() NBPC
21761 #     else /* no NBPC */
21762 #      ifdef PAGESIZE
21763 #       define getpagesize() PAGESIZE
21764 #      endif /* PAGESIZE */
21765 #     endif /* no NBPC */
21766 #    endif /* no NBPG */
21767 #   endif /* no EXEC_PAGESIZE */
21768 #  else /* no HAVE_SYS_PARAM_H */
21769 #   define getpagesize() 8192   /* punt totally */
21770 #  endif /* no HAVE_SYS_PARAM_H */
21771 # endif /* no _SC_PAGESIZE */
21772
21773 #endif /* no HAVE_GETPAGESIZE */
21774
21775 int
21776 main ()
21777 {
21778   char *data, *data2, *data3;
21779   int i, pagesize;
21780   int fd;
21781
21782   pagesize = getpagesize ();
21783
21784   /* First, make a file with some known garbage in it. */
21785   data = (char *) malloc (pagesize);
21786   if (!data)
21787     return 1;
21788   for (i = 0; i < pagesize; ++i)
21789     *(data + i) = rand ();
21790   umask (0);
21791   fd = creat ("conftest.mmap", 0600);
21792   if (fd < 0)
21793     return 1;
21794   if (write (fd, data, pagesize) != pagesize)
21795     return 1;
21796   close (fd);
21797
21798   /* Next, try to mmap the file at a fixed address which already has
21799      something else allocated at it.  If we can, also make sure that
21800      we see the same garbage.  */
21801   fd = open ("conftest.mmap", O_RDWR);
21802   if (fd < 0)
21803     return 1;
21804   data2 = (char *) malloc (2 * pagesize);
21805   if (!data2)
21806     return 1;
21807   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21808   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21809                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21810     return 1;
21811   for (i = 0; i < pagesize; ++i)
21812     if (*(data + i) != *(data2 + i))
21813       return 1;
21814
21815   /* Finally, make sure that changes to the mapped area do not
21816      percolate back to the file as seen by read().  (This is a bug on
21817      some variants of i386 svr4.0.)  */
21818   for (i = 0; i < pagesize; ++i)
21819     *(data2 + i) = *(data2 + i) + 1;
21820   data3 = (char *) malloc (pagesize);
21821   if (!data3)
21822     return 1;
21823   if (read (fd, data3, pagesize) != pagesize)
21824     return 1;
21825   for (i = 0; i < pagesize; ++i)
21826     if (*(data + i) != *(data3 + i))
21827       return 1;
21828   close (fd);
21829   return 0;
21830 }
21831 _ACEOF
21832 rm -f conftest$ac_exeext
21833 if { (ac_try="$ac_link"
21834 case "(($ac_try" in
21835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836   *) ac_try_echo=$ac_try;;
21837 esac
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839   (eval "$ac_link") 2>&5
21840   ac_status=$?
21841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21843   { (case "(($ac_try" in
21844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845   *) ac_try_echo=$ac_try;;
21846 esac
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848   (eval "$ac_try") 2>&5
21849   ac_status=$?
21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851   (exit $ac_status); }; }; then
21852   ac_cv_func_mmap_fixed_mapped=yes
21853 else
21854   echo "$as_me: program exited with status $ac_status" >&5
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21857
21858 ( exit $ac_status )
21859 ac_cv_func_mmap_fixed_mapped=no
21860 fi
21861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21862 fi
21863
21864
21865 fi
21866 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21867 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21868 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21869
21870 cat >>confdefs.h <<\_ACEOF
21871 #define HAVE_MMAP 1
21872 _ACEOF
21873
21874 fi
21875 rm -f conftest.mmap
21876
21877   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21878 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21879 if test "${ac_cv_func_mmap_file+set}" = set; then
21880   echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882    ac_ext=c
21883 ac_cpp='$CPP $CPPFLAGS'
21884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21887
21888   if test "$cross_compiling" = yes; then
21889   ac_cv_func_mmap_file=no
21890 else
21891   cat >conftest.$ac_ext <<_ACEOF
21892
21893     /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898
21899 #include <sys/types.h>
21900 #include <sys/mman.h>
21901 #include <fcntl.h>
21902
21903 int
21904 main ()
21905 {
21906
21907   int fd;
21908   fd = creat ("foo",0777);
21909   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21910   unlink ("foo");
21911   return (fd != (int) MAP_FAILED);
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest$ac_exeext
21917 if { (ac_try="$ac_link"
21918 case "(($ac_try" in
21919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920   *) ac_try_echo=$ac_try;;
21921 esac
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923   (eval "$ac_link") 2>&5
21924   ac_status=$?
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21927   { (case "(($ac_try" in
21928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929   *) ac_try_echo=$ac_try;;
21930 esac
21931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932   (eval "$ac_try") 2>&5
21933   ac_status=$?
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); }; }; then
21936   ac_cv_func_mmap_file=yes
21937 else
21938   echo "$as_me: program exited with status $ac_status" >&5
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942 ( exit $ac_status )
21943 ac_cv_func_mmap_file=no
21944 fi
21945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21946 fi
21947
21948
21949   ac_ext=c
21950 ac_cpp='$CPP $CPPFLAGS'
21951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21954
21955
21956 fi
21957 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21958 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21959 if test "$ac_cv_func_mmap_file" = yes; then
21960
21961 cat >>confdefs.h <<\_ACEOF
21962 #define HAVE_MMAP_FILE
21963 _ACEOF
21964
21965    MMAP_FILE=yes
21966
21967 fi
21968
21969   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21970 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21971 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21972   echo $ECHO_N "(cached) $ECHO_C" >&6
21973 else
21974   if test "$llvm_cv_os_type" = "Interix" ; then
21975    ac_cv_need_dev_zero_for_mmap=yes
21976  else
21977    ac_cv_need_dev_zero_for_mmap=no
21978  fi
21979
21980 fi
21981 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21982 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21983 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21984
21985 cat >>confdefs.h <<\_ACEOF
21986 #define NEED_DEV_ZERO_FOR_MMAP 1
21987 _ACEOF
21988
21989 fi
21990
21991   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21992   then
21993     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21994 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21995   fi
21996   if test "$ac_cv_func_mmap_file" = "no"
21997   then
21998     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21999 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22000   fi
22001 fi
22002
22003 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22004 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22005 ac_ext=cpp
22006 ac_cpp='$CXXCPP $CPPFLAGS'
22007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22010
22011 cat >conftest.$ac_ext <<_ACEOF
22012
22013   /* confdefs.h.  */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h.  */
22018
22019     int main() {
22020       volatile unsigned long val = 1;
22021       __sync_synchronize();
22022       __sync_val_compare_and_swap(&val, 1, 0);
22023       __sync_add_and_fetch(&val, 1);
22024       __sync_sub_and_fetch(&val, 1);
22025       return 0;
22026     }
22027
22028
22029 _ACEOF
22030 rm -f conftest.$ac_objext conftest$ac_exeext
22031 if { (ac_try="$ac_link"
22032 case "(($ac_try" in
22033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034   *) ac_try_echo=$ac_try;;
22035 esac
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037   (eval "$ac_link") 2>conftest.er1
22038   ac_status=$?
22039   grep -v '^ *+' conftest.er1 >conftest.err
22040   rm -f conftest.er1
22041   cat conftest.err >&5
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } &&
22044          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22045   { (case "(($ac_try" in
22046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047   *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050   (eval "$ac_try") 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; } &&
22054          { ac_try='test -s conftest$ac_exeext'
22055   { (case "(($ac_try" in
22056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057   *) ac_try_echo=$ac_try;;
22058 esac
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060   (eval "$ac_try") 2>&5
22061   ac_status=$?
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); }; }; then
22064
22065   { echo "$as_me:$LINENO: result: yes" >&5
22066 echo "${ECHO_T}yes" >&6; }
22067
22068 cat >>confdefs.h <<\_ACEOF
22069 #define LLVM_HAS_ATOMICS 1
22070 _ACEOF
22071
22072
22073 else
22074   echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22076
22077
22078   { echo "$as_me:$LINENO: result: no" >&5
22079 echo "${ECHO_T}no" >&6; }
22080
22081 cat >>confdefs.h <<\_ACEOF
22082 #define LLVM_HAS_ATOMICS 0
22083 _ACEOF
22084
22085   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22086 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22087
22088 fi
22089
22090 rm -f core conftest.err conftest.$ac_objext \
22091       conftest$ac_exeext conftest.$ac_ext
22092 ac_ext=c
22093 ac_cpp='$CPP $CPPFLAGS'
22094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22097
22098
22099
22100 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22101   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22102 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22103 if test "${llvm_cv_linux_mixed+set}" = set; then
22104   echo $ECHO_N "(cached) $ECHO_C" >&6
22105 else
22106    ac_ext=c
22107 ac_cpp='$CPP $CPPFLAGS'
22108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22111
22112   cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118 #ifndef __x86_64__
22119        error: Not x86-64 even if uname says so!
22120       #endif
22121
22122 int
22123 main ()
22124 {
22125
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 rm -f conftest.$ac_objext
22131 if { (ac_try="$ac_compile"
22132 case "(($ac_try" in
22133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134   *) ac_try_echo=$ac_try;;
22135 esac
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137   (eval "$ac_compile") 2>conftest.er1
22138   ac_status=$?
22139   grep -v '^ *+' conftest.er1 >conftest.err
22140   rm -f conftest.er1
22141   cat conftest.err >&5
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); } &&
22144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22145   { (case "(($ac_try" in
22146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147   *) ac_try_echo=$ac_try;;
22148 esac
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150   (eval "$ac_try") 2>&5
22151   ac_status=$?
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); }; } &&
22154          { ac_try='test -s conftest.$ac_objext'
22155   { (case "(($ac_try" in
22156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157   *) ac_try_echo=$ac_try;;
22158 esac
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160   (eval "$ac_try") 2>&5
22161   ac_status=$?
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); }; }; then
22164   llvm_cv_linux_mixed=no
22165 else
22166   echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169         llvm_cv_linux_mixed=yes
22170 fi
22171
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173   ac_ext=c
22174 ac_cpp='$CPP $CPPFLAGS'
22175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22178
22179
22180 fi
22181 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22182 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22183
22184   if test "$llvm_cv_linux_mixed" = "yes"; then
22185     llvm_cv_target_arch="x86"
22186     ARCH="x86"
22187   fi
22188 fi
22189
22190
22191 for ac_func in __dso_handle
22192 do
22193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22197   echo $ECHO_N "(cached) $ECHO_C" >&6
22198 else
22199   cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h.  */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h.  */
22205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22207 #define $ac_func innocuous_$ac_func
22208
22209 /* System header to define __stub macros and hopefully few prototypes,
22210     which can conflict with char $ac_func (); below.
22211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22212     <limits.h> exists even on freestanding compilers.  */
22213
22214 #ifdef __STDC__
22215 # include <limits.h>
22216 #else
22217 # include <assert.h>
22218 #endif
22219
22220 #undef $ac_func
22221
22222 /* Override any GCC internal prototype to avoid an error.
22223    Use char because int might match the return type of a GCC
22224    builtin and then its argument prototype would still apply.  */
22225 #ifdef __cplusplus
22226 extern "C"
22227 #endif
22228 char $ac_func ();
22229 /* The GNU C library defines this for functions which it implements
22230     to always fail with ENOSYS.  Some functions are actually named
22231     something starting with __ and the normal name is an alias.  */
22232 #if defined __stub_$ac_func || defined __stub___$ac_func
22233 choke me
22234 #endif
22235
22236 int
22237 main ()
22238 {
22239 return $ac_func ();
22240   ;
22241   return 0;
22242 }
22243 _ACEOF
22244 rm -f conftest.$ac_objext conftest$ac_exeext
22245 if { (ac_try="$ac_link"
22246 case "(($ac_try" in
22247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248   *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251   (eval "$ac_link") 2>conftest.er1
22252   ac_status=$?
22253   grep -v '^ *+' conftest.er1 >conftest.err
22254   rm -f conftest.er1
22255   cat conftest.err >&5
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); } &&
22258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22259   { (case "(($ac_try" in
22260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261   *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264   (eval "$ac_try") 2>&5
22265   ac_status=$?
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); }; } &&
22268          { ac_try='test -s conftest$ac_exeext'
22269   { (case "(($ac_try" in
22270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271   *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274   (eval "$ac_try") 2>&5
22275   ac_status=$?
22276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277   (exit $ac_status); }; }; then
22278   eval "$as_ac_var=yes"
22279 else
22280   echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22282
22283         eval "$as_ac_var=no"
22284 fi
22285
22286 rm -f core conftest.err conftest.$ac_objext \
22287       conftest$ac_exeext conftest.$ac_ext
22288 fi
22289 ac_res=`eval echo '${'$as_ac_var'}'`
22290                { echo "$as_me:$LINENO: result: $ac_res" >&5
22291 echo "${ECHO_T}$ac_res" >&6; }
22292 if test `eval echo '${'$as_ac_var'}'` = yes; then
22293   cat >>confdefs.h <<_ACEOF
22294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22295 _ACEOF
22296
22297 fi
22298 done
22299
22300
22301 SHLIBEXT=$libltdl_cv_shlibext
22302
22303
22304 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22305
22306
22307 if test "${prefix}" = "NONE" ; then
22308   prefix="/usr/local"
22309 fi
22310 eval LLVM_PREFIX="${prefix}";
22311 eval LLVM_BINDIR="${prefix}/bin";
22312 eval LLVM_DATADIR="${prefix}/share/llvm";
22313 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22314 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22315 eval LLVM_INCLUDEDIR="${prefix}/include";
22316 eval LLVM_INFODIR="${prefix}/info";
22317 eval LLVM_MANDIR="${prefix}/man";
22318 LLVM_CONFIGTIME=`date`
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22330   LLVM_CONFIGTIME="(timestamp not enabled)"
22331 fi
22332
22333
22334 cat >>confdefs.h <<_ACEOF
22335 #define LLVM_PREFIX "$LLVM_PREFIX"
22336 _ACEOF
22337
22338
22339 cat >>confdefs.h <<_ACEOF
22340 #define LLVM_BINDIR "$LLVM_BINDIR"
22341 _ACEOF
22342
22343
22344 cat >>confdefs.h <<_ACEOF
22345 #define LLVM_DATADIR "$LLVM_DATADIR"
22346 _ACEOF
22347
22348
22349 cat >>confdefs.h <<_ACEOF
22350 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22351 _ACEOF
22352
22353
22354 cat >>confdefs.h <<_ACEOF
22355 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22356 _ACEOF
22357
22358
22359 cat >>confdefs.h <<_ACEOF
22360 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22361 _ACEOF
22362
22363
22364 cat >>confdefs.h <<_ACEOF
22365 #define LLVM_INFODIR "$LLVM_INFODIR"
22366 _ACEOF
22367
22368
22369 cat >>confdefs.h <<_ACEOF
22370 #define LLVM_MANDIR "$LLVM_MANDIR"
22371 _ACEOF
22372
22373
22374 cat >>confdefs.h <<_ACEOF
22375 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22376 _ACEOF
22377
22378
22379 cat >>confdefs.h <<_ACEOF
22380 #define LLVM_HOST_TRIPLE "$host"
22381 _ACEOF
22382
22383
22384 cat >>confdefs.h <<_ACEOF
22385 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22386 _ACEOF
22387
22388
22389 if test "$BINDINGS_TO_BUILD" = auto ; then
22390   BINDINGS_TO_BUILD=""
22391   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22392     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22393   fi
22394 fi
22395 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22396
22397
22398 ALL_BINDINGS=ocaml
22399
22400
22401 binding_prereqs_failed=0
22402 for a_binding in $BINDINGS_TO_BUILD ; do
22403   case "$a_binding" in
22404   ocaml)
22405     if test "x$OCAMLC" = x ; then
22406       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22407 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22408       binding_prereqs_failed=1
22409     fi
22410     if test "x$OCAMLDEP" = x ; then
22411       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22412 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22413       binding_prereqs_failed=1
22414     fi
22415     if test "x$OCAMLOPT" = x ; then
22416       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22417 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22418           fi
22419     if test "x$with_ocaml_libdir" != xauto ; then
22420       OCAML_LIBDIR=$with_ocaml_libdir
22421
22422     else
22423       ocaml_stdlib="`"$OCAMLC" -where`"
22424       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22425       then
22426         # ocaml stdlib is beneath our prefix; use stdlib
22427         OCAML_LIBDIR=$ocaml_stdlib
22428
22429       else
22430         # ocaml stdlib is outside our prefix; use libdir/ocaml
22431         OCAML_LIBDIR=${prefix}/lib/ocaml
22432
22433       fi
22434     fi
22435     ;;
22436   esac
22437 done
22438 if test "$binding_prereqs_failed" = 1 ; then
22439   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22440 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22441    { (exit 1); exit 1; }; }
22442 fi
22443
22444 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22445 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22446 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22447   echo $ECHO_N "(cached) $ECHO_C" >&6
22448 else
22449    ac_ext=cpp
22450 ac_cpp='$CXXCPP $CPPFLAGS'
22451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22454
22455   oldcxxflags="$CXXFLAGS"
22456   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22457   cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22464 int
22465 main ()
22466 {
22467 X<int>().f();
22468   ;
22469   return 0;
22470 }
22471 _ACEOF
22472 rm -f conftest.$ac_objext
22473 if { (ac_try="$ac_compile"
22474 case "(($ac_try" in
22475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476   *) ac_try_echo=$ac_try;;
22477 esac
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479   (eval "$ac_compile") 2>conftest.er1
22480   ac_status=$?
22481   grep -v '^ *+' conftest.er1 >conftest.err
22482   rm -f conftest.er1
22483   cat conftest.err >&5
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } &&
22486          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22487   { (case "(($ac_try" in
22488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489   *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492   (eval "$ac_try") 2>&5
22493   ac_status=$?
22494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495   (exit $ac_status); }; } &&
22496          { ac_try='test -s conftest.$ac_objext'
22497   { (case "(($ac_try" in
22498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499   *) ac_try_echo=$ac_try;;
22500 esac
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502   (eval "$ac_try") 2>&5
22503   ac_status=$?
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); }; }; then
22506   llvm_cv_cxx_visibility_inlines_hidden=yes
22507 else
22508   echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22510
22511         llvm_cv_cxx_visibility_inlines_hidden=no
22512 fi
22513
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515   CXXFLAGS="$oldcxxflags"
22516   ac_ext=c
22517 ac_cpp='$CPP $CPPFLAGS'
22518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22521
22522
22523 fi
22524 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22525 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22526 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22527   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22528
22529 else
22530   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22531
22532 fi
22533
22534
22535 if test "$llvm_cv_link_use_r" = "yes" ; then
22536   RPATH="-Wl,-R"
22537 else
22538   RPATH="-Wl,-rpath"
22539 fi
22540
22541
22542 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22543   RDYNAMIC="-Wl,-export-dynamic"
22544 else
22545   RDYNAMIC=""
22546 fi
22547
22548
22549
22550 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22551
22552
22553
22554
22555
22556
22557 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22558
22559 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22560
22561 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22562
22563 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22564
22565 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22566
22567
22568 ac_config_files="$ac_config_files Makefile.config"
22569
22570
22571 ac_config_files="$ac_config_files llvm.spec"
22572
22573
22574 ac_config_files="$ac_config_files docs/doxygen.cfg"
22575
22576
22577 if test "${clang_src_root}" = ""; then
22578   clang_src_root="$srcdir/tools/clang"
22579 fi
22580 if test -f ${clang_src_root}/README.txt; then
22581     configh="include/clang/Config/config.h"
22582   doxy="docs/doxygen.cfg"
22583   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22584
22585   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22586
22587 fi
22588
22589 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22590
22591
22592 test "x$program_prefix" = "xNONE" && program_prefix=""
22593
22594
22595
22596 ac_config_commands="$ac_config_commands setup"
22597
22598 ac_config_commands="$ac_config_commands Makefile"
22599
22600
22601 ac_config_commands="$ac_config_commands Makefile.common"
22602
22603
22604 ac_config_commands="$ac_config_commands examples/Makefile"
22605
22606
22607 ac_config_commands="$ac_config_commands lib/Makefile"
22608
22609
22610 ac_config_commands="$ac_config_commands runtime/Makefile"
22611
22612
22613 ac_config_commands="$ac_config_commands test/Makefile"
22614
22615
22616 ac_config_commands="$ac_config_commands test/Makefile.tests"
22617
22618
22619 ac_config_commands="$ac_config_commands unittests/Makefile"
22620
22621
22622 ac_config_commands="$ac_config_commands tools/Makefile"
22623
22624
22625 ac_config_commands="$ac_config_commands utils/Makefile"
22626
22627
22628 ac_config_commands="$ac_config_commands projects/Makefile"
22629
22630
22631 ac_config_commands="$ac_config_commands bindings/Makefile"
22632
22633
22634 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22635
22636
22637
22638 cat >confcache <<\_ACEOF
22639 # This file is a shell script that caches the results of configure
22640 # tests run on this system so they can be shared between configure
22641 # scripts and configure runs, see configure's option --config-cache.
22642 # It is not useful on other systems.  If it contains results you don't
22643 # want to keep, you may remove or edit it.
22644 #
22645 # config.status only pays attention to the cache file if you give it
22646 # the --recheck option to rerun configure.
22647 #
22648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22650 # following values.
22651
22652 _ACEOF
22653
22654 # The following way of writing the cache mishandles newlines in values,
22655 # but we know of no workaround that is simple, portable, and efficient.
22656 # So, we kill variables containing newlines.
22657 # Ultrix sh set writes to stderr and can't be redirected directly,
22658 # and sets the high bit in the cache file unless we assign to the vars.
22659 (
22660   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22661     eval ac_val=\$$ac_var
22662     case $ac_val in #(
22663     *${as_nl}*)
22664       case $ac_var in #(
22665       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22666 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22667       esac
22668       case $ac_var in #(
22669       _ | IFS | as_nl) ;; #(
22670       *) $as_unset $ac_var ;;
22671       esac ;;
22672     esac
22673   done
22674
22675   (set) 2>&1 |
22676     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22677     *${as_nl}ac_space=\ *)
22678       # `set' does not quote correctly, so add quotes (double-quote
22679       # substitution turns \\\\ into \\, and sed turns \\ into \).
22680       sed -n \
22681         "s/'/'\\\\''/g;
22682           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22683       ;; #(
22684     *)
22685       # `set' quotes correctly as required by POSIX, so do not add quotes.
22686       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22687       ;;
22688     esac |
22689     sort
22690 ) |
22691   sed '
22692      /^ac_cv_env_/b end
22693      t clear
22694      :clear
22695      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22696      t end
22697      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22698      :end' >>confcache
22699 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22700   if test -w "$cache_file"; then
22701     test "x$cache_file" != "x/dev/null" &&
22702       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22703 echo "$as_me: updating cache $cache_file" >&6;}
22704     cat confcache >$cache_file
22705   else
22706     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22707 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22708   fi
22709 fi
22710 rm -f confcache
22711
22712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22713 # Let make expand exec_prefix.
22714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22715
22716 DEFS=-DHAVE_CONFIG_H
22717
22718 ac_libobjs=
22719 ac_ltlibobjs=
22720 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22721   # 1. Remove the extension, and $U if already installed.
22722   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22723   ac_i=`echo "$ac_i" | sed "$ac_script"`
22724   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22725   #    will be set to the directory where LIBOBJS objects are built.
22726   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22727   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22728 done
22729 LIBOBJS=$ac_libobjs
22730
22731 LTLIBOBJS=$ac_ltlibobjs
22732
22733
22734 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22735   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22736 Usually this means the macro was only invoked conditionally." >&5
22737 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22738 Usually this means the macro was only invoked conditionally." >&2;}
22739    { (exit 1); exit 1; }; }
22740 fi
22741 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22742   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22743 Usually this means the macro was only invoked conditionally." >&5
22744 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22745 Usually this means the macro was only invoked conditionally." >&2;}
22746    { (exit 1); exit 1; }; }
22747 fi
22748
22749 : ${CONFIG_STATUS=./config.status}
22750 ac_clean_files_save=$ac_clean_files
22751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22754 cat >$CONFIG_STATUS <<_ACEOF
22755 #! $SHELL
22756 # Generated by $as_me.
22757 # Run this file to recreate the current configuration.
22758 # Compiler output produced by configure, useful for debugging
22759 # configure, is in config.log if it exists.
22760
22761 debug=false
22762 ac_cs_recheck=false
22763 ac_cs_silent=false
22764 SHELL=\${CONFIG_SHELL-$SHELL}
22765 _ACEOF
22766
22767 cat >>$CONFIG_STATUS <<\_ACEOF
22768 ## --------------------- ##
22769 ## M4sh Initialization.  ##
22770 ## --------------------- ##
22771
22772 # Be Bourne compatible
22773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22774   emulate sh
22775   NULLCMD=:
22776   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22777   # is contrary to our usage.  Disable this feature.
22778   alias -g '${1+"$@"}'='"$@"'
22779   setopt NO_GLOB_SUBST
22780 else
22781   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22782 fi
22783 BIN_SH=xpg4; export BIN_SH # for Tru64
22784 DUALCASE=1; export DUALCASE # for MKS sh
22785
22786
22787 # PATH needs CR
22788 # Avoid depending upon Character Ranges.
22789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22792 as_cr_digits='0123456789'
22793 as_cr_alnum=$as_cr_Letters$as_cr_digits
22794
22795 # The user is always right.
22796 if test "${PATH_SEPARATOR+set}" != set; then
22797   echo "#! /bin/sh" >conf$$.sh
22798   echo  "exit 0"   >>conf$$.sh
22799   chmod +x conf$$.sh
22800   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22801     PATH_SEPARATOR=';'
22802   else
22803     PATH_SEPARATOR=:
22804   fi
22805   rm -f conf$$.sh
22806 fi
22807
22808 # Support unset when possible.
22809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22810   as_unset=unset
22811 else
22812   as_unset=false
22813 fi
22814
22815
22816 # IFS
22817 # We need space, tab and new line, in precisely that order.  Quoting is
22818 # there to prevent editors from complaining about space-tab.
22819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22820 # splitting by setting IFS to empty value.)
22821 as_nl='
22822 '
22823 IFS=" ""        $as_nl"
22824
22825 # Find who we are.  Look in the path if we contain no directory separator.
22826 case $0 in
22827   *[\\/]* ) as_myself=$0 ;;
22828   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22829 for as_dir in $PATH
22830 do
22831   IFS=$as_save_IFS
22832   test -z "$as_dir" && as_dir=.
22833   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22834 done
22835 IFS=$as_save_IFS
22836
22837      ;;
22838 esac
22839 # We did not find ourselves, most probably we were run as `sh COMMAND'
22840 # in which case we are not to be found in the path.
22841 if test "x$as_myself" = x; then
22842   as_myself=$0
22843 fi
22844 if test ! -f "$as_myself"; then
22845   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22846   { (exit 1); exit 1; }
22847 fi
22848
22849 # Work around bugs in pre-3.0 UWIN ksh.
22850 for as_var in ENV MAIL MAILPATH
22851 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22852 done
22853 PS1='$ '
22854 PS2='> '
22855 PS4='+ '
22856
22857 # NLS nuisances.
22858 for as_var in \
22859   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22860   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22861   LC_TELEPHONE LC_TIME
22862 do
22863   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22864     eval $as_var=C; export $as_var
22865   else
22866     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22867   fi
22868 done
22869
22870 # Required to use basename.
22871 if expr a : '\(a\)' >/dev/null 2>&1 &&
22872    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22873   as_expr=expr
22874 else
22875   as_expr=false
22876 fi
22877
22878 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22879   as_basename=basename
22880 else
22881   as_basename=false
22882 fi
22883
22884
22885 # Name of the executable.
22886 as_me=`$as_basename -- "$0" ||
22887 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22888          X"$0" : 'X\(//\)$' \| \
22889          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22890 echo X/"$0" |
22891     sed '/^.*\/\([^/][^/]*\)\/*$/{
22892             s//\1/
22893             q
22894           }
22895           /^X\/\(\/\/\)$/{
22896             s//\1/
22897             q
22898           }
22899           /^X\/\(\/\).*/{
22900             s//\1/
22901             q
22902           }
22903           s/.*/./; q'`
22904
22905 # CDPATH.
22906 $as_unset CDPATH
22907
22908
22909
22910   as_lineno_1=$LINENO
22911   as_lineno_2=$LINENO
22912   test "x$as_lineno_1" != "x$as_lineno_2" &&
22913   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22914
22915   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22916   # uniformly replaced by the line number.  The first 'sed' inserts a
22917   # line-number line after each line using $LINENO; the second 'sed'
22918   # does the real work.  The second script uses 'N' to pair each
22919   # line-number line with the line containing $LINENO, and appends
22920   # trailing '-' during substitution so that $LINENO is not a special
22921   # case at line end.
22922   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22923   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22924   # E. McMahon (1931-1989) for sed's syntax.  :-)
22925   sed -n '
22926     p
22927     /[$]LINENO/=
22928   ' <$as_myself |
22929     sed '
22930       s/[$]LINENO.*/&-/
22931       t lineno
22932       b
22933       :lineno
22934       N
22935       :loop
22936       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22937       t loop
22938       s/-\n.*//
22939     ' >$as_me.lineno &&
22940   chmod +x "$as_me.lineno" ||
22941     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22942    { (exit 1); exit 1; }; }
22943
22944   # Don't try to exec as it changes $[0], causing all sort of problems
22945   # (the dirname of $[0] is not the place where we might find the
22946   # original and so on.  Autoconf is especially sensitive to this).
22947   . "./$as_me.lineno"
22948   # Exit status is that of the last command.
22949   exit
22950 }
22951
22952
22953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22954   as_dirname=dirname
22955 else
22956   as_dirname=false
22957 fi
22958
22959 ECHO_C= ECHO_N= ECHO_T=
22960 case `echo -n x` in
22961 -n*)
22962   case `echo 'x\c'` in
22963   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22964   *)   ECHO_C='\c';;
22965   esac;;
22966 *)
22967   ECHO_N='-n';;
22968 esac
22969
22970 if expr a : '\(a\)' >/dev/null 2>&1 &&
22971    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22972   as_expr=expr
22973 else
22974   as_expr=false
22975 fi
22976
22977 rm -f conf$$ conf$$.exe conf$$.file
22978 if test -d conf$$.dir; then
22979   rm -f conf$$.dir/conf$$.file
22980 else
22981   rm -f conf$$.dir
22982   mkdir conf$$.dir
22983 fi
22984 echo >conf$$.file
22985 if ln -s conf$$.file conf$$ 2>/dev/null; then
22986   as_ln_s='ln -s'
22987   # ... but there are two gotchas:
22988   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22989   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22990   # In both cases, we have to default to `cp -p'.
22991   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22992     as_ln_s='cp -p'
22993 elif ln conf$$.file conf$$ 2>/dev/null; then
22994   as_ln_s=ln
22995 else
22996   as_ln_s='cp -p'
22997 fi
22998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22999 rmdir conf$$.dir 2>/dev/null
23000
23001 if mkdir -p . 2>/dev/null; then
23002   as_mkdir_p=:
23003 else
23004   test -d ./-p && rmdir ./-p
23005   as_mkdir_p=false
23006 fi
23007
23008 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23009 # systems may use methods other than mode bits to determine executability.
23010 cat >conf$$.file <<_ASEOF
23011 #! /bin/sh
23012 exit 0
23013 _ASEOF
23014 chmod +x conf$$.file
23015 if test -x conf$$.file >/dev/null 2>&1; then
23016   as_executable_p="test -x"
23017 else
23018   as_executable_p=:
23019 fi
23020 rm -f conf$$.file
23021
23022 # Sed expression to map a string onto a valid CPP name.
23023 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23024
23025 # Sed expression to map a string onto a valid variable name.
23026 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23027
23028
23029 exec 6>&1
23030
23031 # Save the log message, to keep $[0] and so on meaningful, and to
23032 # report actual input values of CONFIG_FILES etc. instead of their
23033 # values after options handling.
23034 ac_log="
23035 This file was extended by LLVM $as_me 3.4svn, which was
23036 generated by GNU Autoconf 2.60.  Invocation command line was
23037
23038   CONFIG_FILES    = $CONFIG_FILES
23039   CONFIG_HEADERS  = $CONFIG_HEADERS
23040   CONFIG_LINKS    = $CONFIG_LINKS
23041   CONFIG_COMMANDS = $CONFIG_COMMANDS
23042   $ $0 $@
23043
23044 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23045 "
23046
23047 _ACEOF
23048
23049 cat >>$CONFIG_STATUS <<_ACEOF
23050 # Files that config.status was made for.
23051 config_files="$ac_config_files"
23052 config_headers="$ac_config_headers"
23053 config_commands="$ac_config_commands"
23054
23055 _ACEOF
23056
23057 cat >>$CONFIG_STATUS <<\_ACEOF
23058 ac_cs_usage="\
23059 \`$as_me' instantiates files from templates according to the
23060 current configuration.
23061
23062 Usage: $0 [OPTIONS] [FILE]...
23063
23064   -h, --help       print this help, then exit
23065   -V, --version    print version number, then exit
23066   -q, --quiet      do not print progress messages
23067   -d, --debug      don't remove temporary files
23068       --recheck    update $as_me by reconfiguring in the same conditions
23069   --file=FILE[:TEMPLATE]
23070                    instantiate the configuration file FILE
23071   --header=FILE[:TEMPLATE]
23072                    instantiate the configuration header FILE
23073
23074 Configuration files:
23075 $config_files
23076
23077 Configuration headers:
23078 $config_headers
23079
23080 Configuration commands:
23081 $config_commands
23082
23083 Report bugs to <bug-autoconf@gnu.org>."
23084
23085 _ACEOF
23086 cat >>$CONFIG_STATUS <<_ACEOF
23087 ac_cs_version="\\
23088 LLVM config.status 3.4svn
23089 configured by $0, generated by GNU Autoconf 2.60,
23090   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23091
23092 Copyright (C) 2006 Free Software Foundation, Inc.
23093 This config.status script is free software; the Free Software Foundation
23094 gives unlimited permission to copy, distribute and modify it."
23095
23096 ac_pwd='$ac_pwd'
23097 srcdir='$srcdir'
23098 INSTALL='$INSTALL'
23099 _ACEOF
23100
23101 cat >>$CONFIG_STATUS <<\_ACEOF
23102 # If no file are specified by the user, then we need to provide default
23103 # value.  By we need to know if files were specified by the user.
23104 ac_need_defaults=:
23105 while test $# != 0
23106 do
23107   case $1 in
23108   --*=*)
23109     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23110     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23111     ac_shift=:
23112     ;;
23113   *)
23114     ac_option=$1
23115     ac_optarg=$2
23116     ac_shift=shift
23117     ;;
23118   esac
23119
23120   case $ac_option in
23121   # Handling of the options.
23122   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23123     ac_cs_recheck=: ;;
23124   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23125     echo "$ac_cs_version"; exit ;;
23126   --debug | --debu | --deb | --de | --d | -d )
23127     debug=: ;;
23128   --file | --fil | --fi | --f )
23129     $ac_shift
23130     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23131     ac_need_defaults=false;;
23132   --header | --heade | --head | --hea )
23133     $ac_shift
23134     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23135     ac_need_defaults=false;;
23136   --he | --h)
23137     # Conflict between --help and --header
23138     { echo "$as_me: error: ambiguous option: $1
23139 Try \`$0 --help' for more information." >&2
23140    { (exit 1); exit 1; }; };;
23141   --help | --hel | -h )
23142     echo "$ac_cs_usage"; exit ;;
23143   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23144   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23145     ac_cs_silent=: ;;
23146
23147   # This is an error.
23148   -*) { echo "$as_me: error: unrecognized option: $1
23149 Try \`$0 --help' for more information." >&2
23150    { (exit 1); exit 1; }; } ;;
23151
23152   *) ac_config_targets="$ac_config_targets $1"
23153      ac_need_defaults=false ;;
23154
23155   esac
23156   shift
23157 done
23158
23159 ac_configure_extra_args=
23160
23161 if $ac_cs_silent; then
23162   exec 6>/dev/null
23163   ac_configure_extra_args="$ac_configure_extra_args --silent"
23164 fi
23165
23166 _ACEOF
23167 cat >>$CONFIG_STATUS <<_ACEOF
23168 if \$ac_cs_recheck; then
23169   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23170   CONFIG_SHELL=$SHELL
23171   export CONFIG_SHELL
23172   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23173 fi
23174
23175 _ACEOF
23176 cat >>$CONFIG_STATUS <<\_ACEOF
23177 exec 5>>config.log
23178 {
23179   echo
23180   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23181 ## Running $as_me. ##
23182 _ASBOX
23183   echo "$ac_log"
23184 } >&5
23185
23186 _ACEOF
23187 cat >>$CONFIG_STATUS <<_ACEOF
23188 #
23189 # INIT-COMMANDS
23190 #
23191 llvm_src="${srcdir}"
23192
23193 _ACEOF
23194
23195 cat >>$CONFIG_STATUS <<\_ACEOF
23196
23197 # Handling of arguments.
23198 for ac_config_target in $ac_config_targets
23199 do
23200   case $ac_config_target in
23201     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23202     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23203     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23204     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23205     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23206     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23207     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23208     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23209     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23210     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23211     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23212     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23213     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23214     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23215     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23216     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23217     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23218     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23219     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23220     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23221     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23222     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23223     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23224     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23225     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23226     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23227     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23228
23229   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23231    { (exit 1); exit 1; }; };;
23232   esac
23233 done
23234
23235
23236 # If the user did not use the arguments to specify the items to instantiate,
23237 # then the envvar interface is used.  Set only those that are not.
23238 # We use the long form for the default assignment because of an extremely
23239 # bizarre bug on SunOS 4.1.3.
23240 if $ac_need_defaults; then
23241   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23242   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23243   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23244 fi
23245
23246 # Have a temporary directory for convenience.  Make it in the build tree
23247 # simply because there is no reason against having it here, and in addition,
23248 # creating and moving files from /tmp can sometimes cause problems.
23249 # Hook for its removal unless debugging.
23250 # Note that there is a small window in which the directory will not be cleaned:
23251 # after its creation but before its name has been assigned to `$tmp'.
23252 $debug ||
23253 {
23254   tmp=
23255   trap 'exit_status=$?
23256   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23257 ' 0
23258   trap '{ (exit 1); exit 1; }' 1 2 13 15
23259 }
23260 # Create a (secure) tmp directory for tmp files.
23261
23262 {
23263   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23264   test -n "$tmp" && test -d "$tmp"
23265 }  ||
23266 {
23267   tmp=./conf$$-$RANDOM
23268   (umask 077 && mkdir "$tmp")
23269 } ||
23270 {
23271    echo "$me: cannot create a temporary directory in ." >&2
23272    { (exit 1); exit 1; }
23273 }
23274
23275 #
23276 # Set up the sed scripts for CONFIG_FILES section.
23277 #
23278
23279 # No need to generate the scripts if there are no CONFIG_FILES.
23280 # This happens for instance when ./config.status config.h
23281 if test -n "$CONFIG_FILES"; then
23282
23283 _ACEOF
23284
23285
23286
23287 ac_delim='%!_!# '
23288 for ac_last_try in false false false false false :; do
23289   cat >conf$$subs.sed <<_ACEOF
23290 SHELL!$SHELL$ac_delim
23291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23297 exec_prefix!$exec_prefix$ac_delim
23298 prefix!$prefix$ac_delim
23299 program_transform_name!$program_transform_name$ac_delim
23300 bindir!$bindir$ac_delim
23301 sbindir!$sbindir$ac_delim
23302 libexecdir!$libexecdir$ac_delim
23303 datarootdir!$datarootdir$ac_delim
23304 datadir!$datadir$ac_delim
23305 sysconfdir!$sysconfdir$ac_delim
23306 sharedstatedir!$sharedstatedir$ac_delim
23307 localstatedir!$localstatedir$ac_delim
23308 includedir!$includedir$ac_delim
23309 oldincludedir!$oldincludedir$ac_delim
23310 docdir!$docdir$ac_delim
23311 infodir!$infodir$ac_delim
23312 htmldir!$htmldir$ac_delim
23313 dvidir!$dvidir$ac_delim
23314 pdfdir!$pdfdir$ac_delim
23315 psdir!$psdir$ac_delim
23316 libdir!$libdir$ac_delim
23317 localedir!$localedir$ac_delim
23318 mandir!$mandir$ac_delim
23319 DEFS!$DEFS$ac_delim
23320 ECHO_C!$ECHO_C$ac_delim
23321 ECHO_N!$ECHO_N$ac_delim
23322 ECHO_T!$ECHO_T$ac_delim
23323 LIBS!$LIBS$ac_delim
23324 build_alias!$build_alias$ac_delim
23325 host_alias!$host_alias$ac_delim
23326 target_alias!$target_alias$ac_delim
23327 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23328 CC!$CC$ac_delim
23329 CFLAGS!$CFLAGS$ac_delim
23330 LDFLAGS!$LDFLAGS$ac_delim
23331 CPPFLAGS!$CPPFLAGS$ac_delim
23332 ac_ct_CC!$ac_ct_CC$ac_delim
23333 EXEEXT!$EXEEXT$ac_delim
23334 OBJEXT!$OBJEXT$ac_delim
23335 CXX!$CXX$ac_delim
23336 CXXFLAGS!$CXXFLAGS$ac_delim
23337 ac_ct_CXX!$ac_ct_CXX$ac_delim
23338 CPP!$CPP$ac_delim
23339 subdirs!$subdirs$ac_delim
23340 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23341 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23342 build!$build$ac_delim
23343 build_cpu!$build_cpu$ac_delim
23344 build_vendor!$build_vendor$ac_delim
23345 build_os!$build_os$ac_delim
23346 host!$host$ac_delim
23347 host_cpu!$host_cpu$ac_delim
23348 host_vendor!$host_vendor$ac_delim
23349 host_os!$host_os$ac_delim
23350 target!$target$ac_delim
23351 target_cpu!$target_cpu$ac_delim
23352 target_vendor!$target_vendor$ac_delim
23353 target_os!$target_os$ac_delim
23354 OS!$OS$ac_delim
23355 HOST_OS!$HOST_OS$ac_delim
23356 TARGET_OS!$TARGET_OS$ac_delim
23357 LINKALL!$LINKALL$ac_delim
23358 NOLINKALL!$NOLINKALL$ac_delim
23359 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23360 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23361 ARCH!$ARCH$ac_delim
23362 HOST_ARCH!$HOST_ARCH$ac_delim
23363 ENDIAN!$ENDIAN$ac_delim
23364 GREP!$GREP$ac_delim
23365 EGREP!$EGREP$ac_delim
23366 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23367 BUILD_CC!$BUILD_CC$ac_delim
23368 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23369 BUILD_CXX!$BUILD_CXX$ac_delim
23370 CVSBUILD!$CVSBUILD$ac_delim
23371 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23372 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23373 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23374 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23375 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23376 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23377 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23378 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23379 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23380 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23381 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23382 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23383 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23384 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23385 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23386 JIT!$JIT$ac_delim
23387 _ACEOF
23388
23389   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23390     break
23391   elif $ac_last_try; then
23392     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23394    { (exit 1); exit 1; }; }
23395   else
23396     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23397   fi
23398 done
23399
23400 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23401 if test -n "$ac_eof"; then
23402   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23403   ac_eof=`expr $ac_eof + 1`
23404 fi
23405
23406 cat >>$CONFIG_STATUS <<_ACEOF
23407 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23409 _ACEOF
23410 sed '
23411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23412 s/^/s,@/; s/!/@,|#_!!_#|/
23413 :n
23414 t n
23415 s/'"$ac_delim"'$/,g/; t
23416 s/$/\\/; p
23417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23418 ' >>$CONFIG_STATUS <conf$$subs.sed
23419 rm -f conf$$subs.sed
23420 cat >>$CONFIG_STATUS <<_ACEOF
23421 CEOF$ac_eof
23422 _ACEOF
23423
23424
23425 ac_delim='%!_!# '
23426 for ac_last_try in false false false false false :; do
23427   cat >conf$$subs.sed <<_ACEOF
23428 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23429 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23430 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23431 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23432 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23433 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23434 ENABLE_PIC!$ENABLE_PIC$ac_delim
23435 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23436 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23437 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23438 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23439 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23440 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23441 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23442 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23443 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23444 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23445 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23446 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23447 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23448 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23449 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23450 NM!$NM$ac_delim
23451 ifGNUmake!$ifGNUmake$ac_delim
23452 LN_S!$LN_S$ac_delim
23453 CMP!$CMP$ac_delim
23454 CP!$CP$ac_delim
23455 DATE!$DATE$ac_delim
23456 FIND!$FIND$ac_delim
23457 MKDIR!$MKDIR$ac_delim
23458 MV!$MV$ac_delim
23459 RANLIB!$RANLIB$ac_delim
23460 AR!$AR$ac_delim
23461 RM!$RM$ac_delim
23462 SED!$SED$ac_delim
23463 TAR!$TAR$ac_delim
23464 BINPWD!$BINPWD$ac_delim
23465 GRAPHVIZ!$GRAPHVIZ$ac_delim
23466 DOT!$DOT$ac_delim
23467 FDP!$FDP$ac_delim
23468 NEATO!$NEATO$ac_delim
23469 TWOPI!$TWOPI$ac_delim
23470 CIRCO!$CIRCO$ac_delim
23471 GV!$GV$ac_delim
23472 DOTTY!$DOTTY$ac_delim
23473 XDOT_PY!$XDOT_PY$ac_delim
23474 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23475 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23476 INSTALL_DATA!$INSTALL_DATA$ac_delim
23477 BZIP2!$BZIP2$ac_delim
23478 CAT!$CAT$ac_delim
23479 DOXYGEN!$DOXYGEN$ac_delim
23480 GROFF!$GROFF$ac_delim
23481 GZIPBIN!$GZIPBIN$ac_delim
23482 PDFROFF!$PDFROFF$ac_delim
23483 ZIP!$ZIP$ac_delim
23484 OCAMLC!$OCAMLC$ac_delim
23485 OCAMLOPT!$OCAMLOPT$ac_delim
23486 OCAMLDEP!$OCAMLDEP$ac_delim
23487 OCAMLDOC!$OCAMLDOC$ac_delim
23488 GAS!$GAS$ac_delim
23489 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23490 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23491 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23492 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23493 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23494 LIBADD_DL!$LIBADD_DL$ac_delim
23495 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23496 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23497 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23498 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23499 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23500 PYTHON!$PYTHON$ac_delim
23501 USE_UDIS86!$USE_UDIS86$ac_delim
23502 USE_OPROFILE!$USE_OPROFILE$ac_delim
23503 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23504 XML2CONFIG!$XML2CONFIG$ac_delim
23505 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23506 LIBXML2_INC!$LIBXML2_INC$ac_delim
23507 CXXCPP!$CXXCPP$ac_delim
23508 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23509 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23510 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23511 MMAP_FILE!$MMAP_FILE$ac_delim
23512 SHLIBEXT!$SHLIBEXT$ac_delim
23513 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23514 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23515 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23516 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23517 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23518 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23519 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23520 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23521 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23522 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23523 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23524 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23525 _ACEOF
23526
23527   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23528     break
23529   elif $ac_last_try; then
23530     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23531 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23532    { (exit 1); exit 1; }; }
23533   else
23534     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23535   fi
23536 done
23537
23538 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23539 if test -n "$ac_eof"; then
23540   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23541   ac_eof=`expr $ac_eof + 1`
23542 fi
23543
23544 cat >>$CONFIG_STATUS <<_ACEOF
23545 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23547 _ACEOF
23548 sed '
23549 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23550 s/^/s,@/; s/!/@,|#_!!_#|/
23551 :n
23552 t n
23553 s/'"$ac_delim"'$/,g/; t
23554 s/$/\\/; p
23555 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23556 ' >>$CONFIG_STATUS <conf$$subs.sed
23557 rm -f conf$$subs.sed
23558 cat >>$CONFIG_STATUS <<_ACEOF
23559 CEOF$ac_eof
23560 _ACEOF
23561
23562
23563 ac_delim='%!_!# '
23564 for ac_last_try in false false false false false :; do
23565   cat >conf$$subs.sed <<_ACEOF
23566 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23567 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23568 RPATH!$RPATH$ac_delim
23569 RDYNAMIC!$RDYNAMIC$ac_delim
23570 program_prefix!$program_prefix$ac_delim
23571 LIBOBJS!$LIBOBJS$ac_delim
23572 LTLIBOBJS!$LTLIBOBJS$ac_delim
23573 _ACEOF
23574
23575   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23576     break
23577   elif $ac_last_try; then
23578     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23579 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23580    { (exit 1); exit 1; }; }
23581   else
23582     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23583   fi
23584 done
23585
23586 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23587 if test -n "$ac_eof"; then
23588   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23589   ac_eof=`expr $ac_eof + 1`
23590 fi
23591
23592 cat >>$CONFIG_STATUS <<_ACEOF
23593 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23595 _ACEOF
23596 sed '
23597 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23598 s/^/s,@/; s/!/@,|#_!!_#|/
23599 :n
23600 t n
23601 s/'"$ac_delim"'$/,g/; t
23602 s/$/\\/; p
23603 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23604 ' >>$CONFIG_STATUS <conf$$subs.sed
23605 rm -f conf$$subs.sed
23606 cat >>$CONFIG_STATUS <<_ACEOF
23607 :end
23608 s/|#_!!_#|//g
23609 CEOF$ac_eof
23610 _ACEOF
23611
23612
23613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23615 # trailing colons and then remove the whole line if VPATH becomes empty
23616 # (actually we leave an empty line to preserve line numbers).
23617 if test "x$srcdir" = x.; then
23618   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23619 s/:*\$(srcdir):*/:/
23620 s/:*\${srcdir}:*/:/
23621 s/:*@srcdir@:*/:/
23622 s/^\([^=]*=[     ]*\):*/\1/
23623 s/:*$//
23624 s/^[^=]*=[       ]*$//
23625 }'
23626 fi
23627
23628 cat >>$CONFIG_STATUS <<\_ACEOF
23629 fi # test -n "$CONFIG_FILES"
23630
23631
23632 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23633 do
23634   case $ac_tag in
23635   :[FHLC]) ac_mode=$ac_tag; continue;;
23636   esac
23637   case $ac_mode$ac_tag in
23638   :[FHL]*:*);;
23639   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23640 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23641    { (exit 1); exit 1; }; };;
23642   :[FH]-) ac_tag=-:-;;
23643   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23644   esac
23645   ac_save_IFS=$IFS
23646   IFS=:
23647   set x $ac_tag
23648   IFS=$ac_save_IFS
23649   shift
23650   ac_file=$1
23651   shift
23652
23653   case $ac_mode in
23654   :L) ac_source=$1;;
23655   :[FH])
23656     ac_file_inputs=
23657     for ac_f
23658     do
23659       case $ac_f in
23660       -) ac_f="$tmp/stdin";;
23661       *) # Look for the file first in the build tree, then in the source tree
23662          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23663          # because $ac_f cannot contain `:'.
23664          test -f "$ac_f" ||
23665            case $ac_f in
23666            [\\/$]*) false;;
23667            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23668            esac ||
23669            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23670 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23671    { (exit 1); exit 1; }; };;
23672       esac
23673       ac_file_inputs="$ac_file_inputs $ac_f"
23674     done
23675
23676     # Let's still pretend it is `configure' which instantiates (i.e., don't
23677     # use $as_me), people would be surprised to read:
23678     #    /* config.h.  Generated by config.status.  */
23679     configure_input="Generated from "`IFS=:
23680           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23681     if test x"$ac_file" != x-; then
23682       configure_input="$ac_file.  $configure_input"
23683       { echo "$as_me:$LINENO: creating $ac_file" >&5
23684 echo "$as_me: creating $ac_file" >&6;}
23685     fi
23686
23687     case $ac_tag in
23688     *:-:* | *:-) cat >"$tmp/stdin";;
23689     esac
23690     ;;
23691   esac
23692
23693   ac_dir=`$as_dirname -- "$ac_file" ||
23694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23695          X"$ac_file" : 'X\(//\)[^/]' \| \
23696          X"$ac_file" : 'X\(//\)$' \| \
23697          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23698 echo X"$ac_file" |
23699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23700             s//\1/
23701             q
23702           }
23703           /^X\(\/\/\)[^/].*/{
23704             s//\1/
23705             q
23706           }
23707           /^X\(\/\/\)$/{
23708             s//\1/
23709             q
23710           }
23711           /^X\(\/\).*/{
23712             s//\1/
23713             q
23714           }
23715           s/.*/./; q'`
23716   { as_dir="$ac_dir"
23717   case $as_dir in #(
23718   -*) as_dir=./$as_dir;;
23719   esac
23720   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23721     as_dirs=
23722     while :; do
23723       case $as_dir in #(
23724       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23725       *) as_qdir=$as_dir;;
23726       esac
23727       as_dirs="'$as_qdir' $as_dirs"
23728       as_dir=`$as_dirname -- "$as_dir" ||
23729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730          X"$as_dir" : 'X\(//\)[^/]' \| \
23731          X"$as_dir" : 'X\(//\)$' \| \
23732          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23733 echo X"$as_dir" |
23734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23735             s//\1/
23736             q
23737           }
23738           /^X\(\/\/\)[^/].*/{
23739             s//\1/
23740             q
23741           }
23742           /^X\(\/\/\)$/{
23743             s//\1/
23744             q
23745           }
23746           /^X\(\/\).*/{
23747             s//\1/
23748             q
23749           }
23750           s/.*/./; q'`
23751       test -d "$as_dir" && break
23752     done
23753     test -z "$as_dirs" || eval "mkdir $as_dirs"
23754   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23755 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23756    { (exit 1); exit 1; }; }; }
23757   ac_builddir=.
23758
23759 case "$ac_dir" in
23760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23761 *)
23762   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23763   # A ".." for each directory in $ac_dir_suffix.
23764   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23765   case $ac_top_builddir_sub in
23766   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23767   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23768   esac ;;
23769 esac
23770 ac_abs_top_builddir=$ac_pwd
23771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23772 # for backward compatibility:
23773 ac_top_builddir=$ac_top_build_prefix
23774
23775 case $srcdir in
23776   .)  # We are building in place.
23777     ac_srcdir=.
23778     ac_top_srcdir=$ac_top_builddir_sub
23779     ac_abs_top_srcdir=$ac_pwd ;;
23780   [\\/]* | ?:[\\/]* )  # Absolute name.
23781     ac_srcdir=$srcdir$ac_dir_suffix;
23782     ac_top_srcdir=$srcdir
23783     ac_abs_top_srcdir=$srcdir ;;
23784   *) # Relative name.
23785     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23786     ac_top_srcdir=$ac_top_build_prefix$srcdir
23787     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23788 esac
23789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23790
23791
23792   case $ac_mode in
23793   :F)
23794   #
23795   # CONFIG_FILE
23796   #
23797
23798   case $INSTALL in
23799   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23800   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23801   esac
23802 _ACEOF
23803
23804 cat >>$CONFIG_STATUS <<\_ACEOF
23805 # If the template does not know about datarootdir, expand it.
23806 # FIXME: This hack should be removed a few years after 2.60.
23807 ac_datarootdir_hack=; ac_datarootdir_seen=
23808
23809 case `sed -n '/datarootdir/ {
23810   p
23811   q
23812 }
23813 /@datadir@/p
23814 /@docdir@/p
23815 /@infodir@/p
23816 /@localedir@/p
23817 /@mandir@/p
23818 ' $ac_file_inputs` in
23819 *datarootdir*) ac_datarootdir_seen=yes;;
23820 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23821   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23822 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23823 _ACEOF
23824 cat >>$CONFIG_STATUS <<_ACEOF
23825   ac_datarootdir_hack='
23826   s&@datadir@&$datadir&g
23827   s&@docdir@&$docdir&g
23828   s&@infodir@&$infodir&g
23829   s&@localedir@&$localedir&g
23830   s&@mandir@&$mandir&g
23831     s&\\\${datarootdir}&$datarootdir&g' ;;
23832 esac
23833 _ACEOF
23834
23835 # Neutralize VPATH when `$srcdir' = `.'.
23836 # Shell code in configure.ac might set extrasub.
23837 # FIXME: do we really want to maintain this feature?
23838 cat >>$CONFIG_STATUS <<_ACEOF
23839   sed "$ac_vpsub
23840 $extrasub
23841 _ACEOF
23842 cat >>$CONFIG_STATUS <<\_ACEOF
23843 :t
23844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23845 s&@configure_input@&$configure_input&;t t
23846 s&@top_builddir@&$ac_top_builddir_sub&;t t
23847 s&@srcdir@&$ac_srcdir&;t t
23848 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23849 s&@top_srcdir@&$ac_top_srcdir&;t t
23850 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23851 s&@builddir@&$ac_builddir&;t t
23852 s&@abs_builddir@&$ac_abs_builddir&;t t
23853 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23854 s&@INSTALL@&$ac_INSTALL&;t t
23855 $ac_datarootdir_hack
23856 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23857
23858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23859   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23860   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23861   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined.  Please make sure it is defined." >&5
23863 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23864 which seems to be undefined.  Please make sure it is defined." >&2;}
23865
23866   rm -f "$tmp/stdin"
23867   case $ac_file in
23868   -) cat "$tmp/out"; rm -f "$tmp/out";;
23869   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23870   esac
23871  ;;
23872   :H)
23873   #
23874   # CONFIG_HEADER
23875   #
23876 _ACEOF
23877
23878 # Transform confdefs.h into a sed script `conftest.defines', that
23879 # substitutes the proper values into config.h.in to produce config.h.
23880 rm -f conftest.defines conftest.tail
23881 # First, append a space to every undef/define line, to ease matching.
23882 echo 's/$/ /' >conftest.defines
23883 # Then, protect against being on the right side of a sed subst, or in
23884 # an unquoted here document, in config.status.  If some macros were
23885 # called several times there might be several #defines for the same
23886 # symbol, which is useless.  But do not sort them, since the last
23887 # AC_DEFINE must be honored.
23888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23889 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23890 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23891 # PARAMS is the parameter list in the macro definition--in most cases, it's
23892 # just an empty string.
23893 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23894 ac_dB='\\)[      (].*,\\1define\\2'
23895 ac_dC=' '
23896 ac_dD=' ,'
23897
23898 uniq confdefs.h |
23899   sed -n '
23900         t rset
23901         :rset
23902         s/^[     ]*#[    ]*define[       ][      ]*//
23903         t ok
23904         d
23905         :ok
23906         s/[\\&,]/\\&/g
23907         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23908         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23909   ' >>conftest.defines
23910
23911 # Remove the space that was appended to ease matching.
23912 # Then replace #undef with comments.  This is necessary, for
23913 # example, in the case of _POSIX_SOURCE, which is predefined and required
23914 # on some systems where configure will not decide to define it.
23915 # (The regexp can be short, since the line contains either #define or #undef.)
23916 echo 's/ $//
23917 s,^[     #]*u.*,/* & */,' >>conftest.defines
23918
23919 # Break up conftest.defines:
23920 ac_max_sed_lines=50
23921
23922 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23923 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23924 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23925 # et cetera.
23926 ac_in='$ac_file_inputs'
23927 ac_out='"$tmp/out1"'
23928 ac_nxt='"$tmp/out2"'
23929
23930 while :
23931 do
23932   # Write a here document:
23933     cat >>$CONFIG_STATUS <<_ACEOF
23934     # First, check the format of the line:
23935     cat >"\$tmp/defines.sed" <<\\CEOF
23936 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23937 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23938 b
23939 :def
23940 _ACEOF
23941   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23942   echo 'CEOF
23943     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23944   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23945   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23946   grep . conftest.tail >/dev/null || break
23947   rm -f conftest.defines
23948   mv conftest.tail conftest.defines
23949 done
23950 rm -f conftest.defines conftest.tail
23951
23952 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23953 cat >>$CONFIG_STATUS <<\_ACEOF
23954   if test x"$ac_file" != x-; then
23955     echo "/* $configure_input  */" >"$tmp/config.h"
23956     cat "$ac_result" >>"$tmp/config.h"
23957     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23958       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23959 echo "$as_me: $ac_file is unchanged" >&6;}
23960     else
23961       rm -f $ac_file
23962       mv "$tmp/config.h" $ac_file
23963     fi
23964   else
23965     echo "/* $configure_input  */"
23966     cat "$ac_result"
23967   fi
23968   rm -f "$tmp/out12"
23969  ;;
23970
23971   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23972 echo "$as_me: executing $ac_file commands" >&6;}
23973  ;;
23974   esac
23975
23976
23977   case $ac_file$ac_mode in
23978     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23979    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23980     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23981    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23982     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23983    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23984     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23985    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23986     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23987    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23988     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23989    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23990     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23991    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23992     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23993    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23994     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23995    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23996     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23997    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23998     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23999    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24000     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24001    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24002     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24003    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24004
24005   esac
24006 done # for ac_tag
24007
24008
24009 { (exit 0); exit 0; }
24010 _ACEOF
24011 chmod +x $CONFIG_STATUS
24012 ac_clean_files=$ac_clean_files_save
24013
24014
24015 # configure is writing to config.log, and then calls config.status.
24016 # config.status does its own redirection, appending to config.log.
24017 # Unfortunately, on DOS this fails, as config.log is still kept open
24018 # by configure, so config.status won't be able to write to it; its
24019 # output is simply discarded.  So we exec the FD to /dev/null,
24020 # effectively closing config.log, so it can be properly (re)opened and
24021 # appended to by config.status.  When coming back to configure, we
24022 # need to make the FD available again.
24023 if test "$no_create" != yes; then
24024   ac_cs_success=:
24025   ac_config_status_args=
24026   test "$silent" = yes &&
24027     ac_config_status_args="$ac_config_status_args --quiet"
24028   exec 5>/dev/null
24029   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24030   exec 5>>config.log
24031   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24032   # would make configure fail if this is the last instruction.
24033   $ac_cs_success || { (exit 1); exit 1; }
24034 fi
24035
24036 #
24037 # CONFIG_SUBDIRS section.
24038 #
24039 if test "$no_recursion" != yes; then
24040
24041   # Remove --cache-file and --srcdir arguments so they do not pile up.
24042   ac_sub_configure_args=
24043   ac_prev=
24044   eval "set x $ac_configure_args"
24045   shift
24046   for ac_arg
24047   do
24048     if test -n "$ac_prev"; then
24049       ac_prev=
24050       continue
24051     fi
24052     case $ac_arg in
24053     -cache-file | --cache-file | --cache-fil | --cache-fi \
24054     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24055       ac_prev=cache_file ;;
24056     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24057     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24058     | --c=*)
24059       ;;
24060     --config-cache | -C)
24061       ;;
24062     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24063       ac_prev=srcdir ;;
24064     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24065       ;;
24066     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24067       ac_prev=prefix ;;
24068     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24069       ;;
24070     *)
24071       case $ac_arg in
24072       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24073       esac
24074       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24075     esac
24076   done
24077
24078   # Always prepend --prefix to ensure using the same prefix
24079   # in subdir configurations.
24080   ac_arg="--prefix=$prefix"
24081   case $ac_arg in
24082   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24083   esac
24084   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24085
24086   ac_popdir=`pwd`
24087   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24088
24089     # Do not complain, so a configure script can configure whichever
24090     # parts of a large source tree are present.
24091     test -d "$srcdir/$ac_dir" || continue
24092
24093     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24094     echo "$as_me:$LINENO: $ac_msg" >&5
24095     echo "$ac_msg" >&6
24096     { as_dir="$ac_dir"
24097   case $as_dir in #(
24098   -*) as_dir=./$as_dir;;
24099   esac
24100   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24101     as_dirs=
24102     while :; do
24103       case $as_dir in #(
24104       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24105       *) as_qdir=$as_dir;;
24106       esac
24107       as_dirs="'$as_qdir' $as_dirs"
24108       as_dir=`$as_dirname -- "$as_dir" ||
24109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24110          X"$as_dir" : 'X\(//\)[^/]' \| \
24111          X"$as_dir" : 'X\(//\)$' \| \
24112          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24113 echo X"$as_dir" |
24114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24115             s//\1/
24116             q
24117           }
24118           /^X\(\/\/\)[^/].*/{
24119             s//\1/
24120             q
24121           }
24122           /^X\(\/\/\)$/{
24123             s//\1/
24124             q
24125           }
24126           /^X\(\/\).*/{
24127             s//\1/
24128             q
24129           }
24130           s/.*/./; q'`
24131       test -d "$as_dir" && break
24132     done
24133     test -z "$as_dirs" || eval "mkdir $as_dirs"
24134   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24135 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24136    { (exit 1); exit 1; }; }; }
24137     ac_builddir=.
24138
24139 case "$ac_dir" in
24140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24141 *)
24142   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24143   # A ".." for each directory in $ac_dir_suffix.
24144   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24145   case $ac_top_builddir_sub in
24146   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24147   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24148   esac ;;
24149 esac
24150 ac_abs_top_builddir=$ac_pwd
24151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24152 # for backward compatibility:
24153 ac_top_builddir=$ac_top_build_prefix
24154
24155 case $srcdir in
24156   .)  # We are building in place.
24157     ac_srcdir=.
24158     ac_top_srcdir=$ac_top_builddir_sub
24159     ac_abs_top_srcdir=$ac_pwd ;;
24160   [\\/]* | ?:[\\/]* )  # Absolute name.
24161     ac_srcdir=$srcdir$ac_dir_suffix;
24162     ac_top_srcdir=$srcdir
24163     ac_abs_top_srcdir=$srcdir ;;
24164   *) # Relative name.
24165     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24166     ac_top_srcdir=$ac_top_build_prefix$srcdir
24167     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24168 esac
24169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24170
24171
24172     cd "$ac_dir"
24173
24174     # Check for guested configure; otherwise get Cygnus style configure.
24175     if test -f "$ac_srcdir/configure.gnu"; then
24176       ac_sub_configure=$ac_srcdir/configure.gnu
24177     elif test -f "$ac_srcdir/configure"; then
24178       ac_sub_configure=$ac_srcdir/configure
24179     elif test -f "$ac_srcdir/configure.in"; then
24180       # This should be Cygnus configure.
24181       ac_sub_configure=$ac_aux_dir/configure
24182     else
24183       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24185       ac_sub_configure=
24186     fi
24187
24188     # The recursion is here.
24189     if test -n "$ac_sub_configure"; then
24190       # Make the cache file name correct relative to the subdirectory.
24191       case $cache_file in
24192       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24193       *) # Relative name.
24194         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24195       esac
24196
24197       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24198 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24199       # The eval makes quoting arguments work.
24200       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24201            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24202         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24203 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24204    { (exit 1); exit 1; }; }
24205     fi
24206
24207     cd "$ac_popdir"
24208   done
24209 fi
24210