OSDN Git Service

Don't define LLVM_LIBDIR, it is not used anymore.
[android-x86/external-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 LLVM_ENABLE_ZLIB
707 ENABLE_PIC
708 ENABLE_SHARED
709 ENABLE_EMBED_STDCXX
710 ENABLE_TIMESTAMPS
711 ENABLE_BACKTRACES
712 TARGETS_TO_BUILD
713 LLVM_ENUM_TARGETS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
717 OPTIMIZE_OPTION
718 EXTRA_OPTIONS
719 EXTRA_LD_OPTIONS
720 CLANG_SRC_ROOT
721 BINUTILS_INCDIR
722 INTERNAL_PREFIX
723 NM
724 ifGNUmake
725 LN_S
726 CMP
727 CP
728 DATE
729 FIND
730 MKDIR
731 MV
732 RANLIB
733 AR
734 RM
735 SED
736 TAR
737 BINPWD
738 GRAPHVIZ
739 DOT
740 FDP
741 NEATO
742 TWOPI
743 CIRCO
744 GV
745 DOTTY
746 XDOT_PY
747 INSTALL_PROGRAM
748 INSTALL_SCRIPT
749 INSTALL_DATA
750 BZIP2
751 CAT
752 DOXYGEN
753 GROFF
754 GZIPBIN
755 PDFROFF
756 ZIP
757 OCAMLC
758 OCAMLOPT
759 OCAMLDEP
760 OCAMLDOC
761 GAS
762 HAVE_LINK_VERSION_SCRIPT
763 INSTALL_LTDL_TRUE
764 INSTALL_LTDL_FALSE
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
767 LIBADD_DL
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 CXXCPP
781 HAVE_PTHREAD
782 HAVE_LIBZ
783 HUGE_VAL_SANITY
784 MMAP_FILE
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_DATADIR
790 LLVM_DOCSDIR
791 LLVM_ETCDIR
792 LLVM_INCLUDEDIR
793 LLVM_INFODIR
794 LLVM_MANDIR
795 LLVM_CONFIGTIME
796 BINDINGS_TO_BUILD
797 ALL_BINDINGS
798 OCAML_LIBDIR
799 ENABLE_VISIBILITY_INLINES_HIDDEN
800 RPATH
801 RDYNAMIC
802 program_prefix
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 CXX
814 CXXFLAGS
815 CCC
816 CPP
817 CXXCPP'
818 ac_subdirs_all='projects/llvm-gcc
819 projects/test-suite
820 projects/llvm-test
821 projects/poolalloc
822 projects/llvm-poolalloc
823 projects/sample
824 projects/privbracket
825 projects/llvm-stacker
826 projects/llvm-reopt
827 projects/llvm-java
828 projects/llvm-tv
829 projects/safecode
830 projects/llvm-kernel
831 tools/polly'
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883   # If the previous option needs an argument, assign it.
884   if test -n "$ac_prev"; then
885     eval $ac_prev=\$ac_option
886     ac_prev=
887     continue
888   fi
889
890   case $ac_option in
891   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892   *)    ac_optarg=yes ;;
893   esac
894
895   # Accept the important Cygnus configure options, so we can diagnose typos.
896
897   case $ac_dashdash$ac_option in
898   --)
899     ac_dashdash=yes ;;
900
901   -bindir | --bindir | --bindi | --bind | --bin | --bi)
902     ac_prev=bindir ;;
903   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904     bindir=$ac_optarg ;;
905
906   -build | --build | --buil | --bui | --bu)
907     ac_prev=build_alias ;;
908   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909     build_alias=$ac_optarg ;;
910
911   -cache-file | --cache-file | --cache-fil | --cache-fi \
912   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913     ac_prev=cache_file ;;
914   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916     cache_file=$ac_optarg ;;
917
918   --config-cache | -C)
919     cache_file=config.cache ;;
920
921   -datadir | --datadir | --datadi | --datad)
922     ac_prev=datadir ;;
923   -datadir=* | --datadir=* | --datadi=* | --datad=*)
924     datadir=$ac_optarg ;;
925
926   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927   | --dataroo | --dataro | --datar)
928     ac_prev=datarootdir ;;
929   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931     datarootdir=$ac_optarg ;;
932
933   -disable-* | --disable-*)
934     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935     # Reject names that are not valid shell variable names.
936     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938    { (exit 1); exit 1; }; }
939     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940     eval enable_$ac_feature=no ;;
941
942   -docdir | --docdir | --docdi | --doc | --do)
943     ac_prev=docdir ;;
944   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945     docdir=$ac_optarg ;;
946
947   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948     ac_prev=dvidir ;;
949   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950     dvidir=$ac_optarg ;;
951
952   -enable-* | --enable-*)
953     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954     # Reject names that are not valid shell variable names.
955     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957    { (exit 1); exit 1; }; }
958     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959     eval enable_$ac_feature=\$ac_optarg ;;
960
961   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963   | --exec | --exe | --ex)
964     ac_prev=exec_prefix ;;
965   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967   | --exec=* | --exe=* | --ex=*)
968     exec_prefix=$ac_optarg ;;
969
970   -gas | --gas | --ga | --g)
971     # Obsolete; use --with-gas.
972     with_gas=yes ;;
973
974   -help | --help | --hel | --he | -h)
975     ac_init_help=long ;;
976   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977     ac_init_help=recursive ;;
978   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979     ac_init_help=short ;;
980
981   -host | --host | --hos | --ho)
982     ac_prev=host_alias ;;
983   -host=* | --host=* | --hos=* | --ho=*)
984     host_alias=$ac_optarg ;;
985
986   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987     ac_prev=htmldir ;;
988   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989   | --ht=*)
990     htmldir=$ac_optarg ;;
991
992   -includedir | --includedir | --includedi | --included | --include \
993   | --includ | --inclu | --incl | --inc)
994     ac_prev=includedir ;;
995   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996   | --includ=* | --inclu=* | --incl=* | --inc=*)
997     includedir=$ac_optarg ;;
998
999   -infodir | --infodir | --infodi | --infod | --info | --inf)
1000     ac_prev=infodir ;;
1001   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002     infodir=$ac_optarg ;;
1003
1004   -libdir | --libdir | --libdi | --libd)
1005     ac_prev=libdir ;;
1006   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007     libdir=$ac_optarg ;;
1008
1009   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010   | --libexe | --libex | --libe)
1011     ac_prev=libexecdir ;;
1012   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013   | --libexe=* | --libex=* | --libe=*)
1014     libexecdir=$ac_optarg ;;
1015
1016   -localedir | --localedir | --localedi | --localed | --locale)
1017     ac_prev=localedir ;;
1018   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019     localedir=$ac_optarg ;;
1020
1021   -localstatedir | --localstatedir | --localstatedi | --localstated \
1022   | --localstate | --localstat | --localsta | --localst | --locals)
1023     ac_prev=localstatedir ;;
1024   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026     localstatedir=$ac_optarg ;;
1027
1028   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029     ac_prev=mandir ;;
1030   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031     mandir=$ac_optarg ;;
1032
1033   -nfp | --nfp | --nf)
1034     # Obsolete; use --without-fp.
1035     with_fp=no ;;
1036
1037   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038   | --no-cr | --no-c | -n)
1039     no_create=yes ;;
1040
1041   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043     no_recursion=yes ;;
1044
1045   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047   | --oldin | --oldi | --old | --ol | --o)
1048     ac_prev=oldincludedir ;;
1049   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052     oldincludedir=$ac_optarg ;;
1053
1054   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055     ac_prev=prefix ;;
1056   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057     prefix=$ac_optarg ;;
1058
1059   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060   | --program-pre | --program-pr | --program-p)
1061     ac_prev=program_prefix ;;
1062   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064     program_prefix=$ac_optarg ;;
1065
1066   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067   | --program-suf | --program-su | --program-s)
1068     ac_prev=program_suffix ;;
1069   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071     program_suffix=$ac_optarg ;;
1072
1073   -program-transform-name | --program-transform-name \
1074   | --program-transform-nam | --program-transform-na \
1075   | --program-transform-n | --program-transform- \
1076   | --program-transform | --program-transfor \
1077   | --program-transfo | --program-transf \
1078   | --program-trans | --program-tran \
1079   | --progr-tra | --program-tr | --program-t)
1080     ac_prev=program_transform_name ;;
1081   -program-transform-name=* | --program-transform-name=* \
1082   | --program-transform-nam=* | --program-transform-na=* \
1083   | --program-transform-n=* | --program-transform-=* \
1084   | --program-transform=* | --program-transfor=* \
1085   | --program-transfo=* | --program-transf=* \
1086   | --program-trans=* | --program-tran=* \
1087   | --progr-tra=* | --program-tr=* | --program-t=*)
1088     program_transform_name=$ac_optarg ;;
1089
1090   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091     ac_prev=pdfdir ;;
1092   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093     pdfdir=$ac_optarg ;;
1094
1095   -psdir | --psdir | --psdi | --psd | --ps)
1096     ac_prev=psdir ;;
1097   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098     psdir=$ac_optarg ;;
1099
1100   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101   | -silent | --silent | --silen | --sile | --sil)
1102     silent=yes ;;
1103
1104   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105     ac_prev=sbindir ;;
1106   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107   | --sbi=* | --sb=*)
1108     sbindir=$ac_optarg ;;
1109
1110   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112   | --sharedst | --shareds | --shared | --share | --shar \
1113   | --sha | --sh)
1114     ac_prev=sharedstatedir ;;
1115   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118   | --sha=* | --sh=*)
1119     sharedstatedir=$ac_optarg ;;
1120
1121   -site | --site | --sit)
1122     ac_prev=site ;;
1123   -site=* | --site=* | --sit=*)
1124     site=$ac_optarg ;;
1125
1126   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127     ac_prev=srcdir ;;
1128   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129     srcdir=$ac_optarg ;;
1130
1131   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132   | --syscon | --sysco | --sysc | --sys | --sy)
1133     ac_prev=sysconfdir ;;
1134   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136     sysconfdir=$ac_optarg ;;
1137
1138   -target | --target | --targe | --targ | --tar | --ta | --t)
1139     ac_prev=target_alias ;;
1140   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141     target_alias=$ac_optarg ;;
1142
1143   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144     verbose=yes ;;
1145
1146   -version | --version | --versio | --versi | --vers | -V)
1147     ac_init_version=: ;;
1148
1149   -with-* | --with-*)
1150     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153       { echo "$as_me: error: invalid package name: $ac_package" >&2
1154    { (exit 1); exit 1; }; }
1155     ac_package=`echo $ac_package| sed 's/-/_/g'`
1156     eval with_$ac_package=\$ac_optarg ;;
1157
1158   -without-* | --without-*)
1159     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1162       { echo "$as_me: error: invalid package name: $ac_package" >&2
1163    { (exit 1); exit 1; }; }
1164     ac_package=`echo $ac_package | sed 's/-/_/g'`
1165     eval with_$ac_package=no ;;
1166
1167   --x)
1168     # Obsolete; use --with-x.
1169     with_x=yes ;;
1170
1171   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172   | --x-incl | --x-inc | --x-in | --x-i)
1173     ac_prev=x_includes ;;
1174   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176     x_includes=$ac_optarg ;;
1177
1178   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180     ac_prev=x_libraries ;;
1181   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183     x_libraries=$ac_optarg ;;
1184
1185   -*) { echo "$as_me: error: unrecognized option: $ac_option
1186 Try \`$0 --help' for more information." >&2
1187    { (exit 1); exit 1; }; }
1188     ;;
1189
1190   *=*)
1191     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195    { (exit 1); exit 1; }; }
1196     eval $ac_envvar=\$ac_optarg
1197     export $ac_envvar ;;
1198
1199   *)
1200     # FIXME: should be removed in autoconf 3.0.
1201     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205     ;;
1206
1207   esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212   { echo "$as_me: error: missing argument to $ac_option" >&2
1213    { (exit 1); exit 1; }; }
1214 fi
1215
1216 # Be sure to have absolute directory names.
1217 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218                 datadir sysconfdir sharedstatedir localstatedir includedir \
1219                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220                 libdir localedir mandir
1221 do
1222   eval ac_val=\$$ac_var
1223   case $ac_val in
1224     [\\/$]* | ?:[\\/]* )  continue;;
1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226   esac
1227   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228    { (exit 1); exit 1; }; }
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240   if test "x$build_alias" = x; then
1241     cross_compiling=maybe
1242     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243     If a cross compiler is detected then cross compile mode will be used." >&2
1244   elif test "x$build_alias" != "x$host_alias"; then
1245     cross_compiling=yes
1246   fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258   { echo "$as_me: error: Working directory cannot be determined" >&2
1259    { (exit 1); exit 1; }; }
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261   { echo "$as_me: error: pwd does not report name of working directory" >&2
1262    { (exit 1); exit 1; }; }
1263
1264
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267   ac_srcdir_defaulted=yes
1268   # Try the directory containing this script, then the parent directory.
1269   ac_confdir=`$as_dirname -- "$0" ||
1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271          X"$0" : 'X\(//\)[^/]' \| \
1272          X"$0" : 'X\(//\)$' \| \
1273          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 echo X"$0" |
1275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)[^/].*/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\/\)$/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\).*/{
1288             s//\1/
1289             q
1290           }
1291           s/.*/./; q'`
1292   srcdir=$ac_confdir
1293   if test ! -r "$srcdir/$ac_unique_file"; then
1294     srcdir=..
1295   fi
1296 else
1297   ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302    { (exit 1); exit 1; }; }
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307    { (exit 1); exit 1; }; }
1308         pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311   srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321   eval ac_env_${ac_var}_value=\$${ac_var}
1322   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330   # Omit some internal or obsolete options to make the list less imposing.
1331   # This message is too long to be a string in the A/UX 3.1 sh.
1332   cat <<_ACEOF
1333 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343   -h, --help              display this help and exit
1344       --help=short        display options specific to this package
1345       --help=recursive    display the short help of all the included packages
1346   -V, --version           display version information and exit
1347   -q, --quiet, --silent   do not print \`checking...' messages
1348       --cache-file=FILE   cache test results in FILE [disabled]
1349   -C, --config-cache      alias for \`--cache-file=config.cache'
1350   -n, --no-create         do not create output files
1351       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354   --prefix=PREFIX         install architecture-independent files in PREFIX
1355                           [$ac_default_prefix]
1356   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                           [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367   --bindir=DIR           user executables [EPREFIX/bin]
1368   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1369   --libexecdir=DIR       program executables [EPREFIX/libexec]
1370   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1371   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1372   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1373   --libdir=DIR           object code libraries [EPREFIX/lib]
1374   --includedir=DIR       C header files [PREFIX/include]
1375   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1376   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1377   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1378   --infodir=DIR          info documentation [DATAROOTDIR/info]
1379   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1380   --mandir=DIR           man documentation [DATAROOTDIR/man]
1381   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1382   --htmldir=DIR          html documentation [DOCDIR]
1383   --dvidir=DIR           dvi documentation [DOCDIR]
1384   --pdfdir=DIR           pdf documentation [DOCDIR]
1385   --psdir=DIR            ps documentation [DOCDIR]
1386 _ACEOF
1387
1388   cat <<\_ACEOF
1389
1390 System types:
1391   --build=BUILD     configure for building on BUILD [guessed]
1392   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1393   --target=TARGET   configure for building compilers for TARGET [HOST]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398   case $ac_init_help in
1399      short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1400    esac
1401   cat <<\_ACEOF
1402
1403 Optional Features:
1404   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1405   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1406   --enable-polly          Use polly if available (default is YES)
1407   --enable-libcpp         Use libc++ if available (default is NO)
1408   --enable-cxx11          Use c++11 if available (default is NO)
1409   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1410   --enable-clang-static-analyzer
1411                           Enable building of clang Static Analyzer (default is
1412                           YES)
1413   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1414   --enable-optimized      Compile with optimizations enabled (default is NO)
1415   --enable-profiling      Compile with profiling enabled (default is NO)
1416   --enable-assertions     Compile with assertion checks enabled (default is
1417                           YES)
1418   --enable-werror         Compile with -Werror enabled (default is NO)
1419   --enable-expensive-checks
1420                           Compile with expensive debug checks enabled (default
1421                           is NO)
1422   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1423                           NO)
1424   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1425                           optimization is on and YES if it's off)
1426   --enable-keep-symbols   Do not strip installed executables)
1427   --enable-jit            Enable Just In Time Compiling (default is YES)
1428   --enable-docs           Build documents (default is YES)
1429   --enable-doxygen        Build doxygen documentation (default is NO)
1430   --enable-threads        Use threads if available (default is YES)
1431   --enable-pthreads       Use pthreads if available (default is YES)
1432   --enable-zlib           Use zlib for compression/decompression if available
1433                           (default is YES)
1434   --enable-pic            Build LLVM with Position Independent Code (default
1435                           is YES)
1436   --enable-shared         Build a shared library and link tools against it
1437                           (default is NO)
1438   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1439                           Win32 DLL (default is NO)
1440   --enable-timestamps     Enable embedding timestamp information in build
1441                           (default is YES)
1442   --enable-backtraces     Enable embedding backtraces on crash (default is
1443                           YES)
1444   --enable-targets        Build specific host targets: all or
1445                           target1,target2,... Valid targets are: host, x86,
1446                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1447                           xcore, msp430, nvptx, systemz, r600, and cpp
1448                           (default=all)
1449   --enable-experimental-targets
1450                           Build experimental host targets: disable or
1451                           target1,target2,... (default=disable)
1452   --enable-bindings       Build specific language bindings:
1453                           all,auto,none,{binding-name} (default=auto)
1454   --enable-libffi         Check for the presence of libffi (default is NO)
1455   --enable-ltdl-install   install libltdl
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-optimize-option  Select the compiler options to use for optimized
1461                           builds
1462   --with-extra-options    Specify additional options to compile LLVM with
1463   --with-extra-ld-options Specify additional options to link LLVM with
1464   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1465                           is stdlib)
1466   --with-clang-srcdir     Directory to the out-of-tree Clang source
1467   --with-clang-resource-dir
1468                           Relative directory from the Clang binary for
1469                           resource files
1470   --with-c-include-dirs   Colon separated list of directories clang will
1471                           search for headers
1472   --with-gcc-toolchain    Directory where gcc is installed.
1473   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1474   --with-binutils-include Specify path to binutils/include/ containing
1475                           plugin-api.h file for gold plugin.
1476   --with-bug-report-url   Specify the URL where bug reports should be
1477                           submitted (default=http://llvm.org/bugs/)
1478   --with-internal-prefix  Installation directory for internal files
1479   --with-python           path to python
1480   --with-udis86=<path>    Use udis86 external x86 disassembler library
1481   --with-oprofile=<prefix>
1482                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1483   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1484
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492               you have headers in a nonstandard directory <include dir>
1493   CXX         C++ compiler command
1494   CXXFLAGS    C++ compiler flags
1495   CPP         C preprocessor
1496   CXXCPP      C++ preprocessor
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to <http://llvm.org/bugs/>.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507   # If there are subdirs, report their specific --help.
1508   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509     test -d "$ac_dir" || continue
1510     ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516   # A ".." for each directory in $ac_dir_suffix.
1517   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518   case $ac_top_builddir_sub in
1519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521   esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529   .)  # We are building in place.
1530     ac_srcdir=.
1531     ac_top_srcdir=$ac_top_builddir_sub
1532     ac_abs_top_srcdir=$ac_pwd ;;
1533   [\\/]* | ?:[\\/]* )  # Absolute name.
1534     ac_srcdir=$srcdir$ac_dir_suffix;
1535     ac_top_srcdir=$srcdir
1536     ac_abs_top_srcdir=$srcdir ;;
1537   *) # Relative name.
1538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539     ac_top_srcdir=$ac_top_build_prefix$srcdir
1540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544     cd "$ac_dir" || { ac_status=$?; continue; }
1545     # Check for guested configure.
1546     if test -f "$ac_srcdir/configure.gnu"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549     elif test -f "$ac_srcdir/configure"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure" --help=recursive
1552     else
1553       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554     fi || ac_status=$?
1555     cd "$ac_pwd" || { ac_status=$?; break; }
1556   done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561   cat <<\_ACEOF
1562 LLVM configure 3.4svn
1563 generated by GNU Autoconf 2.60
1564
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569
1570 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by LLVM $as_me 3.4svn, which was
1579 generated by GNU Autoconf 2.60.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 4
1939 _ACEOF
1940
1941
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1943
1944
1945
1946
1947
1948
1949
1950 ac_aux_dir=
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952   if test -f "$ac_dir/install-sh"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/install-sh -c"
1955     break
1956   elif test -f "$ac_dir/install.sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install.sh -c"
1959     break
1960   elif test -f "$ac_dir/shtool"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/shtool install -c"
1963     break
1964   fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1979
1980
1981
1982 if test ${srcdir} != "." ; then
1983   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986    { (exit 1); exit 1; }; }
1987   fi
1988 fi
1989
1990 ${CFLAGS=}
1991 ${CXXFLAGS=}
1992
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999   for ac_prog in clang llvm-gcc gcc
2000   do
2001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$CC"; then
2009   ac_cv_prog_CC="$CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2032 else
2033   { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2035 fi
2036
2037
2038     test -n "$CC" && break
2039   done
2040 fi
2041 if test -z "$CC"; then
2042   ac_ct_CC=$CC
2043   for ac_prog in clang llvm-gcc gcc
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$ac_ct_CC"; then
2053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_prog_ac_ct_CC="$ac_prog"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070 fi
2071 fi
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082   test -n "$ac_ct_CC" && break
2083 done
2084
2085   if test "x$ac_ct_CC" = x; then
2086     CC=""
2087   else
2088     case $cross_compiling:$ac_tool_warned in
2089 yes:)
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet.  If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet.  If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2097 esac
2098     CC=$ac_ct_CC
2099   fi
2100 fi
2101
2102
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler --version >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler -v >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -V >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2162 # of exeext.
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 #
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort.  b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2171 #
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions.  Remove them first so a
2174 # subsequent execution test works.
2175 ac_rmfiles=
2176 for ac_file in $ac_files
2177 do
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2181   esac
2182 done
2183 rm -f $ac_rmfiles
2184
2185 if { (ac_try="$ac_link_default"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191   (eval "$ac_link_default") 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }; then
2195   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2199 # Autoconf.
2200 for ac_file in $ac_files
2201 do
2202   test -f "$ac_file" || continue
2203   case $ac_file in
2204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2205         ;;
2206     [ab].out )
2207         # We found the default executable, but exeext='' is most
2208         # certainly right.
2209         break;;
2210     *.* )
2211         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2212         then :; else
2213            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214         fi
2215         # We set ac_cv_exeext here because the later test for it is not
2216         # safe: cross compilers may not add the suffix if given an `-o'
2217         # argument, so we may need to know it at that point already.
2218         # Even if this section looks crufty: it has the advantage of
2219         # actually working.
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2226
2227 else
2228   echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235    { (exit 77); exit 77; }; }
2236 fi
2237
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2241
2242 # Check that the compiler produces executables we can run.  If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249   if { ac_try='./$ac_file'
2250   { (case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_try") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259     cross_compiling=no
2260   else
2261     if test "$cross_compiling" = maybe; then
2262         cross_compiling=yes
2263     else
2264         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2271     fi
2272   fi
2273 fi
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run.  If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2285
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294   (eval "$ac_link") 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303   test -f "$ac_file" || continue
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307           break;;
2308     * ) break;;
2309   esac
2310 done
2311 else
2312   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2322
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2325 ac_exeext=$EXEEXT
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compile") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; then
2357   for ac_file in conftest.o conftest.obj conftest.*; do
2358   test -f "$ac_file" || continue;
2359   case $ac_file in
2360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2362        break;;
2363   esac
2364 done
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373    { (exit 1); exit 1; }; }
2374 fi
2375
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2377 fi
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2381 ac_objext=$OBJEXT
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397 #ifndef __GNUC__
2398        choke me
2399 #endif
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_compile") 2>conftest.er1
2413   ac_status=$?
2414   grep -v '^ *+' conftest.er1 >conftest.err
2415   rm -f conftest.er1
2416   cat conftest.err >&5
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); } &&
2419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420   { (case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_try") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_compiler_gnu=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444         ac_compiler_gnu=no
2445 fi
2446
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449
2450 fi
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   ac_save_c_werror_flag=$ac_c_werror_flag
2462    ac_c_werror_flag=yes
2463    ac_cv_prog_cc_g=no
2464    CFLAGS="-g"
2465    cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_compile") 2>conftest.er1
2488   ac_status=$?
2489   grep -v '^ *+' conftest.er1 >conftest.err
2490   rm -f conftest.er1
2491   cat conftest.err >&5
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } &&
2494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; }; then
2514   ac_cv_prog_cc_g=yes
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519         CFLAGS=""
2520       cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   :
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_c_werror_flag=$ac_save_c_werror_flag
2575          CFLAGS="-g"
2576          cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compile") 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606   { (case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_try") 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   ac_cv_prog_cc_g=yes
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630
2631 fi
2632
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
2638
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640    ac_c_werror_flag=$ac_save_c_werror_flag
2641 fi
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645   CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647   if test "$GCC" = yes; then
2648     CFLAGS="-g -O2"
2649   else
2650     CFLAGS="-g"
2651   fi
2652 else
2653   if test "$GCC" = yes; then
2654     CFLAGS="-O2"
2655   else
2656     CFLAGS=
2657   fi
2658 fi
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   ac_cv_prog_cc_c89=no
2665 ac_save_CC=$CC
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h.  */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h.  */
2672 #include <stdarg.h>
2673 #include <stdio.h>
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2680      char **p;
2681      int i;
2682 {
2683   return p[i];
2684 }
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2686 {
2687   char *s;
2688   va_list v;
2689   va_start (v,p);
2690   s = g (p, va_arg (v,int));
2691   va_end (v);
2692   return s;
2693 }
2694
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2696    function prototypes and stuff, but not '\xHH' hex character constants.
2697    These don't provoke an error unfortunately, instead are silently treated
2698    as 'x'.  The following induces an error, until -std is added to get
2699    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2700    array size at least.  It's necessary to write '\x00'==0 to get something
2701    that's true only with -std.  */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705    inside strings and character constants.  */
2706 #define FOO(x) 'x'
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2708
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713 int argc;
2714 char **argv;
2715 int
2716 main ()
2717 {
2718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726   CC="$ac_save_CC $ac_arg"
2727   rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_compile") 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   ac_cv_prog_cc_c89=$ac_arg
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext
2770   test "x$ac_cv_prog_cc_c89" != "xno" && break
2771 done
2772 rm -f conftest.$ac_ext
2773 CC=$ac_save_CC
2774
2775 fi
2776 # AC_CACHE_VAL
2777 case "x$ac_cv_prog_cc_c89" in
2778   x)
2779     { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2781   xno)
2782     { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2784   *)
2785     CC="$CC $ac_cv_prog_cc_c89"
2786     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2788 esac
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797 ac_ext=cpp
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803   if test -n "$CCC"; then
2804     CXX=$CCC
2805   else
2806     if test -n "$ac_tool_prefix"; then
2807   for ac_prog in clang++ llvm-g++ g++
2808   do
2809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CXX"; then
2817   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CXX=$ac_cv_prog_CXX
2837 if test -n "$CXX"; then
2838   { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846     test -n "$CXX" && break
2847   done
2848 fi
2849 if test -z "$CXX"; then
2850   ac_ct_CXX=$CXX
2851   for ac_prog in clang++ llvm-g++ g++
2852 do
2853   # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CXX"; then
2861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CXX="$ac_prog"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2884 else
2885   { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889
2890   test -n "$ac_ct_CXX" && break
2891 done
2892
2893   if test "x$ac_ct_CXX" = x; then
2894     CXX="g++"
2895   else
2896     case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet.  If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906     CXX=$ac_ct_CXX
2907   fi
2908 fi
2909
2910   fi
2911 fi
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler --version >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler -v >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -V >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961 #ifndef __GNUC__
2962        choke me
2963 #endif
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_compiler_gnu=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008         ac_compiler_gnu=no
3009 fi
3010
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026    ac_cxx_werror_flag=yes
3027    ac_cv_prog_cxx_g=no
3028    CXXFLAGS="-g"
3029    cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; } &&
3068          { ac_try='test -s conftest.$ac_objext'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_cv_prog_cxx_g=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         CXXFLAGS=""
3084       cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3139          CXXFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189   ac_cv_prog_cxx_g=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209   CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211   if test "$GXX" = yes; then
3212     CXXFLAGS="-g -O2"
3213   else
3214     CXXFLAGS="-g"
3215   fi
3216 else
3217   if test "$GXX" = yes; then
3218     CXXFLAGS="-O2"
3219   else
3220     CXXFLAGS=
3221   fi
3222 fi
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238   CPP=
3239 fi
3240 if test -z "$CPP"; then
3241   if test "${ac_cv_prog_CPP+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244       # Double quotes because CPP needs to be expanded
3245     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246     do
3247       ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250   # Use a header file that comes with gcc, so configuring glibc
3251   # with a fresh cross-compiler works.
3252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253   # <limits.h> exists even on freestanding compilers.
3254   # On the NeXT, cc -E runs the code through the compiler's parser,
3255   # not just through cpp. "Syntax error" is here to catch this case.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null; then
3282   if test -s conftest.err; then
3283     ac_cpp_err=$ac_c_preproc_warn_flag
3284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   :
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297   # Broken: fails on valid input.
3298 continue
3299 fi
3300
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether nonexistent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346
3347 rm -f conftest.err conftest.$ac_ext
3348
3349 done
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3353   break
3354 fi
3355
3356     done
3357     ac_cv_prog_CPP=$CPP
3358
3359 fi
3360   CPP=$ac_cv_prog_CPP
3361 else
3362   ac_cv_prog_CPP=$CPP
3363 fi
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3366 ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null; then
3401   if test -s conftest.err; then
3402     ac_cpp_err=$ac_c_preproc_warn_flag
3403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404   else
3405     ac_cpp_err=
3406   fi
3407 else
3408   ac_cpp_err=yes
3409 fi
3410 if test -z "$ac_cpp_err"; then
3411   :
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3419
3420 rm -f conftest.err conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether nonexistent headers
3423   # can be detected and how.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   # Broken: success on invalid input.
3456 continue
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3465
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   :
3473 else
3474   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 if test "$CXX" = "clang++" ; then
3489   { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3491   ac_ext=cpp
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496
3497
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <limits>
3505 #if __has_include (<cxxabi.h>)
3506 #include <cxxabi.h>
3507 #endif
3508 #if __has_include (<unwind.h>)
3509 #include <unwind.h>
3510 #endif
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_compile") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } &&
3534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_try") 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; } &&
3544          { ac_try='test -s conftest.$ac_objext'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; }; then
3554
3555   { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3557
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563   { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3566 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572   ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578 fi
3579
3580
3581
3582 if test -d ${srcdir}/projects/llvm-gcc ; then
3583   subdirs="$subdirs projects/llvm-gcc"
3584
3585 fi
3586
3587 if test -d ${srcdir}/projects/test-suite ; then
3588   subdirs="$subdirs projects/test-suite"
3589
3590 fi
3591
3592 if test -d ${srcdir}/projects/llvm-test ; then
3593   subdirs="$subdirs projects/llvm-test"
3594
3595 fi
3596
3597 if test -d ${srcdir}/projects/poolalloc ; then
3598   subdirs="$subdirs projects/poolalloc"
3599
3600 fi
3601
3602 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3603   subdirs="$subdirs projects/llvm-poolalloc"
3604
3605 fi
3606
3607 for i in `ls ${srcdir}/projects`
3608 do
3609   if test -d ${srcdir}/projects/${i} ; then
3610     case ${i} in
3611       sample)       subdirs="$subdirs projects/sample"
3612     ;;
3613       privbracket)  subdirs="$subdirs projects/privbracket"
3614  ;;
3615       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3616  ;;
3617       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3618 ;;
3619       llvm-java)    subdirs="$subdirs projects/llvm-java"
3620  ;;
3621       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3622    ;;
3623       safecode)     subdirs="$subdirs projects/safecode"
3624  ;;
3625       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3626  ;;
3627       compiler-rt)       ;;
3628       llvm-gcc)       ;;
3629       test-suite)     ;;
3630       llvm-test)      ;;
3631       poolalloc)      ;;
3632       llvm-poolalloc) ;;
3633       *)
3634         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3635 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3636         ;;
3637     esac
3638   fi
3639 done
3640
3641 # Check whether --enable-polly was given.
3642 if test "${enable_polly+set}" = set; then
3643   enableval=$enable_polly;
3644 else
3645   enableval=default
3646 fi
3647
3648 case "$enableval" in
3649   yes) ENABLE_POLLY=1
3650  ;;
3651   no)  ENABLE_POLLY=0
3652  ;;
3653   default) ENABLE_POLLY=1
3654  ;;
3655   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3656 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3657    { (exit 1); exit 1; }; } ;;
3658 esac
3659
3660
3661 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3662   LLVM_HAS_POLLY=1
3663
3664   subdirs="$subdirs tools/polly"
3665
3666 fi
3667
3668
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673    { (exit 1); exit 1; }; }
3674
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686    { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690    { (exit 1); exit 1; }; }
3691
3692 fi
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3696 *-*-*) ;;
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699    { (exit 1); exit 1; }; };;
3700 esac
3701 build=$ac_cv_build
3702 ac_save_IFS=$IFS; IFS='-'
3703 set x $ac_cv_build
3704 shift
3705 build_cpu=$1
3706 build_vendor=$2
3707 shift; shift
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3710 build_os=$*
3711 IFS=$ac_save_IFS
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713
3714
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   if test "x$host_alias" = x; then
3721   ac_cv_host=$ac_cv_build
3722 else
3723   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726    { (exit 1); exit 1; }; }
3727 fi
3728
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3732 case $ac_cv_host in
3733 *-*-*) ;;
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736    { (exit 1); exit 1; }; };;
3737 esac
3738 host=$ac_cv_host
3739 ac_save_IFS=$IFS; IFS='-'
3740 set x $ac_cv_host
3741 shift
3742 host_cpu=$1
3743 host_vendor=$2
3744 shift; shift
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3747 host_os=$*
3748 IFS=$ac_save_IFS
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3750
3751
3752 { echo "$as_me:$LINENO: checking target system type" >&5
3753 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3754 if test "${ac_cv_target+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   if test "x$target_alias" = x; then
3758   ac_cv_target=$ac_cv_host
3759 else
3760   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3761     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3762 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3763    { (exit 1); exit 1; }; }
3764 fi
3765
3766 fi
3767 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3768 echo "${ECHO_T}$ac_cv_target" >&6; }
3769 case $ac_cv_target in
3770 *-*-*) ;;
3771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3772 echo "$as_me: error: invalid value of canonical target" >&2;}
3773    { (exit 1); exit 1; }; };;
3774 esac
3775 target=$ac_cv_target
3776 ac_save_IFS=$IFS; IFS='-'
3777 set x $ac_cv_target
3778 shift
3779 target_cpu=$1
3780 target_vendor=$2
3781 shift; shift
3782 # Remember, the first character of IFS is used to create $*,
3783 # except with old shells:
3784 target_os=$*
3785 IFS=$ac_save_IFS
3786 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3787
3788
3789 # The aliases save the names the user supplied, while $host etc.
3790 # will get canonicalized.
3791 test -n "$target_alias" &&
3792   test "$program_prefix$program_suffix$program_transform_name" = \
3793     NONENONEs,x,x, &&
3794   program_prefix=${target_alias}-
3795
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3797 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3798 if test "${llvm_cv_os_type+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   case $host in
3802   *-*-aix*)
3803     llvm_cv_link_all_option="-Wl,--whole-archive"
3804     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805     llvm_cv_os_type="AIX"
3806     llvm_cv_platform_type="Unix" ;;
3807   *-*-irix*)
3808     llvm_cv_link_all_option="-Wl,--whole-archive"
3809     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810     llvm_cv_os_type="IRIX"
3811     llvm_cv_platform_type="Unix" ;;
3812   *-*-cygwin*)
3813     llvm_cv_link_all_option="-Wl,--whole-archive"
3814     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815     llvm_cv_os_type="Cygwin"
3816     llvm_cv_platform_type="Unix" ;;
3817   *-*-darwin*)
3818     llvm_cv_link_all_option="-Wl,-all_load"
3819     llvm_cv_no_link_all_option="-Wl,-noall_load"
3820     llvm_cv_os_type="Darwin"
3821     llvm_cv_platform_type="Unix" ;;
3822   *-*-minix*)
3823     llvm_cv_link_all_option="-Wl,-all_load"
3824     llvm_cv_no_link_all_option="-Wl,-noall_load"
3825     llvm_cv_os_type="Minix"
3826     llvm_cv_platform_type="Unix" ;;
3827   *-*-freebsd* | *-*-kfreebsd-gnu)
3828     llvm_cv_link_all_option="-Wl,--whole-archive"
3829     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830     llvm_cv_os_type="FreeBSD"
3831     llvm_cv_platform_type="Unix" ;;
3832   *-*-openbsd*)
3833     llvm_cv_link_all_option="-Wl,--whole-archive"
3834     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835     llvm_cv_os_type="OpenBSD"
3836     llvm_cv_platform_type="Unix" ;;
3837   *-*-netbsd*)
3838     llvm_cv_link_all_option="-Wl,--whole-archive"
3839     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840     llvm_cv_os_type="NetBSD"
3841     llvm_cv_platform_type="Unix" ;;
3842   *-*-dragonfly*)
3843     llvm_cv_link_all_option="-Wl,--whole-archive"
3844     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845     llvm_cv_os_type="DragonFly"
3846     llvm_cv_platform_type="Unix" ;;
3847   *-*-hpux*)
3848     llvm_cv_link_all_option="-Wl,--whole-archive"
3849     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850     llvm_cv_os_type="HP-UX"
3851     llvm_cv_platform_type="Unix" ;;
3852   *-*-interix*)
3853     llvm_cv_link_all_option="-Wl,--whole-archive"
3854     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855     llvm_cv_os_type="Interix"
3856     llvm_cv_platform_type="Unix" ;;
3857   *-*-linux*)
3858     llvm_cv_link_all_option="-Wl,--whole-archive"
3859     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860     llvm_cv_os_type="Linux"
3861     llvm_cv_platform_type="Unix" ;;
3862   *-*-gnu*)
3863     llvm_cv_link_all_option="-Wl,--whole-archive"
3864     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865     llvm_cv_os_type="GNU"
3866     llvm_cv_platform_type="Unix" ;;
3867   *-*-solaris*)
3868     llvm_cv_link_all_option="-Wl,-z,allextract"
3869     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3870     llvm_cv_os_type="SunOS"
3871     llvm_cv_platform_type="Unix" ;;
3872   *-*-auroraux*)
3873     llvm_cv_link_all_option="-Wl,-z,allextract"
3874     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3875     llvm_cv_os_type="AuroraUX"
3876     llvm_cv_platform_type="Unix" ;;
3877   *-*-win32*)
3878     llvm_cv_link_all_option="-Wl,--whole-archive"
3879     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880     llvm_cv_os_type="Win32"
3881     llvm_cv_platform_type="Win32" ;;
3882   *-*-mingw*)
3883     llvm_cv_link_all_option="-Wl,--whole-archive"
3884     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885     llvm_cv_os_type="MingW"
3886     llvm_cv_platform_type="Win32" ;;
3887   *-*-haiku*)
3888     llvm_cv_link_all_option="-Wl,--whole-archive"
3889     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890     llvm_cv_os_type="Haiku"
3891     llvm_cv_platform_type="Unix" ;;
3892   *-unknown-eabi*)
3893     llvm_cv_link_all_option="-Wl,--whole-archive"
3894     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895     llvm_cv_os_type="Freestanding"
3896     llvm_cv_platform_type="Unix" ;;
3897   *-unknown-elf*)
3898     llvm_cv_link_all_option="-Wl,--whole-archive"
3899     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900     llvm_cv_os_type="Freestanding"
3901     llvm_cv_platform_type="Unix" ;;
3902   *)
3903     llvm_cv_link_all_option=""
3904     llvm_cv_no_link_all_option=""
3905     llvm_cv_os_type="Unknown"
3906     llvm_cv_platform_type="Unknown" ;;
3907 esac
3908 fi
3909 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3910 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3911
3912 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3913 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3914 if test "${llvm_cv_target_os_type+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   case $target in
3918   *-*-aix*)
3919     llvm_cv_target_os_type="AIX" ;;
3920   *-*-irix*)
3921     llvm_cv_target_os_type="IRIX" ;;
3922   *-*-cygwin*)
3923     llvm_cv_target_os_type="Cygwin" ;;
3924   *-*-darwin*)
3925     llvm_cv_target_os_type="Darwin" ;;
3926   *-*-minix*)
3927     llvm_cv_target_os_type="Minix" ;;
3928   *-*-freebsd* | *-*-kfreebsd-gnu)
3929     llvm_cv_target_os_type="FreeBSD" ;;
3930   *-*-openbsd*)
3931     llvm_cv_target_os_type="OpenBSD" ;;
3932   *-*-netbsd*)
3933     llvm_cv_target_os_type="NetBSD" ;;
3934   *-*-dragonfly*)
3935     llvm_cv_target_os_type="DragonFly" ;;
3936   *-*-hpux*)
3937     llvm_cv_target_os_type="HP-UX" ;;
3938   *-*-interix*)
3939     llvm_cv_target_os_type="Interix" ;;
3940   *-*-linux*)
3941     llvm_cv_target_os_type="Linux" ;;
3942   *-*-gnu*)
3943     llvm_cv_target_os_type="GNU" ;;
3944   *-*-solaris*)
3945     llvm_cv_target_os_type="SunOS" ;;
3946   *-*-auroraux*)
3947     llvm_cv_target_os_type="AuroraUX" ;;
3948   *-*-win32*)
3949     llvm_cv_target_os_type="Win32" ;;
3950   *-*-mingw*)
3951     llvm_cv_target_os_type="MingW" ;;
3952   *-*-haiku*)
3953     llvm_cv_target_os_type="Haiku" ;;
3954   *-*-rtems*)
3955     llvm_cv_target_os_type="RTEMS" ;;
3956   *-*-nacl*)
3957     llvm_cv_target_os_type="NativeClient" ;;
3958   *-unknown-eabi*)
3959     llvm_cv_target_os_type="Freestanding" ;;
3960   *)
3961     llvm_cv_target_os_type="Unknown" ;;
3962 esac
3963 fi
3964 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3965 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3966
3967 if test "$llvm_cv_os_type" = "Unknown" ; then
3968   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3969 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3970    { (exit 1); exit 1; }; }
3971 fi
3972
3973 OS=$llvm_cv_os_type
3974
3975 HOST_OS=$llvm_cv_os_type
3976
3977 TARGET_OS=$llvm_cv_target_os_type
3978
3979
3980 LINKALL=$llvm_cv_link_all_option
3981
3982 NOLINKALL=$llvm_cv_no_link_all_option
3983
3984
3985 case $llvm_cv_platform_type in
3986   Unix)
3987
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_UNIX 1
3990 _ACEOF
3991
3992     LLVM_ON_UNIX=1
3993
3994     LLVM_ON_WIN32=0
3995
3996     ;;
3997   Win32)
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_WIN32 1
4001 _ACEOF
4002
4003     LLVM_ON_UNIX=0
4004
4005     LLVM_ON_WIN32=1
4006
4007     ;;
4008 esac
4009
4010 { echo "$as_me:$LINENO: checking target architecture" >&5
4011 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4012 if test "${llvm_cv_target_arch+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   case $target in
4016   i?86-*)                 llvm_cv_target_arch="x86" ;;
4017   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4018   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4019   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4020   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4021   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4022   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4023   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4024   xcore-*)                llvm_cv_target_arch="XCore" ;;
4025   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4026   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4027   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4028   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4029   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4030   *)                      llvm_cv_target_arch="Unknown" ;;
4031 esac
4032 fi
4033 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4034 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4035
4036 if test "$llvm_cv_target_arch" = "Unknown" ; then
4037   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4038 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4039 fi
4040
4041 case "$llvm_cv_target_arch" in
4042     x86)     LLVM_NATIVE_ARCH="X86" ;;
4043     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4044     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4045 esac
4046
4047 ARCH=$llvm_cv_target_arch
4048
4049
4050 case $host in
4051   i?86-*)                 host_arch="x86" ;;
4052   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4053   sparc*-*)               host_arch="Sparc" ;;
4054   powerpc*-*)             host_arch="PowerPC" ;;
4055   arm*-*)                 host_arch="ARM" ;;
4056   aarch64*-*)             host_arch="AArch64" ;;
4057   mips-* | mips64-*)      host_arch="Mips" ;;
4058   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4059   xcore-*)                host_arch="XCore" ;;
4060   msp430-*)               host_arch="MSP430" ;;
4061   hexagon-*)              host_arch="Hexagon" ;;
4062   mblaze-*)               host_arch="MBlaze" ;;
4063   s390x-*)                host_arch="SystemZ" ;;
4064   *)                      host_arch="Unknown" ;;
4065 esac
4066
4067 if test "$host_arch" = "Unknown" ; then
4068   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4069 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4070 fi
4071
4072 HOST_ARCH=$host_arch
4073
4074
4075
4076
4077 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4078 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4079 if test "${ac_cv_path_GREP+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   # Extract the first word of "grep ggrep" to use in msg output
4083 if test -z "$GREP"; then
4084 set dummy grep ggrep; ac_prog_name=$2
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   ac_path_GREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095   for ac_prog in grep ggrep; do
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4098     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4099     # Check for GNU ac_path_GREP and select it if it is found.
4100   # Check for GNU $ac_path_GREP
4101 case `"$ac_path_GREP" --version 2>&1` in
4102 *GNU*)
4103   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4104 *)
4105   ac_count=0
4106   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4107   while :
4108   do
4109     cat "conftest.in" "conftest.in" >"conftest.tmp"
4110     mv "conftest.tmp" "conftest.in"
4111     cp "conftest.in" "conftest.nl"
4112     echo 'GREP' >> "conftest.nl"
4113     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115     ac_count=`expr $ac_count + 1`
4116     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117       # Best one so far, save it but keep looking for a better one
4118       ac_cv_path_GREP="$ac_path_GREP"
4119       ac_path_GREP_max=$ac_count
4120     fi
4121     # 10*(2^10) chars as input seems more than enough
4122     test $ac_count -gt 10 && break
4123   done
4124   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127
4128     $ac_path_GREP_found && break 3
4129   done
4130 done
4131
4132 done
4133 IFS=$as_save_IFS
4134
4135
4136 fi
4137
4138 GREP="$ac_cv_path_GREP"
4139 if test -z "$GREP"; then
4140   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4141 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4142    { (exit 1); exit 1; }; }
4143 fi
4144
4145 else
4146   ac_cv_path_GREP=$GREP
4147 fi
4148
4149
4150 fi
4151 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4152 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4153  GREP="$ac_cv_path_GREP"
4154
4155
4156 { echo "$as_me:$LINENO: checking for egrep" >&5
4157 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162    then ac_cv_path_EGREP="$GREP -E"
4163    else
4164      # Extract the first word of "egrep" to use in msg output
4165 if test -z "$EGREP"; then
4166 set dummy egrep; ac_prog_name=$2
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   ac_path_EGREP_found=false
4171 # Loop through the user's path and test for each of PROGNAME-LIST
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_prog in egrep; do
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4180     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4181     # Check for GNU ac_path_EGREP and select it if it is found.
4182   # Check for GNU $ac_path_EGREP
4183 case `"$ac_path_EGREP" --version 2>&1` in
4184 *GNU*)
4185   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4186 *)
4187   ac_count=0
4188   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4189   while :
4190   do
4191     cat "conftest.in" "conftest.in" >"conftest.tmp"
4192     mv "conftest.tmp" "conftest.in"
4193     cp "conftest.in" "conftest.nl"
4194     echo 'EGREP' >> "conftest.nl"
4195     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197     ac_count=`expr $ac_count + 1`
4198     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4199       # Best one so far, save it but keep looking for a better one
4200       ac_cv_path_EGREP="$ac_path_EGREP"
4201       ac_path_EGREP_max=$ac_count
4202     fi
4203     # 10*(2^10) chars as input seems more than enough
4204     test $ac_count -gt 10 && break
4205   done
4206   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207 esac
4208
4209
4210     $ac_path_EGREP_found && break 3
4211   done
4212 done
4213
4214 done
4215 IFS=$as_save_IFS
4216
4217
4218 fi
4219
4220 EGREP="$ac_cv_path_EGREP"
4221 if test -z "$EGREP"; then
4222   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4223 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4224    { (exit 1); exit 1; }; }
4225 fi
4226
4227 else
4228   ac_cv_path_EGREP=$EGREP
4229 fi
4230
4231
4232    fi
4233 fi
4234 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4235 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4236  EGREP="$ac_cv_path_EGREP"
4237
4238
4239 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4241 if test "${ac_cv_header_stdc+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 #include <stdlib.h>
4251 #include <stdarg.h>
4252 #include <string.h>
4253 #include <float.h>
4254
4255 int
4256 main ()
4257 {
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (ac_try="$ac_compile"
4265 case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270   (eval "$ac_compile") 2>conftest.er1
4271   ac_status=$?
4272   grep -v '^ *+' conftest.er1 >conftest.err
4273   rm -f conftest.er1
4274   cat conftest.err >&5
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } &&
4277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4278   { (case "(($ac_try" in
4279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280   *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283   (eval "$ac_try") 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; } &&
4287          { ac_try='test -s conftest.$ac_objext'
4288   { (case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_try") 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; }; then
4297   ac_cv_header_stdc=yes
4298 else
4299   echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302         ac_cv_header_stdc=no
4303 fi
4304
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306
4307 if test $ac_cv_header_stdc = yes; then
4308   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4309   cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 #include <string.h>
4316
4317 _ACEOF
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319   $EGREP "memchr" >/dev/null 2>&1; then
4320   :
4321 else
4322   ac_cv_header_stdc=no
4323 fi
4324 rm -f conftest*
4325
4326 fi
4327
4328 if test $ac_cv_header_stdc = yes; then
4329   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 #include <stdlib.h>
4337
4338 _ACEOF
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340   $EGREP "free" >/dev/null 2>&1; then
4341   :
4342 else
4343   ac_cv_header_stdc=no
4344 fi
4345 rm -f conftest*
4346
4347 fi
4348
4349 if test $ac_cv_header_stdc = yes; then
4350   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4351   if test "$cross_compiling" = yes; then
4352   :
4353 else
4354   cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 #include <ctype.h>
4361 #include <stdlib.h>
4362 #if ((' ' & 0x0FF) == 0x020)
4363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4365 #else
4366 # define ISLOWER(c) \
4367                    (('a' <= (c) && (c) <= 'i') \
4368                      || ('j' <= (c) && (c) <= 'r') \
4369                      || ('s' <= (c) && (c) <= 'z'))
4370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4371 #endif
4372
4373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4374 int
4375 main ()
4376 {
4377   int i;
4378   for (i = 0; i < 256; i++)
4379     if (XOR (islower (i), ISLOWER (i))
4380         || toupper (i) != TOUPPER (i))
4381       return 2;
4382   return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4387 case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_link") 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396   { (case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_try") 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }; }; then
4405   :
4406 else
4407   echo "$as_me: program exited with status $ac_status" >&5
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ( exit $ac_status )
4412 ac_cv_header_stdc=no
4413 fi
4414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4415 fi
4416
4417
4418 fi
4419 fi
4420 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4421 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4422 if test $ac_cv_header_stdc = yes; then
4423
4424 cat >>confdefs.h <<\_ACEOF
4425 #define STDC_HEADERS 1
4426 _ACEOF
4427
4428 fi
4429
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441                   inttypes.h stdint.h unistd.h
4442 do
4443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 $ac_includes_default
4456
4457 #include <$ac_header>
4458 _ACEOF
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4461 case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466   (eval "$ac_compile") 2>conftest.er1
4467   ac_status=$?
4468   grep -v '^ *+' conftest.er1 >conftest.err
4469   rm -f conftest.er1
4470   cat conftest.err >&5
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); } &&
4473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4474   { (case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_try") 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; } &&
4483          { ac_try='test -s conftest.$ac_objext'
4484   { (case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_try") 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; }; then
4493   eval "$as_ac_Header=yes"
4494 else
4495   echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498         eval "$as_ac_Header=no"
4499 fi
4500
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 fi
4503 ac_res=`eval echo '${'$as_ac_Header'}'`
4504                { echo "$as_me:$LINENO: result: $ac_res" >&5
4505 echo "${ECHO_T}$ac_res" >&6; }
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507   cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4509 _ACEOF
4510
4511 fi
4512
4513 done
4514
4515
4516 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4517 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4518 if test "${ac_cv_c_bigendian+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   # See if sys/param.h defines the BYTE_ORDER macro.
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 #include <sys/types.h>
4529 #include <sys/param.h>
4530
4531 int
4532 main ()
4533 {
4534 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4535  bogus endian macros
4536 #endif
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (ac_try="$ac_compile"
4544 case "(($ac_try" in
4545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546   *) ac_try_echo=$ac_try;;
4547 esac
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549   (eval "$ac_compile") 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } &&
4556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4557   { (case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562   (eval "$ac_try") 2>&5
4563   ac_status=$?
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); }; } &&
4566          { ac_try='test -s conftest.$ac_objext'
4567   { (case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572   (eval "$ac_try") 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; }; then
4576   # It does; now see whether it defined to BIG_ENDIAN or not.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583 #include <sys/types.h>
4584 #include <sys/param.h>
4585
4586 int
4587 main ()
4588 {
4589 #if BYTE_ORDER != BIG_ENDIAN
4590  not big endian
4591 #endif
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_compile") 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4612   { (case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617   (eval "$ac_try") 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627   (eval "$ac_try") 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631   ac_cv_c_bigendian=yes
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636         ac_cv_c_bigendian=no
4637 fi
4638
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 else
4641   echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644         # It does not; compile a test program.
4645 if test "$cross_compiling" = yes; then
4646   # try to guess the endianness by grepping values into an object file
4647   ac_cv_c_bigendian=unknown
4648   cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h.  */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h.  */
4654 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4655 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4656 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4657 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4658 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4659 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4660 int
4661 main ()
4662 {
4663  _ascii (); _ebcdic ();
4664   ;
4665   return 0;
4666 }
4667 _ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (ac_try="$ac_compile"
4670 case "(($ac_try" in
4671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672   *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675   (eval "$ac_compile") 2>conftest.er1
4676   ac_status=$?
4677   grep -v '^ *+' conftest.er1 >conftest.err
4678   rm -f conftest.er1
4679   cat conftest.err >&5
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); } &&
4682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683   { (case "(($ac_try" in
4684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685   *) ac_try_echo=$ac_try;;
4686 esac
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688   (eval "$ac_try") 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; } &&
4692          { ac_try='test -s conftest.$ac_objext'
4693   { (case "(($ac_try" in
4694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695   *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698   (eval "$ac_try") 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; }; then
4702   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4703   ac_cv_c_bigendian=yes
4704 fi
4705 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4706   if test "$ac_cv_c_bigendian" = unknown; then
4707     ac_cv_c_bigendian=no
4708   else
4709     # finding both strings is unlikely to happen, but who knows?
4710     ac_cv_c_bigendian=unknown
4711   fi
4712 fi
4713 else
4714   echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717
4718 fi
4719
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 else
4722   cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 $ac_includes_default
4729 int
4730 main ()
4731 {
4732
4733   /* Are we little or big endian?  From Harbison&Steele.  */
4734   union
4735   {
4736     long int l;
4737     char c[sizeof (long int)];
4738   } u;
4739   u.l = 1;
4740   return u.c[sizeof (long int) - 1] == 1;
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest$ac_exeext
4747 if { (ac_try="$ac_link"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_link") 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4757   { (case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_try") 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   ac_cv_c_bigendian=no
4767 else
4768   echo "$as_me: program exited with status $ac_status" >&5
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ( exit $ac_status )
4773 ac_cv_c_bigendian=yes
4774 fi
4775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4776 fi
4777
4778
4779 fi
4780
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 fi
4783 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4784 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4785 case $ac_cv_c_bigendian in
4786   yes)
4787     ENDIAN=big
4788  ;;
4789   no)
4790     ENDIAN=little
4791  ;;
4792   *)
4793     { { echo "$as_me:$LINENO: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4795 echo "$as_me: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4797    { (exit 1); exit 1; }; } ;;
4798 esac
4799
4800
4801 if test "$cross_compiling" = yes; then
4802   LLVM_CROSS_COMPILING=1
4803
4804
4805 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4806 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4807 if test "${ac_cv_build_exeext+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4811   ac_cv_build_exeext=.exe
4812 else
4813   ac_build_prefix=${build_alias}-
4814
4815   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4816 set dummy ${ac_build_prefix}gcc; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$BUILD_CC"; then
4823   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 BUILD_CC=$ac_cv_prog_BUILD_CC
4843 if test -n "$BUILD_CC"; then
4844   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4845 echo "${ECHO_T}$BUILD_CC" >&6; }
4846 else
4847   { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4849 fi
4850
4851
4852   if test -z "$BUILD_CC"; then
4853      # Extract the first word of "gcc", so it can be a program name with args.
4854 set dummy gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$BUILD_CC"; then
4861   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_BUILD_CC="gcc"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 BUILD_CC=$ac_cv_prog_BUILD_CC
4881 if test -n "$BUILD_CC"; then
4882   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4883 echo "${ECHO_T}$BUILD_CC" >&6; }
4884 else
4885   { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4887 fi
4888
4889
4890      if test -z "$BUILD_CC"; then
4891        # Extract the first word of "cc", so it can be a program name with args.
4892 set dummy cc; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   if test -n "$BUILD_CC"; then
4899   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4900 else
4901   ac_prog_rejected=no
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907   for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910        ac_prog_rejected=yes
4911        continue
4912      fi
4913     ac_cv_prog_BUILD_CC="cc"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 if test $ac_prog_rejected = yes; then
4922   # We found a bogon in the path, so make sure we never use it.
4923   set dummy $ac_cv_prog_BUILD_CC
4924   shift
4925   if test $# != 0; then
4926     # We chose a different compiler from the bogus one.
4927     # However, it has the same basename, so the bogon will be chosen
4928     # first if we set BUILD_CC to just the basename; use the full file name.
4929     shift
4930     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4931   fi
4932 fi
4933 fi
4934 fi
4935 BUILD_CC=$ac_cv_prog_BUILD_CC
4936 if test -n "$BUILD_CC"; then
4937   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4938 echo "${ECHO_T}$BUILD_CC" >&6; }
4939 else
4940   { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4942 fi
4943
4944
4945      fi
4946   fi
4947   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4948 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4949    { (exit 1); exit 1; }; }
4950   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4951   rm -f conftest*
4952   echo 'int main () { return 0; }' > conftest.$ac_ext
4953   ac_cv_build_exeext=
4954   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4955   (eval $ac_build_link) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }; then
4959     for file in conftest.*; do
4960       case $file in
4961       *.c | *.o | *.obj | *.dSYM) ;;
4962       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4963       esac
4964     done
4965   else
4966     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4967 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4968    { (exit 1); exit 1; }; }
4969   fi
4970   rm -f conftest*
4971   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4972 fi
4973 fi
4974
4975 BUILD_EXEEXT=""
4976 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4977 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4978 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4979 ac_build_exeext=$BUILD_EXEEXT
4980
4981   ac_build_prefix=${build_alias}-
4982   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4983 set dummy ${ac_build_prefix}g++; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4987   echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989   if test -n "$BUILD_CXX"; then
4990   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5010 if test -n "$BUILD_CXX"; then
5011   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5012 echo "${ECHO_T}$BUILD_CXX" >&6; }
5013 else
5014   { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5016 fi
5017
5018
5019   if test -z "$BUILD_CXX"; then
5020      # Extract the first word of "g++", so it can be a program name with args.
5021 set dummy g++; ac_word=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   if test -n "$BUILD_CXX"; then
5028   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5037     ac_cv_prog_BUILD_CXX="g++"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045 fi
5046 fi
5047 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5048 if test -n "$BUILD_CXX"; then
5049   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5050 echo "${ECHO_T}$BUILD_CXX" >&6; }
5051 else
5052   { echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6; }
5054 fi
5055
5056
5057      if test -z "$BUILD_CXX"; then
5058        # Extract the first word of "c++", so it can be a program name with args.
5059 set dummy c++; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   if test -n "$BUILD_CXX"; then
5066   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5067 else
5068   ac_prog_rejected=no
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for ac_exec_ext in '' $ac_executable_extensions; do
5075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5076     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5077        ac_prog_rejected=yes
5078        continue
5079      fi
5080     ac_cv_prog_BUILD_CXX="c++"
5081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087
5088 if test $ac_prog_rejected = yes; then
5089   # We found a bogon in the path, so make sure we never use it.
5090   set dummy $ac_cv_prog_BUILD_CXX
5091   shift
5092   if test $# != 0; then
5093     # We chose a different compiler from the bogus one.
5094     # However, it has the same basename, so the bogon will be chosen
5095     # first if we set BUILD_CXX to just the basename; use the full file name.
5096     shift
5097     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5098   fi
5099 fi
5100 fi
5101 fi
5102 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5103 if test -n "$BUILD_CXX"; then
5104   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5105 echo "${ECHO_T}$BUILD_CXX" >&6; }
5106 else
5107   { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5109 fi
5110
5111
5112      fi
5113   fi
5114 else
5115   LLVM_CROSS_COMPILING=0
5116
5117 fi
5118
5119 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5120   cvsbuild="yes"
5121   optimize="no"
5122   CVSBUILD=CVSBUILD=1
5123
5124 else
5125   cvsbuild="no"
5126   optimize="yes"
5127 fi
5128
5129
5130 # Check whether --enable-libcpp was given.
5131 if test "${enable_libcpp+set}" = set; then
5132   enableval=$enable_libcpp;
5133 else
5134   enableval=default
5135 fi
5136
5137 case "$enableval" in
5138   yes) ENABLE_LIBCPP=1
5139  ;;
5140   no)  ENABLE_LIBCPP=0
5141  ;;
5142   default) ENABLE_LIBCPP=0
5143 ;;
5144   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5145 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5146    { (exit 1); exit 1; }; } ;;
5147 esac
5148
5149 # Check whether --enable-cxx11 was given.
5150 if test "${enable_cxx11+set}" = set; then
5151   enableval=$enable_cxx11;
5152 else
5153   enableval=default
5154 fi
5155
5156 case "$enableval" in
5157   yes) ENABLE_CXX11=1
5158  ;;
5159   no)  ENABLE_CXX11=0
5160  ;;
5161   default) ENABLE_CXX11=0
5162 ;;
5163   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5165    { (exit 1); exit 1; }; } ;;
5166 esac
5167
5168 clang_arcmt="yes"
5169 # Check whether --enable-clang-arcmt was given.
5170 if test "${enable_clang_arcmt+set}" = set; then
5171   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5172 else
5173   enableval="yes"
5174 fi
5175
5176 case "$enableval" in
5177   yes) ENABLE_CLANG_ARCMT=1
5178  ;;
5179   no)  ENABLE_CLANG_ARCMT=0
5180  ;;
5181   default) ENABLE_CLANG_ARCMT=1
5182 ;;
5183   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5185    { (exit 1); exit 1; }; } ;;
5186 esac
5187
5188 clang_static_analyzer="yes"
5189 # Check whether --enable-clang-static-analyzer was given.
5190 if test "${enable_clang_static_analyzer+set}" = set; then
5191   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5192 else
5193   enableval="yes"
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5198  ;;
5199   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5200  ;;
5201   default) ENABLE_CLANG_STATIC_ANALYZER=1
5202 ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 # Check whether --enable-clang-rewriter was given.
5209 if test "${enable_clang_rewriter+set}" = set; then
5210   enableval=$enable_clang_rewriter;
5211 else
5212   enableval="yes"
5213 fi
5214
5215 case "$enableval" in
5216   yes) ENABLE_CLANG_REWRITER=1
5217  ;;
5218   no)
5219     if test ${clang_arcmt} != "no" ; then
5220       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5221 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5222    { (exit 1); exit 1; }; }
5223     fi
5224     if test ${clang_static_analyzer} != "no" ; then
5225       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5226 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5227    { (exit 1); exit 1; }; }
5228     fi
5229     ENABLE_CLANG_REWRITER=0
5230
5231     ;;
5232   default) ENABLE_CLANG_REWRITER=1
5233 ;;
5234   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5236    { (exit 1); exit 1; }; } ;;
5237 esac
5238
5239 # Check whether --enable-optimized was given.
5240 if test "${enable_optimized+set}" = set; then
5241   enableval=$enable_optimized;
5242 else
5243   enableval=$optimize
5244 fi
5245
5246 if test ${enableval} = "no" ; then
5247   ENABLE_OPTIMIZED=
5248
5249 else
5250   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5251
5252 fi
5253
5254 # Check whether --enable-profiling was given.
5255 if test "${enable_profiling+set}" = set; then
5256   enableval=$enable_profiling;
5257 else
5258   enableval="no"
5259 fi
5260
5261 if test ${enableval} = "no" ; then
5262   ENABLE_PROFILING=
5263
5264 else
5265   ENABLE_PROFILING=ENABLE_PROFILING=1
5266
5267 fi
5268
5269 # Check whether --enable-assertions was given.
5270 if test "${enable_assertions+set}" = set; then
5271   enableval=$enable_assertions;
5272 else
5273   enableval="yes"
5274 fi
5275
5276 if test ${enableval} = "yes" ; then
5277   DISABLE_ASSERTIONS=
5278
5279 else
5280   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5281
5282 fi
5283
5284 # Check whether --enable-werror was given.
5285 if test "${enable_werror+set}" = set; then
5286   enableval=$enable_werror;
5287 else
5288   enableval="no"
5289 fi
5290
5291 case "$enableval" in
5292   yes) ENABLE_WERROR=1
5293  ;;
5294   no)  ENABLE_WERROR=0
5295  ;;
5296   default) ENABLE_WERROR=0
5297 ;;
5298   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5300    { (exit 1); exit 1; }; } ;;
5301 esac
5302
5303 # Check whether --enable-expensive-checks was given.
5304 if test "${enable_expensive_checks+set}" = set; then
5305   enableval=$enable_expensive_checks;
5306 else
5307   enableval="no"
5308 fi
5309
5310 if test ${enableval} = "yes" ; then
5311   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5312
5313   EXPENSIVE_CHECKS=yes
5314
5315 else
5316   ENABLE_EXPENSIVE_CHECKS=
5317
5318   EXPENSIVE_CHECKS=no
5319
5320 fi
5321
5322 # Check whether --enable-debug-runtime was given.
5323 if test "${enable_debug_runtime+set}" = set; then
5324   enableval=$enable_debug_runtime;
5325 else
5326   enableval=no
5327 fi
5328
5329 if test ${enableval} = "no" ; then
5330   DEBUG_RUNTIME=
5331
5332 else
5333   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5334
5335 fi
5336
5337 # Check whether --enable-debug-symbols was given.
5338 if test "${enable_debug_symbols+set}" = set; then
5339   enableval=$enable_debug_symbols;
5340 else
5341   enableval=no
5342 fi
5343
5344 if test ${enableval} = "no" ; then
5345   DEBUG_SYMBOLS=
5346
5347 else
5348   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5349
5350 fi
5351
5352 # Check whether --enable-keep-symbols was given.
5353 if test "${enable_keep_symbols+set}" = set; then
5354   enableval=$enable_keep_symbols;
5355 else
5356   enableval=no
5357 fi
5358
5359 if test ${enableval} = "no" ; then
5360   KEEP_SYMBOLS=
5361
5362 else
5363   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5364
5365 fi
5366
5367 # Check whether --enable-jit was given.
5368 if test "${enable_jit+set}" = set; then
5369   enableval=$enable_jit;
5370 else
5371   enableval=default
5372 fi
5373
5374 if test ${enableval} = "no"
5375 then
5376   JIT=
5377
5378 else
5379   case "$llvm_cv_target_arch" in
5380     x86)         TARGET_HAS_JIT=1
5381  ;;
5382     Sparc)       TARGET_HAS_JIT=0
5383  ;;
5384     PowerPC)     TARGET_HAS_JIT=1
5385  ;;
5386     x86_64)      TARGET_HAS_JIT=1
5387  ;;
5388     ARM)         TARGET_HAS_JIT=1
5389  ;;
5390     AArch64)     TARGET_HAS_JIT=0
5391  ;;
5392     Mips)        TARGET_HAS_JIT=1
5393  ;;
5394     XCore)       TARGET_HAS_JIT=0
5395  ;;
5396     MSP430)      TARGET_HAS_JIT=0
5397  ;;
5398     Hexagon)     TARGET_HAS_JIT=0
5399  ;;
5400     MBlaze)      TARGET_HAS_JIT=0
5401  ;;
5402     NVPTX)       TARGET_HAS_JIT=0
5403  ;;
5404     SystemZ)     TARGET_HAS_JIT=1
5405  ;;
5406     *)           TARGET_HAS_JIT=0
5407  ;;
5408   esac
5409 fi
5410
5411 # Check whether --enable-docs was given.
5412 if test "${enable_docs+set}" = set; then
5413   enableval=$enable_docs;
5414 else
5415   enableval=default
5416 fi
5417
5418 case "$enableval" in
5419   yes) ENABLE_DOCS=1
5420  ;;
5421   no)  ENABLE_DOCS=0
5422  ;;
5423   default) ENABLE_DOCS=1
5424  ;;
5425   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5426 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5427    { (exit 1); exit 1; }; } ;;
5428 esac
5429
5430 # Check whether --enable-doxygen was given.
5431 if test "${enable_doxygen+set}" = set; then
5432   enableval=$enable_doxygen;
5433 else
5434   enableval=default
5435 fi
5436
5437 case "$enableval" in
5438   yes) ENABLE_DOXYGEN=1
5439  ;;
5440   no)  ENABLE_DOXYGEN=0
5441  ;;
5442   default) ENABLE_DOXYGEN=0
5443  ;;
5444   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5445 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5446    { (exit 1); exit 1; }; } ;;
5447 esac
5448
5449 # Check whether --enable-threads was given.
5450 if test "${enable_threads+set}" = set; then
5451   enableval=$enable_threads;
5452 else
5453   enableval=default
5454 fi
5455
5456 case "$enableval" in
5457   yes) LLVM_ENABLE_THREADS=1
5458  ;;
5459   no)  LLVM_ENABLE_THREADS=0
5460  ;;
5461   default) LLVM_ENABLE_THREADS=1
5462  ;;
5463   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5465    { (exit 1); exit 1; }; } ;;
5466 esac
5467
5468 cat >>confdefs.h <<_ACEOF
5469 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5470 _ACEOF
5471
5472
5473 # Check whether --enable-pthreads was given.
5474 if test "${enable_pthreads+set}" = set; then
5475   enableval=$enable_pthreads;
5476 else
5477   enableval=default
5478 fi
5479
5480 case "$enableval" in
5481   yes) ENABLE_PTHREADS=1
5482  ;;
5483   no)  ENABLE_PTHREADS=0
5484  ;;
5485   default) ENABLE_PTHREADS=1
5486  ;;
5487   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5488 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5489    { (exit 1); exit 1; }; } ;;
5490 esac
5491
5492 # Check whether --enable-zlib was given.
5493 if test "${enable_zlib+set}" = set; then
5494   enableval=$enable_zlib;
5495 else
5496   enableval=default
5497 fi
5498
5499 case "$enableval" in
5500   yes) LLVM_ENABLE_ZLIB=1
5501  ;;
5502   no)  LLVM_ENABLE_ZLIB=0
5503  ;;
5504   default) LLVM_ENABLE_ZLIB=1
5505  ;;
5506   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5508    { (exit 1); exit 1; }; } ;;
5509 esac
5510
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5513 _ACEOF
5514
5515
5516 # Check whether --enable-pic was given.
5517 if test "${enable_pic+set}" = set; then
5518   enableval=$enable_pic;
5519 else
5520   enableval=default
5521 fi
5522
5523 case "$enableval" in
5524   yes) ENABLE_PIC=1
5525  ;;
5526   no)  ENABLE_PIC=0
5527  ;;
5528   default) ENABLE_PIC=1
5529  ;;
5530   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5532    { (exit 1); exit 1; }; } ;;
5533 esac
5534
5535 cat >>confdefs.h <<_ACEOF
5536 #define ENABLE_PIC $ENABLE_PIC
5537 _ACEOF
5538
5539
5540 # Check whether --enable-shared was given.
5541 if test "${enable_shared+set}" = set; then
5542   enableval=$enable_shared;
5543 else
5544   enableval=default
5545 fi
5546
5547 case "$enableval" in
5548   yes) ENABLE_SHARED=1
5549  ;;
5550   no)  ENABLE_SHARED=0
5551  ;;
5552   default) ENABLE_SHARED=0
5553  ;;
5554   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5556    { (exit 1); exit 1; }; } ;;
5557 esac
5558
5559 # Check whether --enable-embed-stdcxx was given.
5560 if test "${enable_embed_stdcxx+set}" = set; then
5561   enableval=$enable_embed_stdcxx;
5562 else
5563   enableval=default
5564 fi
5565
5566 case "$enableval" in
5567   yes) ENABLE_EMBED_STDCXX=1
5568  ;;
5569   no)  ENABLE_EMBED_STDCXX=0
5570  ;;
5571   default) ENABLE_EMBED_STDCXX=0
5572  ;;
5573   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5574 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5575    { (exit 1); exit 1; }; } ;;
5576 esac
5577
5578 # Check whether --enable-timestamps was given.
5579 if test "${enable_timestamps+set}" = set; then
5580   enableval=$enable_timestamps;
5581 else
5582   enableval=default
5583 fi
5584
5585 case "$enableval" in
5586   yes) ENABLE_TIMESTAMPS=1
5587  ;;
5588   no)  ENABLE_TIMESTAMPS=0
5589  ;;
5590   default) ENABLE_TIMESTAMPS=1
5591  ;;
5592   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5593 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5594    { (exit 1); exit 1; }; } ;;
5595 esac
5596
5597 cat >>confdefs.h <<_ACEOF
5598 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5599 _ACEOF
5600
5601
5602
5603 # Check whether --enable-backtraces was given.
5604 if test "${enable_backtraces+set}" = set; then
5605   enableval=$enable_backtraces;
5606 else
5607   enableval=default
5608 fi
5609
5610 case "$enableval" in
5611   yes) ENABLE_BACKTRACES=1
5612  ;;
5613   no)  ENABLE_BACKTRACES=0
5614  ;;
5615   default) ENABLE_BACKTRACES=1
5616  ;;
5617   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5619    { (exit 1); exit 1; }; } ;;
5620 esac
5621
5622 cat >>confdefs.h <<_ACEOF
5623 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5624 _ACEOF
5625
5626
5627 TARGETS_TO_BUILD=""
5628 # Check whether --enable-targets was given.
5629 if test "${enable_targets+set}" = set; then
5630   enableval=$enable_targets;
5631 else
5632   enableval=all
5633 fi
5634
5635 if test "$enableval" = host-only ; then
5636   enableval=host
5637 fi
5638 case "$enableval" in
5639   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5640   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5641       case "$a_target" in
5642         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5643         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5644         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5645         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5646         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5647         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5648         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5652         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5653         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5654         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5655         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5656         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5657         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5658         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5659         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5660         host) case "$llvm_cv_target_arch" in
5661             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5664             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5665             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5666             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5667             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5668             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5669             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5670             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5671             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5672             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5673             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5674             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5675 echo "$as_me: error: Can not set target to build" >&2;}
5676    { (exit 1); exit 1; }; } ;;
5677           esac ;;
5678         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5679 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5680    { (exit 1); exit 1; }; } ;;
5681       esac
5682   done
5683   ;;
5684 esac
5685
5686 # Check whether --enable-experimental-targets was given.
5687 if test "${enable_experimental_targets+set}" = set; then
5688   enableval=$enable_experimental_targets;
5689 else
5690   enableval=disable
5691 fi
5692
5693
5694 if test ${enableval} != "disable"
5695 then
5696   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5697 fi
5698
5699 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5700
5701
5702 for a_target in $TARGETS_TO_BUILD; do
5703   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5704
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5707 _ACEOF
5708
5709     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5710     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5711     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5712     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5713     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5714       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5715     fi
5716     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5717       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5718     fi
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5722 _ACEOF
5723
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5727 _ACEOF
5728
5729
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5732 _ACEOF
5733
5734
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5737 _ACEOF
5738
5739     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5743 _ACEOF
5744
5745     fi
5746     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5750 _ACEOF
5751
5752     fi
5753   fi
5754 done
5755
5756 LLVM_ENUM_TARGETS=""
5757 LLVM_ENUM_ASM_PRINTERS=""
5758 LLVM_ENUM_ASM_PARSERS=""
5759 LLVM_ENUM_DISASSEMBLERS=""
5760 for target_to_build in $TARGETS_TO_BUILD; do
5761   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5762   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5763     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5764   fi
5765   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5766     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5767   fi
5768   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5769     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5770   fi
5771 done
5772
5773
5774
5775
5776
5777
5778 # Check whether --with-optimize-option was given.
5779 if test "${with_optimize_option+set}" = set; then
5780   withval=$with_optimize_option;
5781 else
5782   withval=default
5783 fi
5784
5785 { echo "$as_me:$LINENO: checking optimization flags" >&5
5786 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5787 case "$withval" in
5788   default)
5789     case "$llvm_cv_os_type" in
5790     FreeBSD) optimize_option=-O2 ;;
5791     MingW) optimize_option=-O2 ;;
5792     *)     optimize_option=-O3 ;;
5793     esac ;;
5794   *) optimize_option="$withval" ;;
5795 esac
5796 OPTIMIZE_OPTION=$optimize_option
5797
5798 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5799 echo "${ECHO_T}$optimize_option" >&6; }
5800
5801
5802 # Check whether --with-extra-options was given.
5803 if test "${with_extra_options+set}" = set; then
5804   withval=$with_extra_options;
5805 else
5806   withval=default
5807 fi
5808
5809 case "$withval" in
5810   default) EXTRA_OPTIONS= ;;
5811   *) EXTRA_OPTIONS=$withval ;;
5812 esac
5813 EXTRA_OPTIONS=$EXTRA_OPTIONS
5814
5815
5816
5817 # Check whether --with-extra-ld-options was given.
5818 if test "${with_extra_ld_options+set}" = set; then
5819   withval=$with_extra_ld_options;
5820 else
5821   withval=default
5822 fi
5823
5824 case "$withval" in
5825   default) EXTRA_LD_OPTIONS= ;;
5826   *) EXTRA_LD_OPTIONS=$withval ;;
5827 esac
5828 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5829
5830
5831 # Check whether --enable-bindings was given.
5832 if test "${enable_bindings+set}" = set; then
5833   enableval=$enable_bindings;
5834 else
5835   enableval=default
5836 fi
5837
5838 BINDINGS_TO_BUILD=""
5839 case "$enableval" in
5840   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5841   all ) BINDINGS_TO_BUILD="ocaml" ;;
5842   none | no) BINDINGS_TO_BUILD="" ;;
5843   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5844       case "$a_binding" in
5845         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5846         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5847 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5848    { (exit 1); exit 1; }; } ;;
5849       esac
5850   done
5851   ;;
5852 esac
5853
5854
5855 # Check whether --with-ocaml-libdir was given.
5856 if test "${with_ocaml_libdir+set}" = set; then
5857   withval=$with_ocaml_libdir;
5858 else
5859   withval=auto
5860 fi
5861
5862 case "$withval" in
5863   auto) with_ocaml_libdir="$withval" ;;
5864   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5865   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5866 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5867    { (exit 1); exit 1; }; } ;;
5868 esac
5869
5870
5871 # Check whether --with-clang-srcdir was given.
5872 if test "${with_clang_srcdir+set}" = set; then
5873   withval=$with_clang_srcdir;
5874 else
5875   withval="-"
5876 fi
5877
5878 case "$withval" in
5879   -) clang_src_root="" ;;
5880   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5881   *) clang_src_root="$ac_pwd/$withval" ;;
5882 esac
5883 CLANG_SRC_ROOT=$clang_src_root
5884
5885
5886
5887 # Check whether --with-clang-resource-dir was given.
5888 if test "${with_clang_resource_dir+set}" = set; then
5889   withval=$with_clang_resource_dir;
5890 else
5891   withval=""
5892 fi
5893
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define CLANG_RESOURCE_DIR "$withval"
5897 _ACEOF
5898
5899
5900
5901 # Check whether --with-c-include-dirs was given.
5902 if test "${with_c_include_dirs+set}" = set; then
5903   withval=$with_c_include_dirs;
5904 else
5905   withval=""
5906 fi
5907
5908
5909 cat >>confdefs.h <<_ACEOF
5910 #define C_INCLUDE_DIRS "$withval"
5911 _ACEOF
5912
5913
5914 # Clang normally uses the system c++ headers and libraries. With this option,
5915 # clang will use the ones provided by a gcc installation instead. This option should
5916 # be passed the same value that was used with --prefix when configuring gcc.
5917
5918 # Check whether --with-gcc-toolchain was given.
5919 if test "${with_gcc_toolchain+set}" = set; then
5920   withval=$with_gcc_toolchain;
5921 else
5922   withval=""
5923 fi
5924
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define GCC_INSTALL_PREFIX "$withval"
5928 _ACEOF
5929
5930
5931
5932 # Check whether --with-default-sysroot was given.
5933 if test "${with_default_sysroot+set}" = set; then
5934   withval=$with_default_sysroot;
5935 else
5936   withval=""
5937 fi
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define DEFAULT_SYSROOT "$withval"
5942 _ACEOF
5943
5944
5945
5946 # Check whether --with-binutils-include was given.
5947 if test "${with_binutils_include+set}" = set; then
5948   withval=$with_binutils_include;
5949 else
5950   withval=default
5951 fi
5952
5953 case "$withval" in
5954   default) WITH_BINUTILS_INCDIR=default ;;
5955   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5956   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5957 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5958    { (exit 1); exit 1; }; } ;;
5959 esac
5960 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5961   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5962
5963   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5964      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5965      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5966 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5967    { (exit 1); exit 1; }; };
5968   fi
5969 fi
5970
5971
5972 # Check whether --with-bug-report-url was given.
5973 if test "${with_bug_report_url+set}" = set; then
5974   withval=$with_bug_report_url;
5975 else
5976   withval="http://llvm.org/bugs/"
5977 fi
5978
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define BUG_REPORT_URL "$withval"
5982 _ACEOF
5983
5984
5985 # Check whether --enable-libffi was given.
5986 if test "${enable_libffi+set}" = set; then
5987   enableval=$enable_libffi; case "$enableval" in
5988     yes) llvm_cv_enable_libffi="yes" ;;
5989     no)  llvm_cv_enable_libffi="no"  ;;
5990     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5991 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5992    { (exit 1); exit 1; }; } ;;
5993   esac
5994 else
5995   llvm_cv_enable_libffi=no
5996 fi
5997
5998
5999
6000 # Check whether --with-internal-prefix was given.
6001 if test "${with_internal_prefix+set}" = set; then
6002   withval=$with_internal_prefix;
6003 else
6004   withval=""
6005 fi
6006
6007 INTERNAL_PREFIX=$withval
6008
6009
6010
6011 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6012 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6013 if test "${lt_cv_path_NM+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   if test -n "$NM"; then
6017   # Let the user override the test.
6018   lt_cv_path_NM="$NM"
6019 else
6020   lt_nm_to_check="${ac_tool_prefix}nm"
6021   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6022     lt_nm_to_check="$lt_nm_to_check nm"
6023   fi
6024   for lt_tmp_nm in $lt_nm_to_check; do
6025     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6026     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6027       IFS="$lt_save_ifs"
6028       test -z "$ac_dir" && ac_dir=.
6029       tmp_nm="$ac_dir/$lt_tmp_nm"
6030       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6031         # Check to see if the nm accepts a BSD-compat flag.
6032         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6033         #   nm: unknown option "B" ignored
6034         # Tru64's nm complains that /dev/null is an invalid object file
6035         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6036         */dev/null* | *'Invalid file or object type'*)
6037           lt_cv_path_NM="$tmp_nm -B"
6038           break
6039           ;;
6040         *)
6041           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6042           */dev/null*)
6043             lt_cv_path_NM="$tmp_nm -p"
6044             break
6045             ;;
6046           *)
6047             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6048             continue # so that we can try to find one that supports BSD flags
6049             ;;
6050           esac
6051           ;;
6052         esac
6053       fi
6054     done
6055     IFS="$lt_save_ifs"
6056   done
6057   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6058 fi
6059 fi
6060 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6061 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6062 NM="$lt_cv_path_NM"
6063
6064
6065
6066 { echo "$as_me:$LINENO: checking for GNU make" >&5
6067 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6068 if test "${llvm_cv_gnu_make_command+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   llvm_cv_gnu_make_command=''
6072  for a in "$MAKE" make gmake gnumake ; do
6073   if test -z "$a" ; then continue ; fi ;
6074   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6075   then
6076    llvm_cv_gnu_make_command=$a ;
6077    break;
6078   fi
6079  done
6080 fi
6081 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6082 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6083  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6084    ifGNUmake='' ;
6085  else
6086    ifGNUmake='#' ;
6087    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6088 echo "${ECHO_T}\"Not found\"" >&6; };
6089  fi
6090
6091
6092 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6093 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6094 LN_S=$as_ln_s
6095 if test "$LN_S" = "ln -s"; then
6096   { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6098 else
6099   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6100 echo "${ECHO_T}no, using $LN_S" >&6; }
6101 fi
6102
6103 # Extract the first word of "cmp", so it can be a program name with args.
6104 set dummy cmp; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_path_CMP+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   case $CMP in
6111   [\\/]* | ?:[\\/]*)
6112   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6113   ;;
6114   *)
6115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120   for ac_exec_ext in '' $ac_executable_extensions; do
6121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6131   ;;
6132 esac
6133 fi
6134 CMP=$ac_cv_path_CMP
6135 if test -n "$CMP"; then
6136   { echo "$as_me:$LINENO: result: $CMP" >&5
6137 echo "${ECHO_T}$CMP" >&6; }
6138 else
6139   { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6141 fi
6142
6143
6144 # Extract the first word of "cp", so it can be a program name with args.
6145 set dummy cp; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_CP+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   case $CP in
6152   [\\/]* | ?:[\\/]*)
6153   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6154   ;;
6155   *)
6156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6172   ;;
6173 esac
6174 fi
6175 CP=$ac_cv_path_CP
6176 if test -n "$CP"; then
6177   { echo "$as_me:$LINENO: result: $CP" >&5
6178 echo "${ECHO_T}$CP" >&6; }
6179 else
6180   { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6182 fi
6183
6184
6185 # Extract the first word of "date", so it can be a program name with args.
6186 set dummy date; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_DATE+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   case $DATE in
6193   [\\/]* | ?:[\\/]*)
6194   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6195   ;;
6196   *)
6197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6213   ;;
6214 esac
6215 fi
6216 DATE=$ac_cv_path_DATE
6217 if test -n "$DATE"; then
6218   { echo "$as_me:$LINENO: result: $DATE" >&5
6219 echo "${ECHO_T}$DATE" >&6; }
6220 else
6221   { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6223 fi
6224
6225
6226 # Extract the first word of "find", so it can be a program name with args.
6227 set dummy find; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_FIND+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   case $FIND in
6234   [\\/]* | ?:[\\/]*)
6235   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6236   ;;
6237   *)
6238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6254   ;;
6255 esac
6256 fi
6257 FIND=$ac_cv_path_FIND
6258 if test -n "$FIND"; then
6259   { echo "$as_me:$LINENO: result: $FIND" >&5
6260 echo "${ECHO_T}$FIND" >&6; }
6261 else
6262   { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6264 fi
6265
6266
6267 # Extract the first word of "grep", so it can be a program name with args.
6268 set dummy grep; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_GREP+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   case $GREP in
6275   [\\/]* | ?:[\\/]*)
6276   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6277   ;;
6278   *)
6279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284   for ac_exec_ext in '' $ac_executable_extensions; do
6285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6295   ;;
6296 esac
6297 fi
6298 GREP=$ac_cv_path_GREP
6299 if test -n "$GREP"; then
6300   { echo "$as_me:$LINENO: result: $GREP" >&5
6301 echo "${ECHO_T}$GREP" >&6; }
6302 else
6303   { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6305 fi
6306
6307
6308 # Extract the first word of "mkdir", so it can be a program name with args.
6309 set dummy mkdir; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_path_MKDIR+set}" = set; then
6313   echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315   case $MKDIR in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325   for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6336   ;;
6337 esac
6338 fi
6339 MKDIR=$ac_cv_path_MKDIR
6340 if test -n "$MKDIR"; then
6341   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6342 echo "${ECHO_T}$MKDIR" >&6; }
6343 else
6344   { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6346 fi
6347
6348
6349 # Extract the first word of "mv", so it can be a program name with args.
6350 set dummy mv; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_MV+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   case $MV in
6357   [\\/]* | ?:[\\/]*)
6358   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6359   ;;
6360   *)
6361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364   IFS=$as_save_IFS
6365   test -z "$as_dir" && as_dir=.
6366   for ac_exec_ext in '' $ac_executable_extensions; do
6367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370     break 2
6371   fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6377   ;;
6378 esac
6379 fi
6380 MV=$ac_cv_path_MV
6381 if test -n "$MV"; then
6382   { echo "$as_me:$LINENO: result: $MV" >&5
6383 echo "${ECHO_T}$MV" >&6; }
6384 else
6385   { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6387 fi
6388
6389
6390 if test -n "$ac_tool_prefix"; then
6391   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_RANLIB+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   if test -n "$RANLIB"; then
6399   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406   for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 RANLIB=$ac_cv_prog_RANLIB
6419 if test -n "$RANLIB"; then
6420   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6421 echo "${ECHO_T}$RANLIB" >&6; }
6422 else
6423   { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6425 fi
6426
6427
6428 fi
6429 if test -z "$ac_cv_prog_RANLIB"; then
6430   ac_ct_RANLIB=$RANLIB
6431   # Extract the first word of "ranlib", so it can be a program name with args.
6432 set dummy ranlib; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   if test -n "$ac_ct_RANLIB"; then
6439   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446   for ac_exec_ext in '' $ac_executable_extensions; do
6447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6448     ac_cv_prog_ac_ct_RANLIB="ranlib"
6449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459 if test -n "$ac_ct_RANLIB"; then
6460   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6461 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6462 else
6463   { echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6; }
6465 fi
6466
6467   if test "x$ac_ct_RANLIB" = x; then
6468     RANLIB=":"
6469   else
6470     case $cross_compiling:$ac_tool_warned in
6471 yes:)
6472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6473 whose name does not start with the host triplet.  If you think this
6474 configuration is useful to you, please write to autoconf@gnu.org." >&5
6475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6476 whose name does not start with the host triplet.  If you think this
6477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6478 ac_tool_warned=yes ;;
6479 esac
6480     RANLIB=$ac_ct_RANLIB
6481   fi
6482 else
6483   RANLIB="$ac_cv_prog_RANLIB"
6484 fi
6485
6486 if test -n "$ac_tool_prefix"; then
6487   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}ar; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_AR+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   if test -n "$AR"; then
6495   ac_cv_prog_AR="$AR" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_prog_AR="${ac_tool_prefix}ar"
6505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 AR=$ac_cv_prog_AR
6515 if test -n "$AR"; then
6516   { echo "$as_me:$LINENO: result: $AR" >&5
6517 echo "${ECHO_T}$AR" >&6; }
6518 else
6519   { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6521 fi
6522
6523
6524 fi
6525 if test -z "$ac_cv_prog_AR"; then
6526   ac_ct_AR=$AR
6527   # Extract the first word of "ar", so it can be a program name with args.
6528 set dummy ar; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   if test -n "$ac_ct_AR"; then
6535   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542   for ac_exec_ext in '' $ac_executable_extensions; do
6543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544     ac_cv_prog_ac_ct_AR="ar"
6545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549 done
6550 IFS=$as_save_IFS
6551
6552 fi
6553 fi
6554 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6555 if test -n "$ac_ct_AR"; then
6556   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6557 echo "${ECHO_T}$ac_ct_AR" >&6; }
6558 else
6559   { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6561 fi
6562
6563   if test "x$ac_ct_AR" = x; then
6564     AR="false"
6565   else
6566     case $cross_compiling:$ac_tool_warned in
6567 yes:)
6568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6569 whose name does not start with the host triplet.  If you think this
6570 configuration is useful to you, please write to autoconf@gnu.org." >&5
6571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6572 whose name does not start with the host triplet.  If you think this
6573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6574 ac_tool_warned=yes ;;
6575 esac
6576     AR=$ac_ct_AR
6577   fi
6578 else
6579   AR="$ac_cv_prog_AR"
6580 fi
6581
6582 # Extract the first word of "rm", so it can be a program name with args.
6583 set dummy rm; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_RM+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   case $RM in
6590   [\\/]* | ?:[\\/]*)
6591   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6592   ;;
6593   *)
6594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599   for ac_exec_ext in '' $ac_executable_extensions; do
6600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6610   ;;
6611 esac
6612 fi
6613 RM=$ac_cv_path_RM
6614 if test -n "$RM"; then
6615   { echo "$as_me:$LINENO: result: $RM" >&5
6616 echo "${ECHO_T}$RM" >&6; }
6617 else
6618   { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6620 fi
6621
6622
6623 # Extract the first word of "sed", so it can be a program name with args.
6624 set dummy sed; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_SED+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   case $SED in
6631   [\\/]* | ?:[\\/]*)
6632   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6633   ;;
6634   *)
6635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6651   ;;
6652 esac
6653 fi
6654 SED=$ac_cv_path_SED
6655 if test -n "$SED"; then
6656   { echo "$as_me:$LINENO: result: $SED" >&5
6657 echo "${ECHO_T}$SED" >&6; }
6658 else
6659   { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6661 fi
6662
6663
6664 # Extract the first word of "tar", so it can be a program name with args.
6665 set dummy tar; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_TAR+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   case $TAR in
6672   [\\/]* | ?:[\\/]*)
6673   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6674   ;;
6675   *)
6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6692   ;;
6693 esac
6694 fi
6695 TAR=$ac_cv_path_TAR
6696 if test -n "$TAR"; then
6697   { echo "$as_me:$LINENO: result: $TAR" >&5
6698 echo "${ECHO_T}$TAR" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6702 fi
6703
6704
6705 # Extract the first word of "pwd", so it can be a program name with args.
6706 set dummy pwd; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_BINPWD+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   case $BINPWD in
6713   [\\/]* | ?:[\\/]*)
6714   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6715   ;;
6716   *)
6717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722   for ac_exec_ext in '' $ac_executable_extensions; do
6723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726     break 2
6727   fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6733   ;;
6734 esac
6735 fi
6736 BINPWD=$ac_cv_path_BINPWD
6737 if test -n "$BINPWD"; then
6738   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6739 echo "${ECHO_T}$BINPWD" >&6; }
6740 else
6741   { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6743 fi
6744
6745
6746
6747 # Extract the first word of "Graphviz", so it can be a program name with args.
6748 set dummy Graphviz; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   case $GRAPHVIZ in
6755   [\\/]* | ?:[\\/]*)
6756   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6757   ;;
6758   *)
6759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764   for ac_exec_ext in '' $ac_executable_extensions; do
6765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6775   ;;
6776 esac
6777 fi
6778 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6779 if test -n "$GRAPHVIZ"; then
6780   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6781 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787
6788 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6789
6790 cat >>confdefs.h <<\_ACEOF
6791 #define HAVE_GRAPHVIZ 1
6792 _ACEOF
6793
6794     if test "$llvm_cv_os_type" = "MingW" ; then
6795     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6796   fi
6797
6798 cat >>confdefs.h <<_ACEOF
6799 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6800 _ACEOF
6801
6802 fi
6803 # Extract the first word of "dot", so it can be a program name with args.
6804 set dummy dot; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_DOT+set}" = set; then
6808   echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810   case $DOT in
6811   [\\/]* | ?:[\\/]*)
6812   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6813   ;;
6814   *)
6815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820   for ac_exec_ext in '' $ac_executable_extensions; do
6821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827 done
6828 IFS=$as_save_IFS
6829
6830   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6831   ;;
6832 esac
6833 fi
6834 DOT=$ac_cv_path_DOT
6835 if test -n "$DOT"; then
6836   { echo "$as_me:$LINENO: result: $DOT" >&5
6837 echo "${ECHO_T}$DOT" >&6; }
6838 else
6839   { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6841 fi
6842
6843
6844 if test "$DOT" != "echo dot" ; then
6845
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_DOT 1
6848 _ACEOF
6849
6850     if test "$llvm_cv_os_type" = "MingW" ; then
6851     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6852   fi
6853
6854 cat >>confdefs.h <<_ACEOF
6855 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6856 _ACEOF
6857
6858 fi
6859 # Extract the first word of "fdp", so it can be a program name with args.
6860 set dummy fdp; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_path_FDP+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   case $FDP in
6867   [\\/]* | ?:[\\/]*)
6868   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6869   ;;
6870   *)
6871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876   for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6887   ;;
6888 esac
6889 fi
6890 FDP=$ac_cv_path_FDP
6891 if test -n "$FDP"; then
6892   { echo "$as_me:$LINENO: result: $FDP" >&5
6893 echo "${ECHO_T}$FDP" >&6; }
6894 else
6895   { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6897 fi
6898
6899
6900 if test "$FDP" != "echo fdp" ; then
6901
6902 cat >>confdefs.h <<\_ACEOF
6903 #define HAVE_FDP 1
6904 _ACEOF
6905
6906     if test "$llvm_cv_os_type" = "MingW" ; then
6907     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6908   fi
6909
6910 cat >>confdefs.h <<_ACEOF
6911 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6912 _ACEOF
6913
6914 fi
6915 # Extract the first word of "neato", so it can be a program name with args.
6916 set dummy neato; ac_word=$2
6917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6919 if test "${ac_cv_path_NEATO+set}" = set; then
6920   echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922   case $NEATO in
6923   [\\/]* | ?:[\\/]*)
6924   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6925   ;;
6926   *)
6927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930   IFS=$as_save_IFS
6931   test -z "$as_dir" && as_dir=.
6932   for ac_exec_ext in '' $ac_executable_extensions; do
6933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6934     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936     break 2
6937   fi
6938 done
6939 done
6940 IFS=$as_save_IFS
6941
6942   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6943   ;;
6944 esac
6945 fi
6946 NEATO=$ac_cv_path_NEATO
6947 if test -n "$NEATO"; then
6948   { echo "$as_me:$LINENO: result: $NEATO" >&5
6949 echo "${ECHO_T}$NEATO" >&6; }
6950 else
6951   { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6953 fi
6954
6955
6956 if test "$NEATO" != "echo neato" ; then
6957
6958 cat >>confdefs.h <<\_ACEOF
6959 #define HAVE_NEATO 1
6960 _ACEOF
6961
6962     if test "$llvm_cv_os_type" = "MingW" ; then
6963     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6964   fi
6965
6966 cat >>confdefs.h <<_ACEOF
6967 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6968 _ACEOF
6969
6970 fi
6971 # Extract the first word of "twopi", so it can be a program name with args.
6972 set dummy twopi; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_TWOPI+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   case $TWOPI in
6979   [\\/]* | ?:[\\/]*)
6980   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6981   ;;
6982   *)
6983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988   for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6999   ;;
7000 esac
7001 fi
7002 TWOPI=$ac_cv_path_TWOPI
7003 if test -n "$TWOPI"; then
7004   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7005 echo "${ECHO_T}$TWOPI" >&6; }
7006 else
7007   { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7009 fi
7010
7011
7012 if test "$TWOPI" != "echo twopi" ; then
7013
7014 cat >>confdefs.h <<\_ACEOF
7015 #define HAVE_TWOPI 1
7016 _ACEOF
7017
7018     if test "$llvm_cv_os_type" = "MingW" ; then
7019     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7020   fi
7021
7022 cat >>confdefs.h <<_ACEOF
7023 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7024 _ACEOF
7025
7026 fi
7027 # Extract the first word of "circo", so it can be a program name with args.
7028 set dummy circo; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_path_CIRCO+set}" = set; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034   case $CIRCO in
7035   [\\/]* | ?:[\\/]*)
7036   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7037   ;;
7038   *)
7039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7055   ;;
7056 esac
7057 fi
7058 CIRCO=$ac_cv_path_CIRCO
7059 if test -n "$CIRCO"; then
7060   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7061 echo "${ECHO_T}$CIRCO" >&6; }
7062 else
7063   { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7065 fi
7066
7067
7068 if test "$CIRCO" != "echo circo" ; then
7069
7070 cat >>confdefs.h <<\_ACEOF
7071 #define HAVE_CIRCO 1
7072 _ACEOF
7073
7074     if test "$llvm_cv_os_type" = "MingW" ; then
7075     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7076   fi
7077
7078 cat >>confdefs.h <<_ACEOF
7079 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7080 _ACEOF
7081
7082 fi
7083 for ac_prog in gv gsview32
7084 do
7085   # Extract the first word of "$ac_prog", so it can be a program name with args.
7086 set dummy $ac_prog; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_GV+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   case $GV in
7093   [\\/]* | ?:[\\/]*)
7094   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7095   ;;
7096   *)
7097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102   for ac_exec_ext in '' $ac_executable_extensions; do
7103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112   ;;
7113 esac
7114 fi
7115 GV=$ac_cv_path_GV
7116 if test -n "$GV"; then
7117   { echo "$as_me:$LINENO: result: $GV" >&5
7118 echo "${ECHO_T}$GV" >&6; }
7119 else
7120   { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7122 fi
7123
7124
7125   test -n "$GV" && break
7126 done
7127 test -n "$GV" || GV="echo gv"
7128
7129 if test "$GV" != "echo gv" ; then
7130
7131 cat >>confdefs.h <<\_ACEOF
7132 #define HAVE_GV 1
7133 _ACEOF
7134
7135     if test "$llvm_cv_os_type" = "MingW" ; then
7136     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7137   fi
7138
7139 cat >>confdefs.h <<_ACEOF
7140 #define LLVM_PATH_GV "$GV${EXEEXT}"
7141 _ACEOF
7142
7143 fi
7144 # Extract the first word of "dotty", so it can be a program name with args.
7145 set dummy dotty; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_DOTTY+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   case $DOTTY in
7152   [\\/]* | ?:[\\/]*)
7153   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7154   ;;
7155   *)
7156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159   IFS=$as_save_IFS
7160   test -z "$as_dir" && as_dir=.
7161   for ac_exec_ext in '' $ac_executable_extensions; do
7162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165     break 2
7166   fi
7167 done
7168 done
7169 IFS=$as_save_IFS
7170
7171   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7172   ;;
7173 esac
7174 fi
7175 DOTTY=$ac_cv_path_DOTTY
7176 if test -n "$DOTTY"; then
7177   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7178 echo "${ECHO_T}$DOTTY" >&6; }
7179 else
7180   { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7182 fi
7183
7184
7185 if test "$DOTTY" != "echo dotty" ; then
7186
7187 cat >>confdefs.h <<\_ACEOF
7188 #define HAVE_DOTTY 1
7189 _ACEOF
7190
7191     if test "$llvm_cv_os_type" = "MingW" ; then
7192     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7193   fi
7194
7195 cat >>confdefs.h <<_ACEOF
7196 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7197 _ACEOF
7198
7199 fi
7200 # Extract the first word of "xdot.py", so it can be a program name with args.
7201 set dummy xdot.py; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   case $XDOT_PY in
7208   [\\/]* | ?:[\\/]*)
7209   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7210   ;;
7211   *)
7212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217   for ac_exec_ext in '' $ac_executable_extensions; do
7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7228   ;;
7229 esac
7230 fi
7231 XDOT_PY=$ac_cv_path_XDOT_PY
7232 if test -n "$XDOT_PY"; then
7233   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7234 echo "${ECHO_T}$XDOT_PY" >&6; }
7235 else
7236   { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7238 fi
7239
7240
7241 if test "$XDOT_PY" != "echo xdot.py" ; then
7242
7243 cat >>confdefs.h <<\_ACEOF
7244 #define HAVE_XDOT_PY 1
7245 _ACEOF
7246
7247     if test "$llvm_cv_os_type" = "MingW" ; then
7248     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7249   fi
7250
7251 cat >>confdefs.h <<_ACEOF
7252 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7253 _ACEOF
7254
7255 fi
7256
7257 # Find a good install program.  We prefer a C program (faster),
7258 # so one script is as good as another.  But avoid the broken or
7259 # incompatible versions:
7260 # SysV /etc/install, /usr/sbin/install
7261 # SunOS /usr/etc/install
7262 # IRIX /sbin/install
7263 # AIX /bin/install
7264 # AmigaOS /C/install, which installs bootblocks on floppy discs
7265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7268 # OS/2's system install, which has a completely different semantic
7269 # ./install, which can be erroneously created by make from ./install.sh.
7270 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7272 if test -z "$INSTALL"; then
7273 if test "${ac_cv_path_install+set}" = set; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279   IFS=$as_save_IFS
7280   test -z "$as_dir" && as_dir=.
7281   # Account for people who put trailing slashes in PATH elements.
7282 case $as_dir/ in
7283   ./ | .// | /cC/* | \
7284   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7285   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7286   /usr/ucb/* ) ;;
7287   *)
7288     # OSF1 and SCO ODT 3.0 have their own names for install.
7289     # Don't use installbsd from OSF since it installs stuff as root
7290     # by default.
7291     for ac_prog in ginstall scoinst install; do
7292       for ac_exec_ext in '' $ac_executable_extensions; do
7293         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7294           if test $ac_prog = install &&
7295             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7296             # AIX install.  It has an incompatible calling convention.
7297             :
7298           elif test $ac_prog = install &&
7299             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7300             # program-specific install script used by HP pwplus--don't use.
7301             :
7302           else
7303             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7304             break 3
7305           fi
7306         fi
7307       done
7308     done
7309     ;;
7310 esac
7311 done
7312 IFS=$as_save_IFS
7313
7314
7315 fi
7316   if test "${ac_cv_path_install+set}" = set; then
7317     INSTALL=$ac_cv_path_install
7318   else
7319     # As a last resort, use the slow shell script.  Don't cache a
7320     # value for INSTALL within a source directory, because that will
7321     # break other packages using the cache if that directory is
7322     # removed, or if the value is a relative name.
7323     INSTALL=$ac_install_sh
7324   fi
7325 fi
7326 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7327 echo "${ECHO_T}$INSTALL" >&6; }
7328
7329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7330 # It thinks the first close brace ends the variable substitution.
7331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7332
7333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7334
7335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7336
7337 case "$INSTALL" in
7338  [\\/$]* | ?:[\\/]* ) ;;
7339  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7340 esac
7341
7342 # Extract the first word of "bzip2", so it can be a program name with args.
7343 set dummy bzip2; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BZIP2+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   case $BZIP2 in
7350   [\\/]* | ?:[\\/]*)
7351   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7352   ;;
7353   *)
7354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359   for ac_exec_ext in '' $ac_executable_extensions; do
7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369   ;;
7370 esac
7371 fi
7372 BZIP2=$ac_cv_path_BZIP2
7373 if test -n "$BZIP2"; then
7374   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7375 echo "${ECHO_T}$BZIP2" >&6; }
7376 else
7377   { echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6; }
7379 fi
7380
7381
7382 # Extract the first word of "cat", so it can be a program name with args.
7383 set dummy cat; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_CAT+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   case $CAT in
7390   [\\/]* | ?:[\\/]*)
7391   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7392   ;;
7393   *)
7394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399   for ac_exec_ext in '' $ac_executable_extensions; do
7400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7401     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409   ;;
7410 esac
7411 fi
7412 CAT=$ac_cv_path_CAT
7413 if test -n "$CAT"; then
7414   { echo "$as_me:$LINENO: result: $CAT" >&5
7415 echo "${ECHO_T}$CAT" >&6; }
7416 else
7417   { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7419 fi
7420
7421
7422 # Extract the first word of "doxygen", so it can be a program name with args.
7423 set dummy doxygen; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   case $DOXYGEN in
7430   [\\/]* | ?:[\\/]*)
7431   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7432   ;;
7433   *)
7434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437   IFS=$as_save_IFS
7438   test -z "$as_dir" && as_dir=.
7439   for ac_exec_ext in '' $ac_executable_extensions; do
7440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443     break 2
7444   fi
7445 done
7446 done
7447 IFS=$as_save_IFS
7448
7449   ;;
7450 esac
7451 fi
7452 DOXYGEN=$ac_cv_path_DOXYGEN
7453 if test -n "$DOXYGEN"; then
7454   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7455 echo "${ECHO_T}$DOXYGEN" >&6; }
7456 else
7457   { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7459 fi
7460
7461
7462 # Extract the first word of "groff", so it can be a program name with args.
7463 set dummy groff; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_GROFF+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   case $GROFF in
7470   [\\/]* | ?:[\\/]*)
7471   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7472   ;;
7473   *)
7474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479   for ac_exec_ext in '' $ac_executable_extensions; do
7480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489   ;;
7490 esac
7491 fi
7492 GROFF=$ac_cv_path_GROFF
7493 if test -n "$GROFF"; then
7494   { echo "$as_me:$LINENO: result: $GROFF" >&5
7495 echo "${ECHO_T}$GROFF" >&6; }
7496 else
7497   { echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6; }
7499 fi
7500
7501
7502 # Extract the first word of "gzip", so it can be a program name with args.
7503 set dummy gzip; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   case $GZIPBIN in
7510   [\\/]* | ?:[\\/]*)
7511   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7512   ;;
7513   *)
7514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519   for ac_exec_ext in '' $ac_executable_extensions; do
7520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529   ;;
7530 esac
7531 fi
7532 GZIPBIN=$ac_cv_path_GZIPBIN
7533 if test -n "$GZIPBIN"; then
7534   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7535 echo "${ECHO_T}$GZIPBIN" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542 # Extract the first word of "pdfroff", so it can be a program name with args.
7543 set dummy pdfroff; ac_word=$2
7544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7546 if test "${ac_cv_path_PDFROFF+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549   case $PDFROFF in
7550   [\\/]* | ?:[\\/]*)
7551   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7552   ;;
7553   *)
7554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559   for ac_exec_ext in '' $ac_executable_extensions; do
7560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7561     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569   ;;
7570 esac
7571 fi
7572 PDFROFF=$ac_cv_path_PDFROFF
7573 if test -n "$PDFROFF"; then
7574   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7575 echo "${ECHO_T}$PDFROFF" >&6; }
7576 else
7577   { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7579 fi
7580
7581
7582 # Extract the first word of "zip", so it can be a program name with args.
7583 set dummy zip; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_ZIP+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   case $ZIP in
7590   [\\/]* | ?:[\\/]*)
7591   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7592   ;;
7593   *)
7594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609   ;;
7610 esac
7611 fi
7612 ZIP=$ac_cv_path_ZIP
7613 if test -n "$ZIP"; then
7614   { echo "$as_me:$LINENO: result: $ZIP" >&5
7615 echo "${ECHO_T}$ZIP" >&6; }
7616 else
7617   { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7619 fi
7620
7621
7622 for ac_prog in ocamlc
7623 do
7624   # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_OCAMLC+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   case $OCAMLC in
7632   [\\/]* | ?:[\\/]*)
7633   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7634   ;;
7635   *)
7636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641   for ac_exec_ext in '' $ac_executable_extensions; do
7642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651   ;;
7652 esac
7653 fi
7654 OCAMLC=$ac_cv_path_OCAMLC
7655 if test -n "$OCAMLC"; then
7656   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7657 echo "${ECHO_T}$OCAMLC" >&6; }
7658 else
7659   { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7661 fi
7662
7663
7664   test -n "$OCAMLC" && break
7665 done
7666
7667 for ac_prog in ocamlopt
7668 do
7669   # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   case $OCAMLOPT in
7677   [\\/]* | ?:[\\/]*)
7678   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7679   ;;
7680   *)
7681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696   ;;
7697 esac
7698 fi
7699 OCAMLOPT=$ac_cv_path_OCAMLOPT
7700 if test -n "$OCAMLOPT"; then
7701   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7702 echo "${ECHO_T}$OCAMLOPT" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7706 fi
7707
7708
7709   test -n "$OCAMLOPT" && break
7710 done
7711
7712 for ac_prog in ocamldep
7713 do
7714   # Extract the first word of "$ac_prog", so it can be a program name with args.
7715 set dummy $ac_prog; ac_word=$2
7716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   case $OCAMLDEP in
7722   [\\/]* | ?:[\\/]*)
7723   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7724   ;;
7725   *)
7726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729   IFS=$as_save_IFS
7730   test -z "$as_dir" && as_dir=.
7731   for ac_exec_ext in '' $ac_executable_extensions; do
7732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735     break 2
7736   fi
7737 done
7738 done
7739 IFS=$as_save_IFS
7740
7741   ;;
7742 esac
7743 fi
7744 OCAMLDEP=$ac_cv_path_OCAMLDEP
7745 if test -n "$OCAMLDEP"; then
7746   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7747 echo "${ECHO_T}$OCAMLDEP" >&6; }
7748 else
7749   { echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6; }
7751 fi
7752
7753
7754   test -n "$OCAMLDEP" && break
7755 done
7756
7757 for ac_prog in ocamldoc
7758 do
7759   # Extract the first word of "$ac_prog", so it can be a program name with args.
7760 set dummy $ac_prog; ac_word=$2
7761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7763 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7764   echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766   case $OCAMLDOC in
7767   [\\/]* | ?:[\\/]*)
7768   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7769   ;;
7770   *)
7771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776   for ac_exec_ext in '' $ac_executable_extensions; do
7777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7778     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786   ;;
7787 esac
7788 fi
7789 OCAMLDOC=$ac_cv_path_OCAMLDOC
7790 if test -n "$OCAMLDOC"; then
7791   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7792 echo "${ECHO_T}$OCAMLDOC" >&6; }
7793 else
7794   { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7796 fi
7797
7798
7799   test -n "$OCAMLDOC" && break
7800 done
7801
7802 for ac_prog in gas as
7803 do
7804   # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7808 if test "${ac_cv_path_GAS+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   case $GAS in
7812   [\\/]* | ?:[\\/]*)
7813   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7814   ;;
7815   *)
7816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819   IFS=$as_save_IFS
7820   test -z "$as_dir" && as_dir=.
7821   for ac_exec_ext in '' $ac_executable_extensions; do
7822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7823     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825     break 2
7826   fi
7827 done
7828 done
7829 IFS=$as_save_IFS
7830
7831   ;;
7832 esac
7833 fi
7834 GAS=$ac_cv_path_GAS
7835 if test -n "$GAS"; then
7836   { echo "$as_me:$LINENO: result: $GAS" >&5
7837 echo "${ECHO_T}$GAS" >&6; }
7838 else
7839   { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7841 fi
7842
7843
7844   test -n "$GAS" && break
7845 done
7846
7847
7848 { echo "$as_me:$LINENO: checking for linker version" >&5
7849 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7850 if test "${llvm_cv_link_version+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853
7854    version_string="$(ld -v 2>&1 | head -1)"
7855
7856    # Check for ld64.
7857    if (echo "$version_string" | grep -q "ld64"); then
7858      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7859    else
7860      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7861    fi
7862
7863 fi
7864 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7865 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7866
7867 cat >>confdefs.h <<_ACEOF
7868 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7869 _ACEOF
7870
7871
7872
7873 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7874 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7875 if test "${llvm_cv_link_use_r+set}" = set; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878    ac_ext=c
7879 ac_cpp='$CPP $CPPFLAGS'
7880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883
7884   oldcflags="$CFLAGS"
7885   CFLAGS="$CFLAGS -Wl,-R."
7886   cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h.  */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h.  */
7892
7893 int
7894 main ()
7895 {
7896
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7903 case "(($ac_try" in
7904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905   *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908   (eval "$ac_link") 2>conftest.er1
7909   ac_status=$?
7910   grep -v '^ *+' conftest.er1 >conftest.err
7911   rm -f conftest.er1
7912   cat conftest.err >&5
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); } &&
7915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7916   { (case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_try") 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; } &&
7925          { ac_try='test -s conftest$ac_exeext'
7926   { (case "(($ac_try" in
7927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928   *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931   (eval "$ac_try") 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); }; }; then
7935   llvm_cv_link_use_r=yes
7936 else
7937   echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940         llvm_cv_link_use_r=no
7941 fi
7942
7943 rm -f core conftest.err conftest.$ac_objext \
7944       conftest$ac_exeext conftest.$ac_ext
7945   CFLAGS="$oldcflags"
7946   ac_ext=c
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7951
7952
7953 fi
7954 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7955 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7956 if test "$llvm_cv_link_use_r" = yes ; then
7957
7958 cat >>confdefs.h <<\_ACEOF
7959 #define HAVE_LINK_R 1
7960 _ACEOF
7961
7962   fi
7963
7964
7965 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7966 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7967 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7968   echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970    ac_ext=c
7971 ac_cpp='$CPP $CPPFLAGS'
7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975
7976   oldcflags="$CFLAGS"
7977   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7978   cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h.  */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h.  */
7984
7985 int
7986 main ()
7987 {
7988
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (ac_try="$ac_link"
7995 case "(($ac_try" in
7996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997   *) ac_try_echo=$ac_try;;
7998 esac
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000   (eval "$ac_link") 2>conftest.er1
8001   ac_status=$?
8002   grep -v '^ *+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } &&
8007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8008   { (case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_try") 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; } &&
8017          { ac_try='test -s conftest$ac_exeext'
8018   { (case "(($ac_try" in
8019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020   *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023   (eval "$ac_try") 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); }; }; then
8027   llvm_cv_link_use_export_dynamic=yes
8028 else
8029   echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8031
8032         llvm_cv_link_use_export_dynamic=no
8033 fi
8034
8035 rm -f core conftest.err conftest.$ac_objext \
8036       conftest$ac_exeext conftest.$ac_ext
8037   CFLAGS="$oldcflags"
8038   ac_ext=c
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8043
8044
8045 fi
8046 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8047 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8048 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8049
8050 cat >>confdefs.h <<\_ACEOF
8051 #define HAVE_LINK_EXPORT_DYNAMIC 1
8052 _ACEOF
8053
8054   fi
8055
8056
8057 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8058 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8059 if test "${llvm_cv_link_use_version_script+set}" = set; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062    ac_ext=c
8063 ac_cpp='$CPP $CPPFLAGS'
8064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067
8068   oldcflags="$CFLAGS"
8069
8070   # The following code is from the autoconf manual,
8071   # "11.13: Limitations of Usual Tools".
8072   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8073   # Use mktemp if possible; otherwise fall back on mkdir,
8074   # with $RANDOM to make collisions less likely.
8075   : ${TMPDIR=/tmp}
8076   {
8077     tmp=`
8078       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8079     ` &&
8080     test -n "$tmp" && test -d "$tmp"
8081   } || {
8082     tmp=$TMPDIR/foo$$-$RANDOM
8083     (umask 077 && mkdir "$tmp")
8084   } || exit $?
8085
8086   echo "{" > "$tmp/export.map"
8087   echo "  global: main;" >> "$tmp/export.map"
8088   echo "  local: *;" >> "$tmp/export.map"
8089   echo "};" >> "$tmp/export.map"
8090
8091   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8092   cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098
8099 int
8100 main ()
8101 {
8102
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8109 case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_link") 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } &&
8121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; } &&
8131          { ac_try='test -s conftest$ac_exeext'
8132   { (case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_try") 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141   llvm_cv_link_use_version_script=yes
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146         llvm_cv_link_use_version_script=no
8147 fi
8148
8149 rm -f core conftest.err conftest.$ac_objext \
8150       conftest$ac_exeext conftest.$ac_ext
8151   rm "$tmp/export.map"
8152   rmdir "$tmp"
8153   CFLAGS="$oldcflags"
8154   ac_ext=c
8155 ac_cpp='$CPP $CPPFLAGS'
8156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8159
8160
8161 fi
8162 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8163 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8164 if test "$llvm_cv_link_use_version_script" = yes ; then
8165   HAVE_LINK_VERSION_SCRIPT=1
8166
8167   fi
8168
8169
8170
8171
8172 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8173 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8174 if test "${ac_cv_c_const+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183
8184 int
8185 main ()
8186 {
8187 /* FIXME: Include the comments suggested by Paul. */
8188 #ifndef __cplusplus
8189   /* Ultrix mips cc rejects this.  */
8190   typedef int charset[2];
8191   const charset x;
8192   /* SunOS 4.1.1 cc rejects this.  */
8193   char const *const *ccp;
8194   char **p;
8195   /* NEC SVR4.0.2 mips cc rejects this.  */
8196   struct point {int x, y;};
8197   static struct point const zero = {0,0};
8198   /* AIX XL C 1.02.0.0 rejects this.
8199      It does not let you subtract one const X* pointer from another in
8200      an arm of an if-expression whose if-part is not a constant
8201      expression */
8202   const char *g = "string";
8203   ccp = &g + (g ? g-g : 0);
8204   /* HPUX 7.0 cc rejects these. */
8205   ++ccp;
8206   p = (char**) ccp;
8207   ccp = (char const *const *) p;
8208   { /* SCO 3.2v4 cc rejects this.  */
8209     char *t;
8210     char const *s = 0 ? (char *) 0 : (char const *) 0;
8211
8212     *t++ = 0;
8213     if (s) return 0;
8214   }
8215   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8216     int x[] = {25, 17};
8217     const int *foo = &x[0];
8218     ++foo;
8219   }
8220   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8221     typedef const int *iptr;
8222     iptr p = 0;
8223     ++p;
8224   }
8225   { /* AIX XL C 1.02.0.0 rejects this saying
8226        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8227     struct s { int j; const int *ap[3]; };
8228     struct s *b; b->j = 5;
8229   }
8230   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8231     const int foo = 10;
8232     if (!foo) return 0;
8233   }
8234   return !x[0] && !zero.x;
8235 #endif
8236
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8243 case "(($ac_try" in
8244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245   *) ac_try_echo=$ac_try;;
8246 esac
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248   (eval "$ac_compile") 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256   { (case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_try") 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; } &&
8265          { ac_try='test -s conftest.$ac_objext'
8266   { (case "(($ac_try" in
8267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268   *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271   (eval "$ac_try") 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   ac_cv_c_const=yes
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280         ac_cv_c_const=no
8281 fi
8282
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 fi
8285 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8286 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8287 if test $ac_cv_c_const = no; then
8288
8289 cat >>confdefs.h <<\_ACEOF
8290 #define const
8291 _ACEOF
8292
8293 fi
8294
8295
8296
8297
8298
8299
8300 ac_header_dirent=no
8301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8302   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8303 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8304 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 #include <sys/types.h>
8315 #include <$ac_hdr>
8316
8317 int
8318 main ()
8319 {
8320 if ((DIR *) 0)
8321 return 0;
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333   (eval "$ac_compile") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341   { (case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_try") 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; } &&
8350          { ac_try='test -s conftest.$ac_objext'
8351   { (case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_try") 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; }; then
8360   eval "$as_ac_Header=yes"
8361 else
8362   echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365         eval "$as_ac_Header=no"
8366 fi
8367
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 fi
8370 ac_res=`eval echo '${'$as_ac_Header'}'`
8371                { echo "$as_me:$LINENO: result: $ac_res" >&5
8372 echo "${ECHO_T}$ac_res" >&6; }
8373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8374   cat >>confdefs.h <<_ACEOF
8375 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8376 _ACEOF
8377
8378 ac_header_dirent=$ac_hdr; break
8379 fi
8380
8381 done
8382 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8383 if test $ac_header_dirent = dirent.h; then
8384   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8385 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8386 if test "${ac_cv_search_opendir+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   ac_func_search_save_LIBS=$LIBS
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h.  */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h.  */
8396
8397 /* Override any GCC internal prototype to avoid an error.
8398    Use char because int might match the return type of a GCC
8399    builtin and then its argument prototype would still apply.  */
8400 #ifdef __cplusplus
8401 extern "C"
8402 #endif
8403 char opendir ();
8404 int
8405 main ()
8406 {
8407 return opendir ();
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 for ac_lib in '' dir; do
8413   if test -z "$ac_lib"; then
8414     ac_res="none required"
8415   else
8416     ac_res=-l$ac_lib
8417     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8418   fi
8419   rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (ac_try="$ac_link"
8421 case "(($ac_try" in
8422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423   *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426   (eval "$ac_link") 2>conftest.er1
8427   ac_status=$?
8428   grep -v '^ *+' conftest.er1 >conftest.err
8429   rm -f conftest.er1
8430   cat conftest.err >&5
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } &&
8433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434   { (case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_try") 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; } &&
8443          { ac_try='test -s conftest$ac_exeext'
8444   { (case "(($ac_try" in
8445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446   *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449   (eval "$ac_try") 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; }; then
8453   ac_cv_search_opendir=$ac_res
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458
8459 fi
8460
8461 rm -f core conftest.err conftest.$ac_objext \
8462       conftest$ac_exeext
8463   if test "${ac_cv_search_opendir+set}" = set; then
8464   break
8465 fi
8466 done
8467 if test "${ac_cv_search_opendir+set}" = set; then
8468   :
8469 else
8470   ac_cv_search_opendir=no
8471 fi
8472 rm conftest.$ac_ext
8473 LIBS=$ac_func_search_save_LIBS
8474 fi
8475 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8476 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8477 ac_res=$ac_cv_search_opendir
8478 if test "$ac_res" != no; then
8479   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8480
8481 fi
8482
8483 else
8484   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8486 if test "${ac_cv_search_opendir+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   ac_func_search_save_LIBS=$LIBS
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h.  */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h.  */
8496
8497 /* Override any GCC internal prototype to avoid an error.
8498    Use char because int might match the return type of a GCC
8499    builtin and then its argument prototype would still apply.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 char opendir ();
8504 int
8505 main ()
8506 {
8507 return opendir ();
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 for ac_lib in '' x; do
8513   if test -z "$ac_lib"; then
8514     ac_res="none required"
8515   else
8516     ac_res=-l$ac_lib
8517     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8518   fi
8519   rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (ac_try="$ac_link"
8521 case "(($ac_try" in
8522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523   *) ac_try_echo=$ac_try;;
8524 esac
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526   (eval "$ac_link") 2>conftest.er1
8527   ac_status=$?
8528   grep -v '^ *+' conftest.er1 >conftest.err
8529   rm -f conftest.er1
8530   cat conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } &&
8533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534   { (case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_try") 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest$ac_exeext'
8544   { (case "(($ac_try" in
8545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546   *) ac_try_echo=$ac_try;;
8547 esac
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549   (eval "$ac_try") 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }; }; then
8553   ac_cv_search_opendir=$ac_res
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558
8559 fi
8560
8561 rm -f core conftest.err conftest.$ac_objext \
8562       conftest$ac_exeext
8563   if test "${ac_cv_search_opendir+set}" = set; then
8564   break
8565 fi
8566 done
8567 if test "${ac_cv_search_opendir+set}" = set; then
8568   :
8569 else
8570   ac_cv_search_opendir=no
8571 fi
8572 rm conftest.$ac_ext
8573 LIBS=$ac_func_search_save_LIBS
8574 fi
8575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8577 ac_res=$ac_cv_search_opendir
8578 if test "$ac_res" != no; then
8579   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8580
8581 fi
8582
8583 fi
8584
8585
8586 for ac_header in dlfcn.h
8587 do
8588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8590   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 fi
8595 ac_res=`eval echo '${'$as_ac_Header'}'`
8596                { echo "$as_me:$LINENO: result: $ac_res" >&5
8597 echo "${ECHO_T}$ac_res" >&6; }
8598 else
8599   # Is the header compilable?
8600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h.  */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h.  */
8608 $ac_includes_default
8609 #include <$ac_header>
8610 _ACEOF
8611 rm -f conftest.$ac_objext
8612 if { (ac_try="$ac_compile"
8613 case "(($ac_try" in
8614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615   *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618   (eval "$ac_compile") 2>conftest.er1
8619   ac_status=$?
8620   grep -v '^ *+' conftest.er1 >conftest.err
8621   rm -f conftest.er1
8622   cat conftest.err >&5
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } &&
8625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626   { (case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_try") 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; } &&
8635          { ac_try='test -s conftest.$ac_objext'
8636   { (case "(($ac_try" in
8637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638   *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641   (eval "$ac_try") 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; }; then
8645   ac_header_compiler=yes
8646 else
8647   echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650         ac_header_compiler=no
8651 fi
8652
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8655 echo "${ECHO_T}$ac_header_compiler" >&6; }
8656
8657 # Is the header present?
8658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 #include <$ac_header>
8667 _ACEOF
8668 if { (ac_try="$ac_cpp conftest.$ac_ext"
8669 case "(($ac_try" in
8670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671   *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } >/dev/null; then
8681   if test -s conftest.err; then
8682     ac_cpp_err=$ac_c_preproc_warn_flag
8683     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8684   else
8685     ac_cpp_err=
8686   fi
8687 else
8688   ac_cpp_err=yes
8689 fi
8690 if test -z "$ac_cpp_err"; then
8691   ac_header_preproc=yes
8692 else
8693   echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696   ac_header_preproc=no
8697 fi
8698
8699 rm -f conftest.err conftest.$ac_ext
8700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701 echo "${ECHO_T}$ac_header_preproc" >&6; }
8702
8703 # So?  What about this header?
8704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8705   yes:no: )
8706     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8710     ac_header_preproc=yes
8711     ;;
8712   no:yes:* )
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8715     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8716 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8717     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8719     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8720 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8723     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8725     ( cat <<\_ASBOX
8726 ## ------------------------------------ ##
8727 ## Report this to http://llvm.org/bugs/ ##
8728 ## ------------------------------------ ##
8729 _ASBOX
8730      ) | sed "s/^/$as_me: WARNING:     /" >&2
8731     ;;
8732 esac
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   eval "$as_ac_Header=\$ac_header_preproc"
8739 fi
8740 ac_res=`eval echo '${'$as_ac_Header'}'`
8741                { echo "$as_me:$LINENO: result: $ac_res" >&5
8742 echo "${ECHO_T}$ac_res" >&6; }
8743
8744 fi
8745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746   cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8748 _ACEOF
8749
8750 fi
8751
8752 done
8753
8754 # Check whether --enable-ltdl-install was given.
8755 if test "${enable_ltdl_install+set}" = set; then
8756   enableval=$enable_ltdl_install;
8757 fi
8758
8759
8760
8761
8762 if test x"${enable_ltdl_install-no}" != xno; then
8763   INSTALL_LTDL_TRUE=
8764   INSTALL_LTDL_FALSE='#'
8765 else
8766   INSTALL_LTDL_TRUE='#'
8767   INSTALL_LTDL_FALSE=
8768 fi
8769
8770
8771
8772 if test x"${enable_ltdl_convenience-no}" != xno; then
8773   CONVENIENCE_LTDL_TRUE=
8774   CONVENIENCE_LTDL_FALSE='#'
8775 else
8776   CONVENIENCE_LTDL_TRUE='#'
8777   CONVENIENCE_LTDL_FALSE=
8778 fi
8779
8780
8781 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8783 library_names_spec=
8784 libname_spec='lib$name'
8785 soname_spec=
8786 shrext_cmds=".so"
8787 postinstall_cmds=
8788 postuninstall_cmds=
8789 finish_cmds=
8790 finish_eval=
8791 shlibpath_var=
8792 shlibpath_overrides_runpath=unknown
8793 version_type=none
8794 dynamic_linker="$host_os ld.so"
8795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8796 if test "$GCC" = yes; then
8797   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8798   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8799     # if the path contains ";" then we assume it to be the separator
8800     # otherwise default to the standard path separator (i.e. ":") - it is
8801     # assumed that no part of a normal pathname contains ";" but that should
8802     # okay in the real world where ";" in dirpaths is itself problematic.
8803     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8804   else
8805     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8806   fi
8807 else
8808   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8809 fi
8810 need_lib_prefix=unknown
8811 hardcode_into_libs=no
8812
8813 # when you set need_version to no, make sure it does not cause -set_version
8814 # flags to be left without arguments
8815 need_version=unknown
8816
8817 case $host_os in
8818 aix3*)
8819   version_type=linux
8820   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8821   shlibpath_var=LIBPATH
8822
8823   # AIX 3 has no versioning support, so we append a major version to the name.
8824   soname_spec='${libname}${release}${shared_ext}$major'
8825   ;;
8826
8827 aix4* | aix5*)
8828   version_type=linux
8829   need_lib_prefix=no
8830   need_version=no
8831   hardcode_into_libs=yes
8832   if test "$host_cpu" = ia64; then
8833     # AIX 5 supports IA64
8834     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8835     shlibpath_var=LD_LIBRARY_PATH
8836   else
8837     # With GCC up to 2.95.x, collect2 would create an import file
8838     # for dependence libraries.  The import file would start with
8839     # the line `#! .'.  This would cause the generated library to
8840     # depend on `.', always an invalid library.  This was fixed in
8841     # development snapshots of GCC prior to 3.0.
8842     case $host_os in
8843       aix4 | aix4.[01] | aix4.[01].*)
8844       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8845            echo ' yes '
8846            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8847         :
8848       else
8849         can_build_shared=no
8850       fi
8851       ;;
8852     esac
8853     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8854     # soname into executable. Probably we can add versioning support to
8855     # collect2, so additional links can be useful in future.
8856     if test "$aix_use_runtimelinking" = yes; then
8857       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8858       # instead of lib<name>.a to let people know that these are not
8859       # typical AIX shared libraries.
8860       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861     else
8862       # We preserve .a as extension for shared libraries through AIX4.2
8863       # and later when we are not doing run time linking.
8864       library_names_spec='${libname}${release}.a $libname.a'
8865       soname_spec='${libname}${release}${shared_ext}$major'
8866     fi
8867     shlibpath_var=LIBPATH
8868   fi
8869   ;;
8870
8871 amigaos*)
8872   library_names_spec='$libname.ixlibrary $libname.a'
8873   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8874   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8875   ;;
8876
8877 beos*)
8878   library_names_spec='${libname}${shared_ext}'
8879   dynamic_linker="$host_os ld.so"
8880   shlibpath_var=LIBRARY_PATH
8881   ;;
8882
8883 bsdi[45]*)
8884   version_type=linux
8885   need_version=no
8886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887   soname_spec='${libname}${release}${shared_ext}$major'
8888   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8889   shlibpath_var=LD_LIBRARY_PATH
8890   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8891   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8892   # the default ld.so.conf also contains /usr/contrib/lib and
8893   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8894   # libtool to hard-code these into programs
8895   ;;
8896
8897 cygwin* | mingw* | pw32*)
8898   version_type=windows
8899   shrext_cmds=".dll"
8900   need_version=no
8901   need_lib_prefix=no
8902
8903   case $GCC,$host_os in
8904   yes,cygwin* | yes,mingw* | yes,pw32*)
8905     library_names_spec='$libname.dll.a'
8906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8907     postinstall_cmds='base_file=`basename \${file}`~
8908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8909       dldir=$destdir/`dirname \$dlpath`~
8910       test -d \$dldir || mkdir -p \$dldir~
8911       $install_prog $dir/$dlname \$dldir/$dlname~
8912       chmod a+x \$dldir/$dlname'
8913     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8914       dlpath=$dir/\$dldll~
8915        $rm \$dlpath'
8916     shlibpath_overrides_runpath=yes
8917
8918     case $host_os in
8919     cygwin*)
8920       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8921       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8922       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8923       ;;
8924     mingw*)
8925       # MinGW DLLs use traditional 'lib' prefix
8926       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8927       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8928       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8929         # It is most probably a Windows format PATH printed by
8930         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8931         # path with ; separators, and with drive letters. We can handle the
8932         # drive letters (cygwin fileutils understands them), so leave them,
8933         # especially as we might pass files found there to a mingw objdump,
8934         # which wouldn't understand a cygwinified path. Ahh.
8935         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8936       else
8937         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8938       fi
8939       ;;
8940     pw32*)
8941       # pw32 DLLs use 'pw' prefix rather than 'lib'
8942       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8943       ;;
8944     esac
8945     ;;
8946
8947   *)
8948     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8949     ;;
8950   esac
8951   dynamic_linker='Win32 ld.exe'
8952   # FIXME: first we should search . and the directory the executable is in
8953   shlibpath_var=PATH
8954   ;;
8955
8956 darwin* | rhapsody*)
8957   dynamic_linker="$host_os dyld"
8958   version_type=darwin
8959   need_lib_prefix=no
8960   need_version=no
8961   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8962   soname_spec='${libname}${release}${major}$shared_ext'
8963   shlibpath_overrides_runpath=yes
8964   shlibpath_var=DYLD_LIBRARY_PATH
8965   shrext_cmds='.dylib'
8966   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8967   if test "$GCC" = yes; then
8968     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8969   else
8970     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8971   fi
8972   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8973   ;;
8974
8975 dgux*)
8976   version_type=linux
8977   need_lib_prefix=no
8978   need_version=no
8979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8980   soname_spec='${libname}${release}${shared_ext}$major'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   ;;
8983
8984 freebsd1.*)
8985   dynamic_linker=no
8986   ;;
8987
8988 kfreebsd*-gnu)
8989   version_type=linux
8990   need_lib_prefix=no
8991   need_version=no
8992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993   soname_spec='${libname}${release}${shared_ext}$major'
8994   shlibpath_var=LD_LIBRARY_PATH
8995   shlibpath_overrides_runpath=no
8996   hardcode_into_libs=yes
8997   dynamic_linker='GNU ld.so'
8998   ;;
8999
9000 freebsd* | dragonfly*)
9001   # DragonFly does not have aout.  When/if they implement a new
9002   # versioning mechanism, adjust this.
9003   if test -x /usr/bin/objformat; then
9004     objformat=`/usr/bin/objformat`
9005   else
9006     case $host_os in
9007     freebsd[123].*) objformat=aout ;;
9008     *) objformat=elf ;;
9009     esac
9010   fi
9011   version_type=freebsd-$objformat
9012   case $version_type in
9013     freebsd-elf*)
9014       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9015       need_version=no
9016       need_lib_prefix=no
9017       ;;
9018     freebsd-*)
9019       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9020       need_version=yes
9021       ;;
9022   esac
9023   shlibpath_var=LD_LIBRARY_PATH
9024   case $host_os in
9025   freebsd2.*)
9026     shlibpath_overrides_runpath=yes
9027     ;;
9028   freebsd3.[01]* | freebsdelf3.[01]*)
9029     shlibpath_overrides_runpath=yes
9030     hardcode_into_libs=yes
9031     ;;
9032   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9033   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9034     shlibpath_overrides_runpath=no
9035     hardcode_into_libs=yes
9036     ;;
9037   freebsd*) # from 4.6 on
9038     shlibpath_overrides_runpath=yes
9039     hardcode_into_libs=yes
9040     ;;
9041   esac
9042   ;;
9043
9044 gnu*)
9045   version_type=linux
9046   need_lib_prefix=no
9047   need_version=no
9048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9049   soname_spec='${libname}${release}${shared_ext}$major'
9050   shlibpath_var=LD_LIBRARY_PATH
9051   hardcode_into_libs=yes
9052   ;;
9053
9054 hpux9* | hpux10* | hpux11*)
9055   # Give a soname corresponding to the major version so that dld.sl refuses to
9056   # link against other versions.
9057   version_type=sunos
9058   need_lib_prefix=no
9059   need_version=no
9060   case $host_cpu in
9061   ia64*)
9062     shrext_cmds='.so'
9063     hardcode_into_libs=yes
9064     dynamic_linker="$host_os dld.so"
9065     shlibpath_var=LD_LIBRARY_PATH
9066     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068     soname_spec='${libname}${release}${shared_ext}$major'
9069     if test "X$HPUX_IA64_MODE" = X32; then
9070       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9071     else
9072       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9073     fi
9074     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9075     ;;
9076    hppa*64*)
9077      shrext_cmds='.sl'
9078      hardcode_into_libs=yes
9079      dynamic_linker="$host_os dld.sl"
9080      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9081      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9082      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083      soname_spec='${libname}${release}${shared_ext}$major'
9084      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9085      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9086      ;;
9087    *)
9088     shrext_cmds='.sl'
9089     dynamic_linker="$host_os dld.sl"
9090     shlibpath_var=SHLIB_PATH
9091     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093     soname_spec='${libname}${release}${shared_ext}$major'
9094     ;;
9095   esac
9096   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9097   postinstall_cmds='chmod 555 $lib'
9098   ;;
9099
9100 interix3*)
9101   version_type=linux
9102   need_lib_prefix=no
9103   need_version=no
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9107   shlibpath_var=LD_LIBRARY_PATH
9108   shlibpath_overrides_runpath=no
9109   hardcode_into_libs=yes
9110   ;;
9111
9112 irix5* | irix6* | nonstopux*)
9113   case $host_os in
9114     nonstopux*) version_type=nonstopux ;;
9115     *)
9116         if test "$lt_cv_prog_gnu_ld" = yes; then
9117                 version_type=linux
9118         else
9119                 version_type=irix
9120         fi ;;
9121   esac
9122   need_lib_prefix=no
9123   need_version=no
9124   soname_spec='${libname}${release}${shared_ext}$major'
9125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9126   case $host_os in
9127   irix5* | nonstopux*)
9128     libsuff= shlibsuff=
9129     ;;
9130   *)
9131     case $LD in # libtool.m4 will add one of these switches to LD
9132     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9133       libsuff= shlibsuff= libmagic=32-bit;;
9134     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9135       libsuff=32 shlibsuff=N32 libmagic=N32;;
9136     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9137       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9138     *) libsuff= shlibsuff= libmagic=never-match;;
9139     esac
9140     ;;
9141   esac
9142   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9143   shlibpath_overrides_runpath=no
9144   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9145   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9146   hardcode_into_libs=yes
9147   ;;
9148
9149 # No shared lib support for Linux oldld, aout, or coff.
9150 linux*oldld* | linux*aout* | linux*coff*)
9151   dynamic_linker=no
9152   ;;
9153
9154 # This must be Linux ELF.
9155 linux*)
9156   version_type=linux
9157   need_lib_prefix=no
9158   need_version=no
9159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160   soname_spec='${libname}${release}${shared_ext}$major'
9161   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9162   shlibpath_var=LD_LIBRARY_PATH
9163   shlibpath_overrides_runpath=no
9164   # This implies no fast_install, which is unacceptable.
9165   # Some rework will be needed to allow for fast_install
9166   # before this can be enabled.
9167   hardcode_into_libs=yes
9168
9169   # Append ld.so.conf contents to the search path
9170   if test -f /etc/ld.so.conf; then
9171     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9172     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9173   fi
9174
9175   # We used to test for /lib/ld.so.1 and disable shared libraries on
9176   # powerpc, because MkLinux only supported shared libraries with the
9177   # GNU dynamic linker.  Since this was broken with cross compilers,
9178   # most powerpc-linux boxes support dynamic linking these days and
9179   # people can always --disable-shared, the test was removed, and we
9180   # assume the GNU/Linux dynamic linker is in use.
9181   dynamic_linker='GNU/Linux ld.so'
9182   ;;
9183
9184 knetbsd*-gnu)
9185   version_type=linux
9186   need_lib_prefix=no
9187   need_version=no
9188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9189   soname_spec='${libname}${release}${shared_ext}$major'
9190   shlibpath_var=LD_LIBRARY_PATH
9191   shlibpath_overrides_runpath=no
9192   hardcode_into_libs=yes
9193   dynamic_linker='GNU ld.so'
9194   ;;
9195
9196 netbsd*)
9197   version_type=sunos
9198   need_lib_prefix=no
9199   need_version=no
9200   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203     dynamic_linker='NetBSD (a.out) ld.so'
9204   else
9205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9206     soname_spec='${libname}${release}${shared_ext}$major'
9207     dynamic_linker='NetBSD ld.elf_so'
9208   fi
9209   shlibpath_var=LD_LIBRARY_PATH
9210   shlibpath_overrides_runpath=yes
9211   hardcode_into_libs=yes
9212   ;;
9213
9214 newsos6)
9215   version_type=linux
9216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   shlibpath_overrides_runpath=yes
9219   ;;
9220
9221 nto-qnx*)
9222   version_type=linux
9223   need_lib_prefix=no
9224   need_version=no
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226   soname_spec='${libname}${release}${shared_ext}$major'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   shlibpath_overrides_runpath=yes
9229   ;;
9230
9231 openbsd* | bitrig*)
9232   version_type=sunos
9233   sys_lib_dlsearch_path_spec="/usr/lib"
9234   need_lib_prefix=no
9235   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9236   case $host_os in
9237     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9238     *)                         need_version=no  ;;
9239   esac
9240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9241   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9242   shlibpath_var=LD_LIBRARY_PATH
9243   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9244     case $host_os in
9245       openbsd2.[89] | openbsd2.[89].*)
9246         shlibpath_overrides_runpath=no
9247         ;;
9248       *)
9249         shlibpath_overrides_runpath=yes
9250         ;;
9251       esac
9252   else
9253     shlibpath_overrides_runpath=yes
9254   fi
9255   ;;
9256
9257 os2*)
9258   libname_spec='$name'
9259   shrext_cmds=".dll"
9260   need_lib_prefix=no
9261   library_names_spec='$libname${shared_ext} $libname.a'
9262   dynamic_linker='OS/2 ld.exe'
9263   shlibpath_var=LIBPATH
9264   ;;
9265
9266 osf3* | osf4* | osf5*)
9267   version_type=osf
9268   need_lib_prefix=no
9269   need_version=no
9270   soname_spec='${libname}${release}${shared_ext}$major'
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272   shlibpath_var=LD_LIBRARY_PATH
9273   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9274   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9275   ;;
9276
9277 solaris*)
9278   version_type=linux
9279   need_lib_prefix=no
9280   need_version=no
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282   soname_spec='${libname}${release}${shared_ext}$major'
9283   shlibpath_var=LD_LIBRARY_PATH
9284   shlibpath_overrides_runpath=yes
9285   hardcode_into_libs=yes
9286   # ldd complains unless libraries are executable
9287   postinstall_cmds='chmod +x $lib'
9288   ;;
9289
9290 sunos4*)
9291   version_type=sunos
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9293   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   shlibpath_overrides_runpath=yes
9296   if test "$with_gnu_ld" = yes; then
9297     need_lib_prefix=no
9298   fi
9299   need_version=yes
9300   ;;
9301
9302 sysv4 | sysv4.3*)
9303   version_type=linux
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305   soname_spec='${libname}${release}${shared_ext}$major'
9306   shlibpath_var=LD_LIBRARY_PATH
9307   case $host_vendor in
9308     sni)
9309       shlibpath_overrides_runpath=no
9310       need_lib_prefix=no
9311       export_dynamic_flag_spec='${wl}-Blargedynsym'
9312       runpath_var=LD_RUN_PATH
9313       ;;
9314     siemens)
9315       need_lib_prefix=no
9316       ;;
9317     motorola)
9318       need_lib_prefix=no
9319       need_version=no
9320       shlibpath_overrides_runpath=no
9321       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9322       ;;
9323   esac
9324   ;;
9325
9326 sysv4*MP*)
9327   if test -d /usr/nec ;then
9328     version_type=linux
9329     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9330     soname_spec='$libname${shared_ext}.$major'
9331     shlibpath_var=LD_LIBRARY_PATH
9332   fi
9333   ;;
9334
9335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9336   version_type=freebsd-elf
9337   need_lib_prefix=no
9338   need_version=no
9339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9340   soname_spec='${libname}${release}${shared_ext}$major'
9341   shlibpath_var=LD_LIBRARY_PATH
9342   hardcode_into_libs=yes
9343   if test "$with_gnu_ld" = yes; then
9344     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9345     shlibpath_overrides_runpath=no
9346   else
9347     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9348     shlibpath_overrides_runpath=yes
9349     case $host_os in
9350       sco3.2v5*)
9351         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9352         ;;
9353     esac
9354   fi
9355   sys_lib_dlsearch_path_spec='/usr/lib'
9356   ;;
9357
9358 uts4*)
9359   version_type=linux
9360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361   soname_spec='${libname}${release}${shared_ext}$major'
9362   shlibpath_var=LD_LIBRARY_PATH
9363   ;;
9364
9365 *)
9366   dynamic_linker=no
9367   ;;
9368 esac
9369 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9370 echo "${ECHO_T}$dynamic_linker" >&6; }
9371 test "$dynamic_linker" = no && can_build_shared=no
9372
9373 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9374 if test "$GCC" = yes; then
9375   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9376 fi
9377
9378
9379 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9380 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9381 if test "${libltdl_cv_shlibext+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384
9385 module=yes
9386 eval libltdl_cv_shlibext=$shrext_cmds
9387
9388 fi
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9390 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9391 if test -n "$libltdl_cv_shlibext"; then
9392
9393 cat >>confdefs.h <<_ACEOF
9394 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9395 _ACEOF
9396
9397 fi
9398
9399
9400 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9401 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405   libltdl_cv_shlibpath_var="$shlibpath_var"
9406 fi
9407 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9408 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9409 if test -n "$libltdl_cv_shlibpath_var"; then
9410
9411 cat >>confdefs.h <<_ACEOF
9412 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9413 _ACEOF
9414
9415 fi
9416
9417
9418 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9419 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9420 if test "${libltdl_cv_sys_search_path+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9424 fi
9425 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9426 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9427 if test -n "$libltdl_cv_sys_search_path"; then
9428   sys_search_path=
9429   for dir in $libltdl_cv_sys_search_path; do
9430     if test -z "$sys_search_path"; then
9431       sys_search_path="$dir"
9432     else
9433       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9434     fi
9435   done
9436
9437 cat >>confdefs.h <<_ACEOF
9438 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9439 _ACEOF
9440
9441 fi
9442
9443 { echo "$as_me:$LINENO: checking for objdir" >&5
9444 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9445 if test "${libltdl_cv_objdir+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   libltdl_cv_objdir="$objdir"
9449   if test -n "$objdir"; then
9450     :
9451   else
9452     rm -f .libs 2>/dev/null
9453     mkdir .libs 2>/dev/null
9454     if test -d .libs; then
9455       libltdl_cv_objdir=.libs
9456     else
9457       # MS-DOS does not allow filenames that begin with a dot.
9458       libltdl_cv_objdir=_libs
9459     fi
9460   rmdir .libs 2>/dev/null
9461   fi
9462
9463 fi
9464 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9465 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9466
9467 cat >>confdefs.h <<_ACEOF
9468 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9469 _ACEOF
9470
9471
9472
9473
9474
9475
9476 # Check for command to grab the raw symbol name followed by C symbol from nm.
9477 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9478 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9479 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482
9483 # These are sane defaults that work on at least a few old systems.
9484 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9485
9486 # Character class describing NM global symbol codes.
9487 symcode='[BCDEGRST]'
9488
9489 # Regexp to match symbols that can be accessed directly from C.
9490 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9491
9492 # Transform an extracted symbol line into a proper C declaration
9493 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9494
9495 # Transform an extracted symbol line into symbol name and symbol address
9496 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'"
9497
9498 # Define system-specific variables.
9499 case $host_os in
9500 aix*)
9501   symcode='[BCDT]'
9502   ;;
9503 cygwin* | mingw* | pw32*)
9504   symcode='[ABCDGISTW]'
9505   ;;
9506 hpux*) # Its linker distinguishes data from code symbols
9507   if test "$host_cpu" = ia64; then
9508     symcode='[ABCDEGRST]'
9509   fi
9510   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9511   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'"
9512   ;;
9513 linux*)
9514   if test "$host_cpu" = ia64; then
9515     symcode='[ABCDGIRSTW]'
9516     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9517     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'"
9518   fi
9519   ;;
9520 irix* | nonstopux*)
9521   symcode='[BCDEGRST]'
9522   ;;
9523 osf*)
9524   symcode='[BCDEGQRST]'
9525   ;;
9526 solaris*)
9527   symcode='[BDRT]'
9528   ;;
9529 sco3.2v5*)
9530   symcode='[DT]'
9531   ;;
9532 sysv4.2uw2*)
9533   symcode='[DT]'
9534   ;;
9535 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9536   symcode='[ABDT]'
9537   ;;
9538 sysv4)
9539   symcode='[DFNSTU]'
9540   ;;
9541 esac
9542
9543 # Handle CRLF in mingw tool chain
9544 opt_cr=
9545 case $build_os in
9546 mingw*)
9547   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9548   ;;
9549 esac
9550
9551 # If we're using GNU nm, then use its standard symbol codes.
9552 case `$NM -V 2>&1` in
9553 *GNU* | *'with BFD'*)
9554   symcode='[ABCDGIRSTW]' ;;
9555 esac
9556
9557 # Try without a prefix undercore, then with it.
9558 for ac_symprfx in "" "_"; do
9559
9560   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9561   symxfrm="\\1 $ac_symprfx\\2 \\2"
9562
9563   # Write the raw and C identifiers.
9564   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9565
9566   # Check to see that the pipe works correctly.
9567   pipe_works=no
9568
9569   rm -f conftest*
9570   cat > conftest.$ac_ext <<EOF
9571 #ifdef __cplusplus
9572 extern "C" {
9573 #endif
9574 char nm_test_var;
9575 void nm_test_func(){}
9576 #ifdef __cplusplus
9577 }
9578 #endif
9579 int main(){nm_test_var='a';nm_test_func();return(0);}
9580 EOF
9581
9582   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9583   (eval $ac_compile) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; then
9587     # Now try to grab the symbols.
9588     nlist=conftest.nm
9589     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9590   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); } && test -s "$nlist"; then
9594       # Try sorting and uniquifying the output.
9595       if sort "$nlist" | uniq > "$nlist"T; then
9596         mv -f "$nlist"T "$nlist"
9597       else
9598         rm -f "$nlist"T
9599       fi
9600
9601       # Make sure that we snagged all the symbols we need.
9602       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9603         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9604           cat <<EOF > conftest.$ac_ext
9605 #ifdef __cplusplus
9606 extern "C" {
9607 #endif
9608
9609 EOF
9610           # Now generate the symbol file.
9611           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9612
9613           cat <<EOF >> conftest.$ac_ext
9614 #if defined (__STDC__) && __STDC__
9615 # define lt_ptr_t void *
9616 #else
9617 # define lt_ptr_t char *
9618 # define const
9619 #endif
9620
9621 /* The mapping between symbol names and symbols. */
9622 const struct {
9623   const char *name;
9624   lt_ptr_t address;
9625 }
9626 lt_preloaded_symbols[] =
9627 {
9628 EOF
9629           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9630           cat <<\EOF >> conftest.$ac_ext
9631   {0, (lt_ptr_t) 0}
9632 };
9633
9634 #ifdef __cplusplus
9635 }
9636 #endif
9637 EOF
9638           # Now try linking the two files.
9639           mv conftest.$ac_objext conftstm.$ac_objext
9640           lt_save_LIBS="$LIBS"
9641           lt_save_CFLAGS="$CFLAGS"
9642           LIBS="conftstm.$ac_objext"
9643           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9644           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645   (eval $ac_link) 2>&5
9646   ac_status=$?
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9649             pipe_works=yes
9650           fi
9651           LIBS="$lt_save_LIBS"
9652           CFLAGS="$lt_save_CFLAGS"
9653         else
9654           echo "cannot find nm_test_func in $nlist" >&5
9655         fi
9656       else
9657         echo "cannot find nm_test_var in $nlist" >&5
9658       fi
9659     else
9660       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9661     fi
9662   else
9663     echo "$progname: failed program was:" >&5
9664     cat conftest.$ac_ext >&5
9665   fi
9666   rm -f conftest* conftst*
9667
9668   # Do not use the global_symbol_pipe unless it works.
9669   if test "$pipe_works" = yes; then
9670     break
9671   else
9672     lt_cv_sys_global_symbol_pipe=
9673   fi
9674 done
9675
9676 fi
9677
9678 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9679   lt_cv_sys_global_symbol_to_cdecl=
9680 fi
9681 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9682   { echo "$as_me:$LINENO: result: failed" >&5
9683 echo "${ECHO_T}failed" >&6; }
9684 else
9685   { echo "$as_me:$LINENO: result: ok" >&5
9686 echo "${ECHO_T}ok" >&6; }
9687 fi
9688
9689
9690 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9691 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9692 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9696     libltdl_cv_preloaded_symbols=yes
9697   else
9698     libltdl_cv_preloaded_symbols=no
9699   fi
9700
9701 fi
9702 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9703 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9704 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9705
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_PRELOADED_SYMBOLS 1
9708 _ACEOF
9709
9710 fi
9711
9712 LIBADD_DL=
9713
9714 ac_ext=c
9715 ac_cpp='$CPP $CPPFLAGS'
9716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9719
9720
9721 { echo "$as_me:$LINENO: checking for shl_load" >&5
9722 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9723 if test "${ac_cv_func_shl_load+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9734 #define shl_load innocuous_shl_load
9735
9736 /* System header to define __stub macros and hopefully few prototypes,
9737     which can conflict with char shl_load (); below.
9738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739     <limits.h> exists even on freestanding compilers.  */
9740
9741 #ifdef __STDC__
9742 # include <limits.h>
9743 #else
9744 # include <assert.h>
9745 #endif
9746
9747 #undef shl_load
9748
9749 /* Override any GCC internal prototype to avoid an error.
9750    Use char because int might match the return type of a GCC
9751    builtin and then its argument prototype would still apply.  */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 char shl_load ();
9756 /* The GNU C library defines this for functions which it implements
9757     to always fail with ENOSYS.  Some functions are actually named
9758     something starting with __ and the normal name is an alias.  */
9759 #if defined __stub_shl_load || defined __stub___shl_load
9760 choke me
9761 #endif
9762
9763 int
9764 main ()
9765 {
9766 return shl_load ();
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9773 case "(($ac_try" in
9774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775   *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778   (eval "$ac_link") 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } &&
9785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786   { (case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791   (eval "$ac_try") 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; } &&
9795          { ac_try='test -s conftest$ac_exeext'
9796   { (case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_try") 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805   ac_cv_func_shl_load=yes
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810         ac_cv_func_shl_load=no
9811 fi
9812
9813 rm -f core conftest.err conftest.$ac_objext \
9814       conftest$ac_exeext conftest.$ac_ext
9815 fi
9816 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9817 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9818 if test $ac_cv_func_shl_load = yes; then
9819
9820 cat >>confdefs.h <<\_ACEOF
9821 #define HAVE_SHL_LOAD 1
9822 _ACEOF
9823
9824 else
9825   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9826 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9827 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   ac_check_lib_save_LIBS=$LIBS
9831 LIBS="-ldld  $LIBS"
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h.  */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h.  */
9838
9839 /* Override any GCC internal prototype to avoid an error.
9840    Use char because int might match the return type of a GCC
9841    builtin and then its argument prototype would still apply.  */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char shl_load ();
9846 int
9847 main ()
9848 {
9849 return shl_load ();
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (ac_try="$ac_link"
9856 case "(($ac_try" in
9857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858   *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861   (eval "$ac_link") 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } &&
9868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; } &&
9878          { ac_try='test -s conftest$ac_exeext'
9879   { (case "(($ac_try" in
9880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881   *) ac_try_echo=$ac_try;;
9882 esac
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884   (eval "$ac_try") 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_lib_dld_shl_load=yes
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893         ac_cv_lib_dld_shl_load=no
9894 fi
9895
9896 rm -f core conftest.err conftest.$ac_objext \
9897       conftest$ac_exeext conftest.$ac_ext
9898 LIBS=$ac_check_lib_save_LIBS
9899 fi
9900 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9901 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9902 if test $ac_cv_lib_dld_shl_load = yes; then
9903
9904 cat >>confdefs.h <<\_ACEOF
9905 #define HAVE_SHL_LOAD 1
9906 _ACEOF
9907
9908         LIBADD_DL="$LIBADD_DL -ldld"
9909 else
9910   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9911 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9912 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9913   echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915   ac_check_lib_save_LIBS=$LIBS
9916 LIBS="-ldl  $LIBS"
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923
9924 /* Override any GCC internal prototype to avoid an error.
9925    Use char because int might match the return type of a GCC
9926    builtin and then its argument prototype would still apply.  */
9927 #ifdef __cplusplus
9928 extern "C"
9929 #endif
9930 char dlopen ();
9931 int
9932 main ()
9933 {
9934 return dlopen ();
9935   ;
9936   return 0;
9937 }
9938 _ACEOF
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (ac_try="$ac_link"
9941 case "(($ac_try" in
9942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943   *) ac_try_echo=$ac_try;;
9944 esac
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946   (eval "$ac_link") 2>conftest.er1
9947   ac_status=$?
9948   grep -v '^ *+' conftest.er1 >conftest.err
9949   rm -f conftest.er1
9950   cat conftest.err >&5
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); } &&
9953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9954   { (case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_try") 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; } &&
9963          { ac_try='test -s conftest$ac_exeext'
9964   { (case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969   (eval "$ac_try") 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; }; then
9973   ac_cv_lib_dl_dlopen=yes
9974 else
9975   echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978         ac_cv_lib_dl_dlopen=no
9979 fi
9980
9981 rm -f core conftest.err conftest.$ac_objext \
9982       conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9984 fi
9985 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9987 if test $ac_cv_lib_dl_dlopen = yes; then
9988
9989 cat >>confdefs.h <<\_ACEOF
9990 #define HAVE_LIBDL 1
9991 _ACEOF
9992
9993                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9994 else
9995   cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 #if HAVE_DLFCN_H
10002 #  include <dlfcn.h>
10003 #endif
10004
10005 int
10006 main ()
10007 {
10008 dlopen(0, 0);
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017   *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020   (eval "$ac_link") 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10028   { (case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_try") 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; } &&
10037          { ac_try='test -s conftest$ac_exeext'
10038   { (case "(($ac_try" in
10039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040   *) ac_try_echo=$ac_try;;
10041 esac
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043   (eval "$ac_try") 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; }; then
10047
10048 cat >>confdefs.h <<\_ACEOF
10049 #define HAVE_LIBDL 1
10050 _ACEOF
10051  libltdl_cv_func_dlopen="yes"
10052 else
10053   echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10057 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10058 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   ac_check_lib_save_LIBS=$LIBS
10062 LIBS="-lsvld  $LIBS"
10063 cat >conftest.$ac_ext <<_ACEOF
10064 /* confdefs.h.  */
10065 _ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h.  */
10069
10070 /* Override any GCC internal prototype to avoid an error.
10071    Use char because int might match the return type of a GCC
10072    builtin and then its argument prototype would still apply.  */
10073 #ifdef __cplusplus
10074 extern "C"
10075 #endif
10076 char dlopen ();
10077 int
10078 main ()
10079 {
10080 return dlopen ();
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092   (eval "$ac_link") 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; } &&
10109          { ac_try='test -s conftest$ac_exeext'
10110   { (case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_try") 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; }; then
10119   ac_cv_lib_svld_dlopen=yes
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124         ac_cv_lib_svld_dlopen=no
10125 fi
10126
10127 rm -f core conftest.err conftest.$ac_objext \
10128       conftest$ac_exeext conftest.$ac_ext
10129 LIBS=$ac_check_lib_save_LIBS
10130 fi
10131 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10132 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10133 if test $ac_cv_lib_svld_dlopen = yes; then
10134
10135 cat >>confdefs.h <<\_ACEOF
10136 #define HAVE_LIBDL 1
10137 _ACEOF
10138
10139                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10140 else
10141   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10142 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-ldld  $LIBS"
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154
10155 /* Override any GCC internal prototype to avoid an error.
10156    Use char because int might match the return type of a GCC
10157    builtin and then its argument prototype would still apply.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char dld_link ();
10162 int
10163 main ()
10164 {
10165 return dld_link ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174   *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177   (eval "$ac_link") 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185   { (case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_try") 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; } &&
10194          { ac_try='test -s conftest$ac_exeext'
10195   { (case "(($ac_try" in
10196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197   *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200   (eval "$ac_try") 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); }; }; then
10204   ac_cv_lib_dld_dld_link=yes
10205 else
10206   echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209         ac_cv_lib_dld_dld_link=no
10210 fi
10211
10212 rm -f core conftest.err conftest.$ac_objext \
10213       conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
10216 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10218 if test $ac_cv_lib_dld_dld_link = yes; then
10219
10220 cat >>confdefs.h <<\_ACEOF
10221 #define HAVE_DLD 1
10222 _ACEOF
10223
10224                 LIBADD_DL="$LIBADD_DL -ldld"
10225 else
10226   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10227 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10228 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231   cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h.  */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h.  */
10237 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10239 #define _dyld_func_lookup innocuous__dyld_func_lookup
10240
10241 /* System header to define __stub macros and hopefully few prototypes,
10242     which can conflict with char _dyld_func_lookup (); below.
10243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10244     <limits.h> exists even on freestanding compilers.  */
10245
10246 #ifdef __STDC__
10247 # include <limits.h>
10248 #else
10249 # include <assert.h>
10250 #endif
10251
10252 #undef _dyld_func_lookup
10253
10254 /* Override any GCC internal prototype to avoid an error.
10255    Use char because int might match the return type of a GCC
10256    builtin and then its argument prototype would still apply.  */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char _dyld_func_lookup ();
10261 /* The GNU C library defines this for functions which it implements
10262     to always fail with ENOSYS.  Some functions are actually named
10263     something starting with __ and the normal name is an alias.  */
10264 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10265 choke me
10266 #endif
10267
10268 int
10269 main ()
10270 {
10271 return _dyld_func_lookup ();
10272   ;
10273   return 0;
10274 }
10275 _ACEOF
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280   *) ac_try_echo=$ac_try;;
10281 esac
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283   (eval "$ac_link") 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10291   { (case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_try") 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; } &&
10300          { ac_try='test -s conftest$ac_exeext'
10301   { (case "(($ac_try" in
10302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303   *) ac_try_echo=$ac_try;;
10304 esac
10305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306   (eval "$ac_try") 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); }; }; then
10310   ac_cv_func__dyld_func_lookup=yes
10311 else
10312   echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315         ac_cv_func__dyld_func_lookup=no
10316 fi
10317
10318 rm -f core conftest.err conftest.$ac_objext \
10319       conftest$ac_exeext conftest.$ac_ext
10320 fi
10321 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10322 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10323 if test $ac_cv_func__dyld_func_lookup = yes; then
10324
10325 cat >>confdefs.h <<\_ACEOF
10326 #define HAVE_DYLD 1
10327 _ACEOF
10328
10329 fi
10330
10331
10332 fi
10333
10334
10335 fi
10336
10337
10338 fi
10339
10340 rm -f core conftest.err conftest.$ac_objext \
10341       conftest$ac_exeext conftest.$ac_ext
10342
10343 fi
10344
10345
10346 fi
10347
10348
10349 fi
10350
10351
10352 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10353 then
10354   lt_save_LIBS="$LIBS"
10355   LIBS="$LIBS $LIBADD_DL"
10356
10357 for ac_func in dlerror
10358 do
10359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365   cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h.  */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h.  */
10371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10373 #define $ac_func innocuous_$ac_func
10374
10375 /* System header to define __stub macros and hopefully few prototypes,
10376     which can conflict with char $ac_func (); below.
10377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10378     <limits.h> exists even on freestanding compilers.  */
10379
10380 #ifdef __STDC__
10381 # include <limits.h>
10382 #else
10383 # include <assert.h>
10384 #endif
10385
10386 #undef $ac_func
10387
10388 /* Override any GCC internal prototype to avoid an error.
10389    Use char because int might match the return type of a GCC
10390    builtin and then its argument prototype would still apply.  */
10391 #ifdef __cplusplus
10392 extern "C"
10393 #endif
10394 char $ac_func ();
10395 /* The GNU C library defines this for functions which it implements
10396     to always fail with ENOSYS.  Some functions are actually named
10397     something starting with __ and the normal name is an alias.  */
10398 #if defined __stub_$ac_func || defined __stub___$ac_func
10399 choke me
10400 #endif
10401
10402 int
10403 main ()
10404 {
10405 return $ac_func ();
10406   ;
10407   return 0;
10408 }
10409 _ACEOF
10410 rm -f conftest.$ac_objext conftest$ac_exeext
10411 if { (ac_try="$ac_link"
10412 case "(($ac_try" in
10413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414   *) ac_try_echo=$ac_try;;
10415 esac
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417   (eval "$ac_link") 2>conftest.er1
10418   ac_status=$?
10419   grep -v '^ *+' conftest.er1 >conftest.err
10420   rm -f conftest.er1
10421   cat conftest.err >&5
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } &&
10424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10425   { (case "(($ac_try" in
10426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427   *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430   (eval "$ac_try") 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; } &&
10434          { ac_try='test -s conftest$ac_exeext'
10435   { (case "(($ac_try" in
10436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437   *) ac_try_echo=$ac_try;;
10438 esac
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440   (eval "$ac_try") 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444   eval "$as_ac_var=yes"
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449         eval "$as_ac_var=no"
10450 fi
10451
10452 rm -f core conftest.err conftest.$ac_objext \
10453       conftest$ac_exeext conftest.$ac_ext
10454 fi
10455 ac_res=`eval echo '${'$as_ac_var'}'`
10456                { echo "$as_me:$LINENO: result: $ac_res" >&5
10457 echo "${ECHO_T}$ac_res" >&6; }
10458 if test `eval echo '${'$as_ac_var'}'` = yes; then
10459   cat >>confdefs.h <<_ACEOF
10460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10461 _ACEOF
10462
10463 fi
10464 done
10465
10466   LIBS="$lt_save_LIBS"
10467 fi
10468 ac_ext=c
10469 ac_cpp='$CPP $CPPFLAGS'
10470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10473
10474
10475
10476 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10477 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10478 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10479   echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481   ac_cv_sys_symbol_underscore=no
10482   cat > conftest.$ac_ext <<EOF
10483 void nm_test_func(){}
10484 int main(){nm_test_func;return 0;}
10485 EOF
10486   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487   (eval $ac_compile) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }; then
10491     # Now try to grab the symbols.
10492     ac_nlist=conftest.nm
10493     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10494   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } && test -s "$ac_nlist"; then
10498       # See whether the symbols have a leading underscore.
10499       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10500         ac_cv_sys_symbol_underscore=yes
10501       else
10502         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10503           :
10504         else
10505           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10506         fi
10507       fi
10508     else
10509       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10510     fi
10511   else
10512     echo "configure: failed program was:" >&5
10513     cat conftest.c >&5
10514   fi
10515   rm -rf conftest*
10516
10517 fi
10518 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10519 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10520
10521
10522 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10523   if test x"$libltdl_cv_func_dlopen" = xyes ||
10524      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10525         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10526 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10527 if test "${libltdl_cv_need_uscore+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   libltdl_cv_need_uscore=unknown
10531           save_LIBS="$LIBS"
10532           LIBS="$LIBS $LIBADD_DL"
10533           if test "$cross_compiling" = yes; then :
10534   libltdl_cv_need_uscore=cross
10535 else
10536   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10537   lt_status=$lt_dlunknown
10538   cat > conftest.$ac_ext <<EOF
10539 #line 10539 "configure"
10540 #include "confdefs.h"
10541
10542 #if HAVE_DLFCN_H
10543 #include <dlfcn.h>
10544 #endif
10545
10546 #include <stdio.h>
10547
10548 #ifdef RTLD_GLOBAL
10549 #  define LT_DLGLOBAL           RTLD_GLOBAL
10550 #else
10551 #  ifdef DL_GLOBAL
10552 #    define LT_DLGLOBAL         DL_GLOBAL
10553 #  else
10554 #    define LT_DLGLOBAL         0
10555 #  endif
10556 #endif
10557
10558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10559    find out it does not work in some platform. */
10560 #ifndef LT_DLLAZY_OR_NOW
10561 #  ifdef RTLD_LAZY
10562 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10563 #  else
10564 #    ifdef DL_LAZY
10565 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10566 #    else
10567 #      ifdef RTLD_NOW
10568 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10569 #      else
10570 #        ifdef DL_NOW
10571 #          define LT_DLLAZY_OR_NOW      DL_NOW
10572 #        else
10573 #          define LT_DLLAZY_OR_NOW      0
10574 #        endif
10575 #      endif
10576 #    endif
10577 #  endif
10578 #endif
10579
10580 #ifdef __cplusplus
10581 extern "C" void exit (int);
10582 #endif
10583
10584 void fnord() { int i=42;}
10585 int main ()
10586 {
10587   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10588   int status = $lt_dlunknown;
10589
10590   if (self)
10591     {
10592       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10593       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10594       /* dlclose (self); */
10595     }
10596   else
10597     puts (dlerror ());
10598
10599     exit (status);
10600 }
10601 EOF
10602   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603   (eval $ac_link) 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10607     (./conftest; exit; ) >&5 2>/dev/null
10608     lt_status=$?
10609     case x$lt_status in
10610       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10611       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10612       x$lt_dlunknown|x*)  ;;
10613     esac
10614   else :
10615     # compilation failed
10616
10617   fi
10618 fi
10619 rm -fr conftest*
10620
10621           LIBS="$save_LIBS"
10622
10623 fi
10624 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10625 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10626   fi
10627 fi
10628
10629 if test x"$libltdl_cv_need_uscore" = xyes; then
10630
10631 cat >>confdefs.h <<\_ACEOF
10632 #define NEED_USCORE 1
10633 _ACEOF
10634
10635 fi
10636
10637
10638 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10639 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10640 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   # PORTME does your system automatically load deplibs for dlopen?
10644   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10645   # For now, we just catch OSes we know something about -- in the
10646   # future, we'll try test this programmatically.
10647   libltdl_cv_sys_dlopen_deplibs=unknown
10648   case "$host_os" in
10649   aix3*|aix4.1.*|aix4.2.*)
10650     # Unknown whether this is true for these versions of AIX, but
10651     # we want this `case' here to explicitly catch those versions.
10652     libltdl_cv_sys_dlopen_deplibs=unknown
10653     ;;
10654   aix[45]*)
10655     libltdl_cv_sys_dlopen_deplibs=yes
10656     ;;
10657   darwin*)
10658     # Assuming the user has installed a libdl from somewhere, this is true
10659     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10660     libltdl_cv_sys_dlopen_deplibs=yes
10661     ;;
10662   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10663     # GNU and its variants, using gnu ld.so (Glibc)
10664     libltdl_cv_sys_dlopen_deplibs=yes
10665     ;;
10666   hpux10*|hpux11*)
10667     libltdl_cv_sys_dlopen_deplibs=yes
10668     ;;
10669   interix*)
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   irix[12345]*|irix6.[01]*)
10673     # Catch all versions of IRIX before 6.2, and indicate that we don't
10674     # know how it worked for any of those versions.
10675     libltdl_cv_sys_dlopen_deplibs=unknown
10676     ;;
10677   irix*)
10678     # The case above catches anything before 6.2, and it's known that
10679     # at 6.2 and later dlopen does load deplibs.
10680     libltdl_cv_sys_dlopen_deplibs=yes
10681     ;;
10682   netbsd*)
10683     libltdl_cv_sys_dlopen_deplibs=yes
10684     ;;
10685   openbsd*)
10686     libltdl_cv_sys_dlopen_deplibs=yes
10687     ;;
10688   osf[1234]*)
10689     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10690     # it did *not* use an RPATH in a shared library to find objects the
10691     # library depends on, so we explicitly say `no'.
10692     libltdl_cv_sys_dlopen_deplibs=no
10693     ;;
10694   osf5.0|osf5.0a|osf5.1)
10695     # dlopen *does* load deplibs and with the right loader patch applied
10696     # it even uses RPATH in a shared library to search for shared objects
10697     # that the library depends on, but there's no easy way to know if that
10698     # patch is installed.  Since this is the case, all we can really
10699     # say is unknown -- it depends on the patch being installed.  If
10700     # it is, this changes to `yes'.  Without it, it would be `no'.
10701     libltdl_cv_sys_dlopen_deplibs=unknown
10702     ;;
10703   osf*)
10704     # the two cases above should catch all versions of osf <= 5.1.  Read
10705     # the comments above for what we know about them.
10706     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10707     # is used to find them so we can finally say `yes'.
10708     libltdl_cv_sys_dlopen_deplibs=yes
10709     ;;
10710   solaris*)
10711     libltdl_cv_sys_dlopen_deplibs=yes
10712     ;;
10713   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10714     libltdl_cv_sys_dlopen_deplibs=yes
10715     ;;
10716   esac
10717
10718 fi
10719 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10720 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10721 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10722
10723 cat >>confdefs.h <<\_ACEOF
10724 #define LTDL_DLOPEN_DEPLIBS 1
10725 _ACEOF
10726
10727 fi
10728
10729
10730 for ac_header in argz.h
10731 do
10732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10734   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737   echo $ECHO_N "(cached) $ECHO_C" >&6
10738 fi
10739 ac_res=`eval echo '${'$as_ac_Header'}'`
10740                { echo "$as_me:$LINENO: result: $ac_res" >&5
10741 echo "${ECHO_T}$ac_res" >&6; }
10742 else
10743   # Is the header compilable?
10744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10746 cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752 $ac_includes_default
10753 #include <$ac_header>
10754 _ACEOF
10755 rm -f conftest.$ac_objext
10756 if { (ac_try="$ac_compile"
10757 case "(($ac_try" in
10758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759   *) ac_try_echo=$ac_try;;
10760 esac
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762   (eval "$ac_compile") 2>conftest.er1
10763   ac_status=$?
10764   grep -v '^ *+' conftest.er1 >conftest.err
10765   rm -f conftest.er1
10766   cat conftest.err >&5
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); } &&
10769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10770   { (case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_try") 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; } &&
10779          { ac_try='test -s conftest.$ac_objext'
10780   { (case "(($ac_try" in
10781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782   *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785   (eval "$ac_try") 2>&5
10786   ac_status=$?
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); }; }; then
10789   ac_header_compiler=yes
10790 else
10791   echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10793
10794         ac_header_compiler=no
10795 fi
10796
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10799 echo "${ECHO_T}$ac_header_compiler" >&6; }
10800
10801 # Is the header present?
10802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810 #include <$ac_header>
10811 _ACEOF
10812 if { (ac_try="$ac_cpp conftest.$ac_ext"
10813 case "(($ac_try" in
10814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815   *) ac_try_echo=$ac_try;;
10816 esac
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10819   ac_status=$?
10820   grep -v '^ *+' conftest.er1 >conftest.err
10821   rm -f conftest.er1
10822   cat conftest.err >&5
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); } >/dev/null; then
10825   if test -s conftest.err; then
10826     ac_cpp_err=$ac_c_preproc_warn_flag
10827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10828   else
10829     ac_cpp_err=
10830   fi
10831 else
10832   ac_cpp_err=yes
10833 fi
10834 if test -z "$ac_cpp_err"; then
10835   ac_header_preproc=yes
10836 else
10837   echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840   ac_header_preproc=no
10841 fi
10842
10843 rm -f conftest.err conftest.$ac_ext
10844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10845 echo "${ECHO_T}$ac_header_preproc" >&6; }
10846
10847 # So?  What about this header?
10848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10849   yes:no: )
10850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10854     ac_header_preproc=yes
10855     ;;
10856   no:yes:* )
10857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10869     ( cat <<\_ASBOX
10870 ## ------------------------------------ ##
10871 ## Report this to http://llvm.org/bugs/ ##
10872 ## ------------------------------------ ##
10873 _ASBOX
10874      ) | sed "s/^/$as_me: WARNING:     /" >&2
10875     ;;
10876 esac
10877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   eval "$as_ac_Header=\$ac_header_preproc"
10883 fi
10884 ac_res=`eval echo '${'$as_ac_Header'}'`
10885                { echo "$as_me:$LINENO: result: $ac_res" >&5
10886 echo "${ECHO_T}$ac_res" >&6; }
10887
10888 fi
10889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10890   cat >>confdefs.h <<_ACEOF
10891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10892 _ACEOF
10893
10894 fi
10895
10896 done
10897
10898
10899 { echo "$as_me:$LINENO: checking for error_t" >&5
10900 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10901 if test "${ac_cv_type_error_t+set}" = set; then
10902   echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904   cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h.  */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h.  */
10910 #if HAVE_ARGZ_H
10911 #  include <argz.h>
10912 #endif
10913
10914 typedef error_t ac__type_new_;
10915 int
10916 main ()
10917 {
10918 if ((ac__type_new_ *) 0)
10919   return 0;
10920 if (sizeof (ac__type_new_))
10921   return 0;
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 rm -f conftest.$ac_objext
10927 if { (ac_try="$ac_compile"
10928 case "(($ac_try" in
10929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930   *) ac_try_echo=$ac_try;;
10931 esac
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933   (eval "$ac_compile") 2>conftest.er1
10934   ac_status=$?
10935   grep -v '^ *+' conftest.er1 >conftest.err
10936   rm -f conftest.er1
10937   cat conftest.err >&5
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); } &&
10940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10941   { (case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_try") 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); }; } &&
10950          { ac_try='test -s conftest.$ac_objext'
10951   { (case "(($ac_try" in
10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953   *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956   (eval "$ac_try") 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; }; then
10960   ac_cv_type_error_t=yes
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965         ac_cv_type_error_t=no
10966 fi
10967
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 fi
10970 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10971 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10972 if test $ac_cv_type_error_t = yes; then
10973
10974 cat >>confdefs.h <<_ACEOF
10975 #define HAVE_ERROR_T 1
10976 _ACEOF
10977
10978
10979 else
10980
10981 cat >>confdefs.h <<\_ACEOF
10982 #define error_t int
10983 _ACEOF
10984
10985 fi
10986
10987
10988
10989
10990
10991
10992
10993 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10994 do
10995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001   cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h.  */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h.  */
11007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11009 #define $ac_func innocuous_$ac_func
11010
11011 /* System header to define __stub macros and hopefully few prototypes,
11012     which can conflict with char $ac_func (); below.
11013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11014     <limits.h> exists even on freestanding compilers.  */
11015
11016 #ifdef __STDC__
11017 # include <limits.h>
11018 #else
11019 # include <assert.h>
11020 #endif
11021
11022 #undef $ac_func
11023
11024 /* Override any GCC internal prototype to avoid an error.
11025    Use char because int might match the return type of a GCC
11026    builtin and then its argument prototype would still apply.  */
11027 #ifdef __cplusplus
11028 extern "C"
11029 #endif
11030 char $ac_func ();
11031 /* The GNU C library defines this for functions which it implements
11032     to always fail with ENOSYS.  Some functions are actually named
11033     something starting with __ and the normal name is an alias.  */
11034 #if defined __stub_$ac_func || defined __stub___$ac_func
11035 choke me
11036 #endif
11037
11038 int
11039 main ()
11040 {
11041 return $ac_func ();
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 rm -f conftest.$ac_objext conftest$ac_exeext
11047 if { (ac_try="$ac_link"
11048 case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053   (eval "$ac_link") 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } &&
11060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061   { (case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_try") 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; } &&
11070          { ac_try='test -s conftest$ac_exeext'
11071   { (case "(($ac_try" in
11072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073   *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076   (eval "$ac_try") 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; }; then
11080   eval "$as_ac_var=yes"
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085         eval "$as_ac_var=no"
11086 fi
11087
11088 rm -f core conftest.err conftest.$ac_objext \
11089       conftest$ac_exeext conftest.$ac_ext
11090 fi
11091 ac_res=`eval echo '${'$as_ac_var'}'`
11092                { echo "$as_me:$LINENO: result: $ac_res" >&5
11093 echo "${ECHO_T}$ac_res" >&6; }
11094 if test `eval echo '${'$as_ac_var'}'` = yes; then
11095   cat >>confdefs.h <<_ACEOF
11096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11097 _ACEOF
11098
11099 fi
11100 done
11101
11102
11103
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 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11130                   stdio.h unistd.h
11131 do
11132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11134   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 fi
11139 ac_res=`eval echo '${'$as_ac_Header'}'`
11140                { echo "$as_me:$LINENO: result: $ac_res" >&5
11141 echo "${ECHO_T}$ac_res" >&6; }
11142 else
11143   # Is the header compilable?
11144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h.  */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h.  */
11152 $ac_includes_default
11153 #include <$ac_header>
11154 _ACEOF
11155 rm -f conftest.$ac_objext
11156 if { (ac_try="$ac_compile"
11157 case "(($ac_try" in
11158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159   *) ac_try_echo=$ac_try;;
11160 esac
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162   (eval "$ac_compile") 2>conftest.er1
11163   ac_status=$?
11164   grep -v '^ *+' conftest.er1 >conftest.err
11165   rm -f conftest.er1
11166   cat conftest.err >&5
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); } &&
11169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11170   { (case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_try") 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; } &&
11179          { ac_try='test -s conftest.$ac_objext'
11180   { (case "(($ac_try" in
11181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182   *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185   (eval "$ac_try") 2>&5
11186   ac_status=$?
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); }; }; then
11189   ac_header_compiler=yes
11190 else
11191   echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194         ac_header_compiler=no
11195 fi
11196
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11199 echo "${ECHO_T}$ac_header_compiler" >&6; }
11200
11201 # Is the header present?
11202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 #include <$ac_header>
11211 _ACEOF
11212 if { (ac_try="$ac_cpp conftest.$ac_ext"
11213 case "(($ac_try" in
11214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215   *) ac_try_echo=$ac_try;;
11216 esac
11217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11219   ac_status=$?
11220   grep -v '^ *+' conftest.er1 >conftest.err
11221   rm -f conftest.er1
11222   cat conftest.err >&5
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } >/dev/null; then
11225   if test -s conftest.err; then
11226     ac_cpp_err=$ac_c_preproc_warn_flag
11227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11228   else
11229     ac_cpp_err=
11230   fi
11231 else
11232   ac_cpp_err=yes
11233 fi
11234 if test -z "$ac_cpp_err"; then
11235   ac_header_preproc=yes
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240   ac_header_preproc=no
11241 fi
11242
11243 rm -f conftest.err conftest.$ac_ext
11244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11245 echo "${ECHO_T}$ac_header_preproc" >&6; }
11246
11247 # So?  What about this header?
11248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11249   yes:no: )
11250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11254     ac_header_preproc=yes
11255     ;;
11256   no:yes:* )
11257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11269     ( cat <<\_ASBOX
11270 ## ------------------------------------ ##
11271 ## Report this to http://llvm.org/bugs/ ##
11272 ## ------------------------------------ ##
11273 _ASBOX
11274      ) | sed "s/^/$as_me: WARNING:     /" >&2
11275     ;;
11276 esac
11277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   eval "$as_ac_Header=\$ac_header_preproc"
11283 fi
11284 ac_res=`eval echo '${'$as_ac_Header'}'`
11285                { echo "$as_me:$LINENO: result: $ac_res" >&5
11286 echo "${ECHO_T}$ac_res" >&6; }
11287
11288 fi
11289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11290   cat >>confdefs.h <<_ACEOF
11291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11292 _ACEOF
11293
11294 fi
11295
11296 done
11297
11298
11299
11300
11301
11302 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11303 do
11304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 fi
11311 ac_res=`eval echo '${'$as_ac_Header'}'`
11312                { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 echo "${ECHO_T}$ac_res" >&6; }
11314 else
11315   # Is the header compilable?
11316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324 $ac_includes_default
11325 #include <$ac_header>
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_compile") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } &&
11341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342   { (case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_try") 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; } &&
11351          { ac_try='test -s conftest.$ac_objext'
11352   { (case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357   (eval "$ac_try") 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; }; then
11361   ac_header_compiler=yes
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366         ac_header_compiler=no
11367 fi
11368
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371 echo "${ECHO_T}$ac_header_compiler" >&6; }
11372
11373 # Is the header present?
11374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382 #include <$ac_header>
11383 _ACEOF
11384 if { (ac_try="$ac_cpp conftest.$ac_ext"
11385 case "(($ac_try" in
11386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387   *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } >/dev/null; then
11397   if test -s conftest.err; then
11398     ac_cpp_err=$ac_c_preproc_warn_flag
11399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400   else
11401     ac_cpp_err=
11402   fi
11403 else
11404   ac_cpp_err=yes
11405 fi
11406 if test -z "$ac_cpp_err"; then
11407   ac_header_preproc=yes
11408 else
11409   echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412   ac_header_preproc=no
11413 fi
11414
11415 rm -f conftest.err conftest.$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6; }
11418
11419 # So?  What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421   yes:no: )
11422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426     ac_header_preproc=yes
11427     ;;
11428   no:yes:* )
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11441     ( cat <<\_ASBOX
11442 ## ------------------------------------ ##
11443 ## Report this to http://llvm.org/bugs/ ##
11444 ## ------------------------------------ ##
11445 _ASBOX
11446      ) | sed "s/^/$as_me: WARNING:     /" >&2
11447     ;;
11448 esac
11449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452   echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454   eval "$as_ac_Header=\$ac_header_preproc"
11455 fi
11456 ac_res=`eval echo '${'$as_ac_Header'}'`
11457                { echo "$as_me:$LINENO: result: $ac_res" >&5
11458 echo "${ECHO_T}$ac_res" >&6; }
11459
11460 fi
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462   cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464 _ACEOF
11465
11466 fi
11467
11468 done
11469
11470
11471
11472 for ac_header in string.h strings.h
11473 do
11474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479   echo $ECHO_N "(cached) $ECHO_C" >&6
11480 fi
11481 ac_res=`eval echo '${'$as_ac_Header'}'`
11482                { echo "$as_me:$LINENO: result: $ac_res" >&5
11483 echo "${ECHO_T}$ac_res" >&6; }
11484 else
11485   # Is the header compilable?
11486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h.  */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h.  */
11494 $ac_includes_default
11495 #include <$ac_header>
11496 _ACEOF
11497 rm -f conftest.$ac_objext
11498 if { (ac_try="$ac_compile"
11499 case "(($ac_try" in
11500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501   *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504   (eval "$ac_compile") 2>conftest.er1
11505   ac_status=$?
11506   grep -v '^ *+' conftest.er1 >conftest.err
11507   rm -f conftest.er1
11508   cat conftest.err >&5
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } &&
11511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11512   { (case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_try") 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; } &&
11521          { ac_try='test -s conftest.$ac_objext'
11522   { (case "(($ac_try" in
11523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524   *) ac_try_echo=$ac_try;;
11525 esac
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527   (eval "$ac_try") 2>&5
11528   ac_status=$?
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); }; }; then
11531   ac_header_compiler=yes
11532 else
11533   echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11535
11536         ac_header_compiler=no
11537 fi
11538
11539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541 echo "${ECHO_T}$ac_header_compiler" >&6; }
11542
11543 # Is the header present?
11544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552 #include <$ac_header>
11553 _ACEOF
11554 if { (ac_try="$ac_cpp conftest.$ac_ext"
11555 case "(($ac_try" in
11556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557   *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } >/dev/null; then
11567   if test -s conftest.err; then
11568     ac_cpp_err=$ac_c_preproc_warn_flag
11569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11570   else
11571     ac_cpp_err=
11572   fi
11573 else
11574   ac_cpp_err=yes
11575 fi
11576 if test -z "$ac_cpp_err"; then
11577   ac_header_preproc=yes
11578 else
11579   echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582   ac_header_preproc=no
11583 fi
11584
11585 rm -f conftest.err conftest.$ac_ext
11586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11587 echo "${ECHO_T}$ac_header_preproc" >&6; }
11588
11589 # So?  What about this header?
11590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11591   yes:no: )
11592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11596     ac_header_preproc=yes
11597     ;;
11598   no:yes:* )
11599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11611     ( cat <<\_ASBOX
11612 ## ------------------------------------ ##
11613 ## Report this to http://llvm.org/bugs/ ##
11614 ## ------------------------------------ ##
11615 _ASBOX
11616      ) | sed "s/^/$as_me: WARNING:     /" >&2
11617     ;;
11618 esac
11619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11622   echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624   eval "$as_ac_Header=\$ac_header_preproc"
11625 fi
11626 ac_res=`eval echo '${'$as_ac_Header'}'`
11627                { echo "$as_me:$LINENO: result: $ac_res" >&5
11628 echo "${ECHO_T}$ac_res" >&6; }
11629
11630 fi
11631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11632   cat >>confdefs.h <<_ACEOF
11633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11634 _ACEOF
11635  break
11636 fi
11637
11638 done
11639
11640
11641
11642
11643 for ac_func in strchr index
11644 do
11645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h.  */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h.  */
11657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11659 #define $ac_func innocuous_$ac_func
11660
11661 /* System header to define __stub macros and hopefully few prototypes,
11662     which can conflict with char $ac_func (); below.
11663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11664     <limits.h> exists even on freestanding compilers.  */
11665
11666 #ifdef __STDC__
11667 # include <limits.h>
11668 #else
11669 # include <assert.h>
11670 #endif
11671
11672 #undef $ac_func
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675    Use char because int might match the return type of a GCC
11676    builtin and then its argument prototype would still apply.  */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 char $ac_func ();
11681 /* The GNU C library defines this for functions which it implements
11682     to always fail with ENOSYS.  Some functions are actually named
11683     something starting with __ and the normal name is an alias.  */
11684 #if defined __stub_$ac_func || defined __stub___$ac_func
11685 choke me
11686 #endif
11687
11688 int
11689 main ()
11690 {
11691 return $ac_func ();
11692   ;
11693   return 0;
11694 }
11695 _ACEOF
11696 rm -f conftest.$ac_objext conftest$ac_exeext
11697 if { (ac_try="$ac_link"
11698 case "(($ac_try" in
11699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700   *) ac_try_echo=$ac_try;;
11701 esac
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703   (eval "$ac_link") 2>conftest.er1
11704   ac_status=$?
11705   grep -v '^ *+' conftest.er1 >conftest.err
11706   rm -f conftest.er1
11707   cat conftest.err >&5
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } &&
11710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11711   { (case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_try") 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; } &&
11720          { ac_try='test -s conftest$ac_exeext'
11721   { (case "(($ac_try" in
11722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723   *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726   (eval "$ac_try") 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; }; then
11730   eval "$as_ac_var=yes"
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735         eval "$as_ac_var=no"
11736 fi
11737
11738 rm -f core conftest.err conftest.$ac_objext \
11739       conftest$ac_exeext conftest.$ac_ext
11740 fi
11741 ac_res=`eval echo '${'$as_ac_var'}'`
11742                { echo "$as_me:$LINENO: result: $ac_res" >&5
11743 echo "${ECHO_T}$ac_res" >&6; }
11744 if test `eval echo '${'$as_ac_var'}'` = yes; then
11745   cat >>confdefs.h <<_ACEOF
11746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11747 _ACEOF
11748  break
11749 fi
11750 done
11751
11752
11753
11754 for ac_func in strrchr rindex
11755 do
11756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11760   echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762   cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h.  */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h.  */
11768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11770 #define $ac_func innocuous_$ac_func
11771
11772 /* System header to define __stub macros and hopefully few prototypes,
11773     which can conflict with char $ac_func (); below.
11774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11775     <limits.h> exists even on freestanding compilers.  */
11776
11777 #ifdef __STDC__
11778 # include <limits.h>
11779 #else
11780 # include <assert.h>
11781 #endif
11782
11783 #undef $ac_func
11784
11785 /* Override any GCC internal prototype to avoid an error.
11786    Use char because int might match the return type of a GCC
11787    builtin and then its argument prototype would still apply.  */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 char $ac_func ();
11792 /* The GNU C library defines this for functions which it implements
11793     to always fail with ENOSYS.  Some functions are actually named
11794     something starting with __ and the normal name is an alias.  */
11795 #if defined __stub_$ac_func || defined __stub___$ac_func
11796 choke me
11797 #endif
11798
11799 int
11800 main ()
11801 {
11802 return $ac_func ();
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (ac_try="$ac_link"
11809 case "(($ac_try" in
11810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811   *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814   (eval "$ac_link") 2>conftest.er1
11815   ac_status=$?
11816   grep -v '^ *+' conftest.er1 >conftest.err
11817   rm -f conftest.er1
11818   cat conftest.err >&5
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); } &&
11821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822   { (case "(($ac_try" in
11823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824   *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827   (eval "$ac_try") 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; } &&
11831          { ac_try='test -s conftest$ac_exeext'
11832   { (case "(($ac_try" in
11833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834   *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837   (eval "$ac_try") 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; }; then
11841   eval "$as_ac_var=yes"
11842 else
11843   echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846         eval "$as_ac_var=no"
11847 fi
11848
11849 rm -f core conftest.err conftest.$ac_objext \
11850       conftest$ac_exeext conftest.$ac_ext
11851 fi
11852 ac_res=`eval echo '${'$as_ac_var'}'`
11853                { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11855 if test `eval echo '${'$as_ac_var'}'` = yes; then
11856   cat >>confdefs.h <<_ACEOF
11857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11858 _ACEOF
11859  break
11860 fi
11861 done
11862
11863
11864
11865 for ac_func in memcpy bcopy
11866 do
11867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871   echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873   cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11881 #define $ac_func innocuous_$ac_func
11882
11883 /* System header to define __stub macros and hopefully few prototypes,
11884     which can conflict with char $ac_func (); below.
11885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886     <limits.h> exists even on freestanding compilers.  */
11887
11888 #ifdef __STDC__
11889 # include <limits.h>
11890 #else
11891 # include <assert.h>
11892 #endif
11893
11894 #undef $ac_func
11895
11896 /* Override any GCC internal prototype to avoid an error.
11897    Use char because int might match the return type of a GCC
11898    builtin and then its argument prototype would still apply.  */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char $ac_func ();
11903 /* The GNU C library defines this for functions which it implements
11904     to always fail with ENOSYS.  Some functions are actually named
11905     something starting with __ and the normal name is an alias.  */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11907 choke me
11908 #endif
11909
11910 int
11911 main ()
11912 {
11913 return $ac_func ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922   *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925   (eval "$ac_link") 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest$ac_exeext'
11943   { (case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_try") 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   eval "$as_ac_var=yes"
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957         eval "$as_ac_var=no"
11958 fi
11959
11960 rm -f core conftest.err conftest.$ac_objext \
11961       conftest$ac_exeext conftest.$ac_ext
11962 fi
11963 ac_res=`eval echo '${'$as_ac_var'}'`
11964                { echo "$as_me:$LINENO: result: $ac_res" >&5
11965 echo "${ECHO_T}$ac_res" >&6; }
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967   cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969 _ACEOF
11970  break
11971 fi
11972 done
11973
11974
11975
11976 for ac_func in memmove strcmp
11977 do
11978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11992 #define $ac_func innocuous_$ac_func
11993
11994 /* System header to define __stub macros and hopefully few prototypes,
11995     which can conflict with char $ac_func (); below.
11996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997     <limits.h> exists even on freestanding compilers.  */
11998
11999 #ifdef __STDC__
12000 # include <limits.h>
12001 #else
12002 # include <assert.h>
12003 #endif
12004
12005 #undef $ac_func
12006
12007 /* Override any GCC internal prototype to avoid an error.
12008    Use char because int might match the return type of a GCC
12009    builtin and then its argument prototype would still apply.  */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 char $ac_func ();
12014 /* The GNU C library defines this for functions which it implements
12015     to always fail with ENOSYS.  Some functions are actually named
12016     something starting with __ and the normal name is an alias.  */
12017 #if defined __stub_$ac_func || defined __stub___$ac_func
12018 choke me
12019 #endif
12020
12021 int
12022 main ()
12023 {
12024 return $ac_func ();
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (ac_try="$ac_link"
12031 case "(($ac_try" in
12032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033   *) ac_try_echo=$ac_try;;
12034 esac
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036   (eval "$ac_link") 2>conftest.er1
12037   ac_status=$?
12038   grep -v '^ *+' conftest.er1 >conftest.err
12039   rm -f conftest.er1
12040   cat conftest.err >&5
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); } &&
12043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044   { (case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_try") 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; } &&
12053          { ac_try='test -s conftest$ac_exeext'
12054   { (case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_try") 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; }; then
12063   eval "$as_ac_var=yes"
12064 else
12065   echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068         eval "$as_ac_var=no"
12069 fi
12070
12071 rm -f core conftest.err conftest.$ac_objext \
12072       conftest$ac_exeext conftest.$ac_ext
12073 fi
12074 ac_res=`eval echo '${'$as_ac_var'}'`
12075                { echo "$as_me:$LINENO: result: $ac_res" >&5
12076 echo "${ECHO_T}$ac_res" >&6; }
12077 if test `eval echo '${'$as_ac_var'}'` = yes; then
12078   cat >>confdefs.h <<_ACEOF
12079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12080 _ACEOF
12081
12082 fi
12083 done
12084
12085
12086
12087
12088 for ac_func in closedir opendir readdir
12089 do
12090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096   cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h.  */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h.  */
12102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12104 #define $ac_func innocuous_$ac_func
12105
12106 /* System header to define __stub macros and hopefully few prototypes,
12107     which can conflict with char $ac_func (); below.
12108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12109     <limits.h> exists even on freestanding compilers.  */
12110
12111 #ifdef __STDC__
12112 # include <limits.h>
12113 #else
12114 # include <assert.h>
12115 #endif
12116
12117 #undef $ac_func
12118
12119 /* Override any GCC internal prototype to avoid an error.
12120    Use char because int might match the return type of a GCC
12121    builtin and then its argument prototype would still apply.  */
12122 #ifdef __cplusplus
12123 extern "C"
12124 #endif
12125 char $ac_func ();
12126 /* The GNU C library defines this for functions which it implements
12127     to always fail with ENOSYS.  Some functions are actually named
12128     something starting with __ and the normal name is an alias.  */
12129 #if defined __stub_$ac_func || defined __stub___$ac_func
12130 choke me
12131 #endif
12132
12133 int
12134 main ()
12135 {
12136 return $ac_func ();
12137   ;
12138   return 0;
12139 }
12140 _ACEOF
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (ac_try="$ac_link"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_link") 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest$ac_exeext'
12166   { (case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_try") 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; }; then
12175   eval "$as_ac_var=yes"
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180         eval "$as_ac_var=no"
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext \
12184       conftest$ac_exeext conftest.$ac_ext
12185 fi
12186 ac_res=`eval echo '${'$as_ac_var'}'`
12187                { echo "$as_me:$LINENO: result: $ac_res" >&5
12188 echo "${ECHO_T}$ac_res" >&6; }
12189 if test `eval echo '${'$as_ac_var'}'` = yes; then
12190   cat >>confdefs.h <<_ACEOF
12191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12192 _ACEOF
12193
12194 fi
12195 done
12196
12197
12198
12199 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12200 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12201
12202 ICC=no
12203 IXX=no
12204 case $CC in
12205   icc*|icpc*)
12206     ICC=yes
12207     IXX=yes
12208     ;;
12209    *)
12210     ;;
12211 esac
12212
12213 if test "$GCC" != "yes" && test "$ICC" != "yes"
12214 then
12215   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12216 echo "$as_me: error: gcc|icc required but not found" >&2;}
12217    { (exit 1); exit 1; }; }
12218 fi
12219
12220 if test "$GXX" != "yes" && test "$IXX" != "yes"
12221 then
12222   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12223 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12224    { (exit 1); exit 1; }; }
12225 fi
12226
12227 if test "$GCC" = "yes"
12228 then
12229   cat >conftest.$ac_ext <<_ACEOF
12230
12231   /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236
12237     #if !defined(__GNUC__) || __GNUC__ < 3
12238     #error Unsupported GCC version
12239     #endif
12240
12241
12242 _ACEOF
12243 rm -f conftest.$ac_objext
12244 if { (ac_try="$ac_compile"
12245 case "(($ac_try" in
12246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247   *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250   (eval "$ac_compile") 2>conftest.er1
12251   ac_status=$?
12252   grep -v '^ *+' conftest.er1 >conftest.err
12253   rm -f conftest.er1
12254   cat conftest.err >&5
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258   { (case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_try") 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; } &&
12267          { ac_try='test -s conftest.$ac_objext'
12268   { (case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_try") 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; }; then
12277   :
12278 else
12279   echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12283 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12284    { (exit 1); exit 1; }; }
12285 fi
12286
12287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288 fi
12289
12290 if test -z "$llvm_cv_gnu_make_command"
12291 then
12292   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12293 echo "$as_me: error: GNU Make required but not found" >&2;}
12294    { (exit 1); exit 1; }; }
12295 fi
12296
12297 { echo "$as_me:$LINENO: result: ok" >&5
12298 echo "${ECHO_T}ok" >&6; }
12299
12300 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12301 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12302 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12303
12304 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12305
12306 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12307
12308
12309 NO_UNINITIALIZED=
12310 NO_MAYBE_UNINITIALIZED=
12311 if test "$GXX" = "yes"
12312 then
12313   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12314
12315         if test -z "$NO_MAYBE_UNINITIALIZED"
12316   then
12317     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12318
12319   fi
12320 fi
12321 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12322 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12323
12324
12325 # Check whether --with-python was given.
12326 if test "${with_python+set}" = set; then
12327   withval=$with_python; PYTHON="$withval"
12328 fi
12329
12330
12331 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12332   { echo "$as_me:$LINENO: checking for python" >&5
12333 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12334   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12335 echo "${ECHO_T}user defined: $with_python" >&6; }
12336 else
12337   if test -n "$PYTHON" ; then
12338     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12339 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12340   fi
12341
12342   # Extract the first word of "python python2 python26", so it can be a program name with args.
12343 set dummy python python2 python26; ac_word=$2
12344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12346 if test "${ac_cv_path_PYTHON+set}" = set; then
12347   echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349   case $PYTHON in
12350   [\\/]* | ?:[\\/]*)
12351   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12352   ;;
12353   *)
12354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12356 do
12357   IFS=$as_save_IFS
12358   test -z "$as_dir" && as_dir=.
12359   for ac_exec_ext in '' $ac_executable_extensions; do
12360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12361     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12363     break 2
12364   fi
12365 done
12366 done
12367 IFS=$as_save_IFS
12368
12369   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12370 echo "${ECHO_T}not found" >&6; }
12371                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12372 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12373    { (exit 1); exit 1; }; }"
12374   ;;
12375 esac
12376 fi
12377 PYTHON=$ac_cv_path_PYTHON
12378 if test -n "$PYTHON"; then
12379   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12380 echo "${ECHO_T}$PYTHON" >&6; }
12381 else
12382   { echo "$as_me:$LINENO: result: no" >&5
12383 echo "${ECHO_T}no" >&6; }
12384 fi
12385
12386
12387 fi
12388
12389 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12390 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12391 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12392 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12393 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12394 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12395 if   test "$ac_python_version_major" -eq "2" \
12396    && test "$ac_python_version_minor" -ge "5" ; then
12397   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12398 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12399 else
12400   { echo "$as_me:$LINENO: result: not found" >&5
12401 echo "${ECHO_T}not found" >&6; }
12402   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12403 See \`config.log' for more details." >&5
12404 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12405 See \`config.log' for more details." >&2;}
12406    { (exit 1); exit 1; }; }
12407 fi
12408
12409
12410
12411 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12412 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12413 if test "${ac_cv_lib_m_sin+set}" = set; then
12414   echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416   ac_check_lib_save_LIBS=$LIBS
12417 LIBS="-lm  $LIBS"
12418 cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h.  */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h.  */
12424
12425 /* Override any GCC internal prototype to avoid an error.
12426    Use char because int might match the return type of a GCC
12427    builtin and then its argument prototype would still apply.  */
12428 #ifdef __cplusplus
12429 extern "C"
12430 #endif
12431 char sin ();
12432 int
12433 main ()
12434 {
12435 return sin ();
12436   ;
12437   return 0;
12438 }
12439 _ACEOF
12440 rm -f conftest.$ac_objext conftest$ac_exeext
12441 if { (ac_try="$ac_link"
12442 case "(($ac_try" in
12443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444   *) ac_try_echo=$ac_try;;
12445 esac
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447   (eval "$ac_link") 2>conftest.er1
12448   ac_status=$?
12449   grep -v '^ *+' conftest.er1 >conftest.err
12450   rm -f conftest.er1
12451   cat conftest.err >&5
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); } &&
12454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12455   { (case "(($ac_try" in
12456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457   *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460   (eval "$ac_try") 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); }; } &&
12464          { ac_try='test -s conftest$ac_exeext'
12465   { (case "(($ac_try" in
12466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467   *) ac_try_echo=$ac_try;;
12468 esac
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470   (eval "$ac_try") 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); }; }; then
12474   ac_cv_lib_m_sin=yes
12475 else
12476   echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479         ac_cv_lib_m_sin=no
12480 fi
12481
12482 rm -f core conftest.err conftest.$ac_objext \
12483       conftest$ac_exeext conftest.$ac_ext
12484 LIBS=$ac_check_lib_save_LIBS
12485 fi
12486 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12487 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12488 if test $ac_cv_lib_m_sin = yes; then
12489   cat >>confdefs.h <<_ACEOF
12490 #define HAVE_LIBM 1
12491 _ACEOF
12492
12493   LIBS="-lm $LIBS"
12494
12495 fi
12496
12497 if test "$llvm_cv_os_type" = "MingW" ; then
12498
12499 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12500 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12501 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   ac_check_lib_save_LIBS=$LIBS
12505 LIBS="-limagehlp  $LIBS"
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512
12513
12514 int
12515 main ()
12516 {
12517 return main ();
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 rm -f conftest.$ac_objext conftest$ac_exeext
12523 if { (ac_try="$ac_link"
12524 case "(($ac_try" in
12525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526   *) ac_try_echo=$ac_try;;
12527 esac
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529   (eval "$ac_link") 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } &&
12536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537   { (case "(($ac_try" in
12538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539   *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542   (eval "$ac_try") 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; } &&
12546          { ac_try='test -s conftest$ac_exeext'
12547   { (case "(($ac_try" in
12548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549   *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552   (eval "$ac_try") 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; }; then
12556   ac_cv_lib_imagehlp_main=yes
12557 else
12558   echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561         ac_cv_lib_imagehlp_main=no
12562 fi
12563
12564 rm -f core conftest.err conftest.$ac_objext \
12565       conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12567 fi
12568 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12569 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12570 if test $ac_cv_lib_imagehlp_main = yes; then
12571   cat >>confdefs.h <<_ACEOF
12572 #define HAVE_LIBIMAGEHLP 1
12573 _ACEOF
12574
12575   LIBS="-limagehlp $LIBS"
12576
12577 fi
12578
12579
12580 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12581 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12582 if test "${ac_cv_lib_psapi_main+set}" = set; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585   ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-lpsapi  $LIBS"
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594
12595 int
12596 main ()
12597 {
12598 return main ();
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607   *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610   (eval "$ac_link") 2>conftest.er1
12611   ac_status=$?
12612   grep -v '^ *+' conftest.er1 >conftest.err
12613   rm -f conftest.er1
12614   cat conftest.err >&5
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); } &&
12617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12618   { (case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_try") 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; } &&
12627          { ac_try='test -s conftest$ac_exeext'
12628   { (case "(($ac_try" in
12629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630   *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633   (eval "$ac_try") 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); }; }; then
12637   ac_cv_lib_psapi_main=yes
12638 else
12639   echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642         ac_cv_lib_psapi_main=no
12643 fi
12644
12645 rm -f core conftest.err conftest.$ac_objext \
12646       conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12648 fi
12649 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12650 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12651 if test $ac_cv_lib_psapi_main = yes; then
12652   cat >>confdefs.h <<_ACEOF
12653 #define HAVE_LIBPSAPI 1
12654 _ACEOF
12655
12656   LIBS="-lpsapi $LIBS"
12657
12658 fi
12659
12660 fi
12661
12662 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12663 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12664 if test "${ac_cv_search_dlopen+set}" = set; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   ac_func_search_save_LIBS=$LIBS
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h.  */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h.  */
12674
12675 /* Override any GCC internal prototype to avoid an error.
12676    Use char because int might match the return type of a GCC
12677    builtin and then its argument prototype would still apply.  */
12678 #ifdef __cplusplus
12679 extern "C"
12680 #endif
12681 char dlopen ();
12682 int
12683 main ()
12684 {
12685 return dlopen ();
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 for ac_lib in '' dl; do
12691   if test -z "$ac_lib"; then
12692     ac_res="none required"
12693   else
12694     ac_res=-l$ac_lib
12695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12696   fi
12697   rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_link") 2>conftest.er1
12705   ac_status=$?
12706   grep -v '^ *+' conftest.er1 >conftest.err
12707   rm -f conftest.er1
12708   cat conftest.err >&5
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); } &&
12711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12712   { (case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_try") 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; } &&
12721          { ac_try='test -s conftest$ac_exeext'
12722   { (case "(($ac_try" in
12723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724   *) ac_try_echo=$ac_try;;
12725 esac
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727   (eval "$ac_try") 2>&5
12728   ac_status=$?
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); }; }; then
12731   ac_cv_search_dlopen=$ac_res
12732 else
12733   echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12735
12736
12737 fi
12738
12739 rm -f core conftest.err conftest.$ac_objext \
12740       conftest$ac_exeext
12741   if test "${ac_cv_search_dlopen+set}" = set; then
12742   break
12743 fi
12744 done
12745 if test "${ac_cv_search_dlopen+set}" = set; then
12746   :
12747 else
12748   ac_cv_search_dlopen=no
12749 fi
12750 rm conftest.$ac_ext
12751 LIBS=$ac_func_search_save_LIBS
12752 fi
12753 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12754 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12755 ac_res=$ac_cv_search_dlopen
12756 if test "$ac_res" != no; then
12757   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12758
12759 cat >>confdefs.h <<\_ACEOF
12760 #define HAVE_DLOPEN 1
12761 _ACEOF
12762
12763 else
12764   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12765 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12766 fi
12767
12768
12769 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12770 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12771 if test "${ac_cv_search_clock_gettime+set}" = set; then
12772   echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774   ac_func_search_save_LIBS=$LIBS
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781
12782 /* Override any GCC internal prototype to avoid an error.
12783    Use char because int might match the return type of a GCC
12784    builtin and then its argument prototype would still apply.  */
12785 #ifdef __cplusplus
12786 extern "C"
12787 #endif
12788 char clock_gettime ();
12789 int
12790 main ()
12791 {
12792 return clock_gettime ();
12793   ;
12794   return 0;
12795 }
12796 _ACEOF
12797 for ac_lib in '' rt; do
12798   if test -z "$ac_lib"; then
12799     ac_res="none required"
12800   else
12801     ac_res=-l$ac_lib
12802     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12803   fi
12804   rm -f conftest.$ac_objext conftest$ac_exeext
12805 if { (ac_try="$ac_link"
12806 case "(($ac_try" in
12807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808   *) ac_try_echo=$ac_try;;
12809 esac
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811   (eval "$ac_link") 2>conftest.er1
12812   ac_status=$?
12813   grep -v '^ *+' conftest.er1 >conftest.err
12814   rm -f conftest.er1
12815   cat conftest.err >&5
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); } &&
12818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12819   { (case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824   (eval "$ac_try") 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; } &&
12828          { ac_try='test -s conftest$ac_exeext'
12829   { (case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834   (eval "$ac_try") 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; }; then
12838   ac_cv_search_clock_gettime=$ac_res
12839 else
12840   echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843
12844 fi
12845
12846 rm -f core conftest.err conftest.$ac_objext \
12847       conftest$ac_exeext
12848   if test "${ac_cv_search_clock_gettime+set}" = set; then
12849   break
12850 fi
12851 done
12852 if test "${ac_cv_search_clock_gettime+set}" = set; then
12853   :
12854 else
12855   ac_cv_search_clock_gettime=no
12856 fi
12857 rm conftest.$ac_ext
12858 LIBS=$ac_func_search_save_LIBS
12859 fi
12860 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12861 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12862 ac_res=$ac_cv_search_clock_gettime
12863 if test "$ac_res" != no; then
12864   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12865
12866 fi
12867
12868
12869 if test "$llvm_cv_enable_libffi" = "yes" ; then
12870   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12871 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12872 if test "${ac_cv_search_ffi_call+set}" = set; then
12873   echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875   ac_func_search_save_LIBS=$LIBS
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h.  */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h.  */
12882
12883 /* Override any GCC internal prototype to avoid an error.
12884    Use char because int might match the return type of a GCC
12885    builtin and then its argument prototype would still apply.  */
12886 #ifdef __cplusplus
12887 extern "C"
12888 #endif
12889 char ffi_call ();
12890 int
12891 main ()
12892 {
12893 return ffi_call ();
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 for ac_lib in '' ffi; do
12899   if test -z "$ac_lib"; then
12900     ac_res="none required"
12901   else
12902     ac_res=-l$ac_lib
12903     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12904   fi
12905   rm -f conftest.$ac_objext conftest$ac_exeext
12906 if { (ac_try="$ac_link"
12907 case "(($ac_try" in
12908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909   *) ac_try_echo=$ac_try;;
12910 esac
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912   (eval "$ac_link") 2>conftest.er1
12913   ac_status=$?
12914   grep -v '^ *+' conftest.er1 >conftest.err
12915   rm -f conftest.er1
12916   cat conftest.err >&5
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } &&
12919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12920   { (case "(($ac_try" in
12921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922   *) ac_try_echo=$ac_try;;
12923 esac
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925   (eval "$ac_try") 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); }; } &&
12929          { ac_try='test -s conftest$ac_exeext'
12930   { (case "(($ac_try" in
12931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932   *) ac_try_echo=$ac_try;;
12933 esac
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935   (eval "$ac_try") 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); }; }; then
12939   ac_cv_search_ffi_call=$ac_res
12940 else
12941   echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944
12945 fi
12946
12947 rm -f core conftest.err conftest.$ac_objext \
12948       conftest$ac_exeext
12949   if test "${ac_cv_search_ffi_call+set}" = set; then
12950   break
12951 fi
12952 done
12953 if test "${ac_cv_search_ffi_call+set}" = set; then
12954   :
12955 else
12956   ac_cv_search_ffi_call=no
12957 fi
12958 rm conftest.$ac_ext
12959 LIBS=$ac_func_search_save_LIBS
12960 fi
12961 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12962 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12963 ac_res=$ac_cv_search_ffi_call
12964 if test "$ac_res" != no; then
12965   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12966
12967 cat >>confdefs.h <<\_ACEOF
12968 #define HAVE_FFI_CALL 1
12969 _ACEOF
12970
12971 else
12972   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12973 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12974    { (exit 1); exit 1; }; }
12975 fi
12976
12977 fi
12978
12979 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12980 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12981 if test "${ac_cv_search_mallinfo+set}" = set; then
12982   echo $ECHO_N "(cached) $ECHO_C" >&6
12983 else
12984   ac_func_search_save_LIBS=$LIBS
12985 cat >conftest.$ac_ext <<_ACEOF
12986 /* confdefs.h.  */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h.  */
12991
12992 /* Override any GCC internal prototype to avoid an error.
12993    Use char because int might match the return type of a GCC
12994    builtin and then its argument prototype would still apply.  */
12995 #ifdef __cplusplus
12996 extern "C"
12997 #endif
12998 char mallinfo ();
12999 int
13000 main ()
13001 {
13002 return mallinfo ();
13003   ;
13004   return 0;
13005 }
13006 _ACEOF
13007 for ac_lib in '' malloc; do
13008   if test -z "$ac_lib"; then
13009     ac_res="none required"
13010   else
13011     ac_res=-l$ac_lib
13012     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13013   fi
13014   rm -f conftest.$ac_objext conftest$ac_exeext
13015 if { (ac_try="$ac_link"
13016 case "(($ac_try" in
13017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018   *) ac_try_echo=$ac_try;;
13019 esac
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021   (eval "$ac_link") 2>conftest.er1
13022   ac_status=$?
13023   grep -v '^ *+' conftest.er1 >conftest.err
13024   rm -f conftest.er1
13025   cat conftest.err >&5
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); } &&
13028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13029   { (case "(($ac_try" in
13030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031   *) ac_try_echo=$ac_try;;
13032 esac
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034   (eval "$ac_try") 2>&5
13035   ac_status=$?
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); }; } &&
13038          { ac_try='test -s conftest$ac_exeext'
13039   { (case "(($ac_try" in
13040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041   *) ac_try_echo=$ac_try;;
13042 esac
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044   (eval "$ac_try") 2>&5
13045   ac_status=$?
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); }; }; then
13048   ac_cv_search_mallinfo=$ac_res
13049 else
13050   echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053
13054 fi
13055
13056 rm -f core conftest.err conftest.$ac_objext \
13057       conftest$ac_exeext
13058   if test "${ac_cv_search_mallinfo+set}" = set; then
13059   break
13060 fi
13061 done
13062 if test "${ac_cv_search_mallinfo+set}" = set; then
13063   :
13064 else
13065   ac_cv_search_mallinfo=no
13066 fi
13067 rm conftest.$ac_ext
13068 LIBS=$ac_func_search_save_LIBS
13069 fi
13070 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13071 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13072 ac_res=$ac_cv_search_mallinfo
13073 if test "$ac_res" != no; then
13074   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13075
13076 cat >>confdefs.h <<\_ACEOF
13077 #define HAVE_MALLINFO 1
13078 _ACEOF
13079
13080 fi
13081
13082
13083 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13084
13085 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13086 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13087 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lpthread  $LIBS"
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h.  */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h.  */
13098
13099 /* Override any GCC internal prototype to avoid an error.
13100    Use char because int might match the return type of a GCC
13101    builtin and then its argument prototype would still apply.  */
13102 #ifdef __cplusplus
13103 extern "C"
13104 #endif
13105 char pthread_mutex_init ();
13106 int
13107 main ()
13108 {
13109 return pthread_mutex_init ();
13110   ;
13111   return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (ac_try="$ac_link"
13116 case "(($ac_try" in
13117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118   *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121   (eval "$ac_link") 2>conftest.er1
13122   ac_status=$?
13123   grep -v '^ *+' conftest.er1 >conftest.err
13124   rm -f conftest.er1
13125   cat conftest.err >&5
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } &&
13128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13129   { (case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_try") 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }; } &&
13138          { ac_try='test -s conftest$ac_exeext'
13139   { (case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144   (eval "$ac_try") 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; }; then
13148   ac_cv_lib_pthread_pthread_mutex_init=yes
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153         ac_cv_lib_pthread_pthread_mutex_init=no
13154 fi
13155
13156 rm -f core conftest.err conftest.$ac_objext \
13157       conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_lib_save_LIBS
13159 fi
13160 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13161 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13162 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13163   cat >>confdefs.h <<_ACEOF
13164 #define HAVE_LIBPTHREAD 1
13165 _ACEOF
13166
13167   LIBS="-lpthread $LIBS"
13168
13169 fi
13170
13171   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13172 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13173 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13174   echo $ECHO_N "(cached) $ECHO_C" >&6
13175 else
13176   ac_func_search_save_LIBS=$LIBS
13177 cat >conftest.$ac_ext <<_ACEOF
13178 /* confdefs.h.  */
13179 _ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h.  */
13183
13184 /* Override any GCC internal prototype to avoid an error.
13185    Use char because int might match the return type of a GCC
13186    builtin and then its argument prototype would still apply.  */
13187 #ifdef __cplusplus
13188 extern "C"
13189 #endif
13190 char pthread_mutex_lock ();
13191 int
13192 main ()
13193 {
13194 return pthread_mutex_lock ();
13195   ;
13196   return 0;
13197 }
13198 _ACEOF
13199 for ac_lib in '' pthread; do
13200   if test -z "$ac_lib"; then
13201     ac_res="none required"
13202   else
13203     ac_res=-l$ac_lib
13204     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13205   fi
13206   rm -f conftest.$ac_objext conftest$ac_exeext
13207 if { (ac_try="$ac_link"
13208 case "(($ac_try" in
13209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210   *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213   (eval "$ac_link") 2>conftest.er1
13214   ac_status=$?
13215   grep -v '^ *+' conftest.er1 >conftest.err
13216   rm -f conftest.er1
13217   cat conftest.err >&5
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); } &&
13220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13221   { (case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_try") 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; } &&
13230          { ac_try='test -s conftest$ac_exeext'
13231   { (case "(($ac_try" in
13232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233   *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236   (eval "$ac_try") 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; }; then
13240   ac_cv_search_pthread_mutex_lock=$ac_res
13241 else
13242   echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245
13246 fi
13247
13248 rm -f core conftest.err conftest.$ac_objext \
13249       conftest$ac_exeext
13250   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13251   break
13252 fi
13253 done
13254 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13255   :
13256 else
13257   ac_cv_search_pthread_mutex_lock=no
13258 fi
13259 rm conftest.$ac_ext
13260 LIBS=$ac_func_search_save_LIBS
13261 fi
13262 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13263 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13264 ac_res=$ac_cv_search_pthread_mutex_lock
13265 if test "$ac_res" != no; then
13266   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13267
13268 cat >>confdefs.h <<\_ACEOF
13269 #define HAVE_PTHREAD_MUTEX_LOCK 1
13270 _ACEOF
13271
13272 fi
13273
13274   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13275 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13276 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13277   echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279   ac_func_search_save_LIBS=$LIBS
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288    Use char because int might match the return type of a GCC
13289    builtin and then its argument prototype would still apply.  */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char pthread_rwlock_init ();
13294 int
13295 main ()
13296 {
13297 return pthread_rwlock_init ();
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 for ac_lib in '' pthread; do
13303   if test -z "$ac_lib"; then
13304     ac_res="none required"
13305   else
13306     ac_res=-l$ac_lib
13307     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13308   fi
13309   rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (ac_try="$ac_link"
13311 case "(($ac_try" in
13312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313   *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316   (eval "$ac_link") 2>conftest.er1
13317   ac_status=$?
13318   grep -v '^ *+' conftest.er1 >conftest.err
13319   rm -f conftest.er1
13320   cat conftest.err >&5
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); } &&
13323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13324   { (case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_try") 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; } &&
13333          { ac_try='test -s conftest$ac_exeext'
13334   { (case "(($ac_try" in
13335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336   *) ac_try_echo=$ac_try;;
13337 esac
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339   (eval "$ac_try") 2>&5
13340   ac_status=$?
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); }; }; then
13343   ac_cv_search_pthread_rwlock_init=$ac_res
13344 else
13345   echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13347
13348
13349 fi
13350
13351 rm -f core conftest.err conftest.$ac_objext \
13352       conftest$ac_exeext
13353   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13354   break
13355 fi
13356 done
13357 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13358   :
13359 else
13360   ac_cv_search_pthread_rwlock_init=no
13361 fi
13362 rm conftest.$ac_ext
13363 LIBS=$ac_func_search_save_LIBS
13364 fi
13365 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13366 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13367 ac_res=$ac_cv_search_pthread_rwlock_init
13368 if test "$ac_res" != no; then
13369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13370
13371 cat >>confdefs.h <<\_ACEOF
13372 #define HAVE_PTHREAD_RWLOCK_INIT 1
13373 _ACEOF
13374
13375 fi
13376
13377   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13378 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13379 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   ac_func_search_save_LIBS=$LIBS
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h.  */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h.  */
13389
13390 /* Override any GCC internal prototype to avoid an error.
13391    Use char because int might match the return type of a GCC
13392    builtin and then its argument prototype would still apply.  */
13393 #ifdef __cplusplus
13394 extern "C"
13395 #endif
13396 char pthread_getspecific ();
13397 int
13398 main ()
13399 {
13400 return pthread_getspecific ();
13401   ;
13402   return 0;
13403 }
13404 _ACEOF
13405 for ac_lib in '' pthread; do
13406   if test -z "$ac_lib"; then
13407     ac_res="none required"
13408   else
13409     ac_res=-l$ac_lib
13410     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13411   fi
13412   rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_link") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest$ac_exeext'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_cv_search_pthread_getspecific=$ac_res
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext \
13455       conftest$ac_exeext
13456   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13457   break
13458 fi
13459 done
13460 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13461   :
13462 else
13463   ac_cv_search_pthread_getspecific=no
13464 fi
13465 rm conftest.$ac_ext
13466 LIBS=$ac_func_search_save_LIBS
13467 fi
13468 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13469 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13470 ac_res=$ac_cv_search_pthread_getspecific
13471 if test "$ac_res" != no; then
13472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_PTHREAD_GETSPECIFIC 1
13476 _ACEOF
13477
13478 fi
13479
13480 fi
13481
13482 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13483
13484 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13485 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13486 if test "${ac_cv_lib_z_compress2+set}" = set; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   ac_check_lib_save_LIBS=$LIBS
13490 LIBS="-lz  $LIBS"
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497
13498 /* Override any GCC internal prototype to avoid an error.
13499    Use char because int might match the return type of a GCC
13500    builtin and then its argument prototype would still apply.  */
13501 #ifdef __cplusplus
13502 extern "C"
13503 #endif
13504 char compress2 ();
13505 int
13506 main ()
13507 {
13508 return compress2 ();
13509   ;
13510   return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517   *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520   (eval "$ac_link") 2>conftest.er1
13521   ac_status=$?
13522   grep -v '^ *+' conftest.er1 >conftest.err
13523   rm -f conftest.er1
13524   cat conftest.err >&5
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } &&
13527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528   { (case "(($ac_try" in
13529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530   *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533   (eval "$ac_try") 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; } &&
13537          { ac_try='test -s conftest$ac_exeext'
13538   { (case "(($ac_try" in
13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540   *) ac_try_echo=$ac_try;;
13541 esac
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543   (eval "$ac_try") 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547   ac_cv_lib_z_compress2=yes
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552         ac_cv_lib_z_compress2=no
13553 fi
13554
13555 rm -f core conftest.err conftest.$ac_objext \
13556       conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13558 fi
13559 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13560 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13561 if test $ac_cv_lib_z_compress2 = yes; then
13562   cat >>confdefs.h <<_ACEOF
13563 #define HAVE_LIBZ 1
13564 _ACEOF
13565
13566   LIBS="-lz $LIBS"
13567
13568 fi
13569
13570 fi
13571
13572
13573 # Check whether --with-udis86 was given.
13574 if test "${with_udis86+set}" = set; then
13575   withval=$with_udis86;
13576       USE_UDIS86=1
13577
13578       case "$withval" in
13579         /usr/lib|yes) ;;
13580         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13581       esac
13582
13583 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13584 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13585 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13586   echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588   ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-ludis86  $LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h.  */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h.  */
13596
13597 /* Override any GCC internal prototype to avoid an error.
13598    Use char because int might match the return type of a GCC
13599    builtin and then its argument prototype would still apply.  */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 char ud_init ();
13604 int
13605 main ()
13606 {
13607 return ud_init ();
13608   ;
13609   return 0;
13610 }
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (ac_try="$ac_link"
13614 case "(($ac_try" in
13615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616   *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619   (eval "$ac_link") 2>conftest.er1
13620   ac_status=$?
13621   grep -v '^ *+' conftest.er1 >conftest.err
13622   rm -f conftest.er1
13623   cat conftest.err >&5
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); } &&
13626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13627   { (case "(($ac_try" in
13628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629   *) ac_try_echo=$ac_try;;
13630 esac
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632   (eval "$ac_try") 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; } &&
13636          { ac_try='test -s conftest$ac_exeext'
13637   { (case "(($ac_try" in
13638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639   *) ac_try_echo=$ac_try;;
13640 esac
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642   (eval "$ac_try") 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); }; }; then
13646   ac_cv_lib_udis86_ud_init=yes
13647 else
13648   echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651         ac_cv_lib_udis86_ud_init=no
13652 fi
13653
13654 rm -f core conftest.err conftest.$ac_objext \
13655       conftest$ac_exeext conftest.$ac_ext
13656 LIBS=$ac_check_lib_save_LIBS
13657 fi
13658 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13659 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13660 if test $ac_cv_lib_udis86_ud_init = yes; then
13661   cat >>confdefs.h <<_ACEOF
13662 #define HAVE_LIBUDIS86 1
13663 _ACEOF
13664
13665   LIBS="-ludis86 $LIBS"
13666
13667 else
13668
13669         echo "Error! You need to have libudis86 around."
13670         exit -1
13671
13672 fi
13673
13674
13675 else
13676   USE_UDIS86=0
13677
13678 fi
13679
13680
13681 cat >>confdefs.h <<_ACEOF
13682 #define USE_UDIS86 $USE_UDIS86
13683 _ACEOF
13684
13685
13686
13687 # Check whether --with-oprofile was given.
13688 if test "${with_oprofile+set}" = set; then
13689   withval=$with_oprofile;
13690       USE_OPROFILE=1
13691
13692       case "$withval" in
13693         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13694         no) llvm_cv_oppath=
13695             USE_OPROFILE=0
13696  ;;
13697         *) llvm_cv_oppath="${withval}/lib/oprofile"
13698            CPPFLAGS="-I${withval}/include";;
13699       esac
13700       case $llvm_cv_os_type in
13701         Linux)
13702           if test -n "$llvm_cv_oppath" ; then
13703             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13704                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13705 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13706 if test "${ac_cv_search_bfd_init+set}" = set; then
13707   echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709   ac_func_search_save_LIBS=$LIBS
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h.  */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h.  */
13716
13717 /* Override any GCC internal prototype to avoid an error.
13718    Use char because int might match the return type of a GCC
13719    builtin and then its argument prototype would still apply.  */
13720 #ifdef __cplusplus
13721 extern "C"
13722 #endif
13723 char bfd_init ();
13724 int
13725 main ()
13726 {
13727 return bfd_init ();
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 for ac_lib in '' bfd; do
13733   if test -z "$ac_lib"; then
13734     ac_res="none required"
13735   else
13736     ac_res=-l$ac_lib
13737     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13738   fi
13739   rm -f conftest.$ac_objext conftest$ac_exeext
13740 if { (ac_try="$ac_link"
13741 case "(($ac_try" in
13742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743   *) ac_try_echo=$ac_try;;
13744 esac
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746   (eval "$ac_link") 2>conftest.er1
13747   ac_status=$?
13748   grep -v '^ *+' conftest.er1 >conftest.err
13749   rm -f conftest.er1
13750   cat conftest.err >&5
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } &&
13753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13754   { (case "(($ac_try" in
13755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756   *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759   (eval "$ac_try") 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; } &&
13763          { ac_try='test -s conftest$ac_exeext'
13764   { (case "(($ac_try" in
13765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766   *) ac_try_echo=$ac_try;;
13767 esac
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769   (eval "$ac_try") 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); }; }; then
13773   ac_cv_search_bfd_init=$ac_res
13774 else
13775   echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778
13779 fi
13780
13781 rm -f core conftest.err conftest.$ac_objext \
13782       conftest$ac_exeext
13783   if test "${ac_cv_search_bfd_init+set}" = set; then
13784   break
13785 fi
13786 done
13787 if test "${ac_cv_search_bfd_init+set}" = set; then
13788   :
13789 else
13790   ac_cv_search_bfd_init=no
13791 fi
13792 rm conftest.$ac_ext
13793 LIBS=$ac_func_search_save_LIBS
13794 fi
13795 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13796 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13797 ac_res=$ac_cv_search_bfd_init
13798 if test "$ac_res" != no; then
13799   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13800
13801 fi
13802
13803             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13804 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13805 if test "${ac_cv_search_op_open_agent+set}" = set; then
13806   echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808   ac_func_search_save_LIBS=$LIBS
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815
13816 /* Override any GCC internal prototype to avoid an error.
13817    Use char because int might match the return type of a GCC
13818    builtin and then its argument prototype would still apply.  */
13819 #ifdef __cplusplus
13820 extern "C"
13821 #endif
13822 char op_open_agent ();
13823 int
13824 main ()
13825 {
13826 return op_open_agent ();
13827   ;
13828   return 0;
13829 }
13830 _ACEOF
13831 for ac_lib in '' opagent; do
13832   if test -z "$ac_lib"; then
13833     ac_res="none required"
13834   else
13835     ac_res=-l$ac_lib
13836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13837   fi
13838   rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (ac_try="$ac_link"
13840 case "(($ac_try" in
13841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842   *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845   (eval "$ac_link") 2>conftest.er1
13846   ac_status=$?
13847   grep -v '^ *+' conftest.er1 >conftest.err
13848   rm -f conftest.er1
13849   cat conftest.err >&5
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13853   { (case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_try") 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; } &&
13862          { ac_try='test -s conftest$ac_exeext'
13863   { (case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_try") 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; }; then
13872   ac_cv_search_op_open_agent=$ac_res
13873 else
13874   echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877
13878 fi
13879
13880 rm -f core conftest.err conftest.$ac_objext \
13881       conftest$ac_exeext
13882   if test "${ac_cv_search_op_open_agent+set}" = set; then
13883   break
13884 fi
13885 done
13886 if test "${ac_cv_search_op_open_agent+set}" = set; then
13887   :
13888 else
13889   ac_cv_search_op_open_agent=no
13890 fi
13891 rm conftest.$ac_ext
13892 LIBS=$ac_func_search_save_LIBS
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13895 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13896 ac_res=$ac_cv_search_op_open_agent
13897 if test "$ac_res" != no; then
13898   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13899
13900 else
13901
13902               echo "Error! You need to have libopagent around."
13903               exit -1
13904
13905 fi
13906
13907             if test "${ac_cv_header_opagent_h+set}" = set; then
13908   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13909 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13910 if test "${ac_cv_header_opagent_h+set}" = set; then
13911   echo $ECHO_N "(cached) $ECHO_C" >&6
13912 fi
13913 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13914 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13915 else
13916   # Is the header compilable?
13917 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13918 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13919 cat >conftest.$ac_ext <<_ACEOF
13920 /* confdefs.h.  */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h.  */
13925 $ac_includes_default
13926 #include <opagent.h>
13927 _ACEOF
13928 rm -f conftest.$ac_objext
13929 if { (ac_try="$ac_compile"
13930 case "(($ac_try" in
13931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932   *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935   (eval "$ac_compile") 2>conftest.er1
13936   ac_status=$?
13937   grep -v '^ *+' conftest.er1 >conftest.err
13938   rm -f conftest.er1
13939   cat conftest.err >&5
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } &&
13942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13943   { (case "(($ac_try" in
13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945   *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948   (eval "$ac_try") 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; } &&
13952          { ac_try='test -s conftest.$ac_objext'
13953   { (case "(($ac_try" in
13954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955   *) ac_try_echo=$ac_try;;
13956 esac
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958   (eval "$ac_try") 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962   ac_header_compiler=yes
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967         ac_header_compiler=no
13968 fi
13969
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13972 echo "${ECHO_T}$ac_header_compiler" >&6; }
13973
13974 # Is the header present?
13975 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13976 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 #include <opagent.h>
13984 _ACEOF
13985 if { (ac_try="$ac_cpp conftest.$ac_ext"
13986 case "(($ac_try" in
13987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988   *) ac_try_echo=$ac_try;;
13989 esac
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13992   ac_status=$?
13993   grep -v '^ *+' conftest.er1 >conftest.err
13994   rm -f conftest.er1
13995   cat conftest.err >&5
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); } >/dev/null; then
13998   if test -s conftest.err; then
13999     ac_cpp_err=$ac_c_preproc_warn_flag
14000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14001   else
14002     ac_cpp_err=
14003   fi
14004 else
14005   ac_cpp_err=yes
14006 fi
14007 if test -z "$ac_cpp_err"; then
14008   ac_header_preproc=yes
14009 else
14010   echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14012
14013   ac_header_preproc=no
14014 fi
14015
14016 rm -f conftest.err conftest.$ac_ext
14017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14018 echo "${ECHO_T}$ac_header_preproc" >&6; }
14019
14020 # So?  What about this header?
14021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14022   yes:no: )
14023     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14024 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14025     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14026 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14027     ac_header_preproc=yes
14028     ;;
14029   no:yes:* )
14030     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14031 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14032     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14033 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14034     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14035 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14036     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14037 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14038     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14039 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14040     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14041 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14042     ( cat <<\_ASBOX
14043 ## ------------------------------------ ##
14044 ## Report this to http://llvm.org/bugs/ ##
14045 ## ------------------------------------ ##
14046 _ASBOX
14047      ) | sed "s/^/$as_me: WARNING:     /" >&2
14048     ;;
14049 esac
14050 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14051 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14052 if test "${ac_cv_header_opagent_h+set}" = set; then
14053   echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055   ac_cv_header_opagent_h=$ac_header_preproc
14056 fi
14057 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14058 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14059
14060 fi
14061 if test $ac_cv_header_opagent_h = yes; then
14062   :
14063 else
14064
14065               echo "Error! You need to have opagent.h around."
14066               exit -1
14067
14068 fi
14069
14070
14071           fi ;;
14072         *)
14073           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14074 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14075    { (exit 1); exit 1; }; } ;;
14076       esac
14077
14078 else
14079
14080       USE_OPROFILE=0
14081
14082
14083 fi
14084
14085
14086 cat >>confdefs.h <<_ACEOF
14087 #define LLVM_USE_OPROFILE $USE_OPROFILE
14088 _ACEOF
14089
14090
14091
14092 # Check whether --with-intel-jitevents was given.
14093 if test "${with_intel_jitevents+set}" = set; then
14094   withval=$with_intel_jitevents;
14095        case "$withval" in
14096           yes) USE_INTEL_JITEVENTS=1
14097 ;;
14098           no)  USE_INTEL_JITEVENTS=0
14099 ;;
14100           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14101 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14102    { (exit 1); exit 1; }; };;
14103        esac
14104
14105       case $llvm_cv_os_type in
14106         Linux|Win32|Cygwin|MingW) ;;
14107         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14108 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14109    { (exit 1); exit 1; }; };;
14110       esac
14111
14112       case "$llvm_cv_target_arch" in
14113         x86|x86_64) ;;
14114         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14115 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14116    { (exit 1); exit 1; }; };;
14117       esac
14118
14119 else
14120
14121       USE_INTEL_JITEVENTS=0
14122
14123
14124 fi
14125
14126
14127 cat >>confdefs.h <<_ACEOF
14128 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14129 _ACEOF
14130
14131
14132 for ac_prog in xml2-config
14133 do
14134   # Extract the first word of "$ac_prog", so it can be a program name with args.
14135 set dummy $ac_prog; ac_word=$2
14136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14138 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14139   echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141   if test -n "$XML2CONFIG"; then
14142   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14143 else
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14146 do
14147   IFS=$as_save_IFS
14148   test -z "$as_dir" && as_dir=.
14149   for ac_exec_ext in '' $ac_executable_extensions; do
14150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14151     ac_cv_prog_XML2CONFIG="$ac_prog"
14152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14153     break 2
14154   fi
14155 done
14156 done
14157 IFS=$as_save_IFS
14158
14159 fi
14160 fi
14161 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14162 if test -n "$XML2CONFIG"; then
14163   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14164 echo "${ECHO_T}$XML2CONFIG" >&6; }
14165 else
14166   { echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6; }
14168 fi
14169
14170
14171   test -n "$XML2CONFIG" && break
14172 done
14173
14174
14175 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14176 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14177 if test "x$XML2CONFIG" = "x"; then
14178  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14179 echo "${ECHO_T}xml2-config not found" >&6; }
14180 else
14181  LIBXML2_INC=`$XML2CONFIG --cflags`
14182  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14183 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14184  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14185 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14186 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14187   echo $ECHO_N "(cached) $ECHO_C" >&6
14188 else
14189   ac_check_lib_save_LIBS=$LIBS
14190 LIBS="-lxml2  $LIBS"
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197
14198 /* Override any GCC internal prototype to avoid an error.
14199    Use char because int might match the return type of a GCC
14200    builtin and then its argument prototype would still apply.  */
14201 #ifdef __cplusplus
14202 extern "C"
14203 #endif
14204 char xmlReadFile ();
14205 int
14206 main ()
14207 {
14208 return xmlReadFile ();
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 rm -f conftest.$ac_objext conftest$ac_exeext
14214 if { (ac_try="$ac_link"
14215 case "(($ac_try" in
14216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217   *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220   (eval "$ac_link") 2>conftest.er1
14221   ac_status=$?
14222   grep -v '^ *+' conftest.er1 >conftest.err
14223   rm -f conftest.er1
14224   cat conftest.err >&5
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); } &&
14227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14228   { (case "(($ac_try" in
14229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230   *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233   (eval "$ac_try") 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; } &&
14237          { ac_try='test -s conftest$ac_exeext'
14238   { (case "(($ac_try" in
14239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240   *) ac_try_echo=$ac_try;;
14241 esac
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243   (eval "$ac_try") 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; }; then
14247   ac_cv_lib_xml2_xmlReadFile=yes
14248 else
14249   echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252         ac_cv_lib_xml2_xmlReadFile=no
14253 fi
14254
14255 rm -f core conftest.err conftest.$ac_objext \
14256       conftest$ac_exeext conftest.$ac_ext
14257 LIBS=$ac_check_lib_save_LIBS
14258 fi
14259 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14260 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14261 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14262
14263 cat >>confdefs.h <<\_ACEOF
14264 #define CLANG_HAVE_LIBXML 1
14265 _ACEOF
14266
14267                                 LIBXML2_LIBS="-lxml2"
14268 fi
14269
14270 fi
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280 ac_header_dirent=no
14281 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14282   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14283 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14284 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14286   echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288   cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294 #include <sys/types.h>
14295 #include <$ac_hdr>
14296
14297 int
14298 main ()
14299 {
14300 if ((DIR *) 0)
14301 return 0;
14302   ;
14303   return 0;
14304 }
14305 _ACEOF
14306 rm -f conftest.$ac_objext
14307 if { (ac_try="$ac_compile"
14308 case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313   (eval "$ac_compile") 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } &&
14320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14321   { (case "(($ac_try" in
14322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323   *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326   (eval "$ac_try") 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; } &&
14330          { ac_try='test -s conftest.$ac_objext'
14331   { (case "(($ac_try" in
14332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333   *) ac_try_echo=$ac_try;;
14334 esac
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336   (eval "$ac_try") 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); }; }; then
14340   eval "$as_ac_Header=yes"
14341 else
14342   echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345         eval "$as_ac_Header=no"
14346 fi
14347
14348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349 fi
14350 ac_res=`eval echo '${'$as_ac_Header'}'`
14351                { echo "$as_me:$LINENO: result: $ac_res" >&5
14352 echo "${ECHO_T}$ac_res" >&6; }
14353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14354   cat >>confdefs.h <<_ACEOF
14355 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14356 _ACEOF
14357
14358 ac_header_dirent=$ac_hdr; break
14359 fi
14360
14361 done
14362 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14363 if test $ac_header_dirent = dirent.h; then
14364   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14365 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14366 if test "${ac_cv_search_opendir+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   ac_func_search_save_LIBS=$LIBS
14370 cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376
14377 /* Override any GCC internal prototype to avoid an error.
14378    Use char because int might match the return type of a GCC
14379    builtin and then its argument prototype would still apply.  */
14380 #ifdef __cplusplus
14381 extern "C"
14382 #endif
14383 char opendir ();
14384 int
14385 main ()
14386 {
14387 return opendir ();
14388   ;
14389   return 0;
14390 }
14391 _ACEOF
14392 for ac_lib in '' dir; do
14393   if test -z "$ac_lib"; then
14394     ac_res="none required"
14395   else
14396     ac_res=-l$ac_lib
14397     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14398   fi
14399   rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403   *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406   (eval "$ac_link") 2>conftest.er1
14407   ac_status=$?
14408   grep -v '^ *+' conftest.er1 >conftest.err
14409   rm -f conftest.er1
14410   cat conftest.err >&5
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); } &&
14413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14414   { (case "(($ac_try" in
14415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416   *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419   (eval "$ac_try") 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; } &&
14423          { ac_try='test -s conftest$ac_exeext'
14424   { (case "(($ac_try" in
14425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426   *) ac_try_echo=$ac_try;;
14427 esac
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429   (eval "$ac_try") 2>&5
14430   ac_status=$?
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); }; }; then
14433   ac_cv_search_opendir=$ac_res
14434 else
14435   echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438
14439 fi
14440
14441 rm -f core conftest.err conftest.$ac_objext \
14442       conftest$ac_exeext
14443   if test "${ac_cv_search_opendir+set}" = set; then
14444   break
14445 fi
14446 done
14447 if test "${ac_cv_search_opendir+set}" = set; then
14448   :
14449 else
14450   ac_cv_search_opendir=no
14451 fi
14452 rm conftest.$ac_ext
14453 LIBS=$ac_func_search_save_LIBS
14454 fi
14455 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14456 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14457 ac_res=$ac_cv_search_opendir
14458 if test "$ac_res" != no; then
14459   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14460
14461 fi
14462
14463 else
14464   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14465 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14466 if test "${ac_cv_search_opendir+set}" = set; then
14467   echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469   ac_func_search_save_LIBS=$LIBS
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476
14477 /* Override any GCC internal prototype to avoid an error.
14478    Use char because int might match the return type of a GCC
14479    builtin and then its argument prototype would still apply.  */
14480 #ifdef __cplusplus
14481 extern "C"
14482 #endif
14483 char opendir ();
14484 int
14485 main ()
14486 {
14487 return opendir ();
14488   ;
14489   return 0;
14490 }
14491 _ACEOF
14492 for ac_lib in '' x; do
14493   if test -z "$ac_lib"; then
14494     ac_res="none required"
14495   else
14496     ac_res=-l$ac_lib
14497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14498   fi
14499   rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503   *) ac_try_echo=$ac_try;;
14504 esac
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506   (eval "$ac_link") 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } &&
14513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514   { (case "(($ac_try" in
14515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516   *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519   (eval "$ac_try") 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; } &&
14523          { ac_try='test -s conftest$ac_exeext'
14524   { (case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529   (eval "$ac_try") 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }; then
14533   ac_cv_search_opendir=$ac_res
14534 else
14535   echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538
14539 fi
14540
14541 rm -f core conftest.err conftest.$ac_objext \
14542       conftest$ac_exeext
14543   if test "${ac_cv_search_opendir+set}" = set; then
14544   break
14545 fi
14546 done
14547 if test "${ac_cv_search_opendir+set}" = set; then
14548   :
14549 else
14550   ac_cv_search_opendir=no
14551 fi
14552 rm conftest.$ac_ext
14553 LIBS=$ac_func_search_save_LIBS
14554 fi
14555 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14556 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14557 ac_res=$ac_cv_search_opendir
14558 if test "$ac_res" != no; then
14559   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14560
14561 fi
14562
14563 fi
14564
14565 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14566 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14567 if test "${ac_cv_header_mmap_anon+set}" = set; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570    ac_ext=c
14571 ac_cpp='$CPP $CPPFLAGS'
14572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14575
14576   cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h.  */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h.  */
14582 #include <sys/mman.h>
14583 #include <unistd.h>
14584 #include <fcntl.h>
14585 int
14586 main ()
14587 {
14588 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14589   ;
14590   return 0;
14591 }
14592 _ACEOF
14593 rm -f conftest.$ac_objext
14594 if { (ac_try="$ac_compile"
14595 case "(($ac_try" in
14596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597   *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600   (eval "$ac_compile") 2>conftest.er1
14601   ac_status=$?
14602   grep -v '^ *+' conftest.er1 >conftest.err
14603   rm -f conftest.er1
14604   cat conftest.err >&5
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); } &&
14607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14608   { (case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_try") 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; } &&
14617          { ac_try='test -s conftest.$ac_objext'
14618   { (case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_try") 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); }; }; then
14627   ac_cv_header_mmap_anon=yes
14628 else
14629   echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14631
14632         ac_cv_header_mmap_anon=no
14633 fi
14634
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636   ac_ext=c
14637 ac_cpp='$CPP $CPPFLAGS'
14638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14641
14642
14643 fi
14644 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14645 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14646 if test "$ac_cv_header_mmap_anon" = yes; then
14647
14648 cat >>confdefs.h <<\_ACEOF
14649 #define HAVE_MMAP_ANONYMOUS 1
14650 _ACEOF
14651
14652 fi
14653
14654 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14655 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14656 if test "${ac_cv_header_stat_broken+set}" = set; then
14657   echo $ECHO_N "(cached) $ECHO_C" >&6
14658 else
14659   cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h.  */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h.  */
14665 #include <sys/types.h>
14666 #include <sys/stat.h>
14667
14668 #if defined S_ISBLK && defined S_IFDIR
14669 # if S_ISBLK (S_IFDIR)
14670 You lose.
14671 # endif
14672 #endif
14673
14674 #if defined S_ISBLK && defined S_IFCHR
14675 # if S_ISBLK (S_IFCHR)
14676 You lose.
14677 # endif
14678 #endif
14679
14680 #if defined S_ISLNK && defined S_IFREG
14681 # if S_ISLNK (S_IFREG)
14682 You lose.
14683 # endif
14684 #endif
14685
14686 #if defined S_ISSOCK && defined S_IFREG
14687 # if S_ISSOCK (S_IFREG)
14688 You lose.
14689 # endif
14690 #endif
14691
14692 _ACEOF
14693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14694   $EGREP "You lose" >/dev/null 2>&1; then
14695   ac_cv_header_stat_broken=yes
14696 else
14697   ac_cv_header_stat_broken=no
14698 fi
14699 rm -f conftest*
14700
14701 fi
14702 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14703 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14704 if test $ac_cv_header_stat_broken = yes; then
14705
14706 cat >>confdefs.h <<\_ACEOF
14707 #define STAT_MACROS_BROKEN 1
14708 _ACEOF
14709
14710 fi
14711
14712 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14713 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14714 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723 #include <sys/types.h>
14724 #include <sys/wait.h>
14725 #ifndef WEXITSTATUS
14726 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14727 #endif
14728 #ifndef WIFEXITED
14729 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14730 #endif
14731
14732 int
14733 main ()
14734 {
14735   int s;
14736   wait (&s);
14737   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14738   ;
14739   return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (ac_try="$ac_compile"
14744 case "(($ac_try" in
14745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746   *) ac_try_echo=$ac_try;;
14747 esac
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749   (eval "$ac_compile") 2>conftest.er1
14750   ac_status=$?
14751   grep -v '^ *+' conftest.er1 >conftest.err
14752   rm -f conftest.er1
14753   cat conftest.err >&5
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14757   { (case "(($ac_try" in
14758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759   *) ac_try_echo=$ac_try;;
14760 esac
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762   (eval "$ac_try") 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; } &&
14766          { ac_try='test -s conftest.$ac_objext'
14767   { (case "(($ac_try" in
14768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769   *) ac_try_echo=$ac_try;;
14770 esac
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772   (eval "$ac_try") 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); }; }; then
14776   ac_cv_header_sys_wait_h=yes
14777 else
14778   echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14780
14781         ac_cv_header_sys_wait_h=no
14782 fi
14783
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785 fi
14786 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14787 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14788 if test $ac_cv_header_sys_wait_h = yes; then
14789
14790 cat >>confdefs.h <<\_ACEOF
14791 #define HAVE_SYS_WAIT_H 1
14792 _ACEOF
14793
14794 fi
14795
14796 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14797 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14798 if test "${ac_cv_header_time+set}" = set; then
14799   echo $ECHO_N "(cached) $ECHO_C" >&6
14800 else
14801   cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h.  */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h.  */
14807 #include <sys/types.h>
14808 #include <sys/time.h>
14809 #include <time.h>
14810
14811 int
14812 main ()
14813 {
14814 if ((struct tm *) 0)
14815 return 0;
14816   ;
14817   return 0;
14818 }
14819 _ACEOF
14820 rm -f conftest.$ac_objext
14821 if { (ac_try="$ac_compile"
14822 case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827   (eval "$ac_compile") 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } &&
14834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14835   { (case "(($ac_try" in
14836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837   *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840   (eval "$ac_try") 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; } &&
14844          { ac_try='test -s conftest.$ac_objext'
14845   { (case "(($ac_try" in
14846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847   *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850   (eval "$ac_try") 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; }; then
14854   ac_cv_header_time=yes
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859         ac_cv_header_time=no
14860 fi
14861
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 fi
14864 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14865 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14866 if test $ac_cv_header_time = yes; then
14867
14868 cat >>confdefs.h <<\_ACEOF
14869 #define TIME_WITH_SYS_TIME 1
14870 _ACEOF
14871
14872 fi
14873
14874
14875 ac_ext=cpp
14876 ac_cpp='$CXXCPP $CPPFLAGS'
14877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14880
14881 ac_ext=cpp
14882 ac_cpp='$CXXCPP $CPPFLAGS'
14883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14886 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14887 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14888 if test -z "$CXXCPP"; then
14889   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14890   echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892       # Double quotes because CXXCPP needs to be expanded
14893     for CXXCPP in "$CXX -E" "/lib/cpp"
14894     do
14895       ac_preproc_ok=false
14896 for ac_cxx_preproc_warn_flag in '' yes
14897 do
14898   # Use a header file that comes with gcc, so configuring glibc
14899   # with a fresh cross-compiler works.
14900   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14901   # <limits.h> exists even on freestanding compilers.
14902   # On the NeXT, cc -E runs the code through the compiler's parser,
14903   # not just through cpp. "Syntax error" is here to catch this case.
14904   cat >conftest.$ac_ext <<_ACEOF
14905 /* confdefs.h.  */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h.  */
14910 #ifdef __STDC__
14911 # include <limits.h>
14912 #else
14913 # include <assert.h>
14914 #endif
14915                      Syntax error
14916 _ACEOF
14917 if { (ac_try="$ac_cpp conftest.$ac_ext"
14918 case "(($ac_try" in
14919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920   *) ac_try_echo=$ac_try;;
14921 esac
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14924   ac_status=$?
14925   grep -v '^ *+' conftest.er1 >conftest.err
14926   rm -f conftest.er1
14927   cat conftest.err >&5
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); } >/dev/null; then
14930   if test -s conftest.err; then
14931     ac_cpp_err=$ac_cxx_preproc_warn_flag
14932     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14933   else
14934     ac_cpp_err=
14935   fi
14936 else
14937   ac_cpp_err=yes
14938 fi
14939 if test -z "$ac_cpp_err"; then
14940   :
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945   # Broken: fails on valid input.
14946 continue
14947 fi
14948
14949 rm -f conftest.err conftest.$ac_ext
14950
14951   # OK, works on sane cases.  Now check whether nonexistent headers
14952   # can be detected and how.
14953   cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h.  */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h.  */
14959 #include <ac_nonexistent.h>
14960 _ACEOF
14961 if { (ac_try="$ac_cpp conftest.$ac_ext"
14962 case "(($ac_try" in
14963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964   *) ac_try_echo=$ac_try;;
14965 esac
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14968   ac_status=$?
14969   grep -v '^ *+' conftest.er1 >conftest.err
14970   rm -f conftest.er1
14971   cat conftest.err >&5
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); } >/dev/null; then
14974   if test -s conftest.err; then
14975     ac_cpp_err=$ac_cxx_preproc_warn_flag
14976     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14977   else
14978     ac_cpp_err=
14979   fi
14980 else
14981   ac_cpp_err=yes
14982 fi
14983 if test -z "$ac_cpp_err"; then
14984   # Broken: success on invalid input.
14985 continue
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990   # Passes both tests.
14991 ac_preproc_ok=:
14992 break
14993 fi
14994
14995 rm -f conftest.err conftest.$ac_ext
14996
14997 done
14998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14999 rm -f conftest.err conftest.$ac_ext
15000 if $ac_preproc_ok; then
15001   break
15002 fi
15003
15004     done
15005     ac_cv_prog_CXXCPP=$CXXCPP
15006
15007 fi
15008   CXXCPP=$ac_cv_prog_CXXCPP
15009 else
15010   ac_cv_prog_CXXCPP=$CXXCPP
15011 fi
15012 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15013 echo "${ECHO_T}$CXXCPP" >&6; }
15014 ac_preproc_ok=false
15015 for ac_cxx_preproc_warn_flag in '' yes
15016 do
15017   # Use a header file that comes with gcc, so configuring glibc
15018   # with a fresh cross-compiler works.
15019   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15020   # <limits.h> exists even on freestanding compilers.
15021   # On the NeXT, cc -E runs the code through the compiler's parser,
15022   # not just through cpp. "Syntax error" is here to catch this case.
15023   cat >conftest.$ac_ext <<_ACEOF
15024 /* confdefs.h.  */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h.  */
15029 #ifdef __STDC__
15030 # include <limits.h>
15031 #else
15032 # include <assert.h>
15033 #endif
15034                      Syntax error
15035 _ACEOF
15036 if { (ac_try="$ac_cpp conftest.$ac_ext"
15037 case "(($ac_try" in
15038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039   *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15043   ac_status=$?
15044   grep -v '^ *+' conftest.er1 >conftest.err
15045   rm -f conftest.er1
15046   cat conftest.err >&5
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); } >/dev/null; then
15049   if test -s conftest.err; then
15050     ac_cpp_err=$ac_cxx_preproc_warn_flag
15051     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15052   else
15053     ac_cpp_err=
15054   fi
15055 else
15056   ac_cpp_err=yes
15057 fi
15058 if test -z "$ac_cpp_err"; then
15059   :
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064   # Broken: fails on valid input.
15065 continue
15066 fi
15067
15068 rm -f conftest.err conftest.$ac_ext
15069
15070   # OK, works on sane cases.  Now check whether nonexistent headers
15071   # can be detected and how.
15072   cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h.  */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h.  */
15078 #include <ac_nonexistent.h>
15079 _ACEOF
15080 if { (ac_try="$ac_cpp conftest.$ac_ext"
15081 case "(($ac_try" in
15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083   *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15087   ac_status=$?
15088   grep -v '^ *+' conftest.er1 >conftest.err
15089   rm -f conftest.er1
15090   cat conftest.err >&5
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); } >/dev/null; then
15093   if test -s conftest.err; then
15094     ac_cpp_err=$ac_cxx_preproc_warn_flag
15095     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15096   else
15097     ac_cpp_err=
15098   fi
15099 else
15100   ac_cpp_err=yes
15101 fi
15102 if test -z "$ac_cpp_err"; then
15103   # Broken: success on invalid input.
15104 continue
15105 else
15106   echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15108
15109   # Passes both tests.
15110 ac_preproc_ok=:
15111 break
15112 fi
15113
15114 rm -f conftest.err conftest.$ac_ext
15115
15116 done
15117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15118 rm -f conftest.err conftest.$ac_ext
15119 if $ac_preproc_ok; then
15120   :
15121 else
15122   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15123 See \`config.log' for more details." >&5
15124 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15125 See \`config.log' for more details." >&2;}
15126    { (exit 1); exit 1; }; }
15127 fi
15128
15129 ac_ext=cpp
15130 ac_cpp='$CXXCPP $CPPFLAGS'
15131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15134
15135
15136
15137 for ac_header in cxxabi.h
15138 do
15139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15141   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15144   echo $ECHO_N "(cached) $ECHO_C" >&6
15145 fi
15146 ac_res=`eval echo '${'$as_ac_Header'}'`
15147                { echo "$as_me:$LINENO: result: $ac_res" >&5
15148 echo "${ECHO_T}$ac_res" >&6; }
15149 else
15150   # Is the header compilable?
15151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159 $ac_includes_default
15160 #include <$ac_header>
15161 _ACEOF
15162 rm -f conftest.$ac_objext
15163 if { (ac_try="$ac_compile"
15164 case "(($ac_try" in
15165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166   *) ac_try_echo=$ac_try;;
15167 esac
15168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169   (eval "$ac_compile") 2>conftest.er1
15170   ac_status=$?
15171   grep -v '^ *+' conftest.er1 >conftest.err
15172   rm -f conftest.er1
15173   cat conftest.err >&5
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); } &&
15176          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15177   { (case "(($ac_try" in
15178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179   *) ac_try_echo=$ac_try;;
15180 esac
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182   (eval "$ac_try") 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); }; } &&
15186          { ac_try='test -s conftest.$ac_objext'
15187   { (case "(($ac_try" in
15188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189   *) ac_try_echo=$ac_try;;
15190 esac
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192   (eval "$ac_try") 2>&5
15193   ac_status=$?
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); }; }; then
15196   ac_header_compiler=yes
15197 else
15198   echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15200
15201         ac_header_compiler=no
15202 fi
15203
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15206 echo "${ECHO_T}$ac_header_compiler" >&6; }
15207
15208 # Is the header present?
15209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15211 cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h.  */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h.  */
15217 #include <$ac_header>
15218 _ACEOF
15219 if { (ac_try="$ac_cpp conftest.$ac_ext"
15220 case "(($ac_try" in
15221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222   *) ac_try_echo=$ac_try;;
15223 esac
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15226   ac_status=$?
15227   grep -v '^ *+' conftest.er1 >conftest.err
15228   rm -f conftest.er1
15229   cat conftest.err >&5
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); } >/dev/null; then
15232   if test -s conftest.err; then
15233     ac_cpp_err=$ac_cxx_preproc_warn_flag
15234     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15235   else
15236     ac_cpp_err=
15237   fi
15238 else
15239   ac_cpp_err=yes
15240 fi
15241 if test -z "$ac_cpp_err"; then
15242   ac_header_preproc=yes
15243 else
15244   echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15246
15247   ac_header_preproc=no
15248 fi
15249
15250 rm -f conftest.err conftest.$ac_ext
15251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15252 echo "${ECHO_T}$ac_header_preproc" >&6; }
15253
15254 # So?  What about this header?
15255 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15256   yes:no: )
15257     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15261     ac_header_preproc=yes
15262     ;;
15263   no:yes:* )
15264     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15266     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15267 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15268     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15270     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15271 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15274     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15276     ( cat <<\_ASBOX
15277 ## ------------------------------------ ##
15278 ## Report this to http://llvm.org/bugs/ ##
15279 ## ------------------------------------ ##
15280 _ASBOX
15281      ) | sed "s/^/$as_me: WARNING:     /" >&2
15282     ;;
15283 esac
15284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289   eval "$as_ac_Header=\$ac_header_preproc"
15290 fi
15291 ac_res=`eval echo '${'$as_ac_Header'}'`
15292                { echo "$as_me:$LINENO: result: $ac_res" >&5
15293 echo "${ECHO_T}$ac_res" >&6; }
15294
15295 fi
15296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15297   cat >>confdefs.h <<_ACEOF
15298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15299 _ACEOF
15300
15301 fi
15302
15303 done
15304
15305 ac_ext=c
15306 ac_cpp='$CPP $CPPFLAGS'
15307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15310
15311
15312
15313
15314
15315
15316
15317 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15318 do
15319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15321   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15324   echo $ECHO_N "(cached) $ECHO_C" >&6
15325 fi
15326 ac_res=`eval echo '${'$as_ac_Header'}'`
15327                { echo "$as_me:$LINENO: result: $ac_res" >&5
15328 echo "${ECHO_T}$ac_res" >&6; }
15329 else
15330   # Is the header compilable?
15331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15333 cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 $ac_includes_default
15340 #include <$ac_header>
15341 _ACEOF
15342 rm -f conftest.$ac_objext
15343 if { (ac_try="$ac_compile"
15344 case "(($ac_try" in
15345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346   *) ac_try_echo=$ac_try;;
15347 esac
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349   (eval "$ac_compile") 2>conftest.er1
15350   ac_status=$?
15351   grep -v '^ *+' conftest.er1 >conftest.err
15352   rm -f conftest.er1
15353   cat conftest.err >&5
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); } &&
15356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15357   { (case "(($ac_try" in
15358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359   *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362   (eval "$ac_try") 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); }; } &&
15366          { ac_try='test -s conftest.$ac_objext'
15367   { (case "(($ac_try" in
15368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369   *) ac_try_echo=$ac_try;;
15370 esac
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372   (eval "$ac_try") 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; }; then
15376   ac_header_compiler=yes
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381         ac_header_compiler=no
15382 fi
15383
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15386 echo "${ECHO_T}$ac_header_compiler" >&6; }
15387
15388 # Is the header present?
15389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15391 cat >conftest.$ac_ext <<_ACEOF
15392 /* confdefs.h.  */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h.  */
15397 #include <$ac_header>
15398 _ACEOF
15399 if { (ac_try="$ac_cpp conftest.$ac_ext"
15400 case "(($ac_try" in
15401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402   *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15406   ac_status=$?
15407   grep -v '^ *+' conftest.er1 >conftest.err
15408   rm -f conftest.er1
15409   cat conftest.err >&5
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); } >/dev/null; then
15412   if test -s conftest.err; then
15413     ac_cpp_err=$ac_c_preproc_warn_flag
15414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15415   else
15416     ac_cpp_err=
15417   fi
15418 else
15419   ac_cpp_err=yes
15420 fi
15421 if test -z "$ac_cpp_err"; then
15422   ac_header_preproc=yes
15423 else
15424   echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15426
15427   ac_header_preproc=no
15428 fi
15429
15430 rm -f conftest.err conftest.$ac_ext
15431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15432 echo "${ECHO_T}$ac_header_preproc" >&6; }
15433
15434 # So?  What about this header?
15435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15436   yes:no: )
15437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15441     ac_header_preproc=yes
15442     ;;
15443   no:yes:* )
15444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15456     ( cat <<\_ASBOX
15457 ## ------------------------------------ ##
15458 ## Report this to http://llvm.org/bugs/ ##
15459 ## ------------------------------------ ##
15460 _ASBOX
15461      ) | sed "s/^/$as_me: WARNING:     /" >&2
15462     ;;
15463 esac
15464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467   echo $ECHO_N "(cached) $ECHO_C" >&6
15468 else
15469   eval "$as_ac_Header=\$ac_header_preproc"
15470 fi
15471 ac_res=`eval echo '${'$as_ac_Header'}'`
15472                { echo "$as_me:$LINENO: result: $ac_res" >&5
15473 echo "${ECHO_T}$ac_res" >&6; }
15474
15475 fi
15476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15477   cat >>confdefs.h <<_ACEOF
15478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15479 _ACEOF
15480
15481 fi
15482
15483 done
15484
15485
15486
15487
15488
15489
15490
15491 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15492 do
15493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 fi
15500 ac_res=`eval echo '${'$as_ac_Header'}'`
15501                { echo "$as_me:$LINENO: result: $ac_res" >&5
15502 echo "${ECHO_T}$ac_res" >&6; }
15503 else
15504   # Is the header compilable?
15505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15507 cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513 $ac_includes_default
15514 #include <$ac_header>
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520   *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523   (eval "$ac_compile") 2>conftest.er1
15524   ac_status=$?
15525   grep -v '^ *+' conftest.er1 >conftest.err
15526   rm -f conftest.er1
15527   cat conftest.err >&5
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); } &&
15530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531   { (case "(($ac_try" in
15532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533   *) ac_try_echo=$ac_try;;
15534 esac
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536   (eval "$ac_try") 2>&5
15537   ac_status=$?
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); }; } &&
15540          { ac_try='test -s conftest.$ac_objext'
15541   { (case "(($ac_try" in
15542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543   *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546   (eval "$ac_try") 2>&5
15547   ac_status=$?
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); }; }; then
15550   ac_header_compiler=yes
15551 else
15552   echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15554
15555         ac_header_compiler=no
15556 fi
15557
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15560 echo "${ECHO_T}$ac_header_compiler" >&6; }
15561
15562 # Is the header present?
15563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h.  */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h.  */
15571 #include <$ac_header>
15572 _ACEOF
15573 if { (ac_try="$ac_cpp conftest.$ac_ext"
15574 case "(($ac_try" in
15575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576   *) ac_try_echo=$ac_try;;
15577 esac
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15580   ac_status=$?
15581   grep -v '^ *+' conftest.er1 >conftest.err
15582   rm -f conftest.er1
15583   cat conftest.err >&5
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); } >/dev/null; then
15586   if test -s conftest.err; then
15587     ac_cpp_err=$ac_c_preproc_warn_flag
15588     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15589   else
15590     ac_cpp_err=
15591   fi
15592 else
15593   ac_cpp_err=yes
15594 fi
15595 if test -z "$ac_cpp_err"; then
15596   ac_header_preproc=yes
15597 else
15598   echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601   ac_header_preproc=no
15602 fi
15603
15604 rm -f conftest.err conftest.$ac_ext
15605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15606 echo "${ECHO_T}$ac_header_preproc" >&6; }
15607
15608 # So?  What about this header?
15609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15610   yes:no: )
15611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15615     ac_header_preproc=yes
15616     ;;
15617   no:yes:* )
15618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15630     ( cat <<\_ASBOX
15631 ## ------------------------------------ ##
15632 ## Report this to http://llvm.org/bugs/ ##
15633 ## ------------------------------------ ##
15634 _ASBOX
15635      ) | sed "s/^/$as_me: WARNING:     /" >&2
15636     ;;
15637 esac
15638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15641   echo $ECHO_N "(cached) $ECHO_C" >&6
15642 else
15643   eval "$as_ac_Header=\$ac_header_preproc"
15644 fi
15645 ac_res=`eval echo '${'$as_ac_Header'}'`
15646                { echo "$as_me:$LINENO: result: $ac_res" >&5
15647 echo "${ECHO_T}$ac_res" >&6; }
15648
15649 fi
15650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15651   cat >>confdefs.h <<_ACEOF
15652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15653 _ACEOF
15654
15655 fi
15656
15657 done
15658
15659
15660
15661 for ac_header in utime.h windows.h
15662 do
15663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15665   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668   echo $ECHO_N "(cached) $ECHO_C" >&6
15669 fi
15670 ac_res=`eval echo '${'$as_ac_Header'}'`
15671                { echo "$as_me:$LINENO: result: $ac_res" >&5
15672 echo "${ECHO_T}$ac_res" >&6; }
15673 else
15674   # Is the header compilable?
15675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683 $ac_includes_default
15684 #include <$ac_header>
15685 _ACEOF
15686 rm -f conftest.$ac_objext
15687 if { (ac_try="$ac_compile"
15688 case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693   (eval "$ac_compile") 2>conftest.er1
15694   ac_status=$?
15695   grep -v '^ *+' conftest.er1 >conftest.err
15696   rm -f conftest.er1
15697   cat conftest.err >&5
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); } &&
15700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701   { (case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706   (eval "$ac_try") 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); }; } &&
15710          { ac_try='test -s conftest.$ac_objext'
15711   { (case "(($ac_try" in
15712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713   *) ac_try_echo=$ac_try;;
15714 esac
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716   (eval "$ac_try") 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); }; }; then
15720   ac_header_compiler=yes
15721 else
15722   echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725         ac_header_compiler=no
15726 fi
15727
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15730 echo "${ECHO_T}$ac_header_compiler" >&6; }
15731
15732 # Is the header present?
15733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741 #include <$ac_header>
15742 _ACEOF
15743 if { (ac_try="$ac_cpp conftest.$ac_ext"
15744 case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } >/dev/null; then
15756   if test -s conftest.err; then
15757     ac_cpp_err=$ac_c_preproc_warn_flag
15758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15759   else
15760     ac_cpp_err=
15761   fi
15762 else
15763   ac_cpp_err=yes
15764 fi
15765 if test -z "$ac_cpp_err"; then
15766   ac_header_preproc=yes
15767 else
15768   echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771   ac_header_preproc=no
15772 fi
15773
15774 rm -f conftest.err conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15776 echo "${ECHO_T}$ac_header_preproc" >&6; }
15777
15778 # So?  What about this header?
15779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15780   yes:no: )
15781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15785     ac_header_preproc=yes
15786     ;;
15787   no:yes:* )
15788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15800     ( cat <<\_ASBOX
15801 ## ------------------------------------ ##
15802 ## Report this to http://llvm.org/bugs/ ##
15803 ## ------------------------------------ ##
15804 _ASBOX
15805      ) | sed "s/^/$as_me: WARNING:     /" >&2
15806     ;;
15807 esac
15808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811   echo $ECHO_N "(cached) $ECHO_C" >&6
15812 else
15813   eval "$as_ac_Header=\$ac_header_preproc"
15814 fi
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816                { echo "$as_me:$LINENO: result: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15818
15819 fi
15820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15821   cat >>confdefs.h <<_ACEOF
15822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15823 _ACEOF
15824
15825 fi
15826
15827 done
15828
15829
15830
15831
15832
15833
15834 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15835 do
15836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841   echo $ECHO_N "(cached) $ECHO_C" >&6
15842 fi
15843 ac_res=`eval echo '${'$as_ac_Header'}'`
15844                { echo "$as_me:$LINENO: result: $ac_res" >&5
15845 echo "${ECHO_T}$ac_res" >&6; }
15846 else
15847   # Is the header compilable?
15848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15850 cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h.  */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h.  */
15856 $ac_includes_default
15857 #include <$ac_header>
15858 _ACEOF
15859 rm -f conftest.$ac_objext
15860 if { (ac_try="$ac_compile"
15861 case "(($ac_try" in
15862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863   *) ac_try_echo=$ac_try;;
15864 esac
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866   (eval "$ac_compile") 2>conftest.er1
15867   ac_status=$?
15868   grep -v '^ *+' conftest.er1 >conftest.err
15869   rm -f conftest.er1
15870   cat conftest.err >&5
15871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872   (exit $ac_status); } &&
15873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15874   { (case "(($ac_try" in
15875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876   *) ac_try_echo=$ac_try;;
15877 esac
15878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879   (eval "$ac_try") 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); }; } &&
15883          { ac_try='test -s conftest.$ac_objext'
15884   { (case "(($ac_try" in
15885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15886   *) ac_try_echo=$ac_try;;
15887 esac
15888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15889   (eval "$ac_try") 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); }; }; then
15893   ac_header_compiler=yes
15894 else
15895   echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898         ac_header_compiler=no
15899 fi
15900
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15903 echo "${ECHO_T}$ac_header_compiler" >&6; }
15904
15905 # Is the header present?
15906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15908 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914 #include <$ac_header>
15915 _ACEOF
15916 if { (ac_try="$ac_cpp conftest.$ac_ext"
15917 case "(($ac_try" in
15918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919   *) ac_try_echo=$ac_try;;
15920 esac
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15923   ac_status=$?
15924   grep -v '^ *+' conftest.er1 >conftest.err
15925   rm -f conftest.er1
15926   cat conftest.err >&5
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); } >/dev/null; then
15929   if test -s conftest.err; then
15930     ac_cpp_err=$ac_c_preproc_warn_flag
15931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15932   else
15933     ac_cpp_err=
15934   fi
15935 else
15936   ac_cpp_err=yes
15937 fi
15938 if test -z "$ac_cpp_err"; then
15939   ac_header_preproc=yes
15940 else
15941   echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15943
15944   ac_header_preproc=no
15945 fi
15946
15947 rm -f conftest.err conftest.$ac_ext
15948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15949 echo "${ECHO_T}$ac_header_preproc" >&6; }
15950
15951 # So?  What about this header?
15952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15953   yes:no: )
15954     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15958     ac_header_preproc=yes
15959     ;;
15960   no:yes:* )
15961     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15963     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15964 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15965     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15967     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15968 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15971     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15973     ( cat <<\_ASBOX
15974 ## ------------------------------------ ##
15975 ## Report this to http://llvm.org/bugs/ ##
15976 ## ------------------------------------ ##
15977 _ASBOX
15978      ) | sed "s/^/$as_me: WARNING:     /" >&2
15979     ;;
15980 esac
15981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984   echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986   eval "$as_ac_Header=\$ac_header_preproc"
15987 fi
15988 ac_res=`eval echo '${'$as_ac_Header'}'`
15989                { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15991
15992 fi
15993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15994   cat >>confdefs.h <<_ACEOF
15995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15996 _ACEOF
15997
15998 fi
15999
16000 done
16001
16002
16003
16004
16005
16006 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16007 do
16008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013   echo $ECHO_N "(cached) $ECHO_C" >&6
16014 fi
16015 ac_res=`eval echo '${'$as_ac_Header'}'`
16016                { echo "$as_me:$LINENO: result: $ac_res" >&5
16017 echo "${ECHO_T}$ac_res" >&6; }
16018 else
16019   # Is the header compilable?
16020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16022 cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028 $ac_includes_default
16029 #include <$ac_header>
16030 _ACEOF
16031 rm -f conftest.$ac_objext
16032 if { (ac_try="$ac_compile"
16033 case "(($ac_try" in
16034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035   *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038   (eval "$ac_compile") 2>conftest.er1
16039   ac_status=$?
16040   grep -v '^ *+' conftest.er1 >conftest.err
16041   rm -f conftest.er1
16042   cat conftest.err >&5
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); } &&
16045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16046   { (case "(($ac_try" in
16047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048   *) ac_try_echo=$ac_try;;
16049 esac
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051   (eval "$ac_try") 2>&5
16052   ac_status=$?
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); }; } &&
16055          { ac_try='test -s conftest.$ac_objext'
16056   { (case "(($ac_try" in
16057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058   *) ac_try_echo=$ac_try;;
16059 esac
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061   (eval "$ac_try") 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   ac_header_compiler=yes
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070         ac_header_compiler=no
16071 fi
16072
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16075 echo "${ECHO_T}$ac_header_compiler" >&6; }
16076
16077 # Is the header present?
16078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086 #include <$ac_header>
16087 _ACEOF
16088 if { (ac_try="$ac_cpp conftest.$ac_ext"
16089 case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16095   ac_status=$?
16096   grep -v '^ *+' conftest.er1 >conftest.err
16097   rm -f conftest.er1
16098   cat conftest.err >&5
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); } >/dev/null; then
16101   if test -s conftest.err; then
16102     ac_cpp_err=$ac_c_preproc_warn_flag
16103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16104   else
16105     ac_cpp_err=
16106   fi
16107 else
16108   ac_cpp_err=yes
16109 fi
16110 if test -z "$ac_cpp_err"; then
16111   ac_header_preproc=yes
16112 else
16113   echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116   ac_header_preproc=no
16117 fi
16118
16119 rm -f conftest.err conftest.$ac_ext
16120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16121 echo "${ECHO_T}$ac_header_preproc" >&6; }
16122
16123 # So?  What about this header?
16124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16125   yes:no: )
16126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16130     ac_header_preproc=yes
16131     ;;
16132   no:yes:* )
16133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16145     ( cat <<\_ASBOX
16146 ## ------------------------------------ ##
16147 ## Report this to http://llvm.org/bugs/ ##
16148 ## ------------------------------------ ##
16149 _ASBOX
16150      ) | sed "s/^/$as_me: WARNING:     /" >&2
16151     ;;
16152 esac
16153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16156   echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158   eval "$as_ac_Header=\$ac_header_preproc"
16159 fi
16160 ac_res=`eval echo '${'$as_ac_Header'}'`
16161                { echo "$as_me:$LINENO: result: $ac_res" >&5
16162 echo "${ECHO_T}$ac_res" >&6; }
16163
16164 fi
16165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16166   cat >>confdefs.h <<_ACEOF
16167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16168 _ACEOF
16169
16170 fi
16171
16172 done
16173
16174
16175 for ac_header in valgrind/valgrind.h
16176 do
16177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16179   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16182   echo $ECHO_N "(cached) $ECHO_C" >&6
16183 fi
16184 ac_res=`eval echo '${'$as_ac_Header'}'`
16185                { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16187 else
16188   # Is the header compilable?
16189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16191 cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197 $ac_includes_default
16198 #include <$ac_header>
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (ac_try="$ac_compile"
16202 case "(($ac_try" in
16203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204   *) ac_try_echo=$ac_try;;
16205 esac
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207   (eval "$ac_compile") 2>conftest.er1
16208   ac_status=$?
16209   grep -v '^ *+' conftest.er1 >conftest.err
16210   rm -f conftest.er1
16211   cat conftest.err >&5
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); } &&
16214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16215   { (case "(($ac_try" in
16216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217   *) ac_try_echo=$ac_try;;
16218 esac
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220   (eval "$ac_try") 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; } &&
16224          { ac_try='test -s conftest.$ac_objext'
16225   { (case "(($ac_try" in
16226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227   *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230   (eval "$ac_try") 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; }; then
16234   ac_header_compiler=yes
16235 else
16236   echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239         ac_header_compiler=no
16240 fi
16241
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16244 echo "${ECHO_T}$ac_header_compiler" >&6; }
16245
16246 # Is the header present?
16247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h.  */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h.  */
16255 #include <$ac_header>
16256 _ACEOF
16257 if { (ac_try="$ac_cpp conftest.$ac_ext"
16258 case "(($ac_try" in
16259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260   *) ac_try_echo=$ac_try;;
16261 esac
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16264   ac_status=$?
16265   grep -v '^ *+' conftest.er1 >conftest.err
16266   rm -f conftest.er1
16267   cat conftest.err >&5
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); } >/dev/null; then
16270   if test -s conftest.err; then
16271     ac_cpp_err=$ac_c_preproc_warn_flag
16272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16273   else
16274     ac_cpp_err=
16275   fi
16276 else
16277   ac_cpp_err=yes
16278 fi
16279 if test -z "$ac_cpp_err"; then
16280   ac_header_preproc=yes
16281 else
16282   echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16284
16285   ac_header_preproc=no
16286 fi
16287
16288 rm -f conftest.err conftest.$ac_ext
16289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16290 echo "${ECHO_T}$ac_header_preproc" >&6; }
16291
16292 # So?  What about this header?
16293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16294   yes:no: )
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16299     ac_header_preproc=yes
16300     ;;
16301   no:yes:* )
16302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16314     ( cat <<\_ASBOX
16315 ## ------------------------------------ ##
16316 ## Report this to http://llvm.org/bugs/ ##
16317 ## ------------------------------------ ##
16318 _ASBOX
16319      ) | sed "s/^/$as_me: WARNING:     /" >&2
16320     ;;
16321 esac
16322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325   echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327   eval "$as_ac_Header=\$ac_header_preproc"
16328 fi
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330                { echo "$as_me:$LINENO: result: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16332
16333 fi
16334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16335   cat >>confdefs.h <<_ACEOF
16336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16337 _ACEOF
16338
16339 fi
16340
16341 done
16342
16343
16344 for ac_header in fenv.h
16345 do
16346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351   echo $ECHO_N "(cached) $ECHO_C" >&6
16352 fi
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354                { echo "$as_me:$LINENO: result: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16356 else
16357   # Is the header compilable?
16358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h.  */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h.  */
16366 $ac_includes_default
16367 #include <$ac_header>
16368 _ACEOF
16369 rm -f conftest.$ac_objext
16370 if { (ac_try="$ac_compile"
16371 case "(($ac_try" in
16372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373   *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376   (eval "$ac_compile") 2>conftest.er1
16377   ac_status=$?
16378   grep -v '^ *+' conftest.er1 >conftest.err
16379   rm -f conftest.er1
16380   cat conftest.err >&5
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); } &&
16383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16384   { (case "(($ac_try" in
16385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386   *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389   (eval "$ac_try") 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); }; } &&
16393          { ac_try='test -s conftest.$ac_objext'
16394   { (case "(($ac_try" in
16395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396   *) ac_try_echo=$ac_try;;
16397 esac
16398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399   (eval "$ac_try") 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; }; then
16403   ac_header_compiler=yes
16404 else
16405   echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408         ac_header_compiler=no
16409 fi
16410
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16413 echo "${ECHO_T}$ac_header_compiler" >&6; }
16414
16415 # Is the header present?
16416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h.  */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h.  */
16424 #include <$ac_header>
16425 _ACEOF
16426 if { (ac_try="$ac_cpp conftest.$ac_ext"
16427 case "(($ac_try" in
16428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429   *) ac_try_echo=$ac_try;;
16430 esac
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16433   ac_status=$?
16434   grep -v '^ *+' conftest.er1 >conftest.err
16435   rm -f conftest.er1
16436   cat conftest.err >&5
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); } >/dev/null; then
16439   if test -s conftest.err; then
16440     ac_cpp_err=$ac_c_preproc_warn_flag
16441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16442   else
16443     ac_cpp_err=
16444   fi
16445 else
16446   ac_cpp_err=yes
16447 fi
16448 if test -z "$ac_cpp_err"; then
16449   ac_header_preproc=yes
16450 else
16451   echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454   ac_header_preproc=no
16455 fi
16456
16457 rm -f conftest.err conftest.$ac_ext
16458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459 echo "${ECHO_T}$ac_header_preproc" >&6; }
16460
16461 # So?  What about this header?
16462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16463   yes:no: )
16464     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16468     ac_header_preproc=yes
16469     ;;
16470   no:yes:* )
16471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16473     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16474 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16475     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16477     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16478 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16481     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16483     ( cat <<\_ASBOX
16484 ## ------------------------------------ ##
16485 ## Report this to http://llvm.org/bugs/ ##
16486 ## ------------------------------------ ##
16487 _ASBOX
16488      ) | sed "s/^/$as_me: WARNING:     /" >&2
16489     ;;
16490 esac
16491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16494   echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496   eval "$as_ac_Header=\$ac_header_preproc"
16497 fi
16498 ac_res=`eval echo '${'$as_ac_Header'}'`
16499                { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16501
16502 fi
16503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16504   cat >>confdefs.h <<_ACEOF
16505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16506 _ACEOF
16507
16508 fi
16509
16510 done
16511
16512 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16513 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16514 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16515   echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517   cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h.  */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h.  */
16523 #include <fenv.h>
16524
16525 int
16526 main ()
16527 {
16528 #ifndef FE_ALL_EXCEPT
16529   char *p = (char *) FE_ALL_EXCEPT;
16530   return !p;
16531 #endif
16532
16533   ;
16534   return 0;
16535 }
16536 _ACEOF
16537 rm -f conftest.$ac_objext
16538 if { (ac_try="$ac_compile"
16539 case "(($ac_try" in
16540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541   *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544   (eval "$ac_compile") 2>conftest.er1
16545   ac_status=$?
16546   grep -v '^ *+' conftest.er1 >conftest.err
16547   rm -f conftest.er1
16548   cat conftest.err >&5
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552   { (case "(($ac_try" in
16553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554   *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557   (eval "$ac_try") 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; } &&
16561          { ac_try='test -s conftest.$ac_objext'
16562   { (case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_try") 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; }; then
16571   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576         ac_cv_have_decl_FE_ALL_EXCEPT=no
16577 fi
16578
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 fi
16581 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16582 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16583 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16584
16585 cat >>confdefs.h <<_ACEOF
16586 #define HAVE_DECL_FE_ALL_EXCEPT 1
16587 _ACEOF
16588
16589
16590 else
16591   cat >>confdefs.h <<_ACEOF
16592 #define HAVE_DECL_FE_ALL_EXCEPT 0
16593 _ACEOF
16594
16595
16596 fi
16597 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16598 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16599 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16600   echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602   cat >conftest.$ac_ext <<_ACEOF
16603 /* confdefs.h.  */
16604 _ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h.  */
16608 #include <fenv.h>
16609
16610 int
16611 main ()
16612 {
16613 #ifndef FE_INEXACT
16614   char *p = (char *) FE_INEXACT;
16615   return !p;
16616 #endif
16617
16618   ;
16619   return 0;
16620 }
16621 _ACEOF
16622 rm -f conftest.$ac_objext
16623 if { (ac_try="$ac_compile"
16624 case "(($ac_try" in
16625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626   *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629   (eval "$ac_compile") 2>conftest.er1
16630   ac_status=$?
16631   grep -v '^ *+' conftest.er1 >conftest.err
16632   rm -f conftest.er1
16633   cat conftest.err >&5
16634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635   (exit $ac_status); } &&
16636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16637   { (case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642   (eval "$ac_try") 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }; } &&
16646          { ac_try='test -s conftest.$ac_objext'
16647   { (case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652   (eval "$ac_try") 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; }; then
16656   ac_cv_have_decl_FE_INEXACT=yes
16657 else
16658   echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661         ac_cv_have_decl_FE_INEXACT=no
16662 fi
16663
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 fi
16666 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16667 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16668 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16669
16670 cat >>confdefs.h <<_ACEOF
16671 #define HAVE_DECL_FE_INEXACT 1
16672 _ACEOF
16673
16674
16675 else
16676   cat >>confdefs.h <<_ACEOF
16677 #define HAVE_DECL_FE_INEXACT 0
16678 _ACEOF
16679
16680
16681 fi
16682
16683
16684 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16685
16686 for ac_header in pthread.h
16687 do
16688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16690   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16693   echo $ECHO_N "(cached) $ECHO_C" >&6
16694 fi
16695 ac_res=`eval echo '${'$as_ac_Header'}'`
16696                { echo "$as_me:$LINENO: result: $ac_res" >&5
16697 echo "${ECHO_T}$ac_res" >&6; }
16698 else
16699   # Is the header compilable?
16700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16702 cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708 $ac_includes_default
16709 #include <$ac_header>
16710 _ACEOF
16711 rm -f conftest.$ac_objext
16712 if { (ac_try="$ac_compile"
16713 case "(($ac_try" in
16714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715   *) ac_try_echo=$ac_try;;
16716 esac
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718   (eval "$ac_compile") 2>conftest.er1
16719   ac_status=$?
16720   grep -v '^ *+' conftest.er1 >conftest.err
16721   rm -f conftest.er1
16722   cat conftest.err >&5
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); } &&
16725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16726   { (case "(($ac_try" in
16727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728   *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731   (eval "$ac_try") 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; } &&
16735          { ac_try='test -s conftest.$ac_objext'
16736   { (case "(($ac_try" in
16737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738   *) ac_try_echo=$ac_try;;
16739 esac
16740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741   (eval "$ac_try") 2>&5
16742   ac_status=$?
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); }; }; then
16745   ac_header_compiler=yes
16746 else
16747   echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16749
16750         ac_header_compiler=no
16751 fi
16752
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16755 echo "${ECHO_T}$ac_header_compiler" >&6; }
16756
16757 # Is the header present?
16758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h.  */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h.  */
16766 #include <$ac_header>
16767 _ACEOF
16768 if { (ac_try="$ac_cpp conftest.$ac_ext"
16769 case "(($ac_try" in
16770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771   *) ac_try_echo=$ac_try;;
16772 esac
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16775   ac_status=$?
16776   grep -v '^ *+' conftest.er1 >conftest.err
16777   rm -f conftest.er1
16778   cat conftest.err >&5
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } >/dev/null; then
16781   if test -s conftest.err; then
16782     ac_cpp_err=$ac_c_preproc_warn_flag
16783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16784   else
16785     ac_cpp_err=
16786   fi
16787 else
16788   ac_cpp_err=yes
16789 fi
16790 if test -z "$ac_cpp_err"; then
16791   ac_header_preproc=yes
16792 else
16793   echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16795
16796   ac_header_preproc=no
16797 fi
16798
16799 rm -f conftest.err conftest.$ac_ext
16800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16801 echo "${ECHO_T}$ac_header_preproc" >&6; }
16802
16803 # So?  What about this header?
16804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16805   yes:no: )
16806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16810     ac_header_preproc=yes
16811     ;;
16812   no:yes:* )
16813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16825     ( cat <<\_ASBOX
16826 ## ------------------------------------ ##
16827 ## Report this to http://llvm.org/bugs/ ##
16828 ## ------------------------------------ ##
16829 _ASBOX
16830      ) | sed "s/^/$as_me: WARNING:     /" >&2
16831     ;;
16832 esac
16833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16836   echo $ECHO_N "(cached) $ECHO_C" >&6
16837 else
16838   eval "$as_ac_Header=\$ac_header_preproc"
16839 fi
16840 ac_res=`eval echo '${'$as_ac_Header'}'`
16841                { echo "$as_me:$LINENO: result: $ac_res" >&5
16842 echo "${ECHO_T}$ac_res" >&6; }
16843
16844 fi
16845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16846   cat >>confdefs.h <<_ACEOF
16847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16848 _ACEOF
16849  HAVE_PTHREAD=1
16850
16851 else
16852   HAVE_PTHREAD=0
16853
16854 fi
16855
16856 done
16857
16858 else
16859   HAVE_PTHREAD=0
16860
16861 fi
16862 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16863
16864 for ac_header in zlib.h
16865 do
16866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16868   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16871   echo $ECHO_N "(cached) $ECHO_C" >&6
16872 fi
16873 ac_res=`eval echo '${'$as_ac_Header'}'`
16874                { echo "$as_me:$LINENO: result: $ac_res" >&5
16875 echo "${ECHO_T}$ac_res" >&6; }
16876 else
16877   # Is the header compilable?
16878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16880 cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886 $ac_includes_default
16887 #include <$ac_header>
16888 _ACEOF
16889 rm -f conftest.$ac_objext
16890 if { (ac_try="$ac_compile"
16891 case "(($ac_try" in
16892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893   *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896   (eval "$ac_compile") 2>conftest.er1
16897   ac_status=$?
16898   grep -v '^ *+' conftest.er1 >conftest.err
16899   rm -f conftest.er1
16900   cat conftest.err >&5
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); } &&
16903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904   { (case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909   (eval "$ac_try") 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; } &&
16913          { ac_try='test -s conftest.$ac_objext'
16914   { (case "(($ac_try" in
16915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916   *) ac_try_echo=$ac_try;;
16917 esac
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919   (eval "$ac_try") 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; }; then
16923   ac_header_compiler=yes
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928         ac_header_compiler=no
16929 fi
16930
16931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16933 echo "${ECHO_T}$ac_header_compiler" >&6; }
16934
16935 # Is the header present?
16936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944 #include <$ac_header>
16945 _ACEOF
16946 if { (ac_try="$ac_cpp conftest.$ac_ext"
16947 case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16953   ac_status=$?
16954   grep -v '^ *+' conftest.er1 >conftest.err
16955   rm -f conftest.er1
16956   cat conftest.err >&5
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); } >/dev/null; then
16959   if test -s conftest.err; then
16960     ac_cpp_err=$ac_c_preproc_warn_flag
16961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16962   else
16963     ac_cpp_err=
16964   fi
16965 else
16966   ac_cpp_err=yes
16967 fi
16968 if test -z "$ac_cpp_err"; then
16969   ac_header_preproc=yes
16970 else
16971   echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16973
16974   ac_header_preproc=no
16975 fi
16976
16977 rm -f conftest.err conftest.$ac_ext
16978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16979 echo "${ECHO_T}$ac_header_preproc" >&6; }
16980
16981 # So?  What about this header?
16982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16983   yes:no: )
16984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16988     ac_header_preproc=yes
16989     ;;
16990   no:yes:* )
16991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17003     ( cat <<\_ASBOX
17004 ## ------------------------------------ ##
17005 ## Report this to http://llvm.org/bugs/ ##
17006 ## ------------------------------------ ##
17007 _ASBOX
17008      ) | sed "s/^/$as_me: WARNING:     /" >&2
17009     ;;
17010 esac
17011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   eval "$as_ac_Header=\$ac_header_preproc"
17017 fi
17018 ac_res=`eval echo '${'$as_ac_Header'}'`
17019                { echo "$as_me:$LINENO: result: $ac_res" >&5
17020 echo "${ECHO_T}$ac_res" >&6; }
17021
17022 fi
17023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17024   cat >>confdefs.h <<_ACEOF
17025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17026 _ACEOF
17027  HAVE_LIBZ=1
17028
17029 else
17030   HAVE_LIBZ=0
17031
17032 fi
17033
17034 done
17035
17036 else
17037   HAVE_LIBZ=0
17038
17039 fi
17040
17041 if test "$llvm_cv_enable_libffi" = "yes" ; then
17042
17043
17044 for ac_header in ffi.h ffi/ffi.h
17045 do
17046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17048   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 fi
17053 ac_res=`eval echo '${'$as_ac_Header'}'`
17054                { echo "$as_me:$LINENO: result: $ac_res" >&5
17055 echo "${ECHO_T}$ac_res" >&6; }
17056 else
17057   # Is the header compilable?
17058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h.  */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h.  */
17066 $ac_includes_default
17067 #include <$ac_header>
17068 _ACEOF
17069 rm -f conftest.$ac_objext
17070 if { (ac_try="$ac_compile"
17071 case "(($ac_try" in
17072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073   *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076   (eval "$ac_compile") 2>conftest.er1
17077   ac_status=$?
17078   grep -v '^ *+' conftest.er1 >conftest.err
17079   rm -f conftest.er1
17080   cat conftest.err >&5
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); } &&
17083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17084   { (case "(($ac_try" in
17085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086   *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089   (eval "$ac_try") 2>&5
17090   ac_status=$?
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); }; } &&
17093          { ac_try='test -s conftest.$ac_objext'
17094   { (case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099   (eval "$ac_try") 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); }; }; then
17103   ac_header_compiler=yes
17104 else
17105   echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108         ac_header_compiler=no
17109 fi
17110
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17113 echo "${ECHO_T}$ac_header_compiler" >&6; }
17114
17115 # Is the header present?
17116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17118 cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h.  */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h.  */
17124 #include <$ac_header>
17125 _ACEOF
17126 if { (ac_try="$ac_cpp conftest.$ac_ext"
17127 case "(($ac_try" in
17128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129   *) ac_try_echo=$ac_try;;
17130 esac
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17133   ac_status=$?
17134   grep -v '^ *+' conftest.er1 >conftest.err
17135   rm -f conftest.er1
17136   cat conftest.err >&5
17137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); } >/dev/null; then
17139   if test -s conftest.err; then
17140     ac_cpp_err=$ac_c_preproc_warn_flag
17141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17142   else
17143     ac_cpp_err=
17144   fi
17145 else
17146   ac_cpp_err=yes
17147 fi
17148 if test -z "$ac_cpp_err"; then
17149   ac_header_preproc=yes
17150 else
17151   echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17153
17154   ac_header_preproc=no
17155 fi
17156
17157 rm -f conftest.err conftest.$ac_ext
17158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17159 echo "${ECHO_T}$ac_header_preproc" >&6; }
17160
17161 # So?  What about this header?
17162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17163   yes:no: )
17164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17168     ac_header_preproc=yes
17169     ;;
17170   no:yes:* )
17171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17183     ( cat <<\_ASBOX
17184 ## ------------------------------------ ##
17185 ## Report this to http://llvm.org/bugs/ ##
17186 ## ------------------------------------ ##
17187 _ASBOX
17188      ) | sed "s/^/$as_me: WARNING:     /" >&2
17189     ;;
17190 esac
17191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17194   echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196   eval "$as_ac_Header=\$ac_header_preproc"
17197 fi
17198 ac_res=`eval echo '${'$as_ac_Header'}'`
17199                { echo "$as_me:$LINENO: result: $ac_res" >&5
17200 echo "${ECHO_T}$ac_res" >&6; }
17201
17202 fi
17203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17204   cat >>confdefs.h <<_ACEOF
17205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17206 _ACEOF
17207
17208 fi
17209
17210 done
17211
17212 fi
17213
17214
17215 for ac_header in CrashReporterClient.h
17216 do
17217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17219   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17222   echo $ECHO_N "(cached) $ECHO_C" >&6
17223 fi
17224 ac_res=`eval echo '${'$as_ac_Header'}'`
17225                { echo "$as_me:$LINENO: result: $ac_res" >&5
17226 echo "${ECHO_T}$ac_res" >&6; }
17227 else
17228   # Is the header compilable?
17229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237 $ac_includes_default
17238 #include <$ac_header>
17239 _ACEOF
17240 rm -f conftest.$ac_objext
17241 if { (ac_try="$ac_compile"
17242 case "(($ac_try" in
17243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244   *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247   (eval "$ac_compile") 2>conftest.er1
17248   ac_status=$?
17249   grep -v '^ *+' conftest.er1 >conftest.err
17250   rm -f conftest.er1
17251   cat conftest.err >&5
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); } &&
17254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17255   { (case "(($ac_try" in
17256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257   *) ac_try_echo=$ac_try;;
17258 esac
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260   (eval "$ac_try") 2>&5
17261   ac_status=$?
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); }; } &&
17264          { ac_try='test -s conftest.$ac_objext'
17265   { (case "(($ac_try" in
17266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267   *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270   (eval "$ac_try") 2>&5
17271   ac_status=$?
17272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273   (exit $ac_status); }; }; then
17274   ac_header_compiler=yes
17275 else
17276   echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17278
17279         ac_header_compiler=no
17280 fi
17281
17282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17284 echo "${ECHO_T}$ac_header_compiler" >&6; }
17285
17286 # Is the header present?
17287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h.  */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h.  */
17295 #include <$ac_header>
17296 _ACEOF
17297 if { (ac_try="$ac_cpp conftest.$ac_ext"
17298 case "(($ac_try" in
17299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300   *) ac_try_echo=$ac_try;;
17301 esac
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17304   ac_status=$?
17305   grep -v '^ *+' conftest.er1 >conftest.err
17306   rm -f conftest.er1
17307   cat conftest.err >&5
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); } >/dev/null; then
17310   if test -s conftest.err; then
17311     ac_cpp_err=$ac_c_preproc_warn_flag
17312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17313   else
17314     ac_cpp_err=
17315   fi
17316 else
17317   ac_cpp_err=yes
17318 fi
17319 if test -z "$ac_cpp_err"; then
17320   ac_header_preproc=yes
17321 else
17322   echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17324
17325   ac_header_preproc=no
17326 fi
17327
17328 rm -f conftest.err conftest.$ac_ext
17329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17330 echo "${ECHO_T}$ac_header_preproc" >&6; }
17331
17332 # So?  What about this header?
17333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17334   yes:no: )
17335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17339     ac_header_preproc=yes
17340     ;;
17341   no:yes:* )
17342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17354     ( cat <<\_ASBOX
17355 ## ------------------------------------ ##
17356 ## Report this to http://llvm.org/bugs/ ##
17357 ## ------------------------------------ ##
17358 _ASBOX
17359      ) | sed "s/^/$as_me: WARNING:     /" >&2
17360     ;;
17361 esac
17362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17365   echo $ECHO_N "(cached) $ECHO_C" >&6
17366 else
17367   eval "$as_ac_Header=\$ac_header_preproc"
17368 fi
17369 ac_res=`eval echo '${'$as_ac_Header'}'`
17370                { echo "$as_me:$LINENO: result: $ac_res" >&5
17371 echo "${ECHO_T}$ac_res" >&6; }
17372
17373 fi
17374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17375   cat >>confdefs.h <<_ACEOF
17376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17377 _ACEOF
17378
17379 fi
17380
17381 done
17382
17383
17384 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17385 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17386 cat >conftest.$ac_ext <<_ACEOF
17387
17388   /* confdefs.h.  */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h.  */
17393
17394     extern const char *__crashreporter_info__;
17395     int main() {
17396       __crashreporter_info__ = "test";
17397       return 0;
17398     }
17399
17400
17401 _ACEOF
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (ac_try="$ac_link"
17404 case "(($ac_try" in
17405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406   *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409   (eval "$ac_link") 2>conftest.er1
17410   ac_status=$?
17411   grep -v '^ *+' conftest.er1 >conftest.err
17412   rm -f conftest.er1
17413   cat conftest.err >&5
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); } &&
17416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17417   { (case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_try") 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); }; } &&
17426          { ac_try='test -s conftest$ac_exeext'
17427   { (case "(($ac_try" in
17428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429   *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432   (eval "$ac_try") 2>&5
17433   ac_status=$?
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); }; }; then
17436
17437   { echo "$as_me:$LINENO: result: yes" >&5
17438 echo "${ECHO_T}yes" >&6; }
17439
17440 cat >>confdefs.h <<\_ACEOF
17441 #define HAVE_CRASHREPORTER_INFO 1
17442 _ACEOF
17443
17444
17445 else
17446   echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17448
17449
17450   { echo "$as_me:$LINENO: result: no" >&5
17451 echo "${ECHO_T}no" >&6; }
17452
17453 cat >>confdefs.h <<\_ACEOF
17454 #define HAVE_CRASHREPORTER_INFO 0
17455 _ACEOF
17456
17457
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext \
17461       conftest$ac_exeext conftest.$ac_ext
17462
17463
17464
17465   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17466 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17467 if test "${ac_cv_huge_val_sanity+set}" = set; then
17468   echo $ECHO_N "(cached) $ECHO_C" >&6
17469 else
17470
17471     ac_ext=cpp
17472 ac_cpp='$CXXCPP $CPPFLAGS'
17473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17476
17477     ac_save_CXXFLAGS=$CXXFLAGS
17478     CXXFLAGS="$CXXFLAGS -pedantic"
17479     if test "$cross_compiling" = yes; then
17480   ac_cv_huge_val_sanity=yes
17481 else
17482   cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h.  */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h.  */
17488 #include <math.h>
17489 int
17490 main ()
17491 {
17492 double x = HUGE_VAL; return x != x;
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504   (eval "$ac_link") 2>&5
17505   ac_status=$?
17506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17508   { (case "(($ac_try" in
17509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510   *) ac_try_echo=$ac_try;;
17511 esac
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513   (eval "$ac_try") 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; }; then
17517   ac_cv_huge_val_sanity=yes
17518 else
17519   echo "$as_me: program exited with status $ac_status" >&5
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17522
17523 ( exit $ac_status )
17524 ac_cv_huge_val_sanity=no
17525 fi
17526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17527 fi
17528
17529
17530     CXXFLAGS=$ac_save_CXXFLAGS
17531     ac_ext=c
17532 ac_cpp='$CPP $CPPFLAGS'
17533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17536
17537
17538 fi
17539 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17540 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17541   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17542
17543
17544 { echo "$as_me:$LINENO: checking for pid_t" >&5
17545 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17546 if test "${ac_cv_type_pid_t+set}" = set; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549   cat >conftest.$ac_ext <<_ACEOF
17550 /* confdefs.h.  */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h.  */
17555 $ac_includes_default
17556 typedef pid_t ac__type_new_;
17557 int
17558 main ()
17559 {
17560 if ((ac__type_new_ *) 0)
17561   return 0;
17562 if (sizeof (ac__type_new_))
17563   return 0;
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 rm -f conftest.$ac_objext
17569 if { (ac_try="$ac_compile"
17570 case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_compile") 2>conftest.er1
17576   ac_status=$?
17577   grep -v '^ *+' conftest.er1 >conftest.err
17578   rm -f conftest.er1
17579   cat conftest.err >&5
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); } &&
17582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17583   { (case "(($ac_try" in
17584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585   *) ac_try_echo=$ac_try;;
17586 esac
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588   (eval "$ac_try") 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; } &&
17592          { ac_try='test -s conftest.$ac_objext'
17593   { (case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_try") 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; }; then
17602   ac_cv_type_pid_t=yes
17603 else
17604   echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607         ac_cv_type_pid_t=no
17608 fi
17609
17610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611 fi
17612 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17613 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17614 if test $ac_cv_type_pid_t = yes; then
17615   :
17616 else
17617
17618 cat >>confdefs.h <<_ACEOF
17619 #define pid_t int
17620 _ACEOF
17621
17622 fi
17623
17624 { echo "$as_me:$LINENO: checking for size_t" >&5
17625 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17626 if test "${ac_cv_type_size_t+set}" = set; then
17627   echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629   cat >conftest.$ac_ext <<_ACEOF
17630 /* confdefs.h.  */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h.  */
17635 $ac_includes_default
17636 typedef size_t ac__type_new_;
17637 int
17638 main ()
17639 {
17640 if ((ac__type_new_ *) 0)
17641   return 0;
17642 if (sizeof (ac__type_new_))
17643   return 0;
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext
17649 if { (ac_try="$ac_compile"
17650 case "(($ac_try" in
17651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652   *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655   (eval "$ac_compile") 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } &&
17662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663   { (case "(($ac_try" in
17664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665   *) ac_try_echo=$ac_try;;
17666 esac
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668   (eval "$ac_try") 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; } &&
17672          { ac_try='test -s conftest.$ac_objext'
17673   { (case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_try") 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   ac_cv_type_size_t=yes
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687         ac_cv_type_size_t=no
17688 fi
17689
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 fi
17692 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17693 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17694 if test $ac_cv_type_size_t = yes; then
17695   :
17696 else
17697
17698 cat >>confdefs.h <<_ACEOF
17699 #define size_t unsigned int
17700 _ACEOF
17701
17702 fi
17703
17704
17705 cat >>confdefs.h <<_ACEOF
17706 #define RETSIGTYPE void
17707 _ACEOF
17708
17709 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17710 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17711 if test "${ac_cv_struct_tm+set}" = set; then
17712   echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714   cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h.  */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h.  */
17720 #include <sys/types.h>
17721 #include <time.h>
17722
17723 int
17724 main ()
17725 {
17726 struct tm *tp; tp->tm_sec;
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (ac_try="$ac_compile"
17733 case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_compile") 2>conftest.er1
17739   ac_status=$?
17740   grep -v '^ *+' conftest.er1 >conftest.err
17741   rm -f conftest.er1
17742   cat conftest.err >&5
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); } &&
17745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746   { (case "(($ac_try" in
17747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748   *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751   (eval "$ac_try") 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; } &&
17755          { ac_try='test -s conftest.$ac_objext'
17756   { (case "(($ac_try" in
17757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758   *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761   (eval "$ac_try") 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; }; then
17765   ac_cv_struct_tm=time.h
17766 else
17767   echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770         ac_cv_struct_tm=sys/time.h
17771 fi
17772
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 fi
17775 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17776 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17777 if test $ac_cv_struct_tm = sys/time.h; then
17778
17779 cat >>confdefs.h <<\_ACEOF
17780 #define TM_IN_SYS_TIME 1
17781 _ACEOF
17782
17783 fi
17784
17785 { echo "$as_me:$LINENO: checking for int64_t" >&5
17786 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17787 if test "${ac_cv_type_int64_t+set}" = set; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790   cat >conftest.$ac_ext <<_ACEOF
17791 /* confdefs.h.  */
17792 _ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h.  */
17796 $ac_includes_default
17797 typedef int64_t ac__type_new_;
17798 int
17799 main ()
17800 {
17801 if ((ac__type_new_ *) 0)
17802   return 0;
17803 if (sizeof (ac__type_new_))
17804   return 0;
17805   ;
17806   return 0;
17807 }
17808 _ACEOF
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813   *) ac_try_echo=$ac_try;;
17814 esac
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816   (eval "$ac_compile") 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } &&
17823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824   { (case "(($ac_try" in
17825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826   *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829   (eval "$ac_try") 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; } &&
17833          { ac_try='test -s conftest.$ac_objext'
17834   { (case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_try") 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); }; }; then
17843   ac_cv_type_int64_t=yes
17844 else
17845   echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848         ac_cv_type_int64_t=no
17849 fi
17850
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 fi
17853 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17854 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17855 if test $ac_cv_type_int64_t = yes; then
17856
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_INT64_T 1
17859 _ACEOF
17860
17861
17862 else
17863   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17864 echo "$as_me: error: Type int64_t required but not found" >&2;}
17865    { (exit 1); exit 1; }; }
17866 fi
17867
17868 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17869 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17870 if test "${ac_cv_type_uint64_t+set}" = set; then
17871   echo $ECHO_N "(cached) $ECHO_C" >&6
17872 else
17873   cat >conftest.$ac_ext <<_ACEOF
17874 /* confdefs.h.  */
17875 _ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h.  */
17879 $ac_includes_default
17880 typedef uint64_t ac__type_new_;
17881 int
17882 main ()
17883 {
17884 if ((ac__type_new_ *) 0)
17885   return 0;
17886 if (sizeof (ac__type_new_))
17887   return 0;
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest.$ac_objext
17893 if { (ac_try="$ac_compile"
17894 case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_compile") 2>conftest.er1
17900   ac_status=$?
17901   grep -v '^ *+' conftest.er1 >conftest.err
17902   rm -f conftest.er1
17903   cat conftest.err >&5
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); } &&
17906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907   { (case "(($ac_try" in
17908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909   *) ac_try_echo=$ac_try;;
17910 esac
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912   (eval "$ac_try") 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; } &&
17916          { ac_try='test -s conftest.$ac_objext'
17917   { (case "(($ac_try" in
17918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919   *) ac_try_echo=$ac_try;;
17920 esac
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922   (eval "$ac_try") 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   ac_cv_type_uint64_t=yes
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931         ac_cv_type_uint64_t=no
17932 fi
17933
17934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935 fi
17936 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17937 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17938 if test $ac_cv_type_uint64_t = yes; then
17939
17940 cat >>confdefs.h <<_ACEOF
17941 #define HAVE_UINT64_T 1
17942 _ACEOF
17943
17944
17945 else
17946   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17947 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17948 if test "${ac_cv_type_u_int64_t+set}" = set; then
17949   echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951   cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957 $ac_includes_default
17958 typedef u_int64_t ac__type_new_;
17959 int
17960 main ()
17961 {
17962 if ((ac__type_new_ *) 0)
17963   return 0;
17964 if (sizeof (ac__type_new_))
17965   return 0;
17966   ;
17967   return 0;
17968 }
17969 _ACEOF
17970 rm -f conftest.$ac_objext
17971 if { (ac_try="$ac_compile"
17972 case "(($ac_try" in
17973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974   *) ac_try_echo=$ac_try;;
17975 esac
17976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17977   (eval "$ac_compile") 2>conftest.er1
17978   ac_status=$?
17979   grep -v '^ *+' conftest.er1 >conftest.err
17980   rm -f conftest.er1
17981   cat conftest.err >&5
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); } &&
17984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17985   { (case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_try") 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; } &&
17994          { ac_try='test -s conftest.$ac_objext'
17995   { (case "(($ac_try" in
17996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997   *) ac_try_echo=$ac_try;;
17998 esac
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000   (eval "$ac_try") 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; }; then
18004   ac_cv_type_u_int64_t=yes
18005 else
18006   echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009         ac_cv_type_u_int64_t=no
18010 fi
18011
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 fi
18014 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18015 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18016 if test $ac_cv_type_u_int64_t = yes; then
18017
18018 cat >>confdefs.h <<_ACEOF
18019 #define HAVE_U_INT64_T 1
18020 _ACEOF
18021
18022
18023 else
18024   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18025 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18026    { (exit 1); exit 1; }; }
18027 fi
18028
18029 fi
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18041 do
18042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h.  */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h.  */
18054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18056 #define $ac_func innocuous_$ac_func
18057
18058 /* System header to define __stub macros and hopefully few prototypes,
18059     which can conflict with char $ac_func (); below.
18060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18061     <limits.h> exists even on freestanding compilers.  */
18062
18063 #ifdef __STDC__
18064 # include <limits.h>
18065 #else
18066 # include <assert.h>
18067 #endif
18068
18069 #undef $ac_func
18070
18071 /* Override any GCC internal prototype to avoid an error.
18072    Use char because int might match the return type of a GCC
18073    builtin and then its argument prototype would still apply.  */
18074 #ifdef __cplusplus
18075 extern "C"
18076 #endif
18077 char $ac_func ();
18078 /* The GNU C library defines this for functions which it implements
18079     to always fail with ENOSYS.  Some functions are actually named
18080     something starting with __ and the normal name is an alias.  */
18081 #if defined __stub_$ac_func || defined __stub___$ac_func
18082 choke me
18083 #endif
18084
18085 int
18086 main ()
18087 {
18088 return $ac_func ();
18089   ;
18090   return 0;
18091 }
18092 _ACEOF
18093 rm -f conftest.$ac_objext conftest$ac_exeext
18094 if { (ac_try="$ac_link"
18095 case "(($ac_try" in
18096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097   *) ac_try_echo=$ac_try;;
18098 esac
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100   (eval "$ac_link") 2>conftest.er1
18101   ac_status=$?
18102   grep -v '^ *+' conftest.er1 >conftest.err
18103   rm -f conftest.er1
18104   cat conftest.err >&5
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); } &&
18107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18108   { (case "(($ac_try" in
18109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110   *) ac_try_echo=$ac_try;;
18111 esac
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113   (eval "$ac_try") 2>&5
18114   ac_status=$?
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); }; } &&
18117          { ac_try='test -s conftest$ac_exeext'
18118   { (case "(($ac_try" in
18119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120   *) ac_try_echo=$ac_try;;
18121 esac
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123   (eval "$ac_try") 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; }; then
18127   eval "$as_ac_var=yes"
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132         eval "$as_ac_var=no"
18133 fi
18134
18135 rm -f core conftest.err conftest.$ac_objext \
18136       conftest$ac_exeext conftest.$ac_ext
18137 fi
18138 ac_res=`eval echo '${'$as_ac_var'}'`
18139                { echo "$as_me:$LINENO: result: $ac_res" >&5
18140 echo "${ECHO_T}$ac_res" >&6; }
18141 if test `eval echo '${'$as_ac_var'}'` = yes; then
18142   cat >>confdefs.h <<_ACEOF
18143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18144 _ACEOF
18145
18146 fi
18147 done
18148
18149
18150
18151
18152
18153 for ac_func in powf fmodf strtof round
18154 do
18155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18159   echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161   cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h.  */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h.  */
18167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18169 #define $ac_func innocuous_$ac_func
18170
18171 /* System header to define __stub macros and hopefully few prototypes,
18172     which can conflict with char $ac_func (); below.
18173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18174     <limits.h> exists even on freestanding compilers.  */
18175
18176 #ifdef __STDC__
18177 # include <limits.h>
18178 #else
18179 # include <assert.h>
18180 #endif
18181
18182 #undef $ac_func
18183
18184 /* Override any GCC internal prototype to avoid an error.
18185    Use char because int might match the return type of a GCC
18186    builtin and then its argument prototype would still apply.  */
18187 #ifdef __cplusplus
18188 extern "C"
18189 #endif
18190 char $ac_func ();
18191 /* The GNU C library defines this for functions which it implements
18192     to always fail with ENOSYS.  Some functions are actually named
18193     something starting with __ and the normal name is an alias.  */
18194 #if defined __stub_$ac_func || defined __stub___$ac_func
18195 choke me
18196 #endif
18197
18198 int
18199 main ()
18200 {
18201 return $ac_func ();
18202   ;
18203   return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (ac_try="$ac_link"
18208 case "(($ac_try" in
18209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210   *) ac_try_echo=$ac_try;;
18211 esac
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213   (eval "$ac_link") 2>conftest.er1
18214   ac_status=$?
18215   grep -v '^ *+' conftest.er1 >conftest.err
18216   rm -f conftest.er1
18217   cat conftest.err >&5
18218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); } &&
18220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18221   { (case "(($ac_try" in
18222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223   *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226   (eval "$ac_try") 2>&5
18227   ac_status=$?
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); }; } &&
18230          { ac_try='test -s conftest$ac_exeext'
18231   { (case "(($ac_try" in
18232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233   *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236   (eval "$ac_try") 2>&5
18237   ac_status=$?
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); }; }; then
18240   eval "$as_ac_var=yes"
18241 else
18242   echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18244
18245         eval "$as_ac_var=no"
18246 fi
18247
18248 rm -f core conftest.err conftest.$ac_objext \
18249       conftest$ac_exeext conftest.$ac_ext
18250 fi
18251 ac_res=`eval echo '${'$as_ac_var'}'`
18252                { echo "$as_me:$LINENO: result: $ac_res" >&5
18253 echo "${ECHO_T}$ac_res" >&6; }
18254 if test `eval echo '${'$as_ac_var'}'` = yes; then
18255   cat >>confdefs.h <<_ACEOF
18256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18257 _ACEOF
18258
18259 fi
18260 done
18261
18262
18263
18264
18265
18266
18267 for ac_func in log log2 log10 exp exp2
18268 do
18269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18273   echo $ECHO_N "(cached) $ECHO_C" >&6
18274 else
18275   cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h.  */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h.  */
18281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18283 #define $ac_func innocuous_$ac_func
18284
18285 /* System header to define __stub macros and hopefully few prototypes,
18286     which can conflict with char $ac_func (); below.
18287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18288     <limits.h> exists even on freestanding compilers.  */
18289
18290 #ifdef __STDC__
18291 # include <limits.h>
18292 #else
18293 # include <assert.h>
18294 #endif
18295
18296 #undef $ac_func
18297
18298 /* Override any GCC internal prototype to avoid an error.
18299    Use char because int might match the return type of a GCC
18300    builtin and then its argument prototype would still apply.  */
18301 #ifdef __cplusplus
18302 extern "C"
18303 #endif
18304 char $ac_func ();
18305 /* The GNU C library defines this for functions which it implements
18306     to always fail with ENOSYS.  Some functions are actually named
18307     something starting with __ and the normal name is an alias.  */
18308 #if defined __stub_$ac_func || defined __stub___$ac_func
18309 choke me
18310 #endif
18311
18312 int
18313 main ()
18314 {
18315 return $ac_func ();
18316   ;
18317   return 0;
18318 }
18319 _ACEOF
18320 rm -f conftest.$ac_objext conftest$ac_exeext
18321 if { (ac_try="$ac_link"
18322 case "(($ac_try" in
18323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324   *) ac_try_echo=$ac_try;;
18325 esac
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327   (eval "$ac_link") 2>conftest.er1
18328   ac_status=$?
18329   grep -v '^ *+' conftest.er1 >conftest.err
18330   rm -f conftest.er1
18331   cat conftest.err >&5
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); } &&
18334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18335   { (case "(($ac_try" in
18336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337   *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340   (eval "$ac_try") 2>&5
18341   ac_status=$?
18342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343   (exit $ac_status); }; } &&
18344          { ac_try='test -s conftest$ac_exeext'
18345   { (case "(($ac_try" in
18346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347   *) ac_try_echo=$ac_try;;
18348 esac
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350   (eval "$ac_try") 2>&5
18351   ac_status=$?
18352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353   (exit $ac_status); }; }; then
18354   eval "$as_ac_var=yes"
18355 else
18356   echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18358
18359         eval "$as_ac_var=no"
18360 fi
18361
18362 rm -f core conftest.err conftest.$ac_objext \
18363       conftest$ac_exeext conftest.$ac_ext
18364 fi
18365 ac_res=`eval echo '${'$as_ac_var'}'`
18366                { echo "$as_me:$LINENO: result: $ac_res" >&5
18367 echo "${ECHO_T}$ac_res" >&6; }
18368 if test `eval echo '${'$as_ac_var'}'` = yes; then
18369   cat >>confdefs.h <<_ACEOF
18370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18371 _ACEOF
18372
18373 fi
18374 done
18375
18376
18377
18378
18379
18380
18381 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18382 do
18383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18387   echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389   cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h.  */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h.  */
18395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18397 #define $ac_func innocuous_$ac_func
18398
18399 /* System header to define __stub macros and hopefully few prototypes,
18400     which can conflict with char $ac_func (); below.
18401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18402     <limits.h> exists even on freestanding compilers.  */
18403
18404 #ifdef __STDC__
18405 # include <limits.h>
18406 #else
18407 # include <assert.h>
18408 #endif
18409
18410 #undef $ac_func
18411
18412 /* Override any GCC internal prototype to avoid an error.
18413    Use char because int might match the return type of a GCC
18414    builtin and then its argument prototype would still apply.  */
18415 #ifdef __cplusplus
18416 extern "C"
18417 #endif
18418 char $ac_func ();
18419 /* The GNU C library defines this for functions which it implements
18420     to always fail with ENOSYS.  Some functions are actually named
18421     something starting with __ and the normal name is an alias.  */
18422 #if defined __stub_$ac_func || defined __stub___$ac_func
18423 choke me
18424 #endif
18425
18426 int
18427 main ()
18428 {
18429 return $ac_func ();
18430   ;
18431   return 0;
18432 }
18433 _ACEOF
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438   *) ac_try_echo=$ac_try;;
18439 esac
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441   (eval "$ac_link") 2>conftest.er1
18442   ac_status=$?
18443   grep -v '^ *+' conftest.er1 >conftest.err
18444   rm -f conftest.er1
18445   cat conftest.err >&5
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); } &&
18448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18449   { (case "(($ac_try" in
18450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451   *) ac_try_echo=$ac_try;;
18452 esac
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454   (eval "$ac_try") 2>&5
18455   ac_status=$?
18456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457   (exit $ac_status); }; } &&
18458          { ac_try='test -s conftest$ac_exeext'
18459   { (case "(($ac_try" in
18460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461   *) ac_try_echo=$ac_try;;
18462 esac
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464   (eval "$ac_try") 2>&5
18465   ac_status=$?
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); }; }; then
18468   eval "$as_ac_var=yes"
18469 else
18470   echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18472
18473         eval "$as_ac_var=no"
18474 fi
18475
18476 rm -f core conftest.err conftest.$ac_objext \
18477       conftest$ac_exeext conftest.$ac_ext
18478 fi
18479 ac_res=`eval echo '${'$as_ac_var'}'`
18480                { echo "$as_me:$LINENO: result: $ac_res" >&5
18481 echo "${ECHO_T}$ac_res" >&6; }
18482 if test `eval echo '${'$as_ac_var'}'` = yes; then
18483   cat >>confdefs.h <<_ACEOF
18484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18485 _ACEOF
18486
18487 fi
18488 done
18489
18490
18491
18492
18493 for ac_func in isatty mkdtemp mkstemp
18494 do
18495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18499   echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501   cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18509 #define $ac_func innocuous_$ac_func
18510
18511 /* System header to define __stub macros and hopefully few prototypes,
18512     which can conflict with char $ac_func (); below.
18513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18514     <limits.h> exists even on freestanding compilers.  */
18515
18516 #ifdef __STDC__
18517 # include <limits.h>
18518 #else
18519 # include <assert.h>
18520 #endif
18521
18522 #undef $ac_func
18523
18524 /* Override any GCC internal prototype to avoid an error.
18525    Use char because int might match the return type of a GCC
18526    builtin and then its argument prototype would still apply.  */
18527 #ifdef __cplusplus
18528 extern "C"
18529 #endif
18530 char $ac_func ();
18531 /* The GNU C library defines this for functions which it implements
18532     to always fail with ENOSYS.  Some functions are actually named
18533     something starting with __ and the normal name is an alias.  */
18534 #if defined __stub_$ac_func || defined __stub___$ac_func
18535 choke me
18536 #endif
18537
18538 int
18539 main ()
18540 {
18541 return $ac_func ();
18542   ;
18543   return 0;
18544 }
18545 _ACEOF
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (ac_try="$ac_link"
18548 case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_link") 2>conftest.er1
18554   ac_status=$?
18555   grep -v '^ *+' conftest.er1 >conftest.err
18556   rm -f conftest.er1
18557   cat conftest.err >&5
18558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559   (exit $ac_status); } &&
18560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18561   { (case "(($ac_try" in
18562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563   *) ac_try_echo=$ac_try;;
18564 esac
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566   (eval "$ac_try") 2>&5
18567   ac_status=$?
18568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569   (exit $ac_status); }; } &&
18570          { ac_try='test -s conftest$ac_exeext'
18571   { (case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_try") 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; }; then
18580   eval "$as_ac_var=yes"
18581 else
18582   echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18584
18585         eval "$as_ac_var=no"
18586 fi
18587
18588 rm -f core conftest.err conftest.$ac_objext \
18589       conftest$ac_exeext conftest.$ac_ext
18590 fi
18591 ac_res=`eval echo '${'$as_ac_var'}'`
18592                { echo "$as_me:$LINENO: result: $ac_res" >&5
18593 echo "${ECHO_T}$ac_res" >&6; }
18594 if test `eval echo '${'$as_ac_var'}'` = yes; then
18595   cat >>confdefs.h <<_ACEOF
18596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18597 _ACEOF
18598
18599 fi
18600 done
18601
18602
18603
18604
18605
18606
18607
18608
18609 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18610 do
18611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18615   echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617   cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h.  */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h.  */
18623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18625 #define $ac_func innocuous_$ac_func
18626
18627 /* System header to define __stub macros and hopefully few prototypes,
18628     which can conflict with char $ac_func (); below.
18629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18630     <limits.h> exists even on freestanding compilers.  */
18631
18632 #ifdef __STDC__
18633 # include <limits.h>
18634 #else
18635 # include <assert.h>
18636 #endif
18637
18638 #undef $ac_func
18639
18640 /* Override any GCC internal prototype to avoid an error.
18641    Use char because int might match the return type of a GCC
18642    builtin and then its argument prototype would still apply.  */
18643 #ifdef __cplusplus
18644 extern "C"
18645 #endif
18646 char $ac_func ();
18647 /* The GNU C library defines this for functions which it implements
18648     to always fail with ENOSYS.  Some functions are actually named
18649     something starting with __ and the normal name is an alias.  */
18650 #if defined __stub_$ac_func || defined __stub___$ac_func
18651 choke me
18652 #endif
18653
18654 int
18655 main ()
18656 {
18657 return $ac_func ();
18658   ;
18659   return 0;
18660 }
18661 _ACEOF
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (ac_try="$ac_link"
18664 case "(($ac_try" in
18665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666   *) ac_try_echo=$ac_try;;
18667 esac
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669   (eval "$ac_link") 2>conftest.er1
18670   ac_status=$?
18671   grep -v '^ *+' conftest.er1 >conftest.err
18672   rm -f conftest.er1
18673   cat conftest.err >&5
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); } &&
18676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18677   { (case "(($ac_try" in
18678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679   *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682   (eval "$ac_try") 2>&5
18683   ac_status=$?
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); }; } &&
18686          { ac_try='test -s conftest$ac_exeext'
18687   { (case "(($ac_try" in
18688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689   *) ac_try_echo=$ac_try;;
18690 esac
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692   (eval "$ac_try") 2>&5
18693   ac_status=$?
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); }; }; then
18696   eval "$as_ac_var=yes"
18697 else
18698   echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18700
18701         eval "$as_ac_var=no"
18702 fi
18703
18704 rm -f core conftest.err conftest.$ac_objext \
18705       conftest$ac_exeext conftest.$ac_ext
18706 fi
18707 ac_res=`eval echo '${'$as_ac_var'}'`
18708                { echo "$as_me:$LINENO: result: $ac_res" >&5
18709 echo "${ECHO_T}$ac_res" >&6; }
18710 if test `eval echo '${'$as_ac_var'}'` = yes; then
18711   cat >>confdefs.h <<_ACEOF
18712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18713 _ACEOF
18714
18715 fi
18716 done
18717
18718
18719
18720
18721
18722 for ac_func in strerror strerror_r setenv arc4random
18723 do
18724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18728   echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730   cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h.  */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h.  */
18736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18738 #define $ac_func innocuous_$ac_func
18739
18740 /* System header to define __stub macros and hopefully few prototypes,
18741     which can conflict with char $ac_func (); below.
18742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18743     <limits.h> exists even on freestanding compilers.  */
18744
18745 #ifdef __STDC__
18746 # include <limits.h>
18747 #else
18748 # include <assert.h>
18749 #endif
18750
18751 #undef $ac_func
18752
18753 /* Override any GCC internal prototype to avoid an error.
18754    Use char because int might match the return type of a GCC
18755    builtin and then its argument prototype would still apply.  */
18756 #ifdef __cplusplus
18757 extern "C"
18758 #endif
18759 char $ac_func ();
18760 /* The GNU C library defines this for functions which it implements
18761     to always fail with ENOSYS.  Some functions are actually named
18762     something starting with __ and the normal name is an alias.  */
18763 #if defined __stub_$ac_func || defined __stub___$ac_func
18764 choke me
18765 #endif
18766
18767 int
18768 main ()
18769 {
18770 return $ac_func ();
18771   ;
18772   return 0;
18773 }
18774 _ACEOF
18775 rm -f conftest.$ac_objext conftest$ac_exeext
18776 if { (ac_try="$ac_link"
18777 case "(($ac_try" in
18778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779   *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782   (eval "$ac_link") 2>conftest.er1
18783   ac_status=$?
18784   grep -v '^ *+' conftest.er1 >conftest.err
18785   rm -f conftest.er1
18786   cat conftest.err >&5
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); } &&
18789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18790   { (case "(($ac_try" in
18791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792   *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795   (eval "$ac_try") 2>&5
18796   ac_status=$?
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); }; } &&
18799          { ac_try='test -s conftest$ac_exeext'
18800   { (case "(($ac_try" in
18801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802   *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805   (eval "$ac_try") 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809   eval "$as_ac_var=yes"
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814         eval "$as_ac_var=no"
18815 fi
18816
18817 rm -f core conftest.err conftest.$ac_objext \
18818       conftest$ac_exeext conftest.$ac_ext
18819 fi
18820 ac_res=`eval echo '${'$as_ac_var'}'`
18821                { echo "$as_me:$LINENO: result: $ac_res" >&5
18822 echo "${ECHO_T}$ac_res" >&6; }
18823 if test `eval echo '${'$as_ac_var'}'` = yes; then
18824   cat >>confdefs.h <<_ACEOF
18825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18826 _ACEOF
18827
18828 fi
18829 done
18830
18831
18832
18833
18834
18835 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18836 do
18837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18841   echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843   cat >conftest.$ac_ext <<_ACEOF
18844 /* confdefs.h.  */
18845 _ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h.  */
18849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18851 #define $ac_func innocuous_$ac_func
18852
18853 /* System header to define __stub macros and hopefully few prototypes,
18854     which can conflict with char $ac_func (); below.
18855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18856     <limits.h> exists even on freestanding compilers.  */
18857
18858 #ifdef __STDC__
18859 # include <limits.h>
18860 #else
18861 # include <assert.h>
18862 #endif
18863
18864 #undef $ac_func
18865
18866 /* Override any GCC internal prototype to avoid an error.
18867    Use char because int might match the return type of a GCC
18868    builtin and then its argument prototype would still apply.  */
18869 #ifdef __cplusplus
18870 extern "C"
18871 #endif
18872 char $ac_func ();
18873 /* The GNU C library defines this for functions which it implements
18874     to always fail with ENOSYS.  Some functions are actually named
18875     something starting with __ and the normal name is an alias.  */
18876 #if defined __stub_$ac_func || defined __stub___$ac_func
18877 choke me
18878 #endif
18879
18880 int
18881 main ()
18882 {
18883 return $ac_func ();
18884   ;
18885   return 0;
18886 }
18887 _ACEOF
18888 rm -f conftest.$ac_objext conftest$ac_exeext
18889 if { (ac_try="$ac_link"
18890 case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_link") 2>conftest.er1
18896   ac_status=$?
18897   grep -v '^ *+' conftest.er1 >conftest.err
18898   rm -f conftest.er1
18899   cat conftest.err >&5
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); } &&
18902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18903   { (case "(($ac_try" in
18904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905   *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908   (eval "$ac_try") 2>&5
18909   ac_status=$?
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); }; } &&
18912          { ac_try='test -s conftest$ac_exeext'
18913   { (case "(($ac_try" in
18914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915   *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918   (eval "$ac_try") 2>&5
18919   ac_status=$?
18920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921   (exit $ac_status); }; }; then
18922   eval "$as_ac_var=yes"
18923 else
18924   echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18926
18927         eval "$as_ac_var=no"
18928 fi
18929
18930 rm -f core conftest.err conftest.$ac_objext \
18931       conftest$ac_exeext conftest.$ac_ext
18932 fi
18933 ac_res=`eval echo '${'$as_ac_var'}'`
18934                { echo "$as_me:$LINENO: result: $ac_res" >&5
18935 echo "${ECHO_T}$ac_res" >&6; }
18936 if test `eval echo '${'$as_ac_var'}'` = yes; then
18937   cat >>confdefs.h <<_ACEOF
18938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18939 _ACEOF
18940
18941 fi
18942 done
18943
18944
18945
18946
18947
18948
18949 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18950 do
18951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18955   echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957   cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h.  */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h.  */
18963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18965 #define $ac_func innocuous_$ac_func
18966
18967 /* System header to define __stub macros and hopefully few prototypes,
18968     which can conflict with char $ac_func (); below.
18969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18970     <limits.h> exists even on freestanding compilers.  */
18971
18972 #ifdef __STDC__
18973 # include <limits.h>
18974 #else
18975 # include <assert.h>
18976 #endif
18977
18978 #undef $ac_func
18979
18980 /* Override any GCC internal prototype to avoid an error.
18981    Use char because int might match the return type of a GCC
18982    builtin and then its argument prototype would still apply.  */
18983 #ifdef __cplusplus
18984 extern "C"
18985 #endif
18986 char $ac_func ();
18987 /* The GNU C library defines this for functions which it implements
18988     to always fail with ENOSYS.  Some functions are actually named
18989     something starting with __ and the normal name is an alias.  */
18990 #if defined __stub_$ac_func || defined __stub___$ac_func
18991 choke me
18992 #endif
18993
18994 int
18995 main ()
18996 {
18997 return $ac_func ();
18998   ;
18999   return 0;
19000 }
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006   *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009   (eval "$ac_link") 2>conftest.er1
19010   ac_status=$?
19011   grep -v '^ *+' conftest.er1 >conftest.err
19012   rm -f conftest.er1
19013   cat conftest.err >&5
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); } &&
19016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19017   { (case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_try") 2>&5
19023   ac_status=$?
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); }; } &&
19026          { ac_try='test -s conftest$ac_exeext'
19027   { (case "(($ac_try" in
19028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029   *) ac_try_echo=$ac_try;;
19030 esac
19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032   (eval "$ac_try") 2>&5
19033   ac_status=$?
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); }; }; then
19036   eval "$as_ac_var=yes"
19037 else
19038   echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19040
19041         eval "$as_ac_var=no"
19042 fi
19043
19044 rm -f core conftest.err conftest.$ac_objext \
19045       conftest$ac_exeext conftest.$ac_ext
19046 fi
19047 ac_res=`eval echo '${'$as_ac_var'}'`
19048                { echo "$as_me:$LINENO: result: $ac_res" >&5
19049 echo "${ECHO_T}$ac_res" >&6; }
19050 if test `eval echo '${'$as_ac_var'}'` = yes; then
19051   cat >>confdefs.h <<_ACEOF
19052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19053 _ACEOF
19054
19055 fi
19056 done
19057
19058 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19059 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19060 if test "${llvm_cv_c_printf_a+set}" = set; then
19061   echo $ECHO_N "(cached) $ECHO_C" >&6
19062 else
19063   ac_ext=c
19064 ac_cpp='$CPP $CPPFLAGS'
19065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19068
19069  if test "$cross_compiling" = yes; then
19070   llvmac_cv_c_printf_a=no
19071 else
19072   cat >conftest.$ac_ext <<_ACEOF
19073
19074   /* confdefs.h.  */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h.  */
19079
19080 #include <stdio.h>
19081 #include <stdlib.h>
19082
19083 int
19084 main ()
19085 {
19086
19087 volatile double A, B;
19088 char Buffer[100];
19089 A = 1;
19090 A /= 10.0;
19091 sprintf(Buffer, "%a", A);
19092 B = atof(Buffer);
19093 if (A != B)
19094   return (1);
19095 if (A != 0x1.999999999999ap-4)
19096   return (1);
19097 return (0);
19098   ;
19099   return 0;
19100 }
19101 _ACEOF
19102 rm -f conftest$ac_exeext
19103 if { (ac_try="$ac_link"
19104 case "(($ac_try" in
19105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106   *) ac_try_echo=$ac_try;;
19107 esac
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109   (eval "$ac_link") 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19113   { (case "(($ac_try" in
19114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115   *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118   (eval "$ac_try") 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); }; }; then
19122   llvm_cv_c_printf_a=yes
19123 else
19124   echo "$as_me: program exited with status $ac_status" >&5
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ( exit $ac_status )
19129 llvmac_cv_c_printf_a=no
19130 fi
19131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19132 fi
19133
19134
19135  ac_ext=c
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19140
19141 fi
19142 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19143 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19144  if test "$llvm_cv_c_printf_a" = "yes"; then
19145
19146 cat >>confdefs.h <<\_ACEOF
19147 #define HAVE_PRINTF_A 1
19148 _ACEOF
19149
19150  fi
19151
19152
19153
19154   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19155 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19156 if test "${ac_cv_func_rand48+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159
19160     ac_ext=cpp
19161 ac_cpp='$CXXCPP $CPPFLAGS'
19162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19165
19166     cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h.  */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h.  */
19172 #include <stdlib.h>
19173 int
19174 main ()
19175 {
19176 srand48(0);lrand48();drand48();
19177   ;
19178   return 0;
19179 }
19180 _ACEOF
19181 rm -f conftest.$ac_objext
19182 if { (ac_try="$ac_compile"
19183 case "(($ac_try" in
19184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185   *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188   (eval "$ac_compile") 2>conftest.er1
19189   ac_status=$?
19190   grep -v '^ *+' conftest.er1 >conftest.err
19191   rm -f conftest.er1
19192   cat conftest.err >&5
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); } &&
19195          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19196   { (case "(($ac_try" in
19197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198   *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201   (eval "$ac_try") 2>&5
19202   ac_status=$?
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); }; } &&
19205          { ac_try='test -s conftest.$ac_objext'
19206   { (case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_try") 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; }; then
19215   ac_cv_func_rand48=yes
19216 else
19217   echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19219
19220         ac_cv_func_rand48=no
19221 fi
19222
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224     ac_ext=c
19225 ac_cpp='$CPP $CPPFLAGS'
19226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19229
19230
19231 fi
19232 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19233 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19234
19235 if test "$ac_cv_func_rand48" = "yes" ; then
19236
19237 cat >>confdefs.h <<\_ACEOF
19238 #define HAVE_RAND48 1
19239 _ACEOF
19240
19241 fi
19242
19243
19244 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19245 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19246 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255 $ac_includes_default
19256 int
19257 main ()
19258 {
19259 #ifndef strerror_s
19260   char *p = (char *) strerror_s;
19261   return !p;
19262 #endif
19263
19264   ;
19265   return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_compile") 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } &&
19282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283   { (case "(($ac_try" in
19284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285   *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288   (eval "$ac_try") 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); }; } &&
19292          { ac_try='test -s conftest.$ac_objext'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   ac_cv_have_decl_strerror_s=yes
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307         ac_cv_have_decl_strerror_s=no
19308 fi
19309
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311 fi
19312 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19313 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19314 if test $ac_cv_have_decl_strerror_s = yes; then
19315
19316 cat >>confdefs.h <<_ACEOF
19317 #define HAVE_DECL_STRERROR_S 1
19318 _ACEOF
19319
19320
19321 else
19322   cat >>confdefs.h <<_ACEOF
19323 #define HAVE_DECL_STRERROR_S 0
19324 _ACEOF
19325
19326
19327 fi
19328
19329
19330
19331 if test "$llvm_cv_os_type" = "MingW" ; then
19332   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19333 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337   ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lgcc  $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h.  */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h.  */
19345
19346 /* Override any GCC internal prototype to avoid an error.
19347    Use char because int might match the return type of a GCC
19348    builtin and then its argument prototype would still apply.  */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char _alloca ();
19353 int
19354 main ()
19355 {
19356 return _alloca ();
19357   ;
19358   return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365   *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368   (eval "$ac_link") 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } &&
19375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19376   { (case "(($ac_try" in
19377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378   *) ac_try_echo=$ac_try;;
19379 esac
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381   (eval "$ac_try") 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); }; } &&
19385          { ac_try='test -s conftest$ac_exeext'
19386   { (case "(($ac_try" in
19387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388   *) ac_try_echo=$ac_try;;
19389 esac
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391   (eval "$ac_try") 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; }; then
19395   ac_cv_lib_gcc__alloca=yes
19396 else
19397   echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400         ac_cv_lib_gcc__alloca=no
19401 fi
19402
19403 rm -f core conftest.err conftest.$ac_objext \
19404       conftest$ac_exeext conftest.$ac_ext
19405 LIBS=$ac_check_lib_save_LIBS
19406 fi
19407 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19408 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19409 if test $ac_cv_lib_gcc__alloca = yes; then
19410
19411 cat >>confdefs.h <<\_ACEOF
19412 #define HAVE__ALLOCA 1
19413 _ACEOF
19414
19415 fi
19416
19417   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19418 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19419 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19420   echo $ECHO_N "(cached) $ECHO_C" >&6
19421 else
19422   ac_check_lib_save_LIBS=$LIBS
19423 LIBS="-lgcc  $LIBS"
19424 cat >conftest.$ac_ext <<_ACEOF
19425 /* confdefs.h.  */
19426 _ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h.  */
19430
19431 /* Override any GCC internal prototype to avoid an error.
19432    Use char because int might match the return type of a GCC
19433    builtin and then its argument prototype would still apply.  */
19434 #ifdef __cplusplus
19435 extern "C"
19436 #endif
19437 char __alloca ();
19438 int
19439 main ()
19440 {
19441 return __alloca ();
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 rm -f conftest.$ac_objext conftest$ac_exeext
19447 if { (ac_try="$ac_link"
19448 case "(($ac_try" in
19449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450   *) ac_try_echo=$ac_try;;
19451 esac
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453   (eval "$ac_link") 2>conftest.er1
19454   ac_status=$?
19455   grep -v '^ *+' conftest.er1 >conftest.err
19456   rm -f conftest.er1
19457   cat conftest.err >&5
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); } &&
19460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19461   { (case "(($ac_try" in
19462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463   *) ac_try_echo=$ac_try;;
19464 esac
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466   (eval "$ac_try") 2>&5
19467   ac_status=$?
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); }; } &&
19470          { ac_try='test -s conftest$ac_exeext'
19471   { (case "(($ac_try" in
19472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473   *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476   (eval "$ac_try") 2>&5
19477   ac_status=$?
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); }; }; then
19480   ac_cv_lib_gcc___alloca=yes
19481 else
19482   echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19484
19485         ac_cv_lib_gcc___alloca=no
19486 fi
19487
19488 rm -f core conftest.err conftest.$ac_objext \
19489       conftest$ac_exeext conftest.$ac_ext
19490 LIBS=$ac_check_lib_save_LIBS
19491 fi
19492 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19493 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19494 if test $ac_cv_lib_gcc___alloca = yes; then
19495
19496 cat >>confdefs.h <<\_ACEOF
19497 #define HAVE___ALLOCA 1
19498 _ACEOF
19499
19500 fi
19501
19502   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19503 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19504 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   ac_check_lib_save_LIBS=$LIBS
19508 LIBS="-lgcc  $LIBS"
19509 cat >conftest.$ac_ext <<_ACEOF
19510 /* confdefs.h.  */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h.  */
19515
19516 /* Override any GCC internal prototype to avoid an error.
19517    Use char because int might match the return type of a GCC
19518    builtin and then its argument prototype would still apply.  */
19519 #ifdef __cplusplus
19520 extern "C"
19521 #endif
19522 char __chkstk ();
19523 int
19524 main ()
19525 {
19526 return __chkstk ();
19527   ;
19528   return 0;
19529 }
19530 _ACEOF
19531 rm -f conftest.$ac_objext conftest$ac_exeext
19532 if { (ac_try="$ac_link"
19533 case "(($ac_try" in
19534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535   *) ac_try_echo=$ac_try;;
19536 esac
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538   (eval "$ac_link") 2>conftest.er1
19539   ac_status=$?
19540   grep -v '^ *+' conftest.er1 >conftest.err
19541   rm -f conftest.er1
19542   cat conftest.err >&5
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } &&
19545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19546   { (case "(($ac_try" in
19547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548   *) ac_try_echo=$ac_try;;
19549 esac
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551   (eval "$ac_try") 2>&5
19552   ac_status=$?
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); }; } &&
19555          { ac_try='test -s conftest$ac_exeext'
19556   { (case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_try") 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; }; then
19565   ac_cv_lib_gcc___chkstk=yes
19566 else
19567   echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570         ac_cv_lib_gcc___chkstk=no
19571 fi
19572
19573 rm -f core conftest.err conftest.$ac_objext \
19574       conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_check_lib_save_LIBS
19576 fi
19577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19578 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19579 if test $ac_cv_lib_gcc___chkstk = yes; then
19580
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE___CHKSTK 1
19583 _ACEOF
19584
19585 fi
19586
19587   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19588 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19589 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19590   echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592   ac_check_lib_save_LIBS=$LIBS
19593 LIBS="-lgcc  $LIBS"
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600
19601 /* Override any GCC internal prototype to avoid an error.
19602    Use char because int might match the return type of a GCC
19603    builtin and then its argument prototype would still apply.  */
19604 #ifdef __cplusplus
19605 extern "C"
19606 #endif
19607 char ___chkstk ();
19608 int
19609 main ()
19610 {
19611 return ___chkstk ();
19612   ;
19613   return 0;
19614 }
19615 _ACEOF
19616 rm -f conftest.$ac_objext conftest$ac_exeext
19617 if { (ac_try="$ac_link"
19618 case "(($ac_try" in
19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620   *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623   (eval "$ac_link") 2>conftest.er1
19624   ac_status=$?
19625   grep -v '^ *+' conftest.er1 >conftest.err
19626   rm -f conftest.er1
19627   cat conftest.err >&5
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } &&
19630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19631   { (case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_try") 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; } &&
19640          { ac_try='test -s conftest$ac_exeext'
19641   { (case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_try") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; }; then
19650   ac_cv_lib_gcc____chkstk=yes
19651 else
19652   echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655         ac_cv_lib_gcc____chkstk=no
19656 fi
19657
19658 rm -f core conftest.err conftest.$ac_objext \
19659       conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19661 fi
19662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19663 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19664 if test $ac_cv_lib_gcc____chkstk = yes; then
19665
19666 cat >>confdefs.h <<\_ACEOF
19667 #define HAVE____CHKSTK 1
19668 _ACEOF
19669
19670 fi
19671
19672
19673   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19674 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19675 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   ac_check_lib_save_LIBS=$LIBS
19679 LIBS="-lgcc  $LIBS"
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h.  */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h.  */
19686
19687 /* Override any GCC internal prototype to avoid an error.
19688    Use char because int might match the return type of a GCC
19689    builtin and then its argument prototype would still apply.  */
19690 #ifdef __cplusplus
19691 extern "C"
19692 #endif
19693 char __ashldi3 ();
19694 int
19695 main ()
19696 {
19697 return __ashldi3 ();
19698   ;
19699   return 0;
19700 }
19701 _ACEOF
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (ac_try="$ac_link"
19704 case "(($ac_try" in
19705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706   *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709   (eval "$ac_link") 2>conftest.er1
19710   ac_status=$?
19711   grep -v '^ *+' conftest.er1 >conftest.err
19712   rm -f conftest.er1
19713   cat conftest.err >&5
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); } &&
19716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19717   { (case "(($ac_try" in
19718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719   *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722   (eval "$ac_try") 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; } &&
19726          { ac_try='test -s conftest$ac_exeext'
19727   { (case "(($ac_try" in
19728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729   *) ac_try_echo=$ac_try;;
19730 esac
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732   (eval "$ac_try") 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; }; then
19736   ac_cv_lib_gcc___ashldi3=yes
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741         ac_cv_lib_gcc___ashldi3=no
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext \
19745       conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19747 fi
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19749 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19750 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19751
19752 cat >>confdefs.h <<\_ACEOF
19753 #define HAVE___ASHLDI3 1
19754 _ACEOF
19755
19756 fi
19757
19758   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19759 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19760 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19761   echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763   ac_check_lib_save_LIBS=$LIBS
19764 LIBS="-lgcc  $LIBS"
19765 cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h.  */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h.  */
19771
19772 /* Override any GCC internal prototype to avoid an error.
19773    Use char because int might match the return type of a GCC
19774    builtin and then its argument prototype would still apply.  */
19775 #ifdef __cplusplus
19776 extern "C"
19777 #endif
19778 char __ashrdi3 ();
19779 int
19780 main ()
19781 {
19782 return __ashrdi3 ();
19783   ;
19784   return 0;
19785 }
19786 _ACEOF
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791   *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794   (eval "$ac_link") 2>conftest.er1
19795   ac_status=$?
19796   grep -v '^ *+' conftest.er1 >conftest.err
19797   rm -f conftest.er1
19798   cat conftest.err >&5
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } &&
19801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19802   { (case "(($ac_try" in
19803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804   *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807   (eval "$ac_try") 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; } &&
19811          { ac_try='test -s conftest$ac_exeext'
19812   { (case "(($ac_try" in
19813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814   *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817   (eval "$ac_try") 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; }; then
19821   ac_cv_lib_gcc___ashrdi3=yes
19822 else
19823   echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826         ac_cv_lib_gcc___ashrdi3=no
19827 fi
19828
19829 rm -f core conftest.err conftest.$ac_objext \
19830       conftest$ac_exeext conftest.$ac_ext
19831 LIBS=$ac_check_lib_save_LIBS
19832 fi
19833 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19834 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19835 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19836
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE___ASHRDI3 1
19839 _ACEOF
19840
19841 fi
19842
19843   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19844 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19845 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19846   echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848   ac_check_lib_save_LIBS=$LIBS
19849 LIBS="-lgcc  $LIBS"
19850 cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856
19857 /* Override any GCC internal prototype to avoid an error.
19858    Use char because int might match the return type of a GCC
19859    builtin and then its argument prototype would still apply.  */
19860 #ifdef __cplusplus
19861 extern "C"
19862 #endif
19863 char __divdi3 ();
19864 int
19865 main ()
19866 {
19867 return __divdi3 ();
19868   ;
19869   return 0;
19870 }
19871 _ACEOF
19872 rm -f conftest.$ac_objext conftest$ac_exeext
19873 if { (ac_try="$ac_link"
19874 case "(($ac_try" in
19875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876   *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879   (eval "$ac_link") 2>conftest.er1
19880   ac_status=$?
19881   grep -v '^ *+' conftest.er1 >conftest.err
19882   rm -f conftest.er1
19883   cat conftest.err >&5
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); } &&
19886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19887   { (case "(($ac_try" in
19888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889   *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892   (eval "$ac_try") 2>&5
19893   ac_status=$?
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); }; } &&
19896          { ac_try='test -s conftest$ac_exeext'
19897   { (case "(($ac_try" in
19898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899   *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902   (eval "$ac_try") 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; }; then
19906   ac_cv_lib_gcc___divdi3=yes
19907 else
19908   echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911         ac_cv_lib_gcc___divdi3=no
19912 fi
19913
19914 rm -f core conftest.err conftest.$ac_objext \
19915       conftest$ac_exeext conftest.$ac_ext
19916 LIBS=$ac_check_lib_save_LIBS
19917 fi
19918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19919 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19920 if test $ac_cv_lib_gcc___divdi3 = yes; then
19921
19922 cat >>confdefs.h <<\_ACEOF
19923 #define HAVE___DIVDI3 1
19924 _ACEOF
19925
19926 fi
19927
19928   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19929 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19930 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19931   echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933   ac_check_lib_save_LIBS=$LIBS
19934 LIBS="-lgcc  $LIBS"
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h.  */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h.  */
19941
19942 /* Override any GCC internal prototype to avoid an error.
19943    Use char because int might match the return type of a GCC
19944    builtin and then its argument prototype would still apply.  */
19945 #ifdef __cplusplus
19946 extern "C"
19947 #endif
19948 char __fixdfdi ();
19949 int
19950 main ()
19951 {
19952 return __fixdfdi ();
19953   ;
19954   return 0;
19955 }
19956 _ACEOF
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964   (eval "$ac_link") 2>conftest.er1
19965   ac_status=$?
19966   grep -v '^ *+' conftest.er1 >conftest.err
19967   rm -f conftest.er1
19968   cat conftest.err >&5
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); } &&
19971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19972   { (case "(($ac_try" in
19973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974   *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977   (eval "$ac_try") 2>&5
19978   ac_status=$?
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); }; } &&
19981          { ac_try='test -s conftest$ac_exeext'
19982   { (case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_try") 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; }; then
19991   ac_cv_lib_gcc___fixdfdi=yes
19992 else
19993   echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19995
19996         ac_cv_lib_gcc___fixdfdi=no
19997 fi
19998
19999 rm -f core conftest.err conftest.$ac_objext \
20000       conftest$ac_exeext conftest.$ac_ext
20001 LIBS=$ac_check_lib_save_LIBS
20002 fi
20003 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20004 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20005 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20006
20007 cat >>confdefs.h <<\_ACEOF
20008 #define HAVE___FIXDFDI 1
20009 _ACEOF
20010
20011 fi
20012
20013   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20014 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20015 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20016   echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018   ac_check_lib_save_LIBS=$LIBS
20019 LIBS="-lgcc  $LIBS"
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026
20027 /* Override any GCC internal prototype to avoid an error.
20028    Use char because int might match the return type of a GCC
20029    builtin and then its argument prototype would still apply.  */
20030 #ifdef __cplusplus
20031 extern "C"
20032 #endif
20033 char __fixsfdi ();
20034 int
20035 main ()
20036 {
20037 return __fixsfdi ();
20038   ;
20039   return 0;
20040 }
20041 _ACEOF
20042 rm -f conftest.$ac_objext conftest$ac_exeext
20043 if { (ac_try="$ac_link"
20044 case "(($ac_try" in
20045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046   *) ac_try_echo=$ac_try;;
20047 esac
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049   (eval "$ac_link") 2>conftest.er1
20050   ac_status=$?
20051   grep -v '^ *+' conftest.er1 >conftest.err
20052   rm -f conftest.er1
20053   cat conftest.err >&5
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); } &&
20056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20057   { (case "(($ac_try" in
20058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059   *) ac_try_echo=$ac_try;;
20060 esac
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062   (eval "$ac_try") 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); }; } &&
20066          { ac_try='test -s conftest$ac_exeext'
20067   { (case "(($ac_try" in
20068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069   *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072   (eval "$ac_try") 2>&5
20073   ac_status=$?
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); }; }; then
20076   ac_cv_lib_gcc___fixsfdi=yes
20077 else
20078   echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081         ac_cv_lib_gcc___fixsfdi=no
20082 fi
20083
20084 rm -f core conftest.err conftest.$ac_objext \
20085       conftest$ac_exeext conftest.$ac_ext
20086 LIBS=$ac_check_lib_save_LIBS
20087 fi
20088 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20089 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20090 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20091
20092 cat >>confdefs.h <<\_ACEOF
20093 #define HAVE___FIXSFDI 1
20094 _ACEOF
20095
20096 fi
20097
20098   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20099 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20100 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   ac_check_lib_save_LIBS=$LIBS
20104 LIBS="-lgcc  $LIBS"
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h.  */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h.  */
20111
20112 /* Override any GCC internal prototype to avoid an error.
20113    Use char because int might match the return type of a GCC
20114    builtin and then its argument prototype would still apply.  */
20115 #ifdef __cplusplus
20116 extern "C"
20117 #endif
20118 char __floatdidf ();
20119 int
20120 main ()
20121 {
20122 return __floatdidf ();
20123   ;
20124   return 0;
20125 }
20126 _ACEOF
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131   *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134   (eval "$ac_link") 2>conftest.er1
20135   ac_status=$?
20136   grep -v '^ *+' conftest.er1 >conftest.err
20137   rm -f conftest.er1
20138   cat conftest.err >&5
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); } &&
20141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20142   { (case "(($ac_try" in
20143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144   *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147   (eval "$ac_try") 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; } &&
20151          { ac_try='test -s conftest$ac_exeext'
20152   { (case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157   (eval "$ac_try") 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; }; then
20161   ac_cv_lib_gcc___floatdidf=yes
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166         ac_cv_lib_gcc___floatdidf=no
20167 fi
20168
20169 rm -f core conftest.err conftest.$ac_objext \
20170       conftest$ac_exeext conftest.$ac_ext
20171 LIBS=$ac_check_lib_save_LIBS
20172 fi
20173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20174 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20175 if test $ac_cv_lib_gcc___floatdidf = yes; then
20176
20177 cat >>confdefs.h <<\_ACEOF
20178 #define HAVE___FLOATDIDF 1
20179 _ACEOF
20180
20181 fi
20182
20183   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20184 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20185 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20186   echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188   ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-lgcc  $LIBS"
20190 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196
20197 /* Override any GCC internal prototype to avoid an error.
20198    Use char because int might match the return type of a GCC
20199    builtin and then its argument prototype would still apply.  */
20200 #ifdef __cplusplus
20201 extern "C"
20202 #endif
20203 char __lshrdi3 ();
20204 int
20205 main ()
20206 {
20207 return __lshrdi3 ();
20208   ;
20209   return 0;
20210 }
20211 _ACEOF
20212 rm -f conftest.$ac_objext conftest$ac_exeext
20213 if { (ac_try="$ac_link"
20214 case "(($ac_try" in
20215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216   *) ac_try_echo=$ac_try;;
20217 esac
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219   (eval "$ac_link") 2>conftest.er1
20220   ac_status=$?
20221   grep -v '^ *+' conftest.er1 >conftest.err
20222   rm -f conftest.er1
20223   cat conftest.err >&5
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); } &&
20226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20227   { (case "(($ac_try" in
20228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229   *) ac_try_echo=$ac_try;;
20230 esac
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232   (eval "$ac_try") 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; } &&
20236          { ac_try='test -s conftest$ac_exeext'
20237   { (case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_try") 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_cv_lib_gcc___lshrdi3=yes
20247 else
20248   echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20250
20251         ac_cv_lib_gcc___lshrdi3=no
20252 fi
20253
20254 rm -f core conftest.err conftest.$ac_objext \
20255       conftest$ac_exeext conftest.$ac_ext
20256 LIBS=$ac_check_lib_save_LIBS
20257 fi
20258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20259 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20260 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20261
20262 cat >>confdefs.h <<\_ACEOF
20263 #define HAVE___LSHRDI3 1
20264 _ACEOF
20265
20266 fi
20267
20268   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20269 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20270 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20271   echo $ECHO_N "(cached) $ECHO_C" >&6
20272 else
20273   ac_check_lib_save_LIBS=$LIBS
20274 LIBS="-lgcc  $LIBS"
20275 cat >conftest.$ac_ext <<_ACEOF
20276 /* confdefs.h.  */
20277 _ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h.  */
20281
20282 /* Override any GCC internal prototype to avoid an error.
20283    Use char because int might match the return type of a GCC
20284    builtin and then its argument prototype would still apply.  */
20285 #ifdef __cplusplus
20286 extern "C"
20287 #endif
20288 char __moddi3 ();
20289 int
20290 main ()
20291 {
20292 return __moddi3 ();
20293   ;
20294   return 0;
20295 }
20296 _ACEOF
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301   *) ac_try_echo=$ac_try;;
20302 esac
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304   (eval "$ac_link") 2>conftest.er1
20305   ac_status=$?
20306   grep -v '^ *+' conftest.er1 >conftest.err
20307   rm -f conftest.er1
20308   cat conftest.err >&5
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } &&
20311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20312   { (case "(($ac_try" in
20313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314   *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317   (eval "$ac_try") 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); }; } &&
20321          { ac_try='test -s conftest$ac_exeext'
20322   { (case "(($ac_try" in
20323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324   *) ac_try_echo=$ac_try;;
20325 esac
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327   (eval "$ac_try") 2>&5
20328   ac_status=$?
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); }; }; then
20331   ac_cv_lib_gcc___moddi3=yes
20332 else
20333   echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20335
20336         ac_cv_lib_gcc___moddi3=no
20337 fi
20338
20339 rm -f core conftest.err conftest.$ac_objext \
20340       conftest$ac_exeext conftest.$ac_ext
20341 LIBS=$ac_check_lib_save_LIBS
20342 fi
20343 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20344 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20345 if test $ac_cv_lib_gcc___moddi3 = yes; then
20346
20347 cat >>confdefs.h <<\_ACEOF
20348 #define HAVE___MODDI3 1
20349 _ACEOF
20350
20351 fi
20352
20353   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20354 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20355 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20356   echo $ECHO_N "(cached) $ECHO_C" >&6
20357 else
20358   ac_check_lib_save_LIBS=$LIBS
20359 LIBS="-lgcc  $LIBS"
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h.  */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h.  */
20366
20367 /* Override any GCC internal prototype to avoid an error.
20368    Use char because int might match the return type of a GCC
20369    builtin and then its argument prototype would still apply.  */
20370 #ifdef __cplusplus
20371 extern "C"
20372 #endif
20373 char __udivdi3 ();
20374 int
20375 main ()
20376 {
20377 return __udivdi3 ();
20378   ;
20379   return 0;
20380 }
20381 _ACEOF
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (ac_try="$ac_link"
20384 case "(($ac_try" in
20385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386   *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389   (eval "$ac_link") 2>conftest.er1
20390   ac_status=$?
20391   grep -v '^ *+' conftest.er1 >conftest.err
20392   rm -f conftest.er1
20393   cat conftest.err >&5
20394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395   (exit $ac_status); } &&
20396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20397   { (case "(($ac_try" in
20398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399   *) ac_try_echo=$ac_try;;
20400 esac
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402   (eval "$ac_try") 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); }; } &&
20406          { ac_try='test -s conftest$ac_exeext'
20407   { (case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_try") 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); }; }; then
20416   ac_cv_lib_gcc___udivdi3=yes
20417 else
20418   echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421         ac_cv_lib_gcc___udivdi3=no
20422 fi
20423
20424 rm -f core conftest.err conftest.$ac_objext \
20425       conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20427 fi
20428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20429 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20430 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20431
20432 cat >>confdefs.h <<\_ACEOF
20433 #define HAVE___UDIVDI3 1
20434 _ACEOF
20435
20436 fi
20437
20438   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20439 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20440 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443   ac_check_lib_save_LIBS=$LIBS
20444 LIBS="-lgcc  $LIBS"
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451
20452 /* Override any GCC internal prototype to avoid an error.
20453    Use char because int might match the return type of a GCC
20454    builtin and then its argument prototype would still apply.  */
20455 #ifdef __cplusplus
20456 extern "C"
20457 #endif
20458 char __umoddi3 ();
20459 int
20460 main ()
20461 {
20462 return __umoddi3 ();
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471   *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474   (eval "$ac_link") 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } &&
20481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20482   { (case "(($ac_try" in
20483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484   *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487   (eval "$ac_try") 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; } &&
20491          { ac_try='test -s conftest$ac_exeext'
20492   { (case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_try") 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; }; then
20501   ac_cv_lib_gcc___umoddi3=yes
20502 else
20503   echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506         ac_cv_lib_gcc___umoddi3=no
20507 fi
20508
20509 rm -f core conftest.err conftest.$ac_objext \
20510       conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20512 fi
20513 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20514 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20515 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20516
20517 cat >>confdefs.h <<\_ACEOF
20518 #define HAVE___UMODDI3 1
20519 _ACEOF
20520
20521 fi
20522
20523
20524   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20525 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20526 if test "${ac_cv_lib_gcc___main+set}" = set; then
20527   echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529   ac_check_lib_save_LIBS=$LIBS
20530 LIBS="-lgcc  $LIBS"
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537
20538 /* Override any GCC internal prototype to avoid an error.
20539    Use char because int might match the return type of a GCC
20540    builtin and then its argument prototype would still apply.  */
20541 #ifdef __cplusplus
20542 extern "C"
20543 #endif
20544 char __main ();
20545 int
20546 main ()
20547 {
20548 return __main ();
20549   ;
20550   return 0;
20551 }
20552 _ACEOF
20553 rm -f conftest.$ac_objext conftest$ac_exeext
20554 if { (ac_try="$ac_link"
20555 case "(($ac_try" in
20556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557   *) ac_try_echo=$ac_try;;
20558 esac
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560   (eval "$ac_link") 2>conftest.er1
20561   ac_status=$?
20562   grep -v '^ *+' conftest.er1 >conftest.err
20563   rm -f conftest.er1
20564   cat conftest.err >&5
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); } &&
20567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20568   { (case "(($ac_try" in
20569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570   *) ac_try_echo=$ac_try;;
20571 esac
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573   (eval "$ac_try") 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; } &&
20577          { ac_try='test -s conftest$ac_exeext'
20578   { (case "(($ac_try" in
20579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580   *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583   (eval "$ac_try") 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); }; }; then
20587   ac_cv_lib_gcc___main=yes
20588 else
20589   echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20591
20592         ac_cv_lib_gcc___main=no
20593 fi
20594
20595 rm -f core conftest.err conftest.$ac_objext \
20596       conftest$ac_exeext conftest.$ac_ext
20597 LIBS=$ac_check_lib_save_LIBS
20598 fi
20599 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20600 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20601 if test $ac_cv_lib_gcc___main = yes; then
20602
20603 cat >>confdefs.h <<\_ACEOF
20604 #define HAVE___MAIN 1
20605 _ACEOF
20606
20607 fi
20608
20609   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20610 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20611 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20612   echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614   ac_check_lib_save_LIBS=$LIBS
20615 LIBS="-lgcc  $LIBS"
20616 cat >conftest.$ac_ext <<_ACEOF
20617 /* confdefs.h.  */
20618 _ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h.  */
20622
20623 /* Override any GCC internal prototype to avoid an error.
20624    Use char because int might match the return type of a GCC
20625    builtin and then its argument prototype would still apply.  */
20626 #ifdef __cplusplus
20627 extern "C"
20628 #endif
20629 char __cmpdi2 ();
20630 int
20631 main ()
20632 {
20633 return __cmpdi2 ();
20634   ;
20635   return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext conftest$ac_exeext
20639 if { (ac_try="$ac_link"
20640 case "(($ac_try" in
20641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642   *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645   (eval "$ac_link") 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } &&
20652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20653   { (case "(($ac_try" in
20654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655   *) ac_try_echo=$ac_try;;
20656 esac
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658   (eval "$ac_try") 2>&5
20659   ac_status=$?
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); }; } &&
20662          { ac_try='test -s conftest$ac_exeext'
20663   { (case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_try") 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; }; then
20672   ac_cv_lib_gcc___cmpdi2=yes
20673 else
20674   echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677         ac_cv_lib_gcc___cmpdi2=no
20678 fi
20679
20680 rm -f core conftest.err conftest.$ac_objext \
20681       conftest$ac_exeext conftest.$ac_ext
20682 LIBS=$ac_check_lib_save_LIBS
20683 fi
20684 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20685 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20686 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20687
20688 cat >>confdefs.h <<\_ACEOF
20689 #define HAVE___CMPDI2 1
20690 _ACEOF
20691
20692 fi
20693
20694 fi
20695
20696 if test "$llvm_cv_os_type" = "MingW" ; then
20697   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20698 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20699   cat >conftest.$ac_ext <<_ACEOF
20700
20701   /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706
20707     #include <windows.h>
20708     #include <imagehlp.h>
20709     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20710     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20711
20712
20713 _ACEOF
20714 rm -f conftest.$ac_objext
20715 if { (ac_try="$ac_compile"
20716 case "(($ac_try" in
20717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718   *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721   (eval "$ac_compile") 2>conftest.er1
20722   ac_status=$?
20723   grep -v '^ *+' conftest.er1 >conftest.err
20724   rm -f conftest.er1
20725   cat conftest.err >&5
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); } &&
20728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20729   { (case "(($ac_try" in
20730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731   *) ac_try_echo=$ac_try;;
20732 esac
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734   (eval "$ac_try") 2>&5
20735   ac_status=$?
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); }; } &&
20738          { ac_try='test -s conftest.$ac_objext'
20739   { (case "(($ac_try" in
20740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741   *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744   (eval "$ac_try") 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); }; }; then
20748
20749   { echo "$as_me:$LINENO: result: yes" >&5
20750 echo "${ECHO_T}yes" >&6; }
20751   llvm_cv_win32_elmcb_pcstr="PCSTR"
20752
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757
20758   { echo "$as_me:$LINENO: result: no" >&5
20759 echo "${ECHO_T}no" >&6; }
20760   llvm_cv_win32_elmcb_pcstr="PSTR"
20761
20762 fi
20763
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765
20766 cat >>confdefs.h <<_ACEOF
20767 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20768 _ACEOF
20769
20770 fi
20771
20772
20773
20774   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20775 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20776 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20777   echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779
20780     ac_ext=cpp
20781 ac_cpp='$CXXCPP $CPPFLAGS'
20782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20785
20786     cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h.  */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h.  */
20792 #include <math.h>
20793 int
20794 main ()
20795 {
20796 float f; isnan(f);
20797   ;
20798   return 0;
20799 }
20800 _ACEOF
20801 rm -f conftest.$ac_objext
20802 if { (ac_try="$ac_compile"
20803 case "(($ac_try" in
20804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805   *) ac_try_echo=$ac_try;;
20806 esac
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808   (eval "$ac_compile") 2>conftest.er1
20809   ac_status=$?
20810   grep -v '^ *+' conftest.er1 >conftest.err
20811   rm -f conftest.er1
20812   cat conftest.err >&5
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); } &&
20815          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20816   { (case "(($ac_try" in
20817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818   *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821   (eval "$ac_try") 2>&5
20822   ac_status=$?
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); }; } &&
20825          { ac_try='test -s conftest.$ac_objext'
20826   { (case "(($ac_try" in
20827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828   *) ac_try_echo=$ac_try;;
20829 esac
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831   (eval "$ac_try") 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); }; }; then
20835   ac_cv_func_isnan_in_math_h=yes
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840         ac_cv_func_isnan_in_math_h=no
20841 fi
20842
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844     ac_ext=c
20845 ac_cpp='$CPP $CPPFLAGS'
20846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20849
20850
20851 fi
20852 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20853 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20854
20855
20856 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20857
20858 cat >>confdefs.h <<\_ACEOF
20859 #define HAVE_ISNAN_IN_MATH_H 1
20860 _ACEOF
20861
20862 fi
20863
20864
20865   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20866 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20867 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20868   echo $ECHO_N "(cached) $ECHO_C" >&6
20869 else
20870
20871     ac_ext=cpp
20872 ac_cpp='$CXXCPP $CPPFLAGS'
20873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20876
20877     cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h.  */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h.  */
20883 #include <cmath>
20884 int
20885 main ()
20886 {
20887 float f; isnan(f);
20888   ;
20889   return 0;
20890 }
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899   (eval "$ac_compile") 2>conftest.er1
20900   ac_status=$?
20901   grep -v '^ *+' conftest.er1 >conftest.err
20902   rm -f conftest.er1
20903   cat conftest.err >&5
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); } &&
20906          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20907   { (case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_try") 2>&5
20913   ac_status=$?
20914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915   (exit $ac_status); }; } &&
20916          { ac_try='test -s conftest.$ac_objext'
20917   { (case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_try") 2>&5
20923   ac_status=$?
20924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); }; }; then
20926   ac_cv_func_isnan_in_cmath=yes
20927 else
20928   echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20930
20931         ac_cv_func_isnan_in_cmath=no
20932 fi
20933
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935     ac_ext=c
20936 ac_cpp='$CPP $CPPFLAGS'
20937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20940
20941
20942 fi
20943 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20944 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20945
20946 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20947
20948 cat >>confdefs.h <<\_ACEOF
20949 #define HAVE_ISNAN_IN_CMATH 1
20950 _ACEOF
20951
20952 fi
20953
20954
20955   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20956 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20957 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20958   echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20960
20961     ac_ext=cpp
20962 ac_cpp='$CXXCPP $CPPFLAGS'
20963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20966
20967     cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h.  */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h.  */
20973 #include <cmath>
20974 int
20975 main ()
20976 {
20977 float f; std::isnan(f);
20978   ;
20979   return 0;
20980 }
20981 _ACEOF
20982 rm -f conftest.$ac_objext
20983 if { (ac_try="$ac_compile"
20984 case "(($ac_try" in
20985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986   *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989   (eval "$ac_compile") 2>conftest.er1
20990   ac_status=$?
20991   grep -v '^ *+' conftest.er1 >conftest.err
20992   rm -f conftest.er1
20993   cat conftest.err >&5
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); } &&
20996          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20997   { (case "(($ac_try" in
20998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999   *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002   (eval "$ac_try") 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); }; } &&
21006          { ac_try='test -s conftest.$ac_objext'
21007   { (case "(($ac_try" in
21008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009   *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012   (eval "$ac_try") 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); }; }; then
21016   ac_cv_func_std_isnan_in_cmath=yes
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021         ac_cv_func_std_isnan_in_cmath=no
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025     ac_ext=c
21026 ac_cpp='$CPP $CPPFLAGS'
21027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031
21032 fi
21033 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21034 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21035
21036 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21037
21038 cat >>confdefs.h <<\_ACEOF
21039 #define HAVE_STD_ISNAN_IN_CMATH 1
21040 _ACEOF
21041
21042 fi
21043
21044
21045
21046
21047   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21048 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21049 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21050   echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052
21053     ac_ext=cpp
21054 ac_cpp='$CXXCPP $CPPFLAGS'
21055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21058
21059     cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065 #include <math.h>
21066 int
21067 main ()
21068 {
21069 float f; isinf(f);
21070   ;
21071   return 0;
21072 }
21073 _ACEOF
21074 rm -f conftest.$ac_objext
21075 if { (ac_try="$ac_compile"
21076 case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081   (eval "$ac_compile") 2>conftest.er1
21082   ac_status=$?
21083   grep -v '^ *+' conftest.er1 >conftest.err
21084   rm -f conftest.er1
21085   cat conftest.err >&5
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); } &&
21088          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21089   { (case "(($ac_try" in
21090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091   *) ac_try_echo=$ac_try;;
21092 esac
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094   (eval "$ac_try") 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; } &&
21098          { ac_try='test -s conftest.$ac_objext'
21099   { (case "(($ac_try" in
21100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101   *) ac_try_echo=$ac_try;;
21102 esac
21103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21104   (eval "$ac_try") 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; }; then
21108   ac_cv_func_isinf_in_math_h=yes
21109 else
21110   echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21112
21113         ac_cv_func_isinf_in_math_h=no
21114 fi
21115
21116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117     ac_ext=c
21118 ac_cpp='$CPP $CPPFLAGS'
21119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21122
21123
21124 fi
21125 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21126 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21127
21128 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21129
21130 cat >>confdefs.h <<\_ACEOF
21131 #define HAVE_ISINF_IN_MATH_H 1
21132 _ACEOF
21133
21134 fi
21135
21136
21137   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21138 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21139 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21140   echo $ECHO_N "(cached) $ECHO_C" >&6
21141 else
21142
21143     ac_ext=cpp
21144 ac_cpp='$CXXCPP $CPPFLAGS'
21145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21148
21149     cat >conftest.$ac_ext <<_ACEOF
21150 /* confdefs.h.  */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h.  */
21155 #include <cmath>
21156 int
21157 main ()
21158 {
21159 float f; isinf(f);
21160   ;
21161   return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (ac_try="$ac_compile"
21166 case "(($ac_try" in
21167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168   *) ac_try_echo=$ac_try;;
21169 esac
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171   (eval "$ac_compile") 2>conftest.er1
21172   ac_status=$?
21173   grep -v '^ *+' conftest.er1 >conftest.err
21174   rm -f conftest.er1
21175   cat conftest.err >&5
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); } &&
21178          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21179   { (case "(($ac_try" in
21180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181   *) ac_try_echo=$ac_try;;
21182 esac
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184   (eval "$ac_try") 2>&5
21185   ac_status=$?
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); }; } &&
21188          { ac_try='test -s conftest.$ac_objext'
21189   { (case "(($ac_try" in
21190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191   *) ac_try_echo=$ac_try;;
21192 esac
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194   (eval "$ac_try") 2>&5
21195   ac_status=$?
21196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197   (exit $ac_status); }; }; then
21198   ac_cv_func_isinf_in_cmath=yes
21199 else
21200   echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203         ac_cv_func_isinf_in_cmath=no
21204 fi
21205
21206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21207     ac_ext=c
21208 ac_cpp='$CPP $CPPFLAGS'
21209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21212
21213
21214 fi
21215 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21216 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21217
21218 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21219
21220 cat >>confdefs.h <<\_ACEOF
21221 #define HAVE_ISINF_IN_CMATH 1
21222 _ACEOF
21223
21224 fi
21225
21226
21227   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21228 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21229 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21230   echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232
21233     ac_ext=cpp
21234 ac_cpp='$CXXCPP $CPPFLAGS'
21235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21238
21239     cat >conftest.$ac_ext <<_ACEOF
21240 /* confdefs.h.  */
21241 _ACEOF
21242 cat confdefs.h >>conftest.$ac_ext
21243 cat >>conftest.$ac_ext <<_ACEOF
21244 /* end confdefs.h.  */
21245 #include <cmath>
21246 int
21247 main ()
21248 {
21249 float f; std::isinf(f);
21250   ;
21251   return 0;
21252 }
21253 _ACEOF
21254 rm -f conftest.$ac_objext
21255 if { (ac_try="$ac_compile"
21256 case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261   (eval "$ac_compile") 2>conftest.er1
21262   ac_status=$?
21263   grep -v '^ *+' conftest.er1 >conftest.err
21264   rm -f conftest.er1
21265   cat conftest.err >&5
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); } &&
21268          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21269   { (case "(($ac_try" in
21270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271   *) ac_try_echo=$ac_try;;
21272 esac
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274   (eval "$ac_try") 2>&5
21275   ac_status=$?
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); }; } &&
21278          { ac_try='test -s conftest.$ac_objext'
21279   { (case "(($ac_try" in
21280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281   *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284   (eval "$ac_try") 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); }; }; then
21288   ac_cv_func_std_isinf_in_cmath=yes
21289 else
21290   echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21292
21293         ac_cv_func_std_isinf_in_cmath=no
21294 fi
21295
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297     ac_ext=c
21298 ac_cpp='$CPP $CPPFLAGS'
21299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21302
21303
21304 fi
21305 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21306 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21307
21308 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21309
21310 cat >>confdefs.h <<\_ACEOF
21311 #define HAVE_STD_ISINF_IN_CMATH 1
21312 _ACEOF
21313
21314 fi
21315
21316
21317   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21318 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21319 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21320   echo $ECHO_N "(cached) $ECHO_C" >&6
21321 else
21322
21323     ac_ext=cpp
21324 ac_cpp='$CXXCPP $CPPFLAGS'
21325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21328
21329     cat >conftest.$ac_ext <<_ACEOF
21330 /* confdefs.h.  */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h.  */
21335 #include <ieeefp.h>
21336 int
21337 main ()
21338 {
21339 float f; finite(f);
21340   ;
21341   return 0;
21342 }
21343 _ACEOF
21344 rm -f conftest.$ac_objext
21345 if { (ac_try="$ac_compile"
21346 case "(($ac_try" in
21347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348   *) ac_try_echo=$ac_try;;
21349 esac
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351   (eval "$ac_compile") 2>conftest.er1
21352   ac_status=$?
21353   grep -v '^ *+' conftest.er1 >conftest.err
21354   rm -f conftest.er1
21355   cat conftest.err >&5
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); } &&
21358          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21359   { (case "(($ac_try" in
21360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361   *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364   (eval "$ac_try") 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); }; } &&
21368          { ac_try='test -s conftest.$ac_objext'
21369   { (case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_try") 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); }; }; then
21378   ac_cv_func_finite_in_ieeefp_h=yes
21379 else
21380   echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383         ac_cv_func_finite_in_ieeefp_h=no
21384 fi
21385
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387     ac_ext=c
21388 ac_cpp='$CPP $CPPFLAGS'
21389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21392
21393
21394 fi
21395 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21396 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21397
21398 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21399
21400 cat >>confdefs.h <<\_ACEOF
21401 #define HAVE_FINITE_IN_IEEEFP_H 1
21402 _ACEOF
21403
21404 fi
21405
21406
21407
21408 if test "$llvm_cv_platform_type" = "Unix" ; then
21409
21410
21411 for ac_header in stdlib.h unistd.h
21412 do
21413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21415   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418   echo $ECHO_N "(cached) $ECHO_C" >&6
21419 fi
21420 ac_res=`eval echo '${'$as_ac_Header'}'`
21421                { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21423 else
21424   # Is the header compilable?
21425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21427 cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 $ac_includes_default
21434 #include <$ac_header>
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440   *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443   (eval "$ac_compile") 2>conftest.er1
21444   ac_status=$?
21445   grep -v '^ *+' conftest.er1 >conftest.err
21446   rm -f conftest.er1
21447   cat conftest.err >&5
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); } &&
21450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21451   { (case "(($ac_try" in
21452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453   *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456   (eval "$ac_try") 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); }; } &&
21460          { ac_try='test -s conftest.$ac_objext'
21461   { (case "(($ac_try" in
21462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463   *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466   (eval "$ac_try") 2>&5
21467   ac_status=$?
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); }; }; then
21470   ac_header_compiler=yes
21471 else
21472   echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21474
21475         ac_header_compiler=no
21476 fi
21477
21478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21480 echo "${ECHO_T}$ac_header_compiler" >&6; }
21481
21482 # Is the header present?
21483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21485 cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h.  */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h.  */
21491 #include <$ac_header>
21492 _ACEOF
21493 if { (ac_try="$ac_cpp conftest.$ac_ext"
21494 case "(($ac_try" in
21495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496   *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21500   ac_status=$?
21501   grep -v '^ *+' conftest.er1 >conftest.err
21502   rm -f conftest.er1
21503   cat conftest.err >&5
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); } >/dev/null; then
21506   if test -s conftest.err; then
21507     ac_cpp_err=$ac_c_preproc_warn_flag
21508     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21509   else
21510     ac_cpp_err=
21511   fi
21512 else
21513   ac_cpp_err=yes
21514 fi
21515 if test -z "$ac_cpp_err"; then
21516   ac_header_preproc=yes
21517 else
21518   echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21520
21521   ac_header_preproc=no
21522 fi
21523
21524 rm -f conftest.err conftest.$ac_ext
21525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21526 echo "${ECHO_T}$ac_header_preproc" >&6; }
21527
21528 # So?  What about this header?
21529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21530   yes:no: )
21531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21535     ac_header_preproc=yes
21536     ;;
21537   no:yes:* )
21538     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21540     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21541 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21542     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21544     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21545 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21548     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21550     ( cat <<\_ASBOX
21551 ## ------------------------------------ ##
21552 ## Report this to http://llvm.org/bugs/ ##
21553 ## ------------------------------------ ##
21554 _ASBOX
21555      ) | sed "s/^/$as_me: WARNING:     /" >&2
21556     ;;
21557 esac
21558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21561   echo $ECHO_N "(cached) $ECHO_C" >&6
21562 else
21563   eval "$as_ac_Header=\$ac_header_preproc"
21564 fi
21565 ac_res=`eval echo '${'$as_ac_Header'}'`
21566                { echo "$as_me:$LINENO: result: $ac_res" >&5
21567 echo "${ECHO_T}$ac_res" >&6; }
21568
21569 fi
21570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21571   cat >>confdefs.h <<_ACEOF
21572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21573 _ACEOF
21574
21575 fi
21576
21577 done
21578
21579
21580 for ac_func in getpagesize
21581 do
21582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21586   echo $ECHO_N "(cached) $ECHO_C" >&6
21587 else
21588   cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h.  */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h.  */
21594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21596 #define $ac_func innocuous_$ac_func
21597
21598 /* System header to define __stub macros and hopefully few prototypes,
21599     which can conflict with char $ac_func (); below.
21600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21601     <limits.h> exists even on freestanding compilers.  */
21602
21603 #ifdef __STDC__
21604 # include <limits.h>
21605 #else
21606 # include <assert.h>
21607 #endif
21608
21609 #undef $ac_func
21610
21611 /* Override any GCC internal prototype to avoid an error.
21612    Use char because int might match the return type of a GCC
21613    builtin and then its argument prototype would still apply.  */
21614 #ifdef __cplusplus
21615 extern "C"
21616 #endif
21617 char $ac_func ();
21618 /* The GNU C library defines this for functions which it implements
21619     to always fail with ENOSYS.  Some functions are actually named
21620     something starting with __ and the normal name is an alias.  */
21621 #if defined __stub_$ac_func || defined __stub___$ac_func
21622 choke me
21623 #endif
21624
21625 int
21626 main ()
21627 {
21628 return $ac_func ();
21629   ;
21630   return 0;
21631 }
21632 _ACEOF
21633 rm -f conftest.$ac_objext conftest$ac_exeext
21634 if { (ac_try="$ac_link"
21635 case "(($ac_try" in
21636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637   *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640   (eval "$ac_link") 2>conftest.er1
21641   ac_status=$?
21642   grep -v '^ *+' conftest.er1 >conftest.err
21643   rm -f conftest.er1
21644   cat conftest.err >&5
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); } &&
21647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21648   { (case "(($ac_try" in
21649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650   *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653   (eval "$ac_try") 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; } &&
21657          { ac_try='test -s conftest$ac_exeext'
21658   { (case "(($ac_try" in
21659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660   *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663   (eval "$ac_try") 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); }; }; then
21667   eval "$as_ac_var=yes"
21668 else
21669   echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672         eval "$as_ac_var=no"
21673 fi
21674
21675 rm -f core conftest.err conftest.$ac_objext \
21676       conftest$ac_exeext conftest.$ac_ext
21677 fi
21678 ac_res=`eval echo '${'$as_ac_var'}'`
21679                { echo "$as_me:$LINENO: result: $ac_res" >&5
21680 echo "${ECHO_T}$ac_res" >&6; }
21681 if test `eval echo '${'$as_ac_var'}'` = yes; then
21682   cat >>confdefs.h <<_ACEOF
21683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21684 _ACEOF
21685
21686 fi
21687 done
21688
21689 { echo "$as_me:$LINENO: checking for working mmap" >&5
21690 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21691 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21692   echo $ECHO_N "(cached) $ECHO_C" >&6
21693 else
21694   if test "$cross_compiling" = yes; then
21695   ac_cv_func_mmap_fixed_mapped=no
21696 else
21697   cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h.  */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h.  */
21703 $ac_includes_default
21704 /* malloc might have been renamed as rpl_malloc. */
21705 #undef malloc
21706
21707 /* Thanks to Mike Haertel and Jim Avera for this test.
21708    Here is a matrix of mmap possibilities:
21709         mmap private not fixed
21710         mmap private fixed at somewhere currently unmapped
21711         mmap private fixed at somewhere already mapped
21712         mmap shared not fixed
21713         mmap shared fixed at somewhere currently unmapped
21714         mmap shared fixed at somewhere already mapped
21715    For private mappings, we should verify that changes cannot be read()
21716    back from the file, nor mmap's back from the file at a different
21717    address.  (There have been systems where private was not correctly
21718    implemented like the infamous i386 svr4.0, and systems where the
21719    VM page cache was not coherent with the file system buffer cache
21720    like early versions of FreeBSD and possibly contemporary NetBSD.)
21721    For shared mappings, we should conversely verify that changes get
21722    propagated back to all the places they're supposed to be.
21723
21724    Grep wants private fixed already mapped.
21725    The main things grep needs to know about mmap are:
21726    * does it exist and is it safe to write into the mmap'd area
21727    * how to use it (BSD variants)  */
21728
21729 #include <fcntl.h>
21730 #include <sys/mman.h>
21731
21732 #if !STDC_HEADERS && !HAVE_STDLIB_H
21733 char *malloc ();
21734 #endif
21735
21736 /* This mess was copied from the GNU getpagesize.h.  */
21737 #if !HAVE_GETPAGESIZE
21738 /* Assume that all systems that can run configure have sys/param.h.  */
21739 # if !HAVE_SYS_PARAM_H
21740 #  define HAVE_SYS_PARAM_H 1
21741 # endif
21742
21743 # ifdef _SC_PAGESIZE
21744 #  define getpagesize() sysconf(_SC_PAGESIZE)
21745 # else /* no _SC_PAGESIZE */
21746 #  if HAVE_SYS_PARAM_H
21747 #   include <sys/param.h>
21748 #   ifdef EXEC_PAGESIZE
21749 #    define getpagesize() EXEC_PAGESIZE
21750 #   else /* no EXEC_PAGESIZE */
21751 #    ifdef NBPG
21752 #     define getpagesize() NBPG * CLSIZE
21753 #     ifndef CLSIZE
21754 #      define CLSIZE 1
21755 #     endif /* no CLSIZE */
21756 #    else /* no NBPG */
21757 #     ifdef NBPC
21758 #      define getpagesize() NBPC
21759 #     else /* no NBPC */
21760 #      ifdef PAGESIZE
21761 #       define getpagesize() PAGESIZE
21762 #      endif /* PAGESIZE */
21763 #     endif /* no NBPC */
21764 #    endif /* no NBPG */
21765 #   endif /* no EXEC_PAGESIZE */
21766 #  else /* no HAVE_SYS_PARAM_H */
21767 #   define getpagesize() 8192   /* punt totally */
21768 #  endif /* no HAVE_SYS_PARAM_H */
21769 # endif /* no _SC_PAGESIZE */
21770
21771 #endif /* no HAVE_GETPAGESIZE */
21772
21773 int
21774 main ()
21775 {
21776   char *data, *data2, *data3;
21777   int i, pagesize;
21778   int fd;
21779
21780   pagesize = getpagesize ();
21781
21782   /* First, make a file with some known garbage in it. */
21783   data = (char *) malloc (pagesize);
21784   if (!data)
21785     return 1;
21786   for (i = 0; i < pagesize; ++i)
21787     *(data + i) = rand ();
21788   umask (0);
21789   fd = creat ("conftest.mmap", 0600);
21790   if (fd < 0)
21791     return 1;
21792   if (write (fd, data, pagesize) != pagesize)
21793     return 1;
21794   close (fd);
21795
21796   /* Next, try to mmap the file at a fixed address which already has
21797      something else allocated at it.  If we can, also make sure that
21798      we see the same garbage.  */
21799   fd = open ("conftest.mmap", O_RDWR);
21800   if (fd < 0)
21801     return 1;
21802   data2 = (char *) malloc (2 * pagesize);
21803   if (!data2)
21804     return 1;
21805   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21806   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21807                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21808     return 1;
21809   for (i = 0; i < pagesize; ++i)
21810     if (*(data + i) != *(data2 + i))
21811       return 1;
21812
21813   /* Finally, make sure that changes to the mapped area do not
21814      percolate back to the file as seen by read().  (This is a bug on
21815      some variants of i386 svr4.0.)  */
21816   for (i = 0; i < pagesize; ++i)
21817     *(data2 + i) = *(data2 + i) + 1;
21818   data3 = (char *) malloc (pagesize);
21819   if (!data3)
21820     return 1;
21821   if (read (fd, data3, pagesize) != pagesize)
21822     return 1;
21823   for (i = 0; i < pagesize; ++i)
21824     if (*(data + i) != *(data3 + i))
21825       return 1;
21826   close (fd);
21827   return 0;
21828 }
21829 _ACEOF
21830 rm -f conftest$ac_exeext
21831 if { (ac_try="$ac_link"
21832 case "(($ac_try" in
21833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834   *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837   (eval "$ac_link") 2>&5
21838   ac_status=$?
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21841   { (case "(($ac_try" in
21842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843   *) ac_try_echo=$ac_try;;
21844 esac
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846   (eval "$ac_try") 2>&5
21847   ac_status=$?
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); }; }; then
21850   ac_cv_func_mmap_fixed_mapped=yes
21851 else
21852   echo "$as_me: program exited with status $ac_status" >&5
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ( exit $ac_status )
21857 ac_cv_func_mmap_fixed_mapped=no
21858 fi
21859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21860 fi
21861
21862
21863 fi
21864 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21865 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21866 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21867
21868 cat >>confdefs.h <<\_ACEOF
21869 #define HAVE_MMAP 1
21870 _ACEOF
21871
21872 fi
21873 rm -f conftest.mmap
21874
21875   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21876 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21877 if test "${ac_cv_func_mmap_file+set}" = set; then
21878   echo $ECHO_N "(cached) $ECHO_C" >&6
21879 else
21880    ac_ext=c
21881 ac_cpp='$CPP $CPPFLAGS'
21882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21885
21886   if test "$cross_compiling" = yes; then
21887   ac_cv_func_mmap_file=no
21888 else
21889   cat >conftest.$ac_ext <<_ACEOF
21890
21891     /* confdefs.h.  */
21892 _ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h.  */
21896
21897 #include <sys/types.h>
21898 #include <sys/mman.h>
21899 #include <fcntl.h>
21900
21901 int
21902 main ()
21903 {
21904
21905   int fd;
21906   fd = creat ("foo",0777);
21907   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21908   unlink ("foo");
21909   return (fd != (int) MAP_FAILED);
21910   ;
21911   return 0;
21912 }
21913 _ACEOF
21914 rm -f conftest$ac_exeext
21915 if { (ac_try="$ac_link"
21916 case "(($ac_try" in
21917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918   *) ac_try_echo=$ac_try;;
21919 esac
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921   (eval "$ac_link") 2>&5
21922   ac_status=$?
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21925   { (case "(($ac_try" in
21926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927   *) ac_try_echo=$ac_try;;
21928 esac
21929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21930   (eval "$ac_try") 2>&5
21931   ac_status=$?
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); }; }; then
21934   ac_cv_func_mmap_file=yes
21935 else
21936   echo "$as_me: program exited with status $ac_status" >&5
21937 echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21939
21940 ( exit $ac_status )
21941 ac_cv_func_mmap_file=no
21942 fi
21943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21944 fi
21945
21946
21947   ac_ext=c
21948 ac_cpp='$CPP $CPPFLAGS'
21949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21952
21953
21954 fi
21955 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21956 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21957 if test "$ac_cv_func_mmap_file" = yes; then
21958
21959 cat >>confdefs.h <<\_ACEOF
21960 #define HAVE_MMAP_FILE
21961 _ACEOF
21962
21963    MMAP_FILE=yes
21964
21965 fi
21966
21967   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21968 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21969 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21970   echo $ECHO_N "(cached) $ECHO_C" >&6
21971 else
21972   if test "$llvm_cv_os_type" = "Interix" ; then
21973    ac_cv_need_dev_zero_for_mmap=yes
21974  else
21975    ac_cv_need_dev_zero_for_mmap=no
21976  fi
21977
21978 fi
21979 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21980 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21981 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21982
21983 cat >>confdefs.h <<\_ACEOF
21984 #define NEED_DEV_ZERO_FOR_MMAP 1
21985 _ACEOF
21986
21987 fi
21988
21989   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21990   then
21991     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21992 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21993   fi
21994   if test "$ac_cv_func_mmap_file" = "no"
21995   then
21996     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21997 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21998   fi
21999 fi
22000
22001 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22002 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22003 ac_ext=cpp
22004 ac_cpp='$CXXCPP $CPPFLAGS'
22005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22008
22009 cat >conftest.$ac_ext <<_ACEOF
22010
22011   /* confdefs.h.  */
22012 _ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h.  */
22016
22017     int main() {
22018       volatile unsigned long val = 1;
22019       __sync_synchronize();
22020       __sync_val_compare_and_swap(&val, 1, 0);
22021       __sync_add_and_fetch(&val, 1);
22022       __sync_sub_and_fetch(&val, 1);
22023       return 0;
22024     }
22025
22026
22027 _ACEOF
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032   *) ac_try_echo=$ac_try;;
22033 esac
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035   (eval "$ac_link") 2>conftest.er1
22036   ac_status=$?
22037   grep -v '^ *+' conftest.er1 >conftest.err
22038   rm -f conftest.er1
22039   cat conftest.err >&5
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } &&
22042          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22043   { (case "(($ac_try" in
22044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045   *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048   (eval "$ac_try") 2>&5
22049   ac_status=$?
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); }; } &&
22052          { ac_try='test -s conftest$ac_exeext'
22053   { (case "(($ac_try" in
22054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055   *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058   (eval "$ac_try") 2>&5
22059   ac_status=$?
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); }; }; then
22062
22063   { echo "$as_me:$LINENO: result: yes" >&5
22064 echo "${ECHO_T}yes" >&6; }
22065
22066 cat >>confdefs.h <<\_ACEOF
22067 #define LLVM_HAS_ATOMICS 1
22068 _ACEOF
22069
22070
22071 else
22072   echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22074
22075
22076   { echo "$as_me:$LINENO: result: no" >&5
22077 echo "${ECHO_T}no" >&6; }
22078
22079 cat >>confdefs.h <<\_ACEOF
22080 #define LLVM_HAS_ATOMICS 0
22081 _ACEOF
22082
22083   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22084 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22085
22086 fi
22087
22088 rm -f core conftest.err conftest.$ac_objext \
22089       conftest$ac_exeext conftest.$ac_ext
22090 ac_ext=c
22091 ac_cpp='$CPP $CPPFLAGS'
22092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22095
22096
22097
22098 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22099   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22100 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22101 if test "${llvm_cv_linux_mixed+set}" = set; then
22102   echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104    ac_ext=c
22105 ac_cpp='$CPP $CPPFLAGS'
22106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22109
22110   cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h.  */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h.  */
22116 #ifndef __x86_64__
22117        error: Not x86-64 even if uname says so!
22118       #endif
22119
22120 int
22121 main ()
22122 {
22123
22124   ;
22125   return 0;
22126 }
22127 _ACEOF
22128 rm -f conftest.$ac_objext
22129 if { (ac_try="$ac_compile"
22130 case "(($ac_try" in
22131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132   *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135   (eval "$ac_compile") 2>conftest.er1
22136   ac_status=$?
22137   grep -v '^ *+' conftest.er1 >conftest.err
22138   rm -f conftest.er1
22139   cat conftest.err >&5
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); } &&
22142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22143   { (case "(($ac_try" in
22144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145   *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148   (eval "$ac_try") 2>&5
22149   ac_status=$?
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); }; } &&
22152          { ac_try='test -s conftest.$ac_objext'
22153   { (case "(($ac_try" in
22154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155   *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158   (eval "$ac_try") 2>&5
22159   ac_status=$?
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); }; }; then
22162   llvm_cv_linux_mixed=no
22163 else
22164   echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22166
22167         llvm_cv_linux_mixed=yes
22168 fi
22169
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171   ac_ext=c
22172 ac_cpp='$CPP $CPPFLAGS'
22173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22176
22177
22178 fi
22179 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22180 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22181
22182   if test "$llvm_cv_linux_mixed" = "yes"; then
22183     llvm_cv_target_arch="x86"
22184     ARCH="x86"
22185   fi
22186 fi
22187
22188
22189 for ac_func in __dso_handle
22190 do
22191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22195   echo $ECHO_N "(cached) $ECHO_C" >&6
22196 else
22197   cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h.  */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h.  */
22203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22205 #define $ac_func innocuous_$ac_func
22206
22207 /* System header to define __stub macros and hopefully few prototypes,
22208     which can conflict with char $ac_func (); below.
22209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22210     <limits.h> exists even on freestanding compilers.  */
22211
22212 #ifdef __STDC__
22213 # include <limits.h>
22214 #else
22215 # include <assert.h>
22216 #endif
22217
22218 #undef $ac_func
22219
22220 /* Override any GCC internal prototype to avoid an error.
22221    Use char because int might match the return type of a GCC
22222    builtin and then its argument prototype would still apply.  */
22223 #ifdef __cplusplus
22224 extern "C"
22225 #endif
22226 char $ac_func ();
22227 /* The GNU C library defines this for functions which it implements
22228     to always fail with ENOSYS.  Some functions are actually named
22229     something starting with __ and the normal name is an alias.  */
22230 #if defined __stub_$ac_func || defined __stub___$ac_func
22231 choke me
22232 #endif
22233
22234 int
22235 main ()
22236 {
22237 return $ac_func ();
22238   ;
22239   return 0;
22240 }
22241 _ACEOF
22242 rm -f conftest.$ac_objext conftest$ac_exeext
22243 if { (ac_try="$ac_link"
22244 case "(($ac_try" in
22245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246   *) ac_try_echo=$ac_try;;
22247 esac
22248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22249   (eval "$ac_link") 2>conftest.er1
22250   ac_status=$?
22251   grep -v '^ *+' conftest.er1 >conftest.err
22252   rm -f conftest.er1
22253   cat conftest.err >&5
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); } &&
22256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22257   { (case "(($ac_try" in
22258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259   *) ac_try_echo=$ac_try;;
22260 esac
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262   (eval "$ac_try") 2>&5
22263   ac_status=$?
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); }; } &&
22266          { ac_try='test -s conftest$ac_exeext'
22267   { (case "(($ac_try" in
22268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269   *) ac_try_echo=$ac_try;;
22270 esac
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272   (eval "$ac_try") 2>&5
22273   ac_status=$?
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; }; then
22276   eval "$as_ac_var=yes"
22277 else
22278   echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22280
22281         eval "$as_ac_var=no"
22282 fi
22283
22284 rm -f core conftest.err conftest.$ac_objext \
22285       conftest$ac_exeext conftest.$ac_ext
22286 fi
22287 ac_res=`eval echo '${'$as_ac_var'}'`
22288                { echo "$as_me:$LINENO: result: $ac_res" >&5
22289 echo "${ECHO_T}$ac_res" >&6; }
22290 if test `eval echo '${'$as_ac_var'}'` = yes; then
22291   cat >>confdefs.h <<_ACEOF
22292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22293 _ACEOF
22294
22295 fi
22296 done
22297
22298
22299 SHLIBEXT=$libltdl_cv_shlibext
22300
22301
22302 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22303
22304
22305 if test "${prefix}" = "NONE" ; then
22306   prefix="/usr/local"
22307 fi
22308 eval LLVM_PREFIX="${prefix}";
22309 eval LLVM_BINDIR="${prefix}/bin";
22310 eval LLVM_DATADIR="${prefix}/share/llvm";
22311 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22312 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22313 eval LLVM_INCLUDEDIR="${prefix}/include";
22314 eval LLVM_INFODIR="${prefix}/info";
22315 eval LLVM_MANDIR="${prefix}/man";
22316 LLVM_CONFIGTIME=`date`
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22328   LLVM_CONFIGTIME="(timestamp not enabled)"
22329 fi
22330
22331
22332 cat >>confdefs.h <<_ACEOF
22333 #define LLVM_PREFIX "$LLVM_PREFIX"
22334 _ACEOF
22335
22336
22337 cat >>confdefs.h <<_ACEOF
22338 #define LLVM_BINDIR "$LLVM_BINDIR"
22339 _ACEOF
22340
22341
22342 cat >>confdefs.h <<_ACEOF
22343 #define LLVM_DATADIR "$LLVM_DATADIR"
22344 _ACEOF
22345
22346
22347 cat >>confdefs.h <<_ACEOF
22348 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22349 _ACEOF
22350
22351
22352 cat >>confdefs.h <<_ACEOF
22353 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22354 _ACEOF
22355
22356
22357 cat >>confdefs.h <<_ACEOF
22358 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22359 _ACEOF
22360
22361
22362 cat >>confdefs.h <<_ACEOF
22363 #define LLVM_INFODIR "$LLVM_INFODIR"
22364 _ACEOF
22365
22366
22367 cat >>confdefs.h <<_ACEOF
22368 #define LLVM_MANDIR "$LLVM_MANDIR"
22369 _ACEOF
22370
22371
22372 cat >>confdefs.h <<_ACEOF
22373 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22374 _ACEOF
22375
22376
22377 cat >>confdefs.h <<_ACEOF
22378 #define LLVM_HOST_TRIPLE "$host"
22379 _ACEOF
22380
22381
22382 cat >>confdefs.h <<_ACEOF
22383 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22384 _ACEOF
22385
22386
22387 if test "$BINDINGS_TO_BUILD" = auto ; then
22388   BINDINGS_TO_BUILD=""
22389   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22390     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22391   fi
22392 fi
22393 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22394
22395
22396 ALL_BINDINGS=ocaml
22397
22398
22399 binding_prereqs_failed=0
22400 for a_binding in $BINDINGS_TO_BUILD ; do
22401   case "$a_binding" in
22402   ocaml)
22403     if test "x$OCAMLC" = x ; then
22404       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22405 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22406       binding_prereqs_failed=1
22407     fi
22408     if test "x$OCAMLDEP" = x ; then
22409       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22410 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22411       binding_prereqs_failed=1
22412     fi
22413     if test "x$OCAMLOPT" = x ; then
22414       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22415 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22416           fi
22417     if test "x$with_ocaml_libdir" != xauto ; then
22418       OCAML_LIBDIR=$with_ocaml_libdir
22419
22420     else
22421       ocaml_stdlib="`"$OCAMLC" -where`"
22422       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22423       then
22424         # ocaml stdlib is beneath our prefix; use stdlib
22425         OCAML_LIBDIR=$ocaml_stdlib
22426
22427       else
22428         # ocaml stdlib is outside our prefix; use libdir/ocaml
22429         OCAML_LIBDIR=${prefix}/lib/ocaml
22430
22431       fi
22432     fi
22433     ;;
22434   esac
22435 done
22436 if test "$binding_prereqs_failed" = 1 ; then
22437   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22438 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22439    { (exit 1); exit 1; }; }
22440 fi
22441
22442 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22443 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22444 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22445   echo $ECHO_N "(cached) $ECHO_C" >&6
22446 else
22447    ac_ext=cpp
22448 ac_cpp='$CXXCPP $CPPFLAGS'
22449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22452
22453   oldcxxflags="$CXXFLAGS"
22454   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22455   cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h.  */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h.  */
22461 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22462 int
22463 main ()
22464 {
22465 X<int>().f();
22466   ;
22467   return 0;
22468 }
22469 _ACEOF
22470 rm -f conftest.$ac_objext
22471 if { (ac_try="$ac_compile"
22472 case "(($ac_try" in
22473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474   *) ac_try_echo=$ac_try;;
22475 esac
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477   (eval "$ac_compile") 2>conftest.er1
22478   ac_status=$?
22479   grep -v '^ *+' conftest.er1 >conftest.err
22480   rm -f conftest.er1
22481   cat conftest.err >&5
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } &&
22484          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22485   { (case "(($ac_try" in
22486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487   *) ac_try_echo=$ac_try;;
22488 esac
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490   (eval "$ac_try") 2>&5
22491   ac_status=$?
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); }; } &&
22494          { ac_try='test -s conftest.$ac_objext'
22495   { (case "(($ac_try" in
22496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497   *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500   (eval "$ac_try") 2>&5
22501   ac_status=$?
22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503   (exit $ac_status); }; }; then
22504   llvm_cv_cxx_visibility_inlines_hidden=yes
22505 else
22506   echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509         llvm_cv_cxx_visibility_inlines_hidden=no
22510 fi
22511
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513   CXXFLAGS="$oldcxxflags"
22514   ac_ext=c
22515 ac_cpp='$CPP $CPPFLAGS'
22516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22519
22520
22521 fi
22522 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22523 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22524 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22525   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22526
22527 else
22528   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22529
22530 fi
22531
22532
22533 if test "$llvm_cv_link_use_r" = "yes" ; then
22534   RPATH="-Wl,-R"
22535 else
22536   RPATH="-Wl,-rpath"
22537 fi
22538
22539
22540 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22541   RDYNAMIC="-Wl,-export-dynamic"
22542 else
22543   RDYNAMIC=""
22544 fi
22545
22546
22547
22548 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22549
22550
22551
22552
22553
22554
22555 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22556
22557 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22558
22559 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22560
22561 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22562
22563 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22564
22565
22566 ac_config_files="$ac_config_files Makefile.config"
22567
22568
22569 ac_config_files="$ac_config_files llvm.spec"
22570
22571
22572 ac_config_files="$ac_config_files docs/doxygen.cfg"
22573
22574
22575 if test "${clang_src_root}" = ""; then
22576   clang_src_root="$srcdir/tools/clang"
22577 fi
22578 if test -f ${clang_src_root}/README.txt; then
22579     configh="include/clang/Config/config.h"
22580   doxy="docs/doxygen.cfg"
22581   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22582
22583   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22584
22585 fi
22586
22587 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22588
22589
22590 test "x$program_prefix" = "xNONE" && program_prefix=""
22591
22592
22593
22594 ac_config_commands="$ac_config_commands setup"
22595
22596 ac_config_commands="$ac_config_commands Makefile"
22597
22598
22599 ac_config_commands="$ac_config_commands Makefile.common"
22600
22601
22602 ac_config_commands="$ac_config_commands examples/Makefile"
22603
22604
22605 ac_config_commands="$ac_config_commands lib/Makefile"
22606
22607
22608 ac_config_commands="$ac_config_commands runtime/Makefile"
22609
22610
22611 ac_config_commands="$ac_config_commands test/Makefile"
22612
22613
22614 ac_config_commands="$ac_config_commands test/Makefile.tests"
22615
22616
22617 ac_config_commands="$ac_config_commands unittests/Makefile"
22618
22619
22620 ac_config_commands="$ac_config_commands tools/Makefile"
22621
22622
22623 ac_config_commands="$ac_config_commands utils/Makefile"
22624
22625
22626 ac_config_commands="$ac_config_commands projects/Makefile"
22627
22628
22629 ac_config_commands="$ac_config_commands bindings/Makefile"
22630
22631
22632 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22633
22634
22635
22636 cat >confcache <<\_ACEOF
22637 # This file is a shell script that caches the results of configure
22638 # tests run on this system so they can be shared between configure
22639 # scripts and configure runs, see configure's option --config-cache.
22640 # It is not useful on other systems.  If it contains results you don't
22641 # want to keep, you may remove or edit it.
22642 #
22643 # config.status only pays attention to the cache file if you give it
22644 # the --recheck option to rerun configure.
22645 #
22646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22648 # following values.
22649
22650 _ACEOF
22651
22652 # The following way of writing the cache mishandles newlines in values,
22653 # but we know of no workaround that is simple, portable, and efficient.
22654 # So, we kill variables containing newlines.
22655 # Ultrix sh set writes to stderr and can't be redirected directly,
22656 # and sets the high bit in the cache file unless we assign to the vars.
22657 (
22658   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22659     eval ac_val=\$$ac_var
22660     case $ac_val in #(
22661     *${as_nl}*)
22662       case $ac_var in #(
22663       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22664 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22665       esac
22666       case $ac_var in #(
22667       _ | IFS | as_nl) ;; #(
22668       *) $as_unset $ac_var ;;
22669       esac ;;
22670     esac
22671   done
22672
22673   (set) 2>&1 |
22674     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22675     *${as_nl}ac_space=\ *)
22676       # `set' does not quote correctly, so add quotes (double-quote
22677       # substitution turns \\\\ into \\, and sed turns \\ into \).
22678       sed -n \
22679         "s/'/'\\\\''/g;
22680           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22681       ;; #(
22682     *)
22683       # `set' quotes correctly as required by POSIX, so do not add quotes.
22684       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22685       ;;
22686     esac |
22687     sort
22688 ) |
22689   sed '
22690      /^ac_cv_env_/b end
22691      t clear
22692      :clear
22693      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22694      t end
22695      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22696      :end' >>confcache
22697 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22698   if test -w "$cache_file"; then
22699     test "x$cache_file" != "x/dev/null" &&
22700       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22701 echo "$as_me: updating cache $cache_file" >&6;}
22702     cat confcache >$cache_file
22703   else
22704     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22705 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22706   fi
22707 fi
22708 rm -f confcache
22709
22710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22711 # Let make expand exec_prefix.
22712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22713
22714 DEFS=-DHAVE_CONFIG_H
22715
22716 ac_libobjs=
22717 ac_ltlibobjs=
22718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22719   # 1. Remove the extension, and $U if already installed.
22720   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22721   ac_i=`echo "$ac_i" | sed "$ac_script"`
22722   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22723   #    will be set to the directory where LIBOBJS objects are built.
22724   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22725   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22726 done
22727 LIBOBJS=$ac_libobjs
22728
22729 LTLIBOBJS=$ac_ltlibobjs
22730
22731
22732 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22733   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22734 Usually this means the macro was only invoked conditionally." >&5
22735 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22736 Usually this means the macro was only invoked conditionally." >&2;}
22737    { (exit 1); exit 1; }; }
22738 fi
22739 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22740   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22741 Usually this means the macro was only invoked conditionally." >&5
22742 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22743 Usually this means the macro was only invoked conditionally." >&2;}
22744    { (exit 1); exit 1; }; }
22745 fi
22746
22747 : ${CONFIG_STATUS=./config.status}
22748 ac_clean_files_save=$ac_clean_files
22749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22750 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22751 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22752 cat >$CONFIG_STATUS <<_ACEOF
22753 #! $SHELL
22754 # Generated by $as_me.
22755 # Run this file to recreate the current configuration.
22756 # Compiler output produced by configure, useful for debugging
22757 # configure, is in config.log if it exists.
22758
22759 debug=false
22760 ac_cs_recheck=false
22761 ac_cs_silent=false
22762 SHELL=\${CONFIG_SHELL-$SHELL}
22763 _ACEOF
22764
22765 cat >>$CONFIG_STATUS <<\_ACEOF
22766 ## --------------------- ##
22767 ## M4sh Initialization.  ##
22768 ## --------------------- ##
22769
22770 # Be Bourne compatible
22771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22772   emulate sh
22773   NULLCMD=:
22774   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22775   # is contrary to our usage.  Disable this feature.
22776   alias -g '${1+"$@"}'='"$@"'
22777   setopt NO_GLOB_SUBST
22778 else
22779   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22780 fi
22781 BIN_SH=xpg4; export BIN_SH # for Tru64
22782 DUALCASE=1; export DUALCASE # for MKS sh
22783
22784
22785 # PATH needs CR
22786 # Avoid depending upon Character Ranges.
22787 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22788 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22789 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22790 as_cr_digits='0123456789'
22791 as_cr_alnum=$as_cr_Letters$as_cr_digits
22792
22793 # The user is always right.
22794 if test "${PATH_SEPARATOR+set}" != set; then
22795   echo "#! /bin/sh" >conf$$.sh
22796   echo  "exit 0"   >>conf$$.sh
22797   chmod +x conf$$.sh
22798   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22799     PATH_SEPARATOR=';'
22800   else
22801     PATH_SEPARATOR=:
22802   fi
22803   rm -f conf$$.sh
22804 fi
22805
22806 # Support unset when possible.
22807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22808   as_unset=unset
22809 else
22810   as_unset=false
22811 fi
22812
22813
22814 # IFS
22815 # We need space, tab and new line, in precisely that order.  Quoting is
22816 # there to prevent editors from complaining about space-tab.
22817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22818 # splitting by setting IFS to empty value.)
22819 as_nl='
22820 '
22821 IFS=" ""        $as_nl"
22822
22823 # Find who we are.  Look in the path if we contain no directory separator.
22824 case $0 in
22825   *[\\/]* ) as_myself=$0 ;;
22826   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22827 for as_dir in $PATH
22828 do
22829   IFS=$as_save_IFS
22830   test -z "$as_dir" && as_dir=.
22831   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22832 done
22833 IFS=$as_save_IFS
22834
22835      ;;
22836 esac
22837 # We did not find ourselves, most probably we were run as `sh COMMAND'
22838 # in which case we are not to be found in the path.
22839 if test "x$as_myself" = x; then
22840   as_myself=$0
22841 fi
22842 if test ! -f "$as_myself"; then
22843   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22844   { (exit 1); exit 1; }
22845 fi
22846
22847 # Work around bugs in pre-3.0 UWIN ksh.
22848 for as_var in ENV MAIL MAILPATH
22849 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22850 done
22851 PS1='$ '
22852 PS2='> '
22853 PS4='+ '
22854
22855 # NLS nuisances.
22856 for as_var in \
22857   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22858   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22859   LC_TELEPHONE LC_TIME
22860 do
22861   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22862     eval $as_var=C; export $as_var
22863   else
22864     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22865   fi
22866 done
22867
22868 # Required to use basename.
22869 if expr a : '\(a\)' >/dev/null 2>&1 &&
22870    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22871   as_expr=expr
22872 else
22873   as_expr=false
22874 fi
22875
22876 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22877   as_basename=basename
22878 else
22879   as_basename=false
22880 fi
22881
22882
22883 # Name of the executable.
22884 as_me=`$as_basename -- "$0" ||
22885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22886          X"$0" : 'X\(//\)$' \| \
22887          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22888 echo X/"$0" |
22889     sed '/^.*\/\([^/][^/]*\)\/*$/{
22890             s//\1/
22891             q
22892           }
22893           /^X\/\(\/\/\)$/{
22894             s//\1/
22895             q
22896           }
22897           /^X\/\(\/\).*/{
22898             s//\1/
22899             q
22900           }
22901           s/.*/./; q'`
22902
22903 # CDPATH.
22904 $as_unset CDPATH
22905
22906
22907
22908   as_lineno_1=$LINENO
22909   as_lineno_2=$LINENO
22910   test "x$as_lineno_1" != "x$as_lineno_2" &&
22911   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22912
22913   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22914   # uniformly replaced by the line number.  The first 'sed' inserts a
22915   # line-number line after each line using $LINENO; the second 'sed'
22916   # does the real work.  The second script uses 'N' to pair each
22917   # line-number line with the line containing $LINENO, and appends
22918   # trailing '-' during substitution so that $LINENO is not a special
22919   # case at line end.
22920   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22921   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22922   # E. McMahon (1931-1989) for sed's syntax.  :-)
22923   sed -n '
22924     p
22925     /[$]LINENO/=
22926   ' <$as_myself |
22927     sed '
22928       s/[$]LINENO.*/&-/
22929       t lineno
22930       b
22931       :lineno
22932       N
22933       :loop
22934       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22935       t loop
22936       s/-\n.*//
22937     ' >$as_me.lineno &&
22938   chmod +x "$as_me.lineno" ||
22939     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22940    { (exit 1); exit 1; }; }
22941
22942   # Don't try to exec as it changes $[0], causing all sort of problems
22943   # (the dirname of $[0] is not the place where we might find the
22944   # original and so on.  Autoconf is especially sensitive to this).
22945   . "./$as_me.lineno"
22946   # Exit status is that of the last command.
22947   exit
22948 }
22949
22950
22951 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22952   as_dirname=dirname
22953 else
22954   as_dirname=false
22955 fi
22956
22957 ECHO_C= ECHO_N= ECHO_T=
22958 case `echo -n x` in
22959 -n*)
22960   case `echo 'x\c'` in
22961   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22962   *)   ECHO_C='\c';;
22963   esac;;
22964 *)
22965   ECHO_N='-n';;
22966 esac
22967
22968 if expr a : '\(a\)' >/dev/null 2>&1 &&
22969    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22970   as_expr=expr
22971 else
22972   as_expr=false
22973 fi
22974
22975 rm -f conf$$ conf$$.exe conf$$.file
22976 if test -d conf$$.dir; then
22977   rm -f conf$$.dir/conf$$.file
22978 else
22979   rm -f conf$$.dir
22980   mkdir conf$$.dir
22981 fi
22982 echo >conf$$.file
22983 if ln -s conf$$.file conf$$ 2>/dev/null; then
22984   as_ln_s='ln -s'
22985   # ... but there are two gotchas:
22986   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22987   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22988   # In both cases, we have to default to `cp -p'.
22989   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22990     as_ln_s='cp -p'
22991 elif ln conf$$.file conf$$ 2>/dev/null; then
22992   as_ln_s=ln
22993 else
22994   as_ln_s='cp -p'
22995 fi
22996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22997 rmdir conf$$.dir 2>/dev/null
22998
22999 if mkdir -p . 2>/dev/null; then
23000   as_mkdir_p=:
23001 else
23002   test -d ./-p && rmdir ./-p
23003   as_mkdir_p=false
23004 fi
23005
23006 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23007 # systems may use methods other than mode bits to determine executability.
23008 cat >conf$$.file <<_ASEOF
23009 #! /bin/sh
23010 exit 0
23011 _ASEOF
23012 chmod +x conf$$.file
23013 if test -x conf$$.file >/dev/null 2>&1; then
23014   as_executable_p="test -x"
23015 else
23016   as_executable_p=:
23017 fi
23018 rm -f conf$$.file
23019
23020 # Sed expression to map a string onto a valid CPP name.
23021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23022
23023 # Sed expression to map a string onto a valid variable name.
23024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23025
23026
23027 exec 6>&1
23028
23029 # Save the log message, to keep $[0] and so on meaningful, and to
23030 # report actual input values of CONFIG_FILES etc. instead of their
23031 # values after options handling.
23032 ac_log="
23033 This file was extended by LLVM $as_me 3.4svn, which was
23034 generated by GNU Autoconf 2.60.  Invocation command line was
23035
23036   CONFIG_FILES    = $CONFIG_FILES
23037   CONFIG_HEADERS  = $CONFIG_HEADERS
23038   CONFIG_LINKS    = $CONFIG_LINKS
23039   CONFIG_COMMANDS = $CONFIG_COMMANDS
23040   $ $0 $@
23041
23042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23043 "
23044
23045 _ACEOF
23046
23047 cat >>$CONFIG_STATUS <<_ACEOF
23048 # Files that config.status was made for.
23049 config_files="$ac_config_files"
23050 config_headers="$ac_config_headers"
23051 config_commands="$ac_config_commands"
23052
23053 _ACEOF
23054
23055 cat >>$CONFIG_STATUS <<\_ACEOF
23056 ac_cs_usage="\
23057 \`$as_me' instantiates files from templates according to the
23058 current configuration.
23059
23060 Usage: $0 [OPTIONS] [FILE]...
23061
23062   -h, --help       print this help, then exit
23063   -V, --version    print version number, then exit
23064   -q, --quiet      do not print progress messages
23065   -d, --debug      don't remove temporary files
23066       --recheck    update $as_me by reconfiguring in the same conditions
23067   --file=FILE[:TEMPLATE]
23068                    instantiate the configuration file FILE
23069   --header=FILE[:TEMPLATE]
23070                    instantiate the configuration header FILE
23071
23072 Configuration files:
23073 $config_files
23074
23075 Configuration headers:
23076 $config_headers
23077
23078 Configuration commands:
23079 $config_commands
23080
23081 Report bugs to <bug-autoconf@gnu.org>."
23082
23083 _ACEOF
23084 cat >>$CONFIG_STATUS <<_ACEOF
23085 ac_cs_version="\\
23086 LLVM config.status 3.4svn
23087 configured by $0, generated by GNU Autoconf 2.60,
23088   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23089
23090 Copyright (C) 2006 Free Software Foundation, Inc.
23091 This config.status script is free software; the Free Software Foundation
23092 gives unlimited permission to copy, distribute and modify it."
23093
23094 ac_pwd='$ac_pwd'
23095 srcdir='$srcdir'
23096 INSTALL='$INSTALL'
23097 _ACEOF
23098
23099 cat >>$CONFIG_STATUS <<\_ACEOF
23100 # If no file are specified by the user, then we need to provide default
23101 # value.  By we need to know if files were specified by the user.
23102 ac_need_defaults=:
23103 while test $# != 0
23104 do
23105   case $1 in
23106   --*=*)
23107     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23108     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23109     ac_shift=:
23110     ;;
23111   *)
23112     ac_option=$1
23113     ac_optarg=$2
23114     ac_shift=shift
23115     ;;
23116   esac
23117
23118   case $ac_option in
23119   # Handling of the options.
23120   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23121     ac_cs_recheck=: ;;
23122   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23123     echo "$ac_cs_version"; exit ;;
23124   --debug | --debu | --deb | --de | --d | -d )
23125     debug=: ;;
23126   --file | --fil | --fi | --f )
23127     $ac_shift
23128     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23129     ac_need_defaults=false;;
23130   --header | --heade | --head | --hea )
23131     $ac_shift
23132     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23133     ac_need_defaults=false;;
23134   --he | --h)
23135     # Conflict between --help and --header
23136     { echo "$as_me: error: ambiguous option: $1
23137 Try \`$0 --help' for more information." >&2
23138    { (exit 1); exit 1; }; };;
23139   --help | --hel | -h )
23140     echo "$ac_cs_usage"; exit ;;
23141   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23142   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23143     ac_cs_silent=: ;;
23144
23145   # This is an error.
23146   -*) { echo "$as_me: error: unrecognized option: $1
23147 Try \`$0 --help' for more information." >&2
23148    { (exit 1); exit 1; }; } ;;
23149
23150   *) ac_config_targets="$ac_config_targets $1"
23151      ac_need_defaults=false ;;
23152
23153   esac
23154   shift
23155 done
23156
23157 ac_configure_extra_args=
23158
23159 if $ac_cs_silent; then
23160   exec 6>/dev/null
23161   ac_configure_extra_args="$ac_configure_extra_args --silent"
23162 fi
23163
23164 _ACEOF
23165 cat >>$CONFIG_STATUS <<_ACEOF
23166 if \$ac_cs_recheck; then
23167   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23168   CONFIG_SHELL=$SHELL
23169   export CONFIG_SHELL
23170   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23171 fi
23172
23173 _ACEOF
23174 cat >>$CONFIG_STATUS <<\_ACEOF
23175 exec 5>>config.log
23176 {
23177   echo
23178   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23179 ## Running $as_me. ##
23180 _ASBOX
23181   echo "$ac_log"
23182 } >&5
23183
23184 _ACEOF
23185 cat >>$CONFIG_STATUS <<_ACEOF
23186 #
23187 # INIT-COMMANDS
23188 #
23189 llvm_src="${srcdir}"
23190
23191 _ACEOF
23192
23193 cat >>$CONFIG_STATUS <<\_ACEOF
23194
23195 # Handling of arguments.
23196 for ac_config_target in $ac_config_targets
23197 do
23198   case $ac_config_target in
23199     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23200     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23201     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23202     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23203     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23204     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23205     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23206     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23207     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23208     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23209     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23210     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23211     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23212     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23213     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23214     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23215     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23216     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23217     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23218     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23219     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23220     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23221     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23222     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23223     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23224     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23225     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23226
23227   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23228 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23229    { (exit 1); exit 1; }; };;
23230   esac
23231 done
23232
23233
23234 # If the user did not use the arguments to specify the items to instantiate,
23235 # then the envvar interface is used.  Set only those that are not.
23236 # We use the long form for the default assignment because of an extremely
23237 # bizarre bug on SunOS 4.1.3.
23238 if $ac_need_defaults; then
23239   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23240   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23241   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23242 fi
23243
23244 # Have a temporary directory for convenience.  Make it in the build tree
23245 # simply because there is no reason against having it here, and in addition,
23246 # creating and moving files from /tmp can sometimes cause problems.
23247 # Hook for its removal unless debugging.
23248 # Note that there is a small window in which the directory will not be cleaned:
23249 # after its creation but before its name has been assigned to `$tmp'.
23250 $debug ||
23251 {
23252   tmp=
23253   trap 'exit_status=$?
23254   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23255 ' 0
23256   trap '{ (exit 1); exit 1; }' 1 2 13 15
23257 }
23258 # Create a (secure) tmp directory for tmp files.
23259
23260 {
23261   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23262   test -n "$tmp" && test -d "$tmp"
23263 }  ||
23264 {
23265   tmp=./conf$$-$RANDOM
23266   (umask 077 && mkdir "$tmp")
23267 } ||
23268 {
23269    echo "$me: cannot create a temporary directory in ." >&2
23270    { (exit 1); exit 1; }
23271 }
23272
23273 #
23274 # Set up the sed scripts for CONFIG_FILES section.
23275 #
23276
23277 # No need to generate the scripts if there are no CONFIG_FILES.
23278 # This happens for instance when ./config.status config.h
23279 if test -n "$CONFIG_FILES"; then
23280
23281 _ACEOF
23282
23283
23284
23285 ac_delim='%!_!# '
23286 for ac_last_try in false false false false false :; do
23287   cat >conf$$subs.sed <<_ACEOF
23288 SHELL!$SHELL$ac_delim
23289 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23290 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23291 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23292 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23293 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23294 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23295 exec_prefix!$exec_prefix$ac_delim
23296 prefix!$prefix$ac_delim
23297 program_transform_name!$program_transform_name$ac_delim
23298 bindir!$bindir$ac_delim
23299 sbindir!$sbindir$ac_delim
23300 libexecdir!$libexecdir$ac_delim
23301 datarootdir!$datarootdir$ac_delim
23302 datadir!$datadir$ac_delim
23303 sysconfdir!$sysconfdir$ac_delim
23304 sharedstatedir!$sharedstatedir$ac_delim
23305 localstatedir!$localstatedir$ac_delim
23306 includedir!$includedir$ac_delim
23307 oldincludedir!$oldincludedir$ac_delim
23308 docdir!$docdir$ac_delim
23309 infodir!$infodir$ac_delim
23310 htmldir!$htmldir$ac_delim
23311 dvidir!$dvidir$ac_delim
23312 pdfdir!$pdfdir$ac_delim
23313 psdir!$psdir$ac_delim
23314 libdir!$libdir$ac_delim
23315 localedir!$localedir$ac_delim
23316 mandir!$mandir$ac_delim
23317 DEFS!$DEFS$ac_delim
23318 ECHO_C!$ECHO_C$ac_delim
23319 ECHO_N!$ECHO_N$ac_delim
23320 ECHO_T!$ECHO_T$ac_delim
23321 LIBS!$LIBS$ac_delim
23322 build_alias!$build_alias$ac_delim
23323 host_alias!$host_alias$ac_delim
23324 target_alias!$target_alias$ac_delim
23325 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23326 CC!$CC$ac_delim
23327 CFLAGS!$CFLAGS$ac_delim
23328 LDFLAGS!$LDFLAGS$ac_delim
23329 CPPFLAGS!$CPPFLAGS$ac_delim
23330 ac_ct_CC!$ac_ct_CC$ac_delim
23331 EXEEXT!$EXEEXT$ac_delim
23332 OBJEXT!$OBJEXT$ac_delim
23333 CXX!$CXX$ac_delim
23334 CXXFLAGS!$CXXFLAGS$ac_delim
23335 ac_ct_CXX!$ac_ct_CXX$ac_delim
23336 CPP!$CPP$ac_delim
23337 subdirs!$subdirs$ac_delim
23338 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23339 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23340 build!$build$ac_delim
23341 build_cpu!$build_cpu$ac_delim
23342 build_vendor!$build_vendor$ac_delim
23343 build_os!$build_os$ac_delim
23344 host!$host$ac_delim
23345 host_cpu!$host_cpu$ac_delim
23346 host_vendor!$host_vendor$ac_delim
23347 host_os!$host_os$ac_delim
23348 target!$target$ac_delim
23349 target_cpu!$target_cpu$ac_delim
23350 target_vendor!$target_vendor$ac_delim
23351 target_os!$target_os$ac_delim
23352 OS!$OS$ac_delim
23353 HOST_OS!$HOST_OS$ac_delim
23354 TARGET_OS!$TARGET_OS$ac_delim
23355 LINKALL!$LINKALL$ac_delim
23356 NOLINKALL!$NOLINKALL$ac_delim
23357 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23358 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23359 ARCH!$ARCH$ac_delim
23360 HOST_ARCH!$HOST_ARCH$ac_delim
23361 ENDIAN!$ENDIAN$ac_delim
23362 GREP!$GREP$ac_delim
23363 EGREP!$EGREP$ac_delim
23364 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23365 BUILD_CC!$BUILD_CC$ac_delim
23366 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23367 BUILD_CXX!$BUILD_CXX$ac_delim
23368 CVSBUILD!$CVSBUILD$ac_delim
23369 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23370 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23371 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23372 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23373 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23374 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23375 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23376 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23377 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23378 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23379 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23380 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23381 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23382 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23383 JIT!$JIT$ac_delim
23384 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23385 _ACEOF
23386
23387   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23388     break
23389   elif $ac_last_try; then
23390     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23391 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23392    { (exit 1); exit 1; }; }
23393   else
23394     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23395   fi
23396 done
23397
23398 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23399 if test -n "$ac_eof"; then
23400   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23401   ac_eof=`expr $ac_eof + 1`
23402 fi
23403
23404 cat >>$CONFIG_STATUS <<_ACEOF
23405 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23407 _ACEOF
23408 sed '
23409 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23410 s/^/s,@/; s/!/@,|#_!!_#|/
23411 :n
23412 t n
23413 s/'"$ac_delim"'$/,g/; t
23414 s/$/\\/; p
23415 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23416 ' >>$CONFIG_STATUS <conf$$subs.sed
23417 rm -f conf$$subs.sed
23418 cat >>$CONFIG_STATUS <<_ACEOF
23419 CEOF$ac_eof
23420 _ACEOF
23421
23422
23423 ac_delim='%!_!# '
23424 for ac_last_try in false false false false false :; do
23425   cat >conf$$subs.sed <<_ACEOF
23426 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23427 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23428 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23429 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23430 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23431 ENABLE_PIC!$ENABLE_PIC$ac_delim
23432 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23433 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23434 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23435 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23436 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23437 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23438 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23439 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23440 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23441 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23442 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23443 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23444 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23445 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23446 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23447 NM!$NM$ac_delim
23448 ifGNUmake!$ifGNUmake$ac_delim
23449 LN_S!$LN_S$ac_delim
23450 CMP!$CMP$ac_delim
23451 CP!$CP$ac_delim
23452 DATE!$DATE$ac_delim
23453 FIND!$FIND$ac_delim
23454 MKDIR!$MKDIR$ac_delim
23455 MV!$MV$ac_delim
23456 RANLIB!$RANLIB$ac_delim
23457 AR!$AR$ac_delim
23458 RM!$RM$ac_delim
23459 SED!$SED$ac_delim
23460 TAR!$TAR$ac_delim
23461 BINPWD!$BINPWD$ac_delim
23462 GRAPHVIZ!$GRAPHVIZ$ac_delim
23463 DOT!$DOT$ac_delim
23464 FDP!$FDP$ac_delim
23465 NEATO!$NEATO$ac_delim
23466 TWOPI!$TWOPI$ac_delim
23467 CIRCO!$CIRCO$ac_delim
23468 GV!$GV$ac_delim
23469 DOTTY!$DOTTY$ac_delim
23470 XDOT_PY!$XDOT_PY$ac_delim
23471 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23472 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23473 INSTALL_DATA!$INSTALL_DATA$ac_delim
23474 BZIP2!$BZIP2$ac_delim
23475 CAT!$CAT$ac_delim
23476 DOXYGEN!$DOXYGEN$ac_delim
23477 GROFF!$GROFF$ac_delim
23478 GZIPBIN!$GZIPBIN$ac_delim
23479 PDFROFF!$PDFROFF$ac_delim
23480 ZIP!$ZIP$ac_delim
23481 OCAMLC!$OCAMLC$ac_delim
23482 OCAMLOPT!$OCAMLOPT$ac_delim
23483 OCAMLDEP!$OCAMLDEP$ac_delim
23484 OCAMLDOC!$OCAMLDOC$ac_delim
23485 GAS!$GAS$ac_delim
23486 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23487 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23488 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23489 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23490 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23491 LIBADD_DL!$LIBADD_DL$ac_delim
23492 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23493 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23494 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23495 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23496 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23497 PYTHON!$PYTHON$ac_delim
23498 USE_UDIS86!$USE_UDIS86$ac_delim
23499 USE_OPROFILE!$USE_OPROFILE$ac_delim
23500 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23501 XML2CONFIG!$XML2CONFIG$ac_delim
23502 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23503 LIBXML2_INC!$LIBXML2_INC$ac_delim
23504 CXXCPP!$CXXCPP$ac_delim
23505 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23506 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23507 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23508 MMAP_FILE!$MMAP_FILE$ac_delim
23509 SHLIBEXT!$SHLIBEXT$ac_delim
23510 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23511 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23512 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23513 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23514 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23515 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23516 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23517 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23518 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23519 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23520 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23521 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23522 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23523 _ACEOF
23524
23525   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23526     break
23527   elif $ac_last_try; then
23528     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23529 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23530    { (exit 1); exit 1; }; }
23531   else
23532     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23533   fi
23534 done
23535
23536 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23537 if test -n "$ac_eof"; then
23538   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23539   ac_eof=`expr $ac_eof + 1`
23540 fi
23541
23542 cat >>$CONFIG_STATUS <<_ACEOF
23543 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23545 _ACEOF
23546 sed '
23547 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23548 s/^/s,@/; s/!/@,|#_!!_#|/
23549 :n
23550 t n
23551 s/'"$ac_delim"'$/,g/; t
23552 s/$/\\/; p
23553 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23554 ' >>$CONFIG_STATUS <conf$$subs.sed
23555 rm -f conf$$subs.sed
23556 cat >>$CONFIG_STATUS <<_ACEOF
23557 CEOF$ac_eof
23558 _ACEOF
23559
23560
23561 ac_delim='%!_!# '
23562 for ac_last_try in false false false false false :; do
23563   cat >conf$$subs.sed <<_ACEOF
23564 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23565 RPATH!$RPATH$ac_delim
23566 RDYNAMIC!$RDYNAMIC$ac_delim
23567 program_prefix!$program_prefix$ac_delim
23568 LIBOBJS!$LIBOBJS$ac_delim
23569 LTLIBOBJS!$LTLIBOBJS$ac_delim
23570 _ACEOF
23571
23572   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23573     break
23574   elif $ac_last_try; then
23575     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23576 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23577    { (exit 1); exit 1; }; }
23578   else
23579     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23580   fi
23581 done
23582
23583 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23584 if test -n "$ac_eof"; then
23585   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23586   ac_eof=`expr $ac_eof + 1`
23587 fi
23588
23589 cat >>$CONFIG_STATUS <<_ACEOF
23590 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23592 _ACEOF
23593 sed '
23594 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23595 s/^/s,@/; s/!/@,|#_!!_#|/
23596 :n
23597 t n
23598 s/'"$ac_delim"'$/,g/; t
23599 s/$/\\/; p
23600 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23601 ' >>$CONFIG_STATUS <conf$$subs.sed
23602 rm -f conf$$subs.sed
23603 cat >>$CONFIG_STATUS <<_ACEOF
23604 :end
23605 s/|#_!!_#|//g
23606 CEOF$ac_eof
23607 _ACEOF
23608
23609
23610 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23611 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23612 # trailing colons and then remove the whole line if VPATH becomes empty
23613 # (actually we leave an empty line to preserve line numbers).
23614 if test "x$srcdir" = x.; then
23615   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23616 s/:*\$(srcdir):*/:/
23617 s/:*\${srcdir}:*/:/
23618 s/:*@srcdir@:*/:/
23619 s/^\([^=]*=[     ]*\):*/\1/
23620 s/:*$//
23621 s/^[^=]*=[       ]*$//
23622 }'
23623 fi
23624
23625 cat >>$CONFIG_STATUS <<\_ACEOF
23626 fi # test -n "$CONFIG_FILES"
23627
23628
23629 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23630 do
23631   case $ac_tag in
23632   :[FHLC]) ac_mode=$ac_tag; continue;;
23633   esac
23634   case $ac_mode$ac_tag in
23635   :[FHL]*:*);;
23636   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23637 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23638    { (exit 1); exit 1; }; };;
23639   :[FH]-) ac_tag=-:-;;
23640   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23641   esac
23642   ac_save_IFS=$IFS
23643   IFS=:
23644   set x $ac_tag
23645   IFS=$ac_save_IFS
23646   shift
23647   ac_file=$1
23648   shift
23649
23650   case $ac_mode in
23651   :L) ac_source=$1;;
23652   :[FH])
23653     ac_file_inputs=
23654     for ac_f
23655     do
23656       case $ac_f in
23657       -) ac_f="$tmp/stdin";;
23658       *) # Look for the file first in the build tree, then in the source tree
23659          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23660          # because $ac_f cannot contain `:'.
23661          test -f "$ac_f" ||
23662            case $ac_f in
23663            [\\/$]*) false;;
23664            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23665            esac ||
23666            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23667 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23668    { (exit 1); exit 1; }; };;
23669       esac
23670       ac_file_inputs="$ac_file_inputs $ac_f"
23671     done
23672
23673     # Let's still pretend it is `configure' which instantiates (i.e., don't
23674     # use $as_me), people would be surprised to read:
23675     #    /* config.h.  Generated by config.status.  */
23676     configure_input="Generated from "`IFS=:
23677           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23678     if test x"$ac_file" != x-; then
23679       configure_input="$ac_file.  $configure_input"
23680       { echo "$as_me:$LINENO: creating $ac_file" >&5
23681 echo "$as_me: creating $ac_file" >&6;}
23682     fi
23683
23684     case $ac_tag in
23685     *:-:* | *:-) cat >"$tmp/stdin";;
23686     esac
23687     ;;
23688   esac
23689
23690   ac_dir=`$as_dirname -- "$ac_file" ||
23691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23692          X"$ac_file" : 'X\(//\)[^/]' \| \
23693          X"$ac_file" : 'X\(//\)$' \| \
23694          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23695 echo X"$ac_file" |
23696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23697             s//\1/
23698             q
23699           }
23700           /^X\(\/\/\)[^/].*/{
23701             s//\1/
23702             q
23703           }
23704           /^X\(\/\/\)$/{
23705             s//\1/
23706             q
23707           }
23708           /^X\(\/\).*/{
23709             s//\1/
23710             q
23711           }
23712           s/.*/./; q'`
23713   { as_dir="$ac_dir"
23714   case $as_dir in #(
23715   -*) as_dir=./$as_dir;;
23716   esac
23717   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23718     as_dirs=
23719     while :; do
23720       case $as_dir in #(
23721       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23722       *) as_qdir=$as_dir;;
23723       esac
23724       as_dirs="'$as_qdir' $as_dirs"
23725       as_dir=`$as_dirname -- "$as_dir" ||
23726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23727          X"$as_dir" : 'X\(//\)[^/]' \| \
23728          X"$as_dir" : 'X\(//\)$' \| \
23729          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23730 echo X"$as_dir" |
23731     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23732             s//\1/
23733             q
23734           }
23735           /^X\(\/\/\)[^/].*/{
23736             s//\1/
23737             q
23738           }
23739           /^X\(\/\/\)$/{
23740             s//\1/
23741             q
23742           }
23743           /^X\(\/\).*/{
23744             s//\1/
23745             q
23746           }
23747           s/.*/./; q'`
23748       test -d "$as_dir" && break
23749     done
23750     test -z "$as_dirs" || eval "mkdir $as_dirs"
23751   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23752 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23753    { (exit 1); exit 1; }; }; }
23754   ac_builddir=.
23755
23756 case "$ac_dir" in
23757 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23758 *)
23759   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23760   # A ".." for each directory in $ac_dir_suffix.
23761   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23762   case $ac_top_builddir_sub in
23763   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23764   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23765   esac ;;
23766 esac
23767 ac_abs_top_builddir=$ac_pwd
23768 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23769 # for backward compatibility:
23770 ac_top_builddir=$ac_top_build_prefix
23771
23772 case $srcdir in
23773   .)  # We are building in place.
23774     ac_srcdir=.
23775     ac_top_srcdir=$ac_top_builddir_sub
23776     ac_abs_top_srcdir=$ac_pwd ;;
23777   [\\/]* | ?:[\\/]* )  # Absolute name.
23778     ac_srcdir=$srcdir$ac_dir_suffix;
23779     ac_top_srcdir=$srcdir
23780     ac_abs_top_srcdir=$srcdir ;;
23781   *) # Relative name.
23782     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23783     ac_top_srcdir=$ac_top_build_prefix$srcdir
23784     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23785 esac
23786 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23787
23788
23789   case $ac_mode in
23790   :F)
23791   #
23792   # CONFIG_FILE
23793   #
23794
23795   case $INSTALL in
23796   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23797   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23798   esac
23799 _ACEOF
23800
23801 cat >>$CONFIG_STATUS <<\_ACEOF
23802 # If the template does not know about datarootdir, expand it.
23803 # FIXME: This hack should be removed a few years after 2.60.
23804 ac_datarootdir_hack=; ac_datarootdir_seen=
23805
23806 case `sed -n '/datarootdir/ {
23807   p
23808   q
23809 }
23810 /@datadir@/p
23811 /@docdir@/p
23812 /@infodir@/p
23813 /@localedir@/p
23814 /@mandir@/p
23815 ' $ac_file_inputs` in
23816 *datarootdir*) ac_datarootdir_seen=yes;;
23817 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23818   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23819 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23820 _ACEOF
23821 cat >>$CONFIG_STATUS <<_ACEOF
23822   ac_datarootdir_hack='
23823   s&@datadir@&$datadir&g
23824   s&@docdir@&$docdir&g
23825   s&@infodir@&$infodir&g
23826   s&@localedir@&$localedir&g
23827   s&@mandir@&$mandir&g
23828     s&\\\${datarootdir}&$datarootdir&g' ;;
23829 esac
23830 _ACEOF
23831
23832 # Neutralize VPATH when `$srcdir' = `.'.
23833 # Shell code in configure.ac might set extrasub.
23834 # FIXME: do we really want to maintain this feature?
23835 cat >>$CONFIG_STATUS <<_ACEOF
23836   sed "$ac_vpsub
23837 $extrasub
23838 _ACEOF
23839 cat >>$CONFIG_STATUS <<\_ACEOF
23840 :t
23841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23842 s&@configure_input@&$configure_input&;t t
23843 s&@top_builddir@&$ac_top_builddir_sub&;t t
23844 s&@srcdir@&$ac_srcdir&;t t
23845 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23846 s&@top_srcdir@&$ac_top_srcdir&;t t
23847 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23848 s&@builddir@&$ac_builddir&;t t
23849 s&@abs_builddir@&$ac_abs_builddir&;t t
23850 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23851 s&@INSTALL@&$ac_INSTALL&;t t
23852 $ac_datarootdir_hack
23853 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23854
23855 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23856   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23857   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23858   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23859 which seems to be undefined.  Please make sure it is defined." >&5
23860 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23861 which seems to be undefined.  Please make sure it is defined." >&2;}
23862
23863   rm -f "$tmp/stdin"
23864   case $ac_file in
23865   -) cat "$tmp/out"; rm -f "$tmp/out";;
23866   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23867   esac
23868  ;;
23869   :H)
23870   #
23871   # CONFIG_HEADER
23872   #
23873 _ACEOF
23874
23875 # Transform confdefs.h into a sed script `conftest.defines', that
23876 # substitutes the proper values into config.h.in to produce config.h.
23877 rm -f conftest.defines conftest.tail
23878 # First, append a space to every undef/define line, to ease matching.
23879 echo 's/$/ /' >conftest.defines
23880 # Then, protect against being on the right side of a sed subst, or in
23881 # an unquoted here document, in config.status.  If some macros were
23882 # called several times there might be several #defines for the same
23883 # symbol, which is useless.  But do not sort them, since the last
23884 # AC_DEFINE must be honored.
23885 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23886 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23887 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23888 # PARAMS is the parameter list in the macro definition--in most cases, it's
23889 # just an empty string.
23890 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23891 ac_dB='\\)[      (].*,\\1define\\2'
23892 ac_dC=' '
23893 ac_dD=' ,'
23894
23895 uniq confdefs.h |
23896   sed -n '
23897         t rset
23898         :rset
23899         s/^[     ]*#[    ]*define[       ][      ]*//
23900         t ok
23901         d
23902         :ok
23903         s/[\\&,]/\\&/g
23904         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23905         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23906   ' >>conftest.defines
23907
23908 # Remove the space that was appended to ease matching.
23909 # Then replace #undef with comments.  This is necessary, for
23910 # example, in the case of _POSIX_SOURCE, which is predefined and required
23911 # on some systems where configure will not decide to define it.
23912 # (The regexp can be short, since the line contains either #define or #undef.)
23913 echo 's/ $//
23914 s,^[     #]*u.*,/* & */,' >>conftest.defines
23915
23916 # Break up conftest.defines:
23917 ac_max_sed_lines=50
23918
23919 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23920 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23921 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23922 # et cetera.
23923 ac_in='$ac_file_inputs'
23924 ac_out='"$tmp/out1"'
23925 ac_nxt='"$tmp/out2"'
23926
23927 while :
23928 do
23929   # Write a here document:
23930     cat >>$CONFIG_STATUS <<_ACEOF
23931     # First, check the format of the line:
23932     cat >"\$tmp/defines.sed" <<\\CEOF
23933 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23934 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23935 b
23936 :def
23937 _ACEOF
23938   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23939   echo 'CEOF
23940     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23941   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23942   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23943   grep . conftest.tail >/dev/null || break
23944   rm -f conftest.defines
23945   mv conftest.tail conftest.defines
23946 done
23947 rm -f conftest.defines conftest.tail
23948
23949 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23950 cat >>$CONFIG_STATUS <<\_ACEOF
23951   if test x"$ac_file" != x-; then
23952     echo "/* $configure_input  */" >"$tmp/config.h"
23953     cat "$ac_result" >>"$tmp/config.h"
23954     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23955       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23956 echo "$as_me: $ac_file is unchanged" >&6;}
23957     else
23958       rm -f $ac_file
23959       mv "$tmp/config.h" $ac_file
23960     fi
23961   else
23962     echo "/* $configure_input  */"
23963     cat "$ac_result"
23964   fi
23965   rm -f "$tmp/out12"
23966  ;;
23967
23968   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23969 echo "$as_me: executing $ac_file commands" >&6;}
23970  ;;
23971   esac
23972
23973
23974   case $ac_file$ac_mode in
23975     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23976    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23977     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23978    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23979     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23980    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23981     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23982    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23983     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23984    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23985     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23986    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23987     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23988    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23989     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23990    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23991     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23992    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23993     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23994    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23995     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23996    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23997     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23998    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23999     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24000    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24001
24002   esac
24003 done # for ac_tag
24004
24005
24006 { (exit 0); exit 0; }
24007 _ACEOF
24008 chmod +x $CONFIG_STATUS
24009 ac_clean_files=$ac_clean_files_save
24010
24011
24012 # configure is writing to config.log, and then calls config.status.
24013 # config.status does its own redirection, appending to config.log.
24014 # Unfortunately, on DOS this fails, as config.log is still kept open
24015 # by configure, so config.status won't be able to write to it; its
24016 # output is simply discarded.  So we exec the FD to /dev/null,
24017 # effectively closing config.log, so it can be properly (re)opened and
24018 # appended to by config.status.  When coming back to configure, we
24019 # need to make the FD available again.
24020 if test "$no_create" != yes; then
24021   ac_cs_success=:
24022   ac_config_status_args=
24023   test "$silent" = yes &&
24024     ac_config_status_args="$ac_config_status_args --quiet"
24025   exec 5>/dev/null
24026   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24027   exec 5>>config.log
24028   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24029   # would make configure fail if this is the last instruction.
24030   $ac_cs_success || { (exit 1); exit 1; }
24031 fi
24032
24033 #
24034 # CONFIG_SUBDIRS section.
24035 #
24036 if test "$no_recursion" != yes; then
24037
24038   # Remove --cache-file and --srcdir arguments so they do not pile up.
24039   ac_sub_configure_args=
24040   ac_prev=
24041   eval "set x $ac_configure_args"
24042   shift
24043   for ac_arg
24044   do
24045     if test -n "$ac_prev"; then
24046       ac_prev=
24047       continue
24048     fi
24049     case $ac_arg in
24050     -cache-file | --cache-file | --cache-fil | --cache-fi \
24051     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24052       ac_prev=cache_file ;;
24053     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24054     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24055     | --c=*)
24056       ;;
24057     --config-cache | -C)
24058       ;;
24059     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24060       ac_prev=srcdir ;;
24061     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24062       ;;
24063     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24064       ac_prev=prefix ;;
24065     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24066       ;;
24067     *)
24068       case $ac_arg in
24069       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24070       esac
24071       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24072     esac
24073   done
24074
24075   # Always prepend --prefix to ensure using the same prefix
24076   # in subdir configurations.
24077   ac_arg="--prefix=$prefix"
24078   case $ac_arg in
24079   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24080   esac
24081   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24082
24083   ac_popdir=`pwd`
24084   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24085
24086     # Do not complain, so a configure script can configure whichever
24087     # parts of a large source tree are present.
24088     test -d "$srcdir/$ac_dir" || continue
24089
24090     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24091     echo "$as_me:$LINENO: $ac_msg" >&5
24092     echo "$ac_msg" >&6
24093     { as_dir="$ac_dir"
24094   case $as_dir in #(
24095   -*) as_dir=./$as_dir;;
24096   esac
24097   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24098     as_dirs=
24099     while :; do
24100       case $as_dir in #(
24101       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24102       *) as_qdir=$as_dir;;
24103       esac
24104       as_dirs="'$as_qdir' $as_dirs"
24105       as_dir=`$as_dirname -- "$as_dir" ||
24106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24107          X"$as_dir" : 'X\(//\)[^/]' \| \
24108          X"$as_dir" : 'X\(//\)$' \| \
24109          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24110 echo X"$as_dir" |
24111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24112             s//\1/
24113             q
24114           }
24115           /^X\(\/\/\)[^/].*/{
24116             s//\1/
24117             q
24118           }
24119           /^X\(\/\/\)$/{
24120             s//\1/
24121             q
24122           }
24123           /^X\(\/\).*/{
24124             s//\1/
24125             q
24126           }
24127           s/.*/./; q'`
24128       test -d "$as_dir" && break
24129     done
24130     test -z "$as_dirs" || eval "mkdir $as_dirs"
24131   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24132 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24133    { (exit 1); exit 1; }; }; }
24134     ac_builddir=.
24135
24136 case "$ac_dir" in
24137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24138 *)
24139   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24140   # A ".." for each directory in $ac_dir_suffix.
24141   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24142   case $ac_top_builddir_sub in
24143   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24144   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24145   esac ;;
24146 esac
24147 ac_abs_top_builddir=$ac_pwd
24148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24149 # for backward compatibility:
24150 ac_top_builddir=$ac_top_build_prefix
24151
24152 case $srcdir in
24153   .)  # We are building in place.
24154     ac_srcdir=.
24155     ac_top_srcdir=$ac_top_builddir_sub
24156     ac_abs_top_srcdir=$ac_pwd ;;
24157   [\\/]* | ?:[\\/]* )  # Absolute name.
24158     ac_srcdir=$srcdir$ac_dir_suffix;
24159     ac_top_srcdir=$srcdir
24160     ac_abs_top_srcdir=$srcdir ;;
24161   *) # Relative name.
24162     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24163     ac_top_srcdir=$ac_top_build_prefix$srcdir
24164     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24165 esac
24166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24167
24168
24169     cd "$ac_dir"
24170
24171     # Check for guested configure; otherwise get Cygnus style configure.
24172     if test -f "$ac_srcdir/configure.gnu"; then
24173       ac_sub_configure=$ac_srcdir/configure.gnu
24174     elif test -f "$ac_srcdir/configure"; then
24175       ac_sub_configure=$ac_srcdir/configure
24176     elif test -f "$ac_srcdir/configure.in"; then
24177       # This should be Cygnus configure.
24178       ac_sub_configure=$ac_aux_dir/configure
24179     else
24180       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24182       ac_sub_configure=
24183     fi
24184
24185     # The recursion is here.
24186     if test -n "$ac_sub_configure"; then
24187       # Make the cache file name correct relative to the subdirectory.
24188       case $cache_file in
24189       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24190       *) # Relative name.
24191         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24192       esac
24193
24194       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24195 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24196       # The eval makes quoting arguments work.
24197       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24198            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24199         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24200 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24201    { (exit 1); exit 1; }; }
24202     fi
24203
24204     cd "$ac_popdir"
24205   done
24206 fi
24207