Temporarily revert 185601 as it caused cmake build regressions.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 ENABLE_DOCS
704 ENABLE_DOXYGEN
705 LLVM_ENABLE_THREADS
706 ENABLE_PTHREADS
707 LLVM_ENABLE_ZLIB
708 ENABLE_PIC
709 ENABLE_SHARED
710 ENABLE_EMBED_STDCXX
711 ENABLE_TIMESTAMPS
712 ENABLE_BACKTRACES
713 TARGETS_TO_BUILD
714 LLVM_ENUM_TARGETS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
718 OPTIMIZE_OPTION
719 EXTRA_OPTIONS
720 EXTRA_LD_OPTIONS
721 CLANG_SRC_ROOT
722 BINUTILS_INCDIR
723 INTERNAL_PREFIX
724 NM
725 ifGNUmake
726 LN_S
727 CMP
728 CP
729 DATE
730 FIND
731 MKDIR
732 MV
733 RANLIB
734 AR
735 RM
736 SED
737 TAR
738 BINPWD
739 GRAPHVIZ
740 DOT
741 FDP
742 NEATO
743 TWOPI
744 CIRCO
745 GV
746 DOTTY
747 XDOT_PY
748 INSTALL_PROGRAM
749 INSTALL_SCRIPT
750 INSTALL_DATA
751 BZIP2
752 CAT
753 DOXYGEN
754 GROFF
755 GZIPBIN
756 PDFROFF
757 ZIP
758 OCAMLC
759 OCAMLOPT
760 OCAMLDEP
761 OCAMLDOC
762 GAS
763 HAVE_LINK_VERSION_SCRIPT
764 INSTALL_LTDL_TRUE
765 INSTALL_LTDL_FALSE
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
768 LIBADD_DL
769 NO_VARIADIC_MACROS
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
773 NO_UNINITIALIZED
774 PYTHON
775 USE_UDIS86
776 USE_OPROFILE
777 USE_INTEL_JITEVENTS
778 XML2CONFIG
779 LIBXML2_LIBS
780 LIBXML2_INC
781 CXXCPP
782 HAVE_PTHREAD
783 HAVE_LIBZ
784 HUGE_VAL_SANITY
785 MMAP_FILE
786 SHLIBEXT
787 SHLIBPATH_VAR
788 LLVM_PREFIX
789 LLVM_BINDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 program_prefix
804 LIBOBJS
805 LTLIBOBJS'
806 ac_subst_files=''
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CPP
818 CXXCPP'
819 ac_subdirs_all='projects/llvm-gcc
820 projects/test-suite
821 projects/llvm-test
822 projects/poolalloc
823 projects/llvm-poolalloc
824 projects/sample
825 projects/privbracket
826 projects/llvm-stacker
827 projects/llvm-reopt
828 projects/llvm-java
829 projects/llvm-tv
830 projects/safecode
831 projects/llvm-kernel
832 tools/polly'
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939    { (exit 1); exit 1; }; }
940     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941     eval enable_$ac_feature=no ;;
942
943   -docdir | --docdir | --docdi | --doc | --do)
944     ac_prev=docdir ;;
945   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946     docdir=$ac_optarg ;;
947
948   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949     ac_prev=dvidir ;;
950   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951     dvidir=$ac_optarg ;;
952
953   -enable-* | --enable-*)
954     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955     # Reject names that are not valid shell variable names.
956     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958    { (exit 1); exit 1; }; }
959     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960     eval enable_$ac_feature=\$ac_optarg ;;
961
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
970
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
974
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
981
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
986
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
992
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
999
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1004
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1009
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1016
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1021
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1028
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1033
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1037
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1041
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1045
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1054
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1059
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1066
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1073
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1090
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1095
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1100
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1104
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1110
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1121
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1126
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1131
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1138
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1143
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1146
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1149
1150   -with-* | --with-*)
1151     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package| sed 's/-/_/g'`
1157     eval with_$ac_package=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid package name: $ac_package" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_package=`echo $ac_package | sed 's/-/_/g'`
1166     eval with_$ac_package=no ;;
1167
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1171
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1178
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1185
1186   -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188    { (exit 1); exit 1; }; }
1189     ;;
1190
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196    { (exit 1); exit 1; }; }
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1199
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206     ;;
1207
1208   esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   { echo "$as_me: error: missing argument to $ac_option" >&2
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 # Be sure to have absolute directory names.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229    { (exit 1); exit 1; }; }
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244     If a cross compiler is detected then cross compile mode will be used." >&2
1245   elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247   fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259   { echo "$as_me: error: Working directory cannot be determined" >&2
1260    { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262   { echo "$as_me: error: pwd does not report name of working directory" >&2
1263    { (exit 1); exit 1; }; }
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268   ac_srcdir_defaulted=yes
1269   # Try the directory containing this script, then the parent directory.
1270   ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272          X"$0" : 'X\(//\)[^/]' \| \
1273          X"$0" : 'X\(//\)$' \| \
1274          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 echo X"$0" |
1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)[^/].*/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\).*/{
1289             s//\1/
1290             q
1291           }
1292           s/.*/./; q'`
1293   srcdir=$ac_confdir
1294   if test ! -r "$srcdir/$ac_unique_file"; then
1295     srcdir=..
1296   fi
1297 else
1298   ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303    { (exit 1); exit 1; }; }
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308    { (exit 1); exit 1; }; }
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368   --bindir=DIR           user executables [EPREFIX/bin]
1369   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR       program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR           object code libraries [EPREFIX/lib]
1375   --includedir=DIR       C header files [PREFIX/include]
1376   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR          info documentation [DATAROOTDIR/info]
1380   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR           man documentation [DATAROOTDIR/man]
1382   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1383   --htmldir=DIR          html documentation [DOCDIR]
1384   --dvidir=DIR           dvi documentation [DOCDIR]
1385   --pdfdir=DIR           pdf documentation [DOCDIR]
1386   --psdir=DIR            ps documentation [DOCDIR]
1387 _ACEOF
1388
1389   cat <<\_ACEOF
1390
1391 System types:
1392   --build=BUILD     configure for building on BUILD [guessed]
1393   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394   --target=TARGET   configure for building compilers for TARGET [HOST]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399   case $ac_init_help in
1400      short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1401    esac
1402   cat <<\_ACEOF
1403
1404 Optional Features:
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-polly          Use polly if available (default is YES)
1408   --enable-libcpp         Use libc++ if available (default is NO)
1409   --enable-cxx11          Use c++11 if available (default is NO)
1410   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1411   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1412   --enable-clang-static-analyzer
1413                           Enable building of clang Static Analyzer (default is
1414                           YES)
1415   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416   --enable-optimized      Compile with optimizations enabled (default is NO)
1417   --enable-profiling      Compile with profiling enabled (default is NO)
1418   --enable-assertions     Compile with assertion checks enabled (default is
1419                           YES)
1420   --enable-werror         Compile with -Werror enabled (default is NO)
1421   --enable-expensive-checks
1422                           Compile with expensive debug checks enabled (default
1423                           is NO)
1424   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                           NO)
1426   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                           optimization is on and YES if it's off)
1428   --enable-keep-symbols   Do not strip installed executables)
1429   --enable-jit            Enable Just In Time Compiling (default is YES)
1430   --enable-docs           Build documents (default is YES)
1431   --enable-doxygen        Build doxygen documentation (default is NO)
1432   --enable-threads        Use threads if available (default is YES)
1433   --enable-pthreads       Use pthreads if available (default is YES)
1434   --enable-zlib           Use zlib for compression/decompression if available
1435                           (default is YES)
1436   --enable-pic            Build LLVM with Position Independent Code (default
1437                           is YES)
1438   --enable-shared         Build a shared library and link tools against it
1439                           (default is NO)
1440   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                           Win32 DLL (default is NO)
1442   --enable-timestamps     Enable embedding timestamp information in build
1443                           (default is YES)
1444   --enable-backtraces     Enable embedding backtraces on crash (default is
1445                           YES)
1446   --enable-targets        Build specific host targets: all or
1447                           target1,target2,... Valid targets are: host, x86,
1448                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449                           xcore, msp430, nvptx, systemz, r600, and cpp
1450                           (default=all)
1451   --enable-experimental-targets
1452                           Build experimental host targets: disable or
1453                           target1,target2,... (default=disable)
1454   --enable-bindings       Build specific language bindings:
1455                           all,auto,none,{binding-name} (default=auto)
1456   --enable-libffi         Check for the presence of libffi (default is NO)
1457   --enable-ltdl-install   install libltdl
1458
1459 Optional Packages:
1460   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462   --with-optimize-option  Select the compiler options to use for optimized
1463                           builds
1464   --with-extra-options    Specify additional options to compile LLVM with
1465   --with-extra-ld-options Specify additional options to link LLVM with
1466   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1467                           is stdlib)
1468   --with-clang-srcdir     Directory to the out-of-tree Clang source
1469   --with-clang-resource-dir
1470                           Relative directory from the Clang binary for
1471                           resource files
1472   --with-c-include-dirs   Colon separated list of directories clang will
1473                           search for headers
1474   --with-gcc-toolchain    Directory where gcc is installed.
1475   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1476   --with-binutils-include Specify path to binutils/include/ containing
1477                           plugin-api.h file for gold plugin.
1478   --with-bug-report-url   Specify the URL where bug reports should be
1479                           submitted (default=http://llvm.org/bugs/)
1480   --with-internal-prefix  Installation directory for internal files
1481   --with-python           path to python
1482   --with-udis86=<path>    Use udis86 external x86 disassembler library
1483   --with-oprofile=<prefix>
1484                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1485   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1486
1487
1488 Some influential environment variables:
1489   CC          C compiler command
1490   CFLAGS      C compiler flags
1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492               nonstandard directory <lib dir>
1493   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494               you have headers in a nonstandard directory <include dir>
1495   CXX         C++ compiler command
1496   CXXFLAGS    C++ compiler flags
1497   CPP         C preprocessor
1498   CXXCPP      C++ preprocessor
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to <http://llvm.org/bugs/>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" || continue
1512     ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for guested configure.
1548     if test -f "$ac_srcdir/configure.gnu"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551     elif test -f "$ac_srcdir/configure"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure" --help=recursive
1554     else
1555       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556     fi || ac_status=$?
1557     cd "$ac_pwd" || { ac_status=$?; break; }
1558   done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563   cat <<\_ACEOF
1564 LLVM configure 3.4svn
1565 generated by GNU Autoconf 2.60
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571
1572 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1573 _ACEOF
1574   exit
1575 fi
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1579
1580 It was created by LLVM $as_me 3.4svn, which was
1581 generated by GNU Autoconf 2.60.  Invocation command line was
1582
1583   $ $0 $@
1584
1585 _ACEOF
1586 exec 5>>config.log
1587 {
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1592
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1601
1602 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1603 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1606 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1607 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1608 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1609
1610 _ASUNAME
1611
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615   IFS=$as_save_IFS
1616   test -z "$as_dir" && as_dir=.
1617   echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1620
1621 } >&5
1622
1623 cat >&5 <<_ACEOF
1624
1625
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1629
1630 _ACEOF
1631
1632
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1643 do
1644   for ac_arg
1645   do
1646     case $ac_arg in
1647     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649     | -silent | --silent | --silen | --sile | --sil)
1650       continue ;;
1651     *\'*)
1652       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653     esac
1654     case $ac_pass in
1655     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656     2)
1657       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658       if test $ac_must_keep_next = true; then
1659         ac_must_keep_next=false # Got value, back to normal.
1660       else
1661         case $ac_arg in
1662           *=* | --config-cache | -C | -disable-* | --disable-* \
1663           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665           | -with-* | --with-* | -without-* | --without-* | --x)
1666             case "$ac_configure_args0 " in
1667               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668             esac
1669             ;;
1670           -* ) ac_must_keep_next=true ;;
1671         esac
1672       fi
1673       ac_configure_args="$ac_configure_args '$ac_arg'"
1674       ;;
1675     esac
1676   done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log.  We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687   # Save into config.log some information that might help in debugging.
1688   {
1689     echo
1690
1691     cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696     echo
1697     # The following way of writing the cache mishandles newlines in values,
1698 (
1699   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700     eval ac_val=\$$ac_var
1701     case $ac_val in #(
1702     *${as_nl}*)
1703       case $ac_var in #(
1704       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706       esac
1707       case $ac_var in #(
1708       _ | IFS | as_nl) ;; #(
1709       *) $as_unset $ac_var ;;
1710       esac ;;
1711     esac
1712   done
1713   (set) 2>&1 |
1714     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715     *${as_nl}ac_space=\ *)
1716       sed -n \
1717         "s/'\''/'\''\\\\'\'''\''/g;
1718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719       ;; #(
1720     *)
1721       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722       ;;
1723     esac |
1724     sort
1725 )
1726     echo
1727
1728     cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733     echo
1734     for ac_var in $ac_subst_vars
1735     do
1736       eval ac_val=\$$ac_var
1737       case $ac_val in
1738       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739       esac
1740       echo "$ac_var='\''$ac_val'\''"
1741     done | sort
1742     echo
1743
1744     if test -n "$ac_subst_files"; then
1745       cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750       echo
1751       for ac_var in $ac_subst_files
1752       do
1753         eval ac_val=\$$ac_var
1754         case $ac_val in
1755         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756         esac
1757         echo "$ac_var='\''$ac_val'\''"
1758       done | sort
1759       echo
1760     fi
1761
1762     if test -s confdefs.h; then
1763       cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768       echo
1769       cat confdefs.h
1770       echo
1771     fi
1772     test "$ac_signal" != 0 &&
1773       echo "$as_me: caught signal $ac_signal"
1774     echo "$as_me: exit $exit_status"
1775   } >&5
1776   rm -f core *.core core.conftest.* &&
1777     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778     exit $exit_status
1779 ' 0
1780 for ac_signal in 1 2 13 15; do
1781   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1784
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1787
1788 # Predefined preprocessor variables.
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1813
1814
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818   set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822   set x "$ac_default_prefix/share/config.site" \
1823         "$ac_default_prefix/etc/config.site"
1824 fi
1825 shift
1826 for ac_site_file
1827 do
1828   if test -r "$ac_site_file"; then
1829     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831     sed 's/^/| /' "$ac_site_file" >&5
1832     . "$ac_site_file"
1833   fi
1834 done
1835
1836 if test -r "$cache_file"; then
1837   # Some versions of bash will fail to source /dev/null (special
1838   # files actually), so we avoid doing that.
1839   if test -f "$cache_file"; then
1840     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842     case $cache_file in
1843       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844       *)                      . "./$cache_file";;
1845     esac
1846   fi
1847 else
1848   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850   >$cache_file
1851 fi
1852
1853 # Check that the precious variables saved in the cache have kept the same
1854 # value.
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858   eval ac_new_set=\$ac_env_${ac_var}_set
1859   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860   eval ac_new_val=\$ac_env_${ac_var}_value
1861   case $ac_old_set,$ac_new_set in
1862     set,)
1863       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865       ac_cache_corrupted=: ;;
1866     ,set)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,);;
1871     *)
1872       if test "x$ac_old_val" != "x$ac_new_val"; then
1873         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1876 echo "$as_me:   former value:  $ac_old_val" >&2;}
1877         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1878 echo "$as_me:   current value: $ac_new_val" >&2;}
1879         ac_cache_corrupted=:
1880       fi;;
1881   esac
1882   # Pass precious variables to config.status.
1883   if test "$ac_new_set" = set; then
1884     case $ac_new_val in
1885     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886     *) ac_arg=$ac_var=$ac_new_val ;;
1887     esac
1888     case " $ac_configure_args " in
1889       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1890       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891     esac
1892   fi
1893 done
1894 if $ac_cache_corrupted; then
1895   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899    { (exit 1); exit 1; }; }
1900 fi
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931
1932
1933
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MAJOR 3
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<\_ACEOF
1940 #define LLVM_VERSION_MINOR 4
1941 _ACEOF
1942
1943
1944 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1945
1946
1947
1948
1949
1950
1951
1952 ac_aux_dir=
1953 for ac_dir in autoconf "$srcdir"/autoconf; do
1954   if test -f "$ac_dir/install-sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install-sh -c"
1957     break
1958   elif test -f "$ac_dir/install.sh"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/install.sh -c"
1961     break
1962   elif test -f "$ac_dir/shtool"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/shtool install -c"
1965     break
1966   fi
1967 done
1968 if test -z "$ac_aux_dir"; then
1969   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1973
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1981
1982
1983
1984 if test ${srcdir} != "." ; then
1985   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1986     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1987 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1988    { (exit 1); exit 1; }; }
1989   fi
1990 fi
1991
1992 ${CFLAGS=}
1993 ${CXXFLAGS=}
1994
1995 ac_ext=c
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 if test -n "$ac_tool_prefix"; then
2001   for ac_prog in clang llvm-gcc gcc
2002   do
2003     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$CC"; then
2011   ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026 IFS=$as_save_IFS
2027
2028 fi
2029 fi
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032   { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2034 else
2035   { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 fi
2038
2039
2040     test -n "$CC" && break
2041   done
2042 fi
2043 if test -z "$CC"; then
2044   ac_ct_CC=$CC
2045   for ac_prog in clang llvm-gcc gcc
2046 do
2047   # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$ac_ct_CC"; then
2055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064     ac_cv_prog_ac_ct_CC="$ac_prog"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2071
2072 fi
2073 fi
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6; }
2078 else
2079   { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2081 fi
2082
2083
2084   test -n "$ac_ct_CC" && break
2085 done
2086
2087   if test "x$ac_ct_CC" = x; then
2088     CC=""
2089   else
2090     case $cross_compiling:$ac_tool_warned in
2091 yes:)
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet.  If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet.  If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098 ac_tool_warned=yes ;;
2099 esac
2100     CC=$ac_ct_CC
2101   fi
2102 fi
2103
2104
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109    { (exit 1); exit 1; }; }
2110
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO: checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (ac_try="$ac_compiler --version >&5"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120   (eval "$ac_compiler --version >&5") 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }
2124 { (ac_try="$ac_compiler -v >&5"
2125 case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130   (eval "$ac_compiler -v >&5") 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }
2134 { (ac_try="$ac_compiler -V >&5"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140   (eval "$ac_compiler -V >&5") 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h.  */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h.  */
2151
2152 int
2153 main ()
2154 {
2155
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 #
2169 # List of possible output files, starting from the most likely.
2170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2171 # only as a last resort.  b.out is created by i960 compilers.
2172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2173 #
2174 # The IRIX 6 linker writes into existing files which may not be
2175 # executable, retaining their permissions.  Remove them first so a
2176 # subsequent execution test works.
2177 ac_rmfiles=
2178 for ac_file in $ac_files
2179 do
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2182     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2183   esac
2184 done
2185 rm -f $ac_rmfiles
2186
2187 if { (ac_try="$ac_link_default"
2188 case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193   (eval "$ac_link_default") 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; then
2197   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2199 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2200 # so that the user can short-circuit this test for compilers unknown to
2201 # Autoconf.
2202 for ac_file in $ac_files
2203 do
2204   test -f "$ac_file" || continue
2205   case $ac_file in
2206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207         ;;
2208     [ab].out )
2209         # We found the default executable, but exeext='' is most
2210         # certainly right.
2211         break;;
2212     *.* )
2213         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2214         then :; else
2215            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216         fi
2217         # We set ac_cv_exeext here because the later test for it is not
2218         # safe: cross compilers may not add the suffix if given an `-o'
2219         # argument, so we may need to know it at that point already.
2220         # Even if this section looks crufty: it has the advantage of
2221         # actually working.
2222         break;;
2223     * )
2224         break;;
2225   esac
2226 done
2227 test "$ac_cv_exeext" = no && ac_cv_exeext=
2228
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237    { (exit 77); exit 77; }; }
2238 fi
2239
2240 ac_exeext=$ac_cv_exeext
2241 { echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6; }
2243
2244 # Check that the compiler produces executables we can run.  If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251   if { ac_try='./$ac_file'
2252   { (case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_try") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; }; then
2261     cross_compiling=no
2262   else
2263     if test "$cross_compiling" = maybe; then
2264         cross_compiling=yes
2265     else
2266         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273     fi
2274   fi
2275 fi
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2278
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check that the compiler produces executables we can run.  If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6; }
2287
2288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290 if { (ac_try="$ac_link"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296   (eval "$ac_link") 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }; then
2300   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2302 # work properly (i.e., refer to `conftest.exe'), while it won't with
2303 # `rm'.
2304 for ac_file in conftest.exe conftest conftest.*; do
2305   test -f "$ac_file" || continue
2306   case $ac_file in
2307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2308     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2309           break;;
2310     * ) break;;
2311   esac
2312 done
2313 else
2314   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2320
2321 rm -f conftest$ac_cv_exeext
2322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2324
2325 rm -f conftest.$ac_ext
2326 EXEEXT=$ac_cv_exeext
2327 ac_exeext=$EXEEXT
2328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2330 if test "${ac_cv_objext+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339
2340 int
2341 main ()
2342 {
2343
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.o conftest.obj
2349 if { (ac_try="$ac_compile"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355   (eval "$ac_compile") 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; then
2359   for ac_file in conftest.o conftest.obj conftest.*; do
2360   test -f "$ac_file" || continue;
2361   case $ac_file in
2362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2363     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364        break;;
2365   esac
2366 done
2367 else
2368   echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&2;}
2375    { (exit 1); exit 1; }; }
2376 fi
2377
2378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 fi
2380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381 echo "${ECHO_T}$ac_cv_objext" >&6; }
2382 OBJEXT=$ac_cv_objext
2383 ac_objext=$OBJEXT
2384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   cat >conftest.$ac_ext <<_ACEOF
2390 /* confdefs.h.  */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h.  */
2395
2396 int
2397 main ()
2398 {
2399 #ifndef __GNUC__
2400        choke me
2401 #endif
2402
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (ac_try="$ac_compile"
2409 case "(($ac_try" in
2410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411   *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414   (eval "$ac_compile") 2>conftest.er1
2415   ac_status=$?
2416   grep -v '^ *+' conftest.er1 >conftest.err
2417   rm -f conftest.er1
2418   cat conftest.err >&5
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); } &&
2421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2422   { (case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427   (eval "$ac_try") 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; } &&
2431          { ac_try='test -s conftest.$ac_objext'
2432   { (case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437   (eval "$ac_try") 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   ac_compiler_gnu=yes
2442 else
2443   echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446         ac_compiler_gnu=no
2447 fi
2448
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2451
2452 fi
2453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2455 GCC=`test $ac_compiler_gnu = yes && echo yes`
2456 ac_test_CFLAGS=${CFLAGS+set}
2457 ac_save_CFLAGS=$CFLAGS
2458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_cc_g+set}" = set; then
2461   echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463   ac_save_c_werror_flag=$ac_c_werror_flag
2464    ac_c_werror_flag=yes
2465    ac_cv_prog_cc_g=no
2466    CFLAGS="-g"
2467    cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h.  */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h.  */
2473
2474 int
2475 main ()
2476 {
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (ac_try="$ac_compile"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_compile") 2>conftest.er1
2490   ac_status=$?
2491   grep -v '^ *+' conftest.er1 >conftest.err
2492   rm -f conftest.er1
2493   cat conftest.err >&5
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); } &&
2496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2497   { (case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502   (eval "$ac_try") 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; } &&
2506          { ac_try='test -s conftest.$ac_objext'
2507   { (case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512   (eval "$ac_try") 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; }; then
2516   ac_cv_prog_cc_g=yes
2517 else
2518   echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521         CFLAGS=""
2522       cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544   (eval "$ac_compile") 2>conftest.er1
2545   ac_status=$?
2546   grep -v '^ *+' conftest.er1 >conftest.err
2547   rm -f conftest.er1
2548   cat conftest.err >&5
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); } &&
2551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2552   { (case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557   (eval "$ac_try") 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_try") 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   :
2572 else
2573   echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576         ac_c_werror_flag=$ac_save_c_werror_flag
2577          CFLAGS="-g"
2578          cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2595 case "(($ac_try" in
2596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597   *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600   (eval "$ac_compile") 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2608   { (case "(($ac_try" in
2609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610   *) ac_try_echo=$ac_try;;
2611 esac
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613   (eval "$ac_try") 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; } &&
2617          { ac_try='test -s conftest.$ac_objext'
2618   { (case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623   (eval "$ac_try") 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   ac_cv_prog_cc_g=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632
2633 fi
2634
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 fi
2637
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2640
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642    ac_c_werror_flag=$ac_save_c_werror_flag
2643 fi
2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2646 if test "$ac_test_CFLAGS" = set; then
2647   CFLAGS=$ac_save_CFLAGS
2648 elif test $ac_cv_prog_cc_g = yes; then
2649   if test "$GCC" = yes; then
2650     CFLAGS="-g -O2"
2651   else
2652     CFLAGS="-g"
2653   fi
2654 else
2655   if test "$GCC" = yes; then
2656     CFLAGS="-O2"
2657   else
2658     CFLAGS=
2659   fi
2660 fi
2661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_cc_c89+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   ac_cv_prog_cc_c89=no
2667 ac_save_CC=$CC
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674 #include <stdarg.h>
2675 #include <stdio.h>
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2682      char **p;
2683      int i;
2684 {
2685   return p[i];
2686 }
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2688 {
2689   char *s;
2690   va_list v;
2691   va_start (v,p);
2692   s = g (p, va_arg (v,int));
2693   va_end (v);
2694   return s;
2695 }
2696
2697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2698    function prototypes and stuff, but not '\xHH' hex character constants.
2699    These don't provoke an error unfortunately, instead are silently treated
2700    as 'x'.  The following induces an error, until -std is added to get
2701    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2702    array size at least.  It's necessary to write '\x00'==0 to get something
2703    that's true only with -std.  */
2704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705
2706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2707    inside strings and character constants.  */
2708 #define FOO(x) 'x'
2709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2710
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715 int argc;
2716 char **argv;
2717 int
2718 main ()
2719 {
2720 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2726         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 do
2728   CC="$ac_save_CC $ac_arg"
2729   rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_compile") 2>conftest.er1
2737   ac_status=$?
2738   grep -v '^ *+' conftest.er1 >conftest.err
2739   rm -f conftest.er1
2740   cat conftest.err >&5
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744   { (case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749   (eval "$ac_try") 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_try") 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   ac_cv_prog_cc_c89=$ac_arg
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768
2769 fi
2770
2771 rm -f core conftest.err conftest.$ac_objext
2772   test "x$ac_cv_prog_cc_c89" != "xno" && break
2773 done
2774 rm -f conftest.$ac_ext
2775 CC=$ac_save_CC
2776
2777 fi
2778 # AC_CACHE_VAL
2779 case "x$ac_cv_prog_cc_c89" in
2780   x)
2781     { echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6; } ;;
2783   xno)
2784     { echo "$as_me:$LINENO: result: unsupported" >&5
2785 echo "${ECHO_T}unsupported" >&6; } ;;
2786   *)
2787     CC="$CC $ac_cv_prog_cc_c89"
2788     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2790 esac
2791
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799 ac_ext=cpp
2800 ac_cpp='$CXXCPP $CPPFLAGS'
2801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2804 if test -z "$CXX"; then
2805   if test -n "$CCC"; then
2806     CXX=$CCC
2807   else
2808     if test -n "$ac_tool_prefix"; then
2809   for ac_prog in clang++ llvm-g++ g++
2810   do
2811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_CXX+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$CXX"; then
2819   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 CXX=$ac_cv_prog_CXX
2839 if test -n "$CXX"; then
2840   { echo "$as_me:$LINENO: result: $CXX" >&5
2841 echo "${ECHO_T}$CXX" >&6; }
2842 else
2843   { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847
2848     test -n "$CXX" && break
2849   done
2850 fi
2851 if test -z "$CXX"; then
2852   ac_ct_CXX=$CXX
2853   for ac_prog in clang++ llvm-g++ g++
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   if test -n "$ac_ct_CXX"; then
2863   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     ac_cv_prog_ac_ct_CXX="$ac_prog"
2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2883 if test -n "$ac_ct_CXX"; then
2884   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2885 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2886 else
2887   { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2889 fi
2890
2891
2892   test -n "$ac_ct_CXX" && break
2893 done
2894
2895   if test "x$ac_ct_CXX" = x; then
2896     CXX="g++"
2897   else
2898     case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2901 whose name does not start with the host triplet.  If you think this
2902 configuration is useful to you, please write to autoconf@gnu.org." >&5
2903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet.  If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908     CXX=$ac_ct_CXX
2909   fi
2910 fi
2911
2912   fi
2913 fi
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_compiler --version >&5") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compiler -v >&5") 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler -V >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2947
2948 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h.  */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h.  */
2959
2960 int
2961 main ()
2962 {
2963 #ifndef __GNUC__
2964        choke me
2965 #endif
2966
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2973 case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_compile") 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } &&
2985          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2986   { (case "(($ac_try" in
2987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988   *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991   (eval "$ac_try") 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; } &&
2995          { ac_try='test -s conftest.$ac_objext'
2996   { (case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_try") 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; }; then
3005   ac_compiler_gnu=yes
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010         ac_compiler_gnu=no
3011 fi
3012
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3015
3016 fi
3017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028    ac_cxx_werror_flag=yes
3029    ac_cv_prog_cxx_g=no
3030    CXXFLAGS="-g"
3031    cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3037
3038 int
3039 main ()
3040 {
3041
3042   ;
3043   return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_compile") 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } &&
3060          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3061   { (case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_try") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080   ac_cv_prog_cxx_g=yes
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085         CXXFLAGS=""
3086       cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092
3093 int
3094 main ()
3095 {
3096
3097   ;
3098   return 0;
3099 }
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_compile") 2>conftest.er1
3109   ac_status=$?
3110   grep -v '^ *+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } &&
3115          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3116   { (case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121   (eval "$ac_try") 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; } &&
3125          { ac_try='test -s conftest.$ac_objext'
3126   { (case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_try") 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   :
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3141          CXXFLAGS="-g"
3142          cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compile") 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3172   { (case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_try") 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; } &&
3181          { ac_try='test -s conftest.$ac_objext'
3182   { (case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_try") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; }; then
3191   ac_cv_prog_cxx_g=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211   CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213   if test "$GXX" = yes; then
3214     CXXFLAGS="-g -O2"
3215   else
3216     CXXFLAGS="-g"
3217   fi
3218 else
3219   if test "$GXX" = yes; then
3220     CXXFLAGS="-O2"
3221   else
3222     CXXFLAGS=
3223   fi
3224 fi
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3240   CPP=
3241 fi
3242 if test -z "$CPP"; then
3243   if test "${ac_cv_prog_CPP+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246       # Double quotes because CPP needs to be expanded
3247     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248     do
3249       ac_preproc_ok=false
3250 for ac_c_preproc_warn_flag in '' yes
3251 do
3252   # Use a header file that comes with gcc, so configuring glibc
3253   # with a fresh cross-compiler works.
3254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255   # <limits.h> exists even on freestanding compilers.
3256   # On the NeXT, cc -E runs the code through the compiler's parser,
3257   # not just through cpp. "Syntax error" is here to catch this case.
3258   cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 #ifdef __STDC__
3265 # include <limits.h>
3266 #else
3267 # include <assert.h>
3268 #endif
3269                      Syntax error
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278   ac_status=$?
3279   grep -v '^ *+' conftest.er1 >conftest.err
3280   rm -f conftest.er1
3281   cat conftest.err >&5
3282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283   (exit $ac_status); } >/dev/null; then
3284   if test -s conftest.err; then
3285     ac_cpp_err=$ac_c_preproc_warn_flag
3286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287   else
3288     ac_cpp_err=
3289   fi
3290 else
3291   ac_cpp_err=yes
3292 fi
3293 if test -z "$ac_cpp_err"; then
3294   :
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299   # Broken: fails on valid input.
3300 continue
3301 fi
3302
3303 rm -f conftest.err conftest.$ac_ext
3304
3305   # OK, works on sane cases.  Now check whether nonexistent headers
3306   # can be detected and how.
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #include <ac_nonexistent.h>
3314 _ACEOF
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322   ac_status=$?
3323   grep -v '^ *+' conftest.er1 >conftest.err
3324   rm -f conftest.er1
3325   cat conftest.err >&5
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } >/dev/null; then
3328   if test -s conftest.err; then
3329     ac_cpp_err=$ac_c_preproc_warn_flag
3330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331   else
3332     ac_cpp_err=
3333   fi
3334 else
3335   ac_cpp_err=yes
3336 fi
3337 if test -z "$ac_cpp_err"; then
3338   # Broken: success on invalid input.
3339 continue
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344   # Passes both tests.
3345 ac_preproc_ok=:
3346 break
3347 fi
3348
3349 rm -f conftest.err conftest.$ac_ext
3350
3351 done
3352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3353 rm -f conftest.err conftest.$ac_ext
3354 if $ac_preproc_ok; then
3355   break
3356 fi
3357
3358     done
3359     ac_cv_prog_CPP=$CPP
3360
3361 fi
3362   CPP=$ac_cv_prog_CPP
3363 else
3364   ac_cv_prog_CPP=$CPP
3365 fi
3366 { echo "$as_me:$LINENO: result: $CPP" >&5
3367 echo "${ECHO_T}$CPP" >&6; }
3368 ac_preproc_ok=false
3369 for ac_c_preproc_warn_flag in '' yes
3370 do
3371   # Use a header file that comes with gcc, so configuring glibc
3372   # with a fresh cross-compiler works.
3373   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374   # <limits.h> exists even on freestanding compilers.
3375   # On the NeXT, cc -E runs the code through the compiler's parser,
3376   # not just through cpp. "Syntax error" is here to catch this case.
3377   cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383 #ifdef __STDC__
3384 # include <limits.h>
3385 #else
3386 # include <assert.h>
3387 #endif
3388                      Syntax error
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397   ac_status=$?
3398   grep -v '^ *+' conftest.er1 >conftest.err
3399   rm -f conftest.er1
3400   cat conftest.err >&5
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); } >/dev/null; then
3403   if test -s conftest.err; then
3404     ac_cpp_err=$ac_c_preproc_warn_flag
3405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406   else
3407     ac_cpp_err=
3408   fi
3409 else
3410   ac_cpp_err=yes
3411 fi
3412 if test -z "$ac_cpp_err"; then
3413   :
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418   # Broken: fails on valid input.
3419 continue
3420 fi
3421
3422 rm -f conftest.err conftest.$ac_ext
3423
3424   # OK, works on sane cases.  Now check whether nonexistent headers
3425   # can be detected and how.
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #include <ac_nonexistent.h>
3433 _ACEOF
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } >/dev/null; then
3447   if test -s conftest.err; then
3448     ac_cpp_err=$ac_c_preproc_warn_flag
3449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450   else
3451     ac_cpp_err=
3452   fi
3453 else
3454   ac_cpp_err=yes
3455 fi
3456 if test -z "$ac_cpp_err"; then
3457   # Broken: success on invalid input.
3458 continue
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463   # Passes both tests.
3464 ac_preproc_ok=:
3465 break
3466 fi
3467
3468 rm -f conftest.err conftest.$ac_ext
3469
3470 done
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then
3474   :
3475 else
3476   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&2;}
3480    { (exit 1); exit 1; }; }
3481 fi
3482
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
3489
3490 if test "$CXX" = "clang++" ; then
3491   { echo "$as_me:$LINENO: checking whether clang works" >&5
3492 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3493   ac_ext=cpp
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498
3499
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <limits>
3507 #if __has_include (<cxxabi.h>)
3508 #include <cxxabi.h>
3509 #endif
3510 #if __has_include (<unwind.h>)
3511 #include <unwind.h>
3512 #endif
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529   (eval "$ac_compile") 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } &&
3536          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3537   { (case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_try") 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }; } &&
3546          { ac_try='test -s conftest.$ac_objext'
3547   { (case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; }; then
3556
3557   { echo "$as_me:$LINENO: result: yes" >&5
3558 echo "${ECHO_T}yes" >&6; }
3559
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564
3565   { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3567   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3568 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3569    { (exit 1); exit 1; }; }
3570
3571 fi
3572
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574   ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
3580 fi
3581
3582
3583
3584 if test -d ${srcdir}/projects/llvm-gcc ; then
3585   subdirs="$subdirs projects/llvm-gcc"
3586
3587 fi
3588
3589 if test -d ${srcdir}/projects/test-suite ; then
3590   subdirs="$subdirs projects/test-suite"
3591
3592 fi
3593
3594 if test -d ${srcdir}/projects/llvm-test ; then
3595   subdirs="$subdirs projects/llvm-test"
3596
3597 fi
3598
3599 if test -d ${srcdir}/projects/poolalloc ; then
3600   subdirs="$subdirs projects/poolalloc"
3601
3602 fi
3603
3604 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3605   subdirs="$subdirs projects/llvm-poolalloc"
3606
3607 fi
3608
3609 for i in `ls ${srcdir}/projects`
3610 do
3611   if test -d ${srcdir}/projects/${i} ; then
3612     case ${i} in
3613       sample)       subdirs="$subdirs projects/sample"
3614     ;;
3615       privbracket)  subdirs="$subdirs projects/privbracket"
3616  ;;
3617       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3618  ;;
3619       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3620 ;;
3621       llvm-java)    subdirs="$subdirs projects/llvm-java"
3622  ;;
3623       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3624    ;;
3625       safecode)     subdirs="$subdirs projects/safecode"
3626  ;;
3627       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3628  ;;
3629       compiler-rt)       ;;
3630       llvm-gcc)       ;;
3631       test-suite)     ;;
3632       llvm-test)      ;;
3633       poolalloc)      ;;
3634       llvm-poolalloc) ;;
3635       *)
3636         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3637 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3638         ;;
3639     esac
3640   fi
3641 done
3642
3643 # Check whether --enable-polly was given.
3644 if test "${enable_polly+set}" = set; then
3645   enableval=$enable_polly;
3646 else
3647   enableval=default
3648 fi
3649
3650 case "$enableval" in
3651   yes) ENABLE_POLLY=1
3652  ;;
3653   no)  ENABLE_POLLY=0
3654  ;;
3655   default) ENABLE_POLLY=1
3656  ;;
3657   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3658 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3659    { (exit 1); exit 1; }; } ;;
3660 esac
3661
3662
3663 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3664   LLVM_HAS_POLLY=1
3665
3666   subdirs="$subdirs tools/polly"
3667
3668 fi
3669
3670
3671 # Make sure we can run config.sub.
3672 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3673   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3674 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3675    { (exit 1); exit 1; }; }
3676
3677 { echo "$as_me:$LINENO: checking build system type" >&5
3678 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3679 if test "${ac_cv_build+set}" = set; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682   ac_build_alias=$build_alias
3683 test "x$ac_build_alias" = x &&
3684   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3685 test "x$ac_build_alias" = x &&
3686   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3688    { (exit 1); exit 1; }; }
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3692    { (exit 1); exit 1; }; }
3693
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3696 echo "${ECHO_T}$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3698 *-*-*) ;;
3699 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3700 echo "$as_me: error: invalid value of canonical build" >&2;}
3701    { (exit 1); exit 1; }; };;
3702 esac
3703 build=$ac_cv_build
3704 ac_save_IFS=$IFS; IFS='-'
3705 set x $ac_cv_build
3706 shift
3707 build_cpu=$1
3708 build_vendor=$2
3709 shift; shift
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3712 build_os=$*
3713 IFS=$ac_save_IFS
3714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3715
3716
3717 { echo "$as_me:$LINENO: checking host system type" >&5
3718 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_host+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   if test "x$host_alias" = x; then
3723   ac_cv_host=$ac_cv_build
3724 else
3725   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3726     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3727 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3728    { (exit 1); exit 1; }; }
3729 fi
3730
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3733 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 case $ac_cv_host in
3735 *-*-*) ;;
3736 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3737 echo "$as_me: error: invalid value of canonical host" >&2;}
3738    { (exit 1); exit 1; }; };;
3739 esac
3740 host=$ac_cv_host
3741 ac_save_IFS=$IFS; IFS='-'
3742 set x $ac_cv_host
3743 shift
3744 host_cpu=$1
3745 host_vendor=$2
3746 shift; shift
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3749 host_os=$*
3750 IFS=$ac_save_IFS
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752
3753
3754 { echo "$as_me:$LINENO: checking target system type" >&5
3755 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3756 if test "${ac_cv_target+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   if test "x$target_alias" = x; then
3760   ac_cv_target=$ac_cv_host
3761 else
3762   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3763     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3764 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3765    { (exit 1); exit 1; }; }
3766 fi
3767
3768 fi
3769 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3770 echo "${ECHO_T}$ac_cv_target" >&6; }
3771 case $ac_cv_target in
3772 *-*-*) ;;
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3774 echo "$as_me: error: invalid value of canonical target" >&2;}
3775    { (exit 1); exit 1; }; };;
3776 esac
3777 target=$ac_cv_target
3778 ac_save_IFS=$IFS; IFS='-'
3779 set x $ac_cv_target
3780 shift
3781 target_cpu=$1
3782 target_vendor=$2
3783 shift; shift
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3786 target_os=$*
3787 IFS=$ac_save_IFS
3788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3789
3790
3791 # The aliases save the names the user supplied, while $host etc.
3792 # will get canonicalized.
3793 test -n "$target_alias" &&
3794   test "$program_prefix$program_suffix$program_transform_name" = \
3795     NONENONEs,x,x, &&
3796   program_prefix=${target_alias}-
3797
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3799 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3800 if test "${llvm_cv_os_type+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   case $host in
3804   *-*-aix*)
3805     llvm_cv_link_all_option="-Wl,--whole-archive"
3806     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807     llvm_cv_os_type="AIX"
3808     llvm_cv_platform_type="Unix" ;;
3809   *-*-irix*)
3810     llvm_cv_link_all_option="-Wl,--whole-archive"
3811     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812     llvm_cv_os_type="IRIX"
3813     llvm_cv_platform_type="Unix" ;;
3814   *-*-cygwin*)
3815     llvm_cv_link_all_option="-Wl,--whole-archive"
3816     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817     llvm_cv_os_type="Cygwin"
3818     llvm_cv_platform_type="Unix" ;;
3819   *-*-darwin*)
3820     llvm_cv_link_all_option="-Wl,-all_load"
3821     llvm_cv_no_link_all_option="-Wl,-noall_load"
3822     llvm_cv_os_type="Darwin"
3823     llvm_cv_platform_type="Unix" ;;
3824   *-*-minix*)
3825     llvm_cv_link_all_option="-Wl,-all_load"
3826     llvm_cv_no_link_all_option="-Wl,-noall_load"
3827     llvm_cv_os_type="Minix"
3828     llvm_cv_platform_type="Unix" ;;
3829   *-*-freebsd*)
3830     llvm_cv_link_all_option="-Wl,--whole-archive"
3831     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832     llvm_cv_os_type="FreeBSD"
3833     llvm_cv_platform_type="Unix" ;;
3834   *-*-kfreebsd-gnu)
3835     llvm_cv_link_all_option="-Wl,--whole-archive"
3836     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837     llvm_cv_os_type="GNU/kFreeBSD"
3838     llvm_cv_platform_type="Unix" ;;
3839   *-*-openbsd*)
3840     llvm_cv_link_all_option="-Wl,--whole-archive"
3841     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842     llvm_cv_os_type="OpenBSD"
3843     llvm_cv_platform_type="Unix" ;;
3844   *-*-netbsd*)
3845     llvm_cv_link_all_option="-Wl,--whole-archive"
3846     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847     llvm_cv_os_type="NetBSD"
3848     llvm_cv_platform_type="Unix" ;;
3849   *-*-dragonfly*)
3850     llvm_cv_link_all_option="-Wl,--whole-archive"
3851     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852     llvm_cv_os_type="DragonFly"
3853     llvm_cv_platform_type="Unix" ;;
3854   *-*-hpux*)
3855     llvm_cv_link_all_option="-Wl,--whole-archive"
3856     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857     llvm_cv_os_type="HP-UX"
3858     llvm_cv_platform_type="Unix" ;;
3859   *-*-interix*)
3860     llvm_cv_link_all_option="-Wl,--whole-archive"
3861     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862     llvm_cv_os_type="Interix"
3863     llvm_cv_platform_type="Unix" ;;
3864   *-*-linux*)
3865     llvm_cv_link_all_option="-Wl,--whole-archive"
3866     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867     llvm_cv_os_type="Linux"
3868     llvm_cv_platform_type="Unix" ;;
3869   *-*-gnu*)
3870     llvm_cv_link_all_option="-Wl,--whole-archive"
3871     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872     llvm_cv_os_type="GNU"
3873     llvm_cv_platform_type="Unix" ;;
3874   *-*-solaris*)
3875     llvm_cv_link_all_option="-Wl,-z,allextract"
3876     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3877     llvm_cv_os_type="SunOS"
3878     llvm_cv_platform_type="Unix" ;;
3879   *-*-auroraux*)
3880     llvm_cv_link_all_option="-Wl,-z,allextract"
3881     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3882     llvm_cv_os_type="AuroraUX"
3883     llvm_cv_platform_type="Unix" ;;
3884   *-*-win32*)
3885     llvm_cv_link_all_option="-Wl,--whole-archive"
3886     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887     llvm_cv_os_type="Win32"
3888     llvm_cv_platform_type="Win32" ;;
3889   *-*-mingw*)
3890     llvm_cv_link_all_option="-Wl,--whole-archive"
3891     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892     llvm_cv_os_type="MingW"
3893     llvm_cv_platform_type="Win32" ;;
3894   *-*-haiku*)
3895     llvm_cv_link_all_option="-Wl,--whole-archive"
3896     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897     llvm_cv_os_type="Haiku"
3898     llvm_cv_platform_type="Unix" ;;
3899   *-unknown-eabi*)
3900     llvm_cv_link_all_option="-Wl,--whole-archive"
3901     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3902     llvm_cv_os_type="Freestanding"
3903     llvm_cv_platform_type="Unix" ;;
3904   *-unknown-elf*)
3905     llvm_cv_link_all_option="-Wl,--whole-archive"
3906     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3907     llvm_cv_os_type="Freestanding"
3908     llvm_cv_platform_type="Unix" ;;
3909   *)
3910     llvm_cv_link_all_option=""
3911     llvm_cv_no_link_all_option=""
3912     llvm_cv_os_type="Unknown"
3913     llvm_cv_platform_type="Unknown" ;;
3914 esac
3915 fi
3916 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3917 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3918
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3920 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3921 if test "${llvm_cv_target_os_type+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   case $target in
3925   *-*-aix*)
3926     llvm_cv_target_os_type="AIX" ;;
3927   *-*-irix*)
3928     llvm_cv_target_os_type="IRIX" ;;
3929   *-*-cygwin*)
3930     llvm_cv_target_os_type="Cygwin" ;;
3931   *-*-darwin*)
3932     llvm_cv_target_os_type="Darwin" ;;
3933   *-*-minix*)
3934     llvm_cv_target_os_type="Minix" ;;
3935   *-*-freebsd*)
3936     llvm_cv_target_os_type="FreeBSD" ;;
3937   *-*-kfreebsd-gnu)
3938     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3939   *-*-openbsd*)
3940     llvm_cv_target_os_type="OpenBSD" ;;
3941   *-*-netbsd*)
3942     llvm_cv_target_os_type="NetBSD" ;;
3943   *-*-dragonfly*)
3944     llvm_cv_target_os_type="DragonFly" ;;
3945   *-*-hpux*)
3946     llvm_cv_target_os_type="HP-UX" ;;
3947   *-*-interix*)
3948     llvm_cv_target_os_type="Interix" ;;
3949   *-*-linux*)
3950     llvm_cv_target_os_type="Linux" ;;
3951   *-*-gnu*)
3952     llvm_cv_target_os_type="GNU" ;;
3953   *-*-solaris*)
3954     llvm_cv_target_os_type="SunOS" ;;
3955   *-*-auroraux*)
3956     llvm_cv_target_os_type="AuroraUX" ;;
3957   *-*-win32*)
3958     llvm_cv_target_os_type="Win32" ;;
3959   *-*-mingw*)
3960     llvm_cv_target_os_type="MingW" ;;
3961   *-*-haiku*)
3962     llvm_cv_target_os_type="Haiku" ;;
3963   *-*-rtems*)
3964     llvm_cv_target_os_type="RTEMS" ;;
3965   *-*-nacl*)
3966     llvm_cv_target_os_type="NativeClient" ;;
3967   *-unknown-eabi*)
3968     llvm_cv_target_os_type="Freestanding" ;;
3969   *)
3970     llvm_cv_target_os_type="Unknown" ;;
3971 esac
3972 fi
3973 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3974 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3975
3976 if test "$llvm_cv_os_type" = "Unknown" ; then
3977   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3978 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3979    { (exit 1); exit 1; }; }
3980 fi
3981
3982 OS=$llvm_cv_os_type
3983
3984 HOST_OS=$llvm_cv_os_type
3985
3986 TARGET_OS=$llvm_cv_target_os_type
3987
3988
3989 LINKALL=$llvm_cv_link_all_option
3990
3991 NOLINKALL=$llvm_cv_no_link_all_option
3992
3993
3994 case $llvm_cv_platform_type in
3995   Unix)
3996
3997 cat >>confdefs.h <<\_ACEOF
3998 #define LLVM_ON_UNIX 1
3999 _ACEOF
4000
4001     LLVM_ON_UNIX=1
4002
4003     LLVM_ON_WIN32=0
4004
4005     ;;
4006   Win32)
4007
4008 cat >>confdefs.h <<\_ACEOF
4009 #define LLVM_ON_WIN32 1
4010 _ACEOF
4011
4012     LLVM_ON_UNIX=0
4013
4014     LLVM_ON_WIN32=1
4015
4016     ;;
4017 esac
4018
4019 { echo "$as_me:$LINENO: checking target architecture" >&5
4020 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4021 if test "${llvm_cv_target_arch+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   case $target in
4025   i?86-*)                 llvm_cv_target_arch="x86" ;;
4026   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4027   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4028   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4029   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4030   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4031   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4032   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4033   xcore-*)                llvm_cv_target_arch="XCore" ;;
4034   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4035   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4036   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4037   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4038   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4039   *)                      llvm_cv_target_arch="Unknown" ;;
4040 esac
4041 fi
4042 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4043 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4044
4045 if test "$llvm_cv_target_arch" = "Unknown" ; then
4046   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4047 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4048 fi
4049
4050 case "$llvm_cv_target_arch" in
4051     x86)     LLVM_NATIVE_ARCH="X86" ;;
4052     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4053     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4054 esac
4055
4056 ARCH=$llvm_cv_target_arch
4057
4058
4059 case $host in
4060   i?86-*)                 host_arch="x86" ;;
4061   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4062   sparc*-*)               host_arch="Sparc" ;;
4063   powerpc*-*)             host_arch="PowerPC" ;;
4064   arm*-*)                 host_arch="ARM" ;;
4065   aarch64*-*)             host_arch="AArch64" ;;
4066   mips-* | mips64-*)      host_arch="Mips" ;;
4067   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4068   xcore-*)                host_arch="XCore" ;;
4069   msp430-*)               host_arch="MSP430" ;;
4070   hexagon-*)              host_arch="Hexagon" ;;
4071   mblaze-*)               host_arch="MBlaze" ;;
4072   s390x-*)                host_arch="SystemZ" ;;
4073   *)                      host_arch="Unknown" ;;
4074 esac
4075
4076 if test "$host_arch" = "Unknown" ; then
4077   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4079 fi
4080
4081 HOST_ARCH=$host_arch
4082
4083
4084
4085
4086 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4087 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4088 if test "${ac_cv_path_GREP+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   # Extract the first word of "grep ggrep" to use in msg output
4092 if test -z "$GREP"; then
4093 set dummy grep ggrep; ac_prog_name=$2
4094 if test "${ac_cv_path_GREP+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   ac_path_GREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104   for ac_prog in grep ggrep; do
4105   for ac_exec_ext in '' $ac_executable_extensions; do
4106     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4108     # Check for GNU ac_path_GREP and select it if it is found.
4109   # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4111 *GNU*)
4112   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113 *)
4114   ac_count=0
4115   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4116   while :
4117   do
4118     cat "conftest.in" "conftest.in" >"conftest.tmp"
4119     mv "conftest.tmp" "conftest.in"
4120     cp "conftest.in" "conftest.nl"
4121     echo 'GREP' >> "conftest.nl"
4122     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124     ac_count=`expr $ac_count + 1`
4125     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126       # Best one so far, save it but keep looking for a better one
4127       ac_cv_path_GREP="$ac_path_GREP"
4128       ac_path_GREP_max=$ac_count
4129     fi
4130     # 10*(2^10) chars as input seems more than enough
4131     test $ac_count -gt 10 && break
4132   done
4133   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 esac
4135
4136
4137     $ac_path_GREP_found && break 3
4138   done
4139 done
4140
4141 done
4142 IFS=$as_save_IFS
4143
4144
4145 fi
4146
4147 GREP="$ac_cv_path_GREP"
4148 if test -z "$GREP"; then
4149   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4150 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4151    { (exit 1); exit 1; }; }
4152 fi
4153
4154 else
4155   ac_cv_path_GREP=$GREP
4156 fi
4157
4158
4159 fi
4160 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4161 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4162  GREP="$ac_cv_path_GREP"
4163
4164
4165 { echo "$as_me:$LINENO: checking for egrep" >&5
4166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171    then ac_cv_path_EGREP="$GREP -E"
4172    else
4173      # Extract the first word of "egrep" to use in msg output
4174 if test -z "$EGREP"; then
4175 set dummy egrep; ac_prog_name=$2
4176 if test "${ac_cv_path_EGREP+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   ac_path_EGREP_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186   for ac_prog in egrep; do
4187   for ac_exec_ext in '' $ac_executable_extensions; do
4188     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4190     # Check for GNU ac_path_EGREP and select it if it is found.
4191   # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4193 *GNU*)
4194   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195 *)
4196   ac_count=0
4197   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4198   while :
4199   do
4200     cat "conftest.in" "conftest.in" >"conftest.tmp"
4201     mv "conftest.tmp" "conftest.in"
4202     cp "conftest.in" "conftest.nl"
4203     echo 'EGREP' >> "conftest.nl"
4204     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206     ac_count=`expr $ac_count + 1`
4207     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208       # Best one so far, save it but keep looking for a better one
4209       ac_cv_path_EGREP="$ac_path_EGREP"
4210       ac_path_EGREP_max=$ac_count
4211     fi
4212     # 10*(2^10) chars as input seems more than enough
4213     test $ac_count -gt 10 && break
4214   done
4215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 esac
4217
4218
4219     $ac_path_EGREP_found && break 3
4220   done
4221 done
4222
4223 done
4224 IFS=$as_save_IFS
4225
4226
4227 fi
4228
4229 EGREP="$ac_cv_path_EGREP"
4230 if test -z "$EGREP"; then
4231   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4232 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4233    { (exit 1); exit 1; }; }
4234 fi
4235
4236 else
4237   ac_cv_path_EGREP=$EGREP
4238 fi
4239
4240
4241    fi
4242 fi
4243 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4244 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4245  EGREP="$ac_cv_path_EGREP"
4246
4247
4248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4250 if test "${ac_cv_header_stdc+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259 #include <stdlib.h>
4260 #include <stdarg.h>
4261 #include <string.h>
4262 #include <float.h>
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_compile") 2>conftest.er1
4280   ac_status=$?
4281   grep -v '^ *+' conftest.er1 >conftest.err
4282   rm -f conftest.er1
4283   cat conftest.err >&5
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); } &&
4286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287   { (case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; } &&
4296          { ac_try='test -s conftest.$ac_objext'
4297   { (case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_try") 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_header_stdc=yes
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311         ac_cv_header_stdc=no
4312 fi
4313
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315
4316 if test $ac_cv_header_stdc = yes; then
4317   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4318   cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 #include <string.h>
4325
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328   $EGREP "memchr" >/dev/null 2>&1; then
4329   :
4330 else
4331   ac_cv_header_stdc=no
4332 fi
4333 rm -f conftest*
4334
4335 fi
4336
4337 if test $ac_cv_header_stdc = yes; then
4338   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 #include <stdlib.h>
4346
4347 _ACEOF
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349   $EGREP "free" >/dev/null 2>&1; then
4350   :
4351 else
4352   ac_cv_header_stdc=no
4353 fi
4354 rm -f conftest*
4355
4356 fi
4357
4358 if test $ac_cv_header_stdc = yes; then
4359   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360   if test "$cross_compiling" = yes; then
4361   :
4362 else
4363   cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #include <ctype.h>
4370 #include <stdlib.h>
4371 #if ((' ' & 0x0FF) == 0x020)
4372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4374 #else
4375 # define ISLOWER(c) \
4376                    (('a' <= (c) && (c) <= 'i') \
4377                      || ('j' <= (c) && (c) <= 'r') \
4378                      || ('s' <= (c) && (c) <= 'z'))
4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380 #endif
4381
4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4383 int
4384 main ()
4385 {
4386   int i;
4387   for (i = 0; i < 256; i++)
4388     if (XOR (islower (i), ISLOWER (i))
4389         || toupper (i) != TOUPPER (i))
4390       return 2;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest$ac_exeext
4395 if { (ac_try="$ac_link"
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_link") 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405   { (case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410   (eval "$ac_try") 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   :
4415 else
4416   echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 ( exit $ac_status )
4421 ac_cv_header_stdc=no
4422 fi
4423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4424 fi
4425
4426
4427 fi
4428 fi
4429 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4430 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4431 if test $ac_cv_header_stdc = yes; then
4432
4433 cat >>confdefs.h <<\_ACEOF
4434 #define STDC_HEADERS 1
4435 _ACEOF
4436
4437 fi
4438
4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450                   inttypes.h stdint.h unistd.h
4451 do
4452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 $ac_includes_default
4465
4466 #include <$ac_header>
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4470 case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_compile") 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } &&
4482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483   { (case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_try") 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; } &&
4492          { ac_try='test -s conftest.$ac_objext'
4493   { (case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498   (eval "$ac_try") 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; }; then
4502   eval "$as_ac_Header=yes"
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507         eval "$as_ac_Header=no"
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 ac_res=`eval echo '${'$as_ac_Header'}'`
4513                { echo "$as_me:$LINENO: result: $ac_res" >&5
4514 echo "${ECHO_T}$ac_res" >&6; }
4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516   cat >>confdefs.h <<_ACEOF
4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 _ACEOF
4519
4520 fi
4521
4522 done
4523
4524
4525 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4526 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4527 if test "${ac_cv_c_bigendian+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530   # See if sys/param.h defines the BYTE_ORDER macro.
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 #include <sys/types.h>
4538 #include <sys/param.h>
4539
4540 int
4541 main ()
4542 {
4543 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4544  bogus endian macros
4545 #endif
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4553 case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_compile") 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566   { (case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571   (eval "$ac_try") 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581   (eval "$ac_try") 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }; then
4585   # It does; now see whether it defined to BIG_ENDIAN or not.
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 #include <sys/types.h>
4593 #include <sys/param.h>
4594
4595 int
4596 main ()
4597 {
4598 #if BYTE_ORDER != BIG_ENDIAN
4599  not big endian
4600 #endif
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4608 case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613   (eval "$ac_compile") 2>conftest.er1
4614   ac_status=$?
4615   grep -v '^ *+' conftest.er1 >conftest.err
4616   rm -f conftest.er1
4617   cat conftest.err >&5
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } &&
4620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621   { (case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626   (eval "$ac_try") 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; } &&
4630          { ac_try='test -s conftest.$ac_objext'
4631   { (case "(($ac_try" in
4632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633   *) ac_try_echo=$ac_try;;
4634 esac
4635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636   (eval "$ac_try") 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); }; }; then
4640   ac_cv_c_bigendian=yes
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645         ac_cv_c_bigendian=no
4646 fi
4647
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653         # It does not; compile a test program.
4654 if test "$cross_compiling" = yes; then
4655   # try to guess the endianness by grepping values into an object file
4656   ac_cv_c_bigendian=unknown
4657   cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4664 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4665 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4666 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4667 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4668 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4669 int
4670 main ()
4671 {
4672  _ascii (); _ebcdic ();
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4679 case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_compile") 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692   { (case "(($ac_try" in
4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694   *) ac_try_echo=$ac_try;;
4695 esac
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697   (eval "$ac_try") 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; } &&
4701          { ac_try='test -s conftest.$ac_objext'
4702   { (case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707   (eval "$ac_try") 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); }; }; then
4711   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4712   ac_cv_c_bigendian=yes
4713 fi
4714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4715   if test "$ac_cv_c_bigendian" = unknown; then
4716     ac_cv_c_bigendian=no
4717   else
4718     # finding both strings is unlikely to happen, but who knows?
4719     ac_cv_c_bigendian=unknown
4720   fi
4721 fi
4722 else
4723   echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726
4727 fi
4728
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 else
4731   cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 $ac_includes_default
4738 int
4739 main ()
4740 {
4741
4742   /* Are we little or big endian?  From Harbison&Steele.  */
4743   union
4744   {
4745     long int l;
4746     char c[sizeof (long int)];
4747   } u;
4748   u.l = 1;
4749   return u.c[sizeof (long int) - 1] == 1;
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest$ac_exeext
4756 if { (ac_try="$ac_link"
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_link") 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766   { (case "(($ac_try" in
4767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768   *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771   (eval "$ac_try") 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; }; then
4775   ac_cv_c_bigendian=no
4776 else
4777   echo "$as_me: program exited with status $ac_status" >&5
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 ( exit $ac_status )
4782 ac_cv_c_bigendian=yes
4783 fi
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4785 fi
4786
4787
4788 fi
4789
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4794 case $ac_cv_c_bigendian in
4795   yes)
4796     ENDIAN=big
4797  ;;
4798   no)
4799     ENDIAN=little
4800  ;;
4801   *)
4802     { { echo "$as_me:$LINENO: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4804 echo "$as_me: error: unknown endianness
4805 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4806    { (exit 1); exit 1; }; } ;;
4807 esac
4808
4809
4810 if test "$cross_compiling" = yes; then
4811   LLVM_CROSS_COMPILING=1
4812
4813
4814 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4815 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4816 if test "${ac_cv_build_exeext+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4820   ac_cv_build_exeext=.exe
4821 else
4822   ac_build_prefix=${build_alias}-
4823
4824   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4825 set dummy ${ac_build_prefix}gcc; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   if test -n "$BUILD_CC"; then
4832   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839   for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 BUILD_CC=$ac_cv_prog_BUILD_CC
4852 if test -n "$BUILD_CC"; then
4853   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4854 echo "${ECHO_T}$BUILD_CC" >&6; }
4855 else
4856   { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 fi
4859
4860
4861   if test -z "$BUILD_CC"; then
4862      # Extract the first word of "gcc", so it can be a program name with args.
4863 set dummy gcc; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   if test -n "$BUILD_CC"; then
4870   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_BUILD_CC="gcc"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 BUILD_CC=$ac_cv_prog_BUILD_CC
4890 if test -n "$BUILD_CC"; then
4891   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4892 echo "${ECHO_T}$BUILD_CC" >&6; }
4893 else
4894   { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4896 fi
4897
4898
4899      if test -z "$BUILD_CC"; then
4900        # Extract the first word of "cc", so it can be a program name with args.
4901 set dummy cc; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   if test -n "$BUILD_CC"; then
4908   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4909 else
4910   ac_prog_rejected=no
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919        ac_prog_rejected=yes
4920        continue
4921      fi
4922     ac_cv_prog_BUILD_CC="cc"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 if test $ac_prog_rejected = yes; then
4931   # We found a bogon in the path, so make sure we never use it.
4932   set dummy $ac_cv_prog_BUILD_CC
4933   shift
4934   if test $# != 0; then
4935     # We chose a different compiler from the bogus one.
4936     # However, it has the same basename, so the bogon will be chosen
4937     # first if we set BUILD_CC to just the basename; use the full file name.
4938     shift
4939     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4940   fi
4941 fi
4942 fi
4943 fi
4944 BUILD_CC=$ac_cv_prog_BUILD_CC
4945 if test -n "$BUILD_CC"; then
4946   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4947 echo "${ECHO_T}$BUILD_CC" >&6; }
4948 else
4949   { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4951 fi
4952
4953
4954      fi
4955   fi
4956   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4957 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4958    { (exit 1); exit 1; }; }
4959   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4960   rm -f conftest*
4961   echo 'int main () { return 0; }' > conftest.$ac_ext
4962   ac_cv_build_exeext=
4963   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4964   (eval $ac_build_link) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }; then
4968     for file in conftest.*; do
4969       case $file in
4970       *.c | *.o | *.obj | *.dSYM) ;;
4971       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4972       esac
4973     done
4974   else
4975     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4976 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4977    { (exit 1); exit 1; }; }
4978   fi
4979   rm -f conftest*
4980   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4981 fi
4982 fi
4983
4984 BUILD_EXEEXT=""
4985 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4986 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4987 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4988 ac_build_exeext=$BUILD_EXEEXT
4989
4990   ac_build_prefix=${build_alias}-
4991   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4992 set dummy ${ac_build_prefix}g++; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   if test -n "$BUILD_CXX"; then
4999   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006   for ac_exec_ext in '' $ac_executable_extensions; do
5007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5008     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010     break 2
5011   fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5019 if test -n "$BUILD_CXX"; then
5020   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5021 echo "${ECHO_T}$BUILD_CXX" >&6; }
5022 else
5023   { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5025 fi
5026
5027
5028   if test -z "$BUILD_CXX"; then
5029      # Extract the first word of "g++", so it can be a program name with args.
5030 set dummy g++; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   if test -n "$BUILD_CXX"; then
5037   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_prog_BUILD_CXX="g++"
5047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5057 if test -n "$BUILD_CXX"; then
5058   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5059 echo "${ECHO_T}$BUILD_CXX" >&6; }
5060 else
5061   { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5063 fi
5064
5065
5066      if test -z "$BUILD_CXX"; then
5067        # Extract the first word of "c++", so it can be a program name with args.
5068 set dummy c++; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   if test -n "$BUILD_CXX"; then
5075   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5076 else
5077   ac_prog_rejected=no
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5085     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5086        ac_prog_rejected=yes
5087        continue
5088      fi
5089     ac_cv_prog_BUILD_CXX="c++"
5090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 if test $ac_prog_rejected = yes; then
5098   # We found a bogon in the path, so make sure we never use it.
5099   set dummy $ac_cv_prog_BUILD_CXX
5100   shift
5101   if test $# != 0; then
5102     # We chose a different compiler from the bogus one.
5103     # However, it has the same basename, so the bogon will be chosen
5104     # first if we set BUILD_CXX to just the basename; use the full file name.
5105     shift
5106     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5107   fi
5108 fi
5109 fi
5110 fi
5111 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5112 if test -n "$BUILD_CXX"; then
5113   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5114 echo "${ECHO_T}$BUILD_CXX" >&6; }
5115 else
5116   { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5118 fi
5119
5120
5121      fi
5122   fi
5123 else
5124   LLVM_CROSS_COMPILING=0
5125
5126 fi
5127
5128 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5129   cvsbuild="yes"
5130   optimize="no"
5131   CVSBUILD=CVSBUILD=1
5132
5133 else
5134   cvsbuild="no"
5135   optimize="yes"
5136 fi
5137
5138
5139 # Check whether --enable-libcpp was given.
5140 if test "${enable_libcpp+set}" = set; then
5141   enableval=$enable_libcpp;
5142 else
5143   enableval=default
5144 fi
5145
5146 case "$enableval" in
5147   yes) ENABLE_LIBCPP=1
5148  ;;
5149   no)  ENABLE_LIBCPP=0
5150  ;;
5151   default) ENABLE_LIBCPP=0
5152 ;;
5153   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5155    { (exit 1); exit 1; }; } ;;
5156 esac
5157
5158 # Check whether --enable-cxx11 was given.
5159 if test "${enable_cxx11+set}" = set; then
5160   enableval=$enable_cxx11;
5161 else
5162   enableval=default
5163 fi
5164
5165 case "$enableval" in
5166   yes) ENABLE_CXX11=1
5167  ;;
5168   no)  ENABLE_CXX11=0
5169  ;;
5170   default) ENABLE_CXX11=0
5171 ;;
5172   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5174    { (exit 1); exit 1; }; } ;;
5175 esac
5176
5177 # Check whether --enable-split-dwarf was given.
5178 if test "${enable_split_dwarf+set}" = set; then
5179   enableval=$enable_split_dwarf;
5180 else
5181   enableval=default
5182 fi
5183
5184 case "$enableval" in
5185   yes) ENABLE_SPLIT_DWARF=1
5186  ;;
5187   no)  ENABLE_SPLIT_DWARF=0
5188  ;;
5189   default) ENABLE_SPLIT_DWARF=0
5190 ;;
5191   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5193    { (exit 1); exit 1; }; } ;;
5194 esac
5195
5196 clang_arcmt="yes"
5197 # Check whether --enable-clang-arcmt was given.
5198 if test "${enable_clang_arcmt+set}" = set; then
5199   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5200 else
5201   enableval="yes"
5202 fi
5203
5204 case "$enableval" in
5205   yes) ENABLE_CLANG_ARCMT=1
5206  ;;
5207   no)  ENABLE_CLANG_ARCMT=0
5208  ;;
5209   default) ENABLE_CLANG_ARCMT=1
5210 ;;
5211   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5213    { (exit 1); exit 1; }; } ;;
5214 esac
5215
5216 clang_static_analyzer="yes"
5217 # Check whether --enable-clang-static-analyzer was given.
5218 if test "${enable_clang_static_analyzer+set}" = set; then
5219   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5220 else
5221   enableval="yes"
5222 fi
5223
5224 case "$enableval" in
5225   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5226  ;;
5227   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5228  ;;
5229   default) ENABLE_CLANG_STATIC_ANALYZER=1
5230 ;;
5231   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5233    { (exit 1); exit 1; }; } ;;
5234 esac
5235
5236 # Check whether --enable-clang-rewriter was given.
5237 if test "${enable_clang_rewriter+set}" = set; then
5238   enableval=$enable_clang_rewriter;
5239 else
5240   enableval="yes"
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_CLANG_REWRITER=1
5245  ;;
5246   no)
5247     if test ${clang_arcmt} != "no" ; then
5248       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5249 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5250    { (exit 1); exit 1; }; }
5251     fi
5252     if test ${clang_static_analyzer} != "no" ; then
5253       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5254 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5255    { (exit 1); exit 1; }; }
5256     fi
5257     ENABLE_CLANG_REWRITER=0
5258
5259     ;;
5260   default) ENABLE_CLANG_REWRITER=1
5261 ;;
5262   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265 esac
5266
5267 # Check whether --enable-optimized was given.
5268 if test "${enable_optimized+set}" = set; then
5269   enableval=$enable_optimized;
5270 else
5271   enableval=$optimize
5272 fi
5273
5274 if test ${enableval} = "no" ; then
5275   ENABLE_OPTIMIZED=
5276
5277 else
5278   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5279
5280 fi
5281
5282 # Check whether --enable-profiling was given.
5283 if test "${enable_profiling+set}" = set; then
5284   enableval=$enable_profiling;
5285 else
5286   enableval="no"
5287 fi
5288
5289 if test ${enableval} = "no" ; then
5290   ENABLE_PROFILING=
5291
5292 else
5293   ENABLE_PROFILING=ENABLE_PROFILING=1
5294
5295 fi
5296
5297 # Check whether --enable-assertions was given.
5298 if test "${enable_assertions+set}" = set; then
5299   enableval=$enable_assertions;
5300 else
5301   enableval="yes"
5302 fi
5303
5304 if test ${enableval} = "yes" ; then
5305   DISABLE_ASSERTIONS=
5306
5307 else
5308   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5309
5310 fi
5311
5312 # Check whether --enable-werror was given.
5313 if test "${enable_werror+set}" = set; then
5314   enableval=$enable_werror;
5315 else
5316   enableval="no"
5317 fi
5318
5319 case "$enableval" in
5320   yes) ENABLE_WERROR=1
5321  ;;
5322   no)  ENABLE_WERROR=0
5323  ;;
5324   default) ENABLE_WERROR=0
5325 ;;
5326   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5328    { (exit 1); exit 1; }; } ;;
5329 esac
5330
5331 # Check whether --enable-expensive-checks was given.
5332 if test "${enable_expensive_checks+set}" = set; then
5333   enableval=$enable_expensive_checks;
5334 else
5335   enableval="no"
5336 fi
5337
5338 if test ${enableval} = "yes" ; then
5339   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5340
5341   EXPENSIVE_CHECKS=yes
5342
5343 else
5344   ENABLE_EXPENSIVE_CHECKS=
5345
5346   EXPENSIVE_CHECKS=no
5347
5348 fi
5349
5350 # Check whether --enable-debug-runtime was given.
5351 if test "${enable_debug_runtime+set}" = set; then
5352   enableval=$enable_debug_runtime;
5353 else
5354   enableval=no
5355 fi
5356
5357 if test ${enableval} = "no" ; then
5358   DEBUG_RUNTIME=
5359
5360 else
5361   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5362
5363 fi
5364
5365 # Check whether --enable-debug-symbols was given.
5366 if test "${enable_debug_symbols+set}" = set; then
5367   enableval=$enable_debug_symbols;
5368 else
5369   enableval=no
5370 fi
5371
5372 if test ${enableval} = "no" ; then
5373   DEBUG_SYMBOLS=
5374
5375 else
5376   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5377
5378 fi
5379
5380 # Check whether --enable-keep-symbols was given.
5381 if test "${enable_keep_symbols+set}" = set; then
5382   enableval=$enable_keep_symbols;
5383 else
5384   enableval=no
5385 fi
5386
5387 if test ${enableval} = "no" ; then
5388   KEEP_SYMBOLS=
5389
5390 else
5391   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5392
5393 fi
5394
5395 # Check whether --enable-jit was given.
5396 if test "${enable_jit+set}" = set; then
5397   enableval=$enable_jit;
5398 else
5399   enableval=default
5400 fi
5401
5402 if test ${enableval} = "no"
5403 then
5404   JIT=
5405
5406 else
5407   case "$llvm_cv_target_arch" in
5408     x86)         TARGET_HAS_JIT=1
5409  ;;
5410     Sparc)       TARGET_HAS_JIT=0
5411  ;;
5412     PowerPC)     TARGET_HAS_JIT=1
5413  ;;
5414     x86_64)      TARGET_HAS_JIT=1
5415  ;;
5416     ARM)         TARGET_HAS_JIT=1
5417  ;;
5418     AArch64)     TARGET_HAS_JIT=0
5419  ;;
5420     Mips)        TARGET_HAS_JIT=1
5421  ;;
5422     XCore)       TARGET_HAS_JIT=0
5423  ;;
5424     MSP430)      TARGET_HAS_JIT=0
5425  ;;
5426     Hexagon)     TARGET_HAS_JIT=0
5427  ;;
5428     MBlaze)      TARGET_HAS_JIT=0
5429  ;;
5430     NVPTX)       TARGET_HAS_JIT=0
5431  ;;
5432     SystemZ)     TARGET_HAS_JIT=1
5433  ;;
5434     *)           TARGET_HAS_JIT=0
5435  ;;
5436   esac
5437 fi
5438
5439 # Check whether --enable-docs was given.
5440 if test "${enable_docs+set}" = set; then
5441   enableval=$enable_docs;
5442 else
5443   enableval=default
5444 fi
5445
5446 case "$enableval" in
5447   yes) ENABLE_DOCS=1
5448  ;;
5449   no)  ENABLE_DOCS=0
5450  ;;
5451   default) ENABLE_DOCS=1
5452  ;;
5453   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5454 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5455    { (exit 1); exit 1; }; } ;;
5456 esac
5457
5458 # Check whether --enable-doxygen was given.
5459 if test "${enable_doxygen+set}" = set; then
5460   enableval=$enable_doxygen;
5461 else
5462   enableval=default
5463 fi
5464
5465 case "$enableval" in
5466   yes) ENABLE_DOXYGEN=1
5467  ;;
5468   no)  ENABLE_DOXYGEN=0
5469  ;;
5470   default) ENABLE_DOXYGEN=0
5471  ;;
5472   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5473 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5474    { (exit 1); exit 1; }; } ;;
5475 esac
5476
5477 # Check whether --enable-threads was given.
5478 if test "${enable_threads+set}" = set; then
5479   enableval=$enable_threads;
5480 else
5481   enableval=default
5482 fi
5483
5484 case "$enableval" in
5485   yes) LLVM_ENABLE_THREADS=1
5486  ;;
5487   no)  LLVM_ENABLE_THREADS=0
5488  ;;
5489   default) LLVM_ENABLE_THREADS=1
5490  ;;
5491   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5492 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5493    { (exit 1); exit 1; }; } ;;
5494 esac
5495
5496 cat >>confdefs.h <<_ACEOF
5497 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5498 _ACEOF
5499
5500
5501 # Check whether --enable-pthreads was given.
5502 if test "${enable_pthreads+set}" = set; then
5503   enableval=$enable_pthreads;
5504 else
5505   enableval=default
5506 fi
5507
5508 case "$enableval" in
5509   yes) ENABLE_PTHREADS=1
5510  ;;
5511   no)  ENABLE_PTHREADS=0
5512  ;;
5513   default) ENABLE_PTHREADS=1
5514  ;;
5515   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5516 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5517    { (exit 1); exit 1; }; } ;;
5518 esac
5519
5520 # Check whether --enable-zlib was given.
5521 if test "${enable_zlib+set}" = set; then
5522   enableval=$enable_zlib;
5523 else
5524   enableval=default
5525 fi
5526
5527 case "$enableval" in
5528   yes) LLVM_ENABLE_ZLIB=1
5529  ;;
5530   no)  LLVM_ENABLE_ZLIB=0
5531  ;;
5532   default) LLVM_ENABLE_ZLIB=1
5533  ;;
5534   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5535 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5536    { (exit 1); exit 1; }; } ;;
5537 esac
5538
5539 cat >>confdefs.h <<_ACEOF
5540 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5541 _ACEOF
5542
5543
5544 # Check whether --enable-pic was given.
5545 if test "${enable_pic+set}" = set; then
5546   enableval=$enable_pic;
5547 else
5548   enableval=default
5549 fi
5550
5551 case "$enableval" in
5552   yes) ENABLE_PIC=1
5553  ;;
5554   no)  ENABLE_PIC=0
5555  ;;
5556   default) ENABLE_PIC=1
5557  ;;
5558   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5559 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5560    { (exit 1); exit 1; }; } ;;
5561 esac
5562
5563 cat >>confdefs.h <<_ACEOF
5564 #define ENABLE_PIC $ENABLE_PIC
5565 _ACEOF
5566
5567
5568 # Check whether --enable-shared was given.
5569 if test "${enable_shared+set}" = set; then
5570   enableval=$enable_shared;
5571 else
5572   enableval=default
5573 fi
5574
5575 case "$enableval" in
5576   yes) ENABLE_SHARED=1
5577  ;;
5578   no)  ENABLE_SHARED=0
5579  ;;
5580   default) ENABLE_SHARED=0
5581  ;;
5582   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5583 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5584    { (exit 1); exit 1; }; } ;;
5585 esac
5586
5587 # Check whether --enable-embed-stdcxx was given.
5588 if test "${enable_embed_stdcxx+set}" = set; then
5589   enableval=$enable_embed_stdcxx;
5590 else
5591   enableval=default
5592 fi
5593
5594 case "$enableval" in
5595   yes) ENABLE_EMBED_STDCXX=1
5596  ;;
5597   no)  ENABLE_EMBED_STDCXX=0
5598  ;;
5599   default) ENABLE_EMBED_STDCXX=0
5600  ;;
5601   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5602 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5603    { (exit 1); exit 1; }; } ;;
5604 esac
5605
5606 # Check whether --enable-timestamps was given.
5607 if test "${enable_timestamps+set}" = set; then
5608   enableval=$enable_timestamps;
5609 else
5610   enableval=default
5611 fi
5612
5613 case "$enableval" in
5614   yes) ENABLE_TIMESTAMPS=1
5615  ;;
5616   no)  ENABLE_TIMESTAMPS=0
5617  ;;
5618   default) ENABLE_TIMESTAMPS=1
5619  ;;
5620   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5621 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5622    { (exit 1); exit 1; }; } ;;
5623 esac
5624
5625 cat >>confdefs.h <<_ACEOF
5626 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5627 _ACEOF
5628
5629
5630
5631 # Check whether --enable-backtraces was given.
5632 if test "${enable_backtraces+set}" = set; then
5633   enableval=$enable_backtraces;
5634 else
5635   enableval=default
5636 fi
5637
5638 case "$enableval" in
5639   yes) ENABLE_BACKTRACES=1
5640  ;;
5641   no)  ENABLE_BACKTRACES=0
5642  ;;
5643   default) ENABLE_BACKTRACES=1
5644  ;;
5645   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5646 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5647    { (exit 1); exit 1; }; } ;;
5648 esac
5649
5650 cat >>confdefs.h <<_ACEOF
5651 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5652 _ACEOF
5653
5654
5655 TARGETS_TO_BUILD=""
5656 # Check whether --enable-targets was given.
5657 if test "${enable_targets+set}" = set; then
5658   enableval=$enable_targets;
5659 else
5660   enableval=all
5661 fi
5662
5663 if test "$enableval" = host-only ; then
5664   enableval=host
5665 fi
5666 case "$enableval" in
5667   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5668   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5669       case "$a_target" in
5670         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5671         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5673         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5674         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5675         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5676         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5677         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5679         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5680         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5681         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5682         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5683         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5684         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5685         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5686         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5687         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5688         host) case "$llvm_cv_target_arch" in
5689             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5690             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5691             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5692             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5693             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5694             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5695             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5696             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5697             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5698             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5699             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5700             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5701             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5702             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5703 echo "$as_me: error: Can not set target to build" >&2;}
5704    { (exit 1); exit 1; }; } ;;
5705           esac ;;
5706         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5707 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5708    { (exit 1); exit 1; }; } ;;
5709       esac
5710   done
5711   ;;
5712 esac
5713
5714 # Check whether --enable-experimental-targets was given.
5715 if test "${enable_experimental_targets+set}" = set; then
5716   enableval=$enable_experimental_targets;
5717 else
5718   enableval=disable
5719 fi
5720
5721
5722 if test ${enableval} != "disable"
5723 then
5724   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5725 fi
5726
5727 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5728
5729
5730 for a_target in $TARGETS_TO_BUILD; do
5731   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5732
5733 cat >>confdefs.h <<_ACEOF
5734 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5735 _ACEOF
5736
5737     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5738     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5739     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5740     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5741     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5742       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5743     fi
5744     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5745       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5746     fi
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5750 _ACEOF
5751
5752
5753 cat >>confdefs.h <<_ACEOF
5754 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5755 _ACEOF
5756
5757
5758 cat >>confdefs.h <<_ACEOF
5759 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5760 _ACEOF
5761
5762
5763 cat >>confdefs.h <<_ACEOF
5764 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5765 _ACEOF
5766
5767     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5768
5769 cat >>confdefs.h <<_ACEOF
5770 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5771 _ACEOF
5772
5773     fi
5774     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5775
5776 cat >>confdefs.h <<_ACEOF
5777 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5778 _ACEOF
5779
5780     fi
5781   fi
5782 done
5783
5784 LLVM_ENUM_TARGETS=""
5785 LLVM_ENUM_ASM_PRINTERS=""
5786 LLVM_ENUM_ASM_PARSERS=""
5787 LLVM_ENUM_DISASSEMBLERS=""
5788 for target_to_build in $TARGETS_TO_BUILD; do
5789   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5790   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5791     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5792   fi
5793   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5794     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5795   fi
5796   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5797     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5798   fi
5799 done
5800
5801
5802
5803
5804
5805
5806 # Check whether --with-optimize-option was given.
5807 if test "${with_optimize_option+set}" = set; then
5808   withval=$with_optimize_option;
5809 else
5810   withval=default
5811 fi
5812
5813 { echo "$as_me:$LINENO: checking optimization flags" >&5
5814 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5815 case "$withval" in
5816   default)
5817     case "$llvm_cv_os_type" in
5818     FreeBSD) optimize_option=-O2 ;;
5819     MingW) optimize_option=-O2 ;;
5820     *)     optimize_option=-O3 ;;
5821     esac ;;
5822   *) optimize_option="$withval" ;;
5823 esac
5824 OPTIMIZE_OPTION=$optimize_option
5825
5826 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5827 echo "${ECHO_T}$optimize_option" >&6; }
5828
5829
5830 # Check whether --with-extra-options was given.
5831 if test "${with_extra_options+set}" = set; then
5832   withval=$with_extra_options;
5833 else
5834   withval=default
5835 fi
5836
5837 case "$withval" in
5838   default) EXTRA_OPTIONS= ;;
5839   *) EXTRA_OPTIONS=$withval ;;
5840 esac
5841 EXTRA_OPTIONS=$EXTRA_OPTIONS
5842
5843
5844
5845 # Check whether --with-extra-ld-options was given.
5846 if test "${with_extra_ld_options+set}" = set; then
5847   withval=$with_extra_ld_options;
5848 else
5849   withval=default
5850 fi
5851
5852 case "$withval" in
5853   default) EXTRA_LD_OPTIONS= ;;
5854   *) EXTRA_LD_OPTIONS=$withval ;;
5855 esac
5856 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5857
5858
5859 # Check whether --enable-bindings was given.
5860 if test "${enable_bindings+set}" = set; then
5861   enableval=$enable_bindings;
5862 else
5863   enableval=default
5864 fi
5865
5866 BINDINGS_TO_BUILD=""
5867 case "$enableval" in
5868   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5869   all ) BINDINGS_TO_BUILD="ocaml" ;;
5870   none | no) BINDINGS_TO_BUILD="" ;;
5871   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5872       case "$a_binding" in
5873         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5874         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5875 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5876    { (exit 1); exit 1; }; } ;;
5877       esac
5878   done
5879   ;;
5880 esac
5881
5882
5883 # Check whether --with-ocaml-libdir was given.
5884 if test "${with_ocaml_libdir+set}" = set; then
5885   withval=$with_ocaml_libdir;
5886 else
5887   withval=auto
5888 fi
5889
5890 case "$withval" in
5891   auto) with_ocaml_libdir="$withval" ;;
5892   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5893   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5894 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5895    { (exit 1); exit 1; }; } ;;
5896 esac
5897
5898
5899 # Check whether --with-clang-srcdir was given.
5900 if test "${with_clang_srcdir+set}" = set; then
5901   withval=$with_clang_srcdir;
5902 else
5903   withval="-"
5904 fi
5905
5906 case "$withval" in
5907   -) clang_src_root="" ;;
5908   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5909   *) clang_src_root="$ac_pwd/$withval" ;;
5910 esac
5911 CLANG_SRC_ROOT=$clang_src_root
5912
5913
5914
5915 # Check whether --with-clang-resource-dir was given.
5916 if test "${with_clang_resource_dir+set}" = set; then
5917   withval=$with_clang_resource_dir;
5918 else
5919   withval=""
5920 fi
5921
5922
5923 cat >>confdefs.h <<_ACEOF
5924 #define CLANG_RESOURCE_DIR "$withval"
5925 _ACEOF
5926
5927
5928
5929 # Check whether --with-c-include-dirs was given.
5930 if test "${with_c_include_dirs+set}" = set; then
5931   withval=$with_c_include_dirs;
5932 else
5933   withval=""
5934 fi
5935
5936
5937 cat >>confdefs.h <<_ACEOF
5938 #define C_INCLUDE_DIRS "$withval"
5939 _ACEOF
5940
5941
5942 # Clang normally uses the system c++ headers and libraries. With this option,
5943 # clang will use the ones provided by a gcc installation instead. This option should
5944 # be passed the same value that was used with --prefix when configuring gcc.
5945
5946 # Check whether --with-gcc-toolchain was given.
5947 if test "${with_gcc_toolchain+set}" = set; then
5948   withval=$with_gcc_toolchain;
5949 else
5950   withval=""
5951 fi
5952
5953
5954 cat >>confdefs.h <<_ACEOF
5955 #define GCC_INSTALL_PREFIX "$withval"
5956 _ACEOF
5957
5958
5959
5960 # Check whether --with-default-sysroot was given.
5961 if test "${with_default_sysroot+set}" = set; then
5962   withval=$with_default_sysroot;
5963 else
5964   withval=""
5965 fi
5966
5967
5968 cat >>confdefs.h <<_ACEOF
5969 #define DEFAULT_SYSROOT "$withval"
5970 _ACEOF
5971
5972
5973
5974 # Check whether --with-binutils-include was given.
5975 if test "${with_binutils_include+set}" = set; then
5976   withval=$with_binutils_include;
5977 else
5978   withval=default
5979 fi
5980
5981 case "$withval" in
5982   default) WITH_BINUTILS_INCDIR=default ;;
5983   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5984   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5985 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5986    { (exit 1); exit 1; }; } ;;
5987 esac
5988 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5989   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5990
5991   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5992      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5993      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5994 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5995    { (exit 1); exit 1; }; };
5996   fi
5997 fi
5998
5999
6000 # Check whether --with-bug-report-url was given.
6001 if test "${with_bug_report_url+set}" = set; then
6002   withval=$with_bug_report_url;
6003 else
6004   withval="http://llvm.org/bugs/"
6005 fi
6006
6007
6008 cat >>confdefs.h <<_ACEOF
6009 #define BUG_REPORT_URL "$withval"
6010 _ACEOF
6011
6012
6013 # Check whether --enable-libffi was given.
6014 if test "${enable_libffi+set}" = set; then
6015   enableval=$enable_libffi; case "$enableval" in
6016     yes) llvm_cv_enable_libffi="yes" ;;
6017     no)  llvm_cv_enable_libffi="no"  ;;
6018     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6019 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6020    { (exit 1); exit 1; }; } ;;
6021   esac
6022 else
6023   llvm_cv_enable_libffi=no
6024 fi
6025
6026
6027
6028 # Check whether --with-internal-prefix was given.
6029 if test "${with_internal_prefix+set}" = set; then
6030   withval=$with_internal_prefix;
6031 else
6032   withval=""
6033 fi
6034
6035 INTERNAL_PREFIX=$withval
6036
6037
6038
6039 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6040 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6041 if test "${lt_cv_path_NM+set}" = set; then
6042   echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044   if test -n "$NM"; then
6045   # Let the user override the test.
6046   lt_cv_path_NM="$NM"
6047 else
6048   lt_nm_to_check="${ac_tool_prefix}nm"
6049   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6050     lt_nm_to_check="$lt_nm_to_check nm"
6051   fi
6052   for lt_tmp_nm in $lt_nm_to_check; do
6053     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6054     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6055       IFS="$lt_save_ifs"
6056       test -z "$ac_dir" && ac_dir=.
6057       tmp_nm="$ac_dir/$lt_tmp_nm"
6058       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6059         # Check to see if the nm accepts a BSD-compat flag.
6060         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6061         #   nm: unknown option "B" ignored
6062         # Tru64's nm complains that /dev/null is an invalid object file
6063         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6064         */dev/null* | *'Invalid file or object type'*)
6065           lt_cv_path_NM="$tmp_nm -B"
6066           break
6067           ;;
6068         *)
6069           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6070           */dev/null*)
6071             lt_cv_path_NM="$tmp_nm -p"
6072             break
6073             ;;
6074           *)
6075             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6076             continue # so that we can try to find one that supports BSD flags
6077             ;;
6078           esac
6079           ;;
6080         esac
6081       fi
6082     done
6083     IFS="$lt_save_ifs"
6084   done
6085   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6086 fi
6087 fi
6088 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6089 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6090 NM="$lt_cv_path_NM"
6091
6092
6093
6094 { echo "$as_me:$LINENO: checking for GNU make" >&5
6095 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6096 if test "${llvm_cv_gnu_make_command+set}" = set; then
6097   echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099   llvm_cv_gnu_make_command=''
6100  for a in "$MAKE" make gmake gnumake ; do
6101   if test -z "$a" ; then continue ; fi ;
6102   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6103   then
6104    llvm_cv_gnu_make_command=$a ;
6105    break;
6106   fi
6107  done
6108 fi
6109 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6110 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6111  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6112    ifGNUmake='' ;
6113  else
6114    ifGNUmake='#' ;
6115    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6116 echo "${ECHO_T}\"Not found\"" >&6; };
6117  fi
6118
6119
6120 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6121 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6122 LN_S=$as_ln_s
6123 if test "$LN_S" = "ln -s"; then
6124   { echo "$as_me:$LINENO: result: yes" >&5
6125 echo "${ECHO_T}yes" >&6; }
6126 else
6127   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6128 echo "${ECHO_T}no, using $LN_S" >&6; }
6129 fi
6130
6131 # Extract the first word of "cmp", so it can be a program name with args.
6132 set dummy cmp; ac_word=$2
6133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135 if test "${ac_cv_path_CMP+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   case $CMP in
6139   [\\/]* | ?:[\\/]*)
6140   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6141   ;;
6142   *)
6143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148   for ac_exec_ext in '' $ac_executable_extensions; do
6149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6150     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155 done
6156 IFS=$as_save_IFS
6157
6158   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6159   ;;
6160 esac
6161 fi
6162 CMP=$ac_cv_path_CMP
6163 if test -n "$CMP"; then
6164   { echo "$as_me:$LINENO: result: $CMP" >&5
6165 echo "${ECHO_T}$CMP" >&6; }
6166 else
6167   { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6169 fi
6170
6171
6172 # Extract the first word of "cp", so it can be a program name with args.
6173 set dummy cp; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_path_CP+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   case $CP in
6180   [\\/]* | ?:[\\/]*)
6181   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6182   ;;
6183   *)
6184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189   for ac_exec_ext in '' $ac_executable_extensions; do
6190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6198
6199   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6200   ;;
6201 esac
6202 fi
6203 CP=$ac_cv_path_CP
6204 if test -n "$CP"; then
6205   { echo "$as_me:$LINENO: result: $CP" >&5
6206 echo "${ECHO_T}$CP" >&6; }
6207 else
6208   { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6210 fi
6211
6212
6213 # Extract the first word of "date", so it can be a program name with args.
6214 set dummy date; ac_word=$2
6215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217 if test "${ac_cv_path_DATE+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   case $DATE in
6221   [\\/]* | ?:[\\/]*)
6222   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6223   ;;
6224   *)
6225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230   for ac_exec_ext in '' $ac_executable_extensions; do
6231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6232     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234     break 2
6235   fi
6236 done
6237 done
6238 IFS=$as_save_IFS
6239
6240   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6241   ;;
6242 esac
6243 fi
6244 DATE=$ac_cv_path_DATE
6245 if test -n "$DATE"; then
6246   { echo "$as_me:$LINENO: result: $DATE" >&5
6247 echo "${ECHO_T}$DATE" >&6; }
6248 else
6249   { echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6; }
6251 fi
6252
6253
6254 # Extract the first word of "find", so it can be a program name with args.
6255 set dummy find; ac_word=$2
6256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6258 if test "${ac_cv_path_FIND+set}" = set; then
6259   echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261   case $FIND in
6262   [\\/]* | ?:[\\/]*)
6263   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6264   ;;
6265   *)
6266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271   for ac_exec_ext in '' $ac_executable_extensions; do
6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6273     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6282   ;;
6283 esac
6284 fi
6285 FIND=$ac_cv_path_FIND
6286 if test -n "$FIND"; then
6287   { echo "$as_me:$LINENO: result: $FIND" >&5
6288 echo "${ECHO_T}$FIND" >&6; }
6289 else
6290   { echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6; }
6292 fi
6293
6294
6295 # Extract the first word of "grep", so it can be a program name with args.
6296 set dummy grep; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_path_GREP+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   case $GREP in
6303   [\\/]* | ?:[\\/]*)
6304   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6305   ;;
6306   *)
6307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6323   ;;
6324 esac
6325 fi
6326 GREP=$ac_cv_path_GREP
6327 if test -n "$GREP"; then
6328   { echo "$as_me:$LINENO: result: $GREP" >&5
6329 echo "${ECHO_T}$GREP" >&6; }
6330 else
6331   { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6333 fi
6334
6335
6336 # Extract the first word of "mkdir", so it can be a program name with args.
6337 set dummy mkdir; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_path_MKDIR+set}" = set; then
6341   echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343   case $MKDIR in
6344   [\\/]* | ?:[\\/]*)
6345   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6346   ;;
6347   *)
6348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353   for ac_exec_ext in '' $ac_executable_extensions; do
6354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6364   ;;
6365 esac
6366 fi
6367 MKDIR=$ac_cv_path_MKDIR
6368 if test -n "$MKDIR"; then
6369   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6370 echo "${ECHO_T}$MKDIR" >&6; }
6371 else
6372   { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6374 fi
6375
6376
6377 # Extract the first word of "mv", so it can be a program name with args.
6378 set dummy mv; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_path_MV+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384   case $MV in
6385   [\\/]* | ?:[\\/]*)
6386   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6387   ;;
6388   *)
6389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394   for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6405   ;;
6406 esac
6407 fi
6408 MV=$ac_cv_path_MV
6409 if test -n "$MV"; then
6410   { echo "$as_me:$LINENO: result: $MV" >&5
6411 echo "${ECHO_T}$MV" >&6; }
6412 else
6413   { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6415 fi
6416
6417
6418 if test -n "$ac_tool_prefix"; then
6419   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_prog_RANLIB+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   if test -n "$RANLIB"; then
6427   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434   for ac_exec_ext in '' $ac_executable_extensions; do
6435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6436     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 RANLIB=$ac_cv_prog_RANLIB
6447 if test -n "$RANLIB"; then
6448   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6449 echo "${ECHO_T}$RANLIB" >&6; }
6450 else
6451   { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6453 fi
6454
6455
6456 fi
6457 if test -z "$ac_cv_prog_RANLIB"; then
6458   ac_ct_RANLIB=$RANLIB
6459   # Extract the first word of "ranlib", so it can be a program name with args.
6460 set dummy ranlib; ac_word=$2
6461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   if test -n "$ac_ct_RANLIB"; then
6467   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474   for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_prog_ac_ct_RANLIB="ranlib"
6477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6487 if test -n "$ac_ct_RANLIB"; then
6488   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6489 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6490 else
6491   { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6493 fi
6494
6495   if test "x$ac_ct_RANLIB" = x; then
6496     RANLIB=":"
6497   else
6498     case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6501 whose name does not start with the host triplet.  If you think this
6502 configuration is useful to you, please write to autoconf@gnu.org." >&5
6503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6504 whose name does not start with the host triplet.  If you think this
6505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6506 ac_tool_warned=yes ;;
6507 esac
6508     RANLIB=$ac_ct_RANLIB
6509   fi
6510 else
6511   RANLIB="$ac_cv_prog_RANLIB"
6512 fi
6513
6514 if test -n "$ac_tool_prefix"; then
6515   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ar; ac_word=$2
6517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519 if test "${ac_cv_prog_AR+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   if test -n "$AR"; then
6523   ac_cv_prog_AR="$AR" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530   for ac_exec_ext in '' $ac_executable_extensions; do
6531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6532     ac_cv_prog_AR="${ac_tool_prefix}ar"
6533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 AR=$ac_cv_prog_AR
6543 if test -n "$AR"; then
6544   { echo "$as_me:$LINENO: result: $AR" >&5
6545 echo "${ECHO_T}$AR" >&6; }
6546 else
6547   { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6549 fi
6550
6551
6552 fi
6553 if test -z "$ac_cv_prog_AR"; then
6554   ac_ct_AR=$AR
6555   # Extract the first word of "ar", so it can be a program name with args.
6556 set dummy ar; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   if test -n "$ac_ct_AR"; then
6563   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570   for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_prog_ac_ct_AR="ar"
6573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6583 if test -n "$ac_ct_AR"; then
6584   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6585 echo "${ECHO_T}$ac_ct_AR" >&6; }
6586 else
6587   { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6589 fi
6590
6591   if test "x$ac_ct_AR" = x; then
6592     AR="false"
6593   else
6594     case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet.  If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&5
6599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6600 whose name does not start with the host triplet.  If you think this
6601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6602 ac_tool_warned=yes ;;
6603 esac
6604     AR=$ac_ct_AR
6605   fi
6606 else
6607   AR="$ac_cv_prog_AR"
6608 fi
6609
6610 # Extract the first word of "rm", so it can be a program name with args.
6611 set dummy rm; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_path_RM+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   case $RM in
6618   [\\/]* | ?:[\\/]*)
6619   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6620   ;;
6621   *)
6622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627   for ac_exec_ext in '' $ac_executable_extensions; do
6628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6629     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6638   ;;
6639 esac
6640 fi
6641 RM=$ac_cv_path_RM
6642 if test -n "$RM"; then
6643   { echo "$as_me:$LINENO: result: $RM" >&5
6644 echo "${ECHO_T}$RM" >&6; }
6645 else
6646   { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6648 fi
6649
6650
6651 # Extract the first word of "sed", so it can be a program name with args.
6652 set dummy sed; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_path_SED+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658   case $SED in
6659   [\\/]* | ?:[\\/]*)
6660   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6661   ;;
6662   *)
6663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668   for ac_exec_ext in '' $ac_executable_extensions; do
6669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6670     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6679   ;;
6680 esac
6681 fi
6682 SED=$ac_cv_path_SED
6683 if test -n "$SED"; then
6684   { echo "$as_me:$LINENO: result: $SED" >&5
6685 echo "${ECHO_T}$SED" >&6; }
6686 else
6687   { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6689 fi
6690
6691
6692 # Extract the first word of "tar", so it can be a program name with args.
6693 set dummy tar; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_TAR+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   case $TAR in
6700   [\\/]* | ?:[\\/]*)
6701   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6702   ;;
6703   *)
6704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709   for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6720   ;;
6721 esac
6722 fi
6723 TAR=$ac_cv_path_TAR
6724 if test -n "$TAR"; then
6725   { echo "$as_me:$LINENO: result: $TAR" >&5
6726 echo "${ECHO_T}$TAR" >&6; }
6727 else
6728   { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6730 fi
6731
6732
6733 # Extract the first word of "pwd", so it can be a program name with args.
6734 set dummy pwd; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_BINPWD+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   case $BINPWD in
6741   [\\/]* | ?:[\\/]*)
6742   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6743   ;;
6744   *)
6745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6761   ;;
6762 esac
6763 fi
6764 BINPWD=$ac_cv_path_BINPWD
6765 if test -n "$BINPWD"; then
6766   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6767 echo "${ECHO_T}$BINPWD" >&6; }
6768 else
6769   { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6771 fi
6772
6773
6774
6775 # Extract the first word of "Graphviz", so it can be a program name with args.
6776 set dummy Graphviz; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   case $GRAPHVIZ in
6783   [\\/]* | ?:[\\/]*)
6784   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6785   ;;
6786   *)
6787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792   for ac_exec_ext in '' $ac_executable_extensions; do
6793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6801
6802   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6803   ;;
6804 esac
6805 fi
6806 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6807 if test -n "$GRAPHVIZ"; then
6808   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6809 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6810 else
6811   { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6813 fi
6814
6815
6816 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6817
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_GRAPHVIZ 1
6820 _ACEOF
6821
6822     if test "$llvm_cv_os_type" = "MingW" ; then
6823     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6824   fi
6825
6826 cat >>confdefs.h <<_ACEOF
6827 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6828 _ACEOF
6829
6830 fi
6831 # Extract the first word of "dot", so it can be a program name with args.
6832 set dummy dot; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_DOT+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   case $DOT in
6839   [\\/]* | ?:[\\/]*)
6840   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6841   ;;
6842   *)
6843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6859   ;;
6860 esac
6861 fi
6862 DOT=$ac_cv_path_DOT
6863 if test -n "$DOT"; then
6864   { echo "$as_me:$LINENO: result: $DOT" >&5
6865 echo "${ECHO_T}$DOT" >&6; }
6866 else
6867   { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6869 fi
6870
6871
6872 if test "$DOT" != "echo dot" ; then
6873
6874 cat >>confdefs.h <<\_ACEOF
6875 #define HAVE_DOT 1
6876 _ACEOF
6877
6878     if test "$llvm_cv_os_type" = "MingW" ; then
6879     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6880   fi
6881
6882 cat >>confdefs.h <<_ACEOF
6883 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6884 _ACEOF
6885
6886 fi
6887 # Extract the first word of "fdp", so it can be a program name with args.
6888 set dummy fdp; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_FDP+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   case $FDP in
6895   [\\/]* | ?:[\\/]*)
6896   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6897   ;;
6898   *)
6899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904   for ac_exec_ext in '' $ac_executable_extensions; do
6905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6915   ;;
6916 esac
6917 fi
6918 FDP=$ac_cv_path_FDP
6919 if test -n "$FDP"; then
6920   { echo "$as_me:$LINENO: result: $FDP" >&5
6921 echo "${ECHO_T}$FDP" >&6; }
6922 else
6923   { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6926
6927
6928 if test "$FDP" != "echo fdp" ; then
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_FDP 1
6932 _ACEOF
6933
6934     if test "$llvm_cv_os_type" = "MingW" ; then
6935     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6936   fi
6937
6938 cat >>confdefs.h <<_ACEOF
6939 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6940 _ACEOF
6941
6942 fi
6943 # Extract the first word of "neato", so it can be a program name with args.
6944 set dummy neato; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_NEATO+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   case $NEATO in
6951   [\\/]* | ?:[\\/]*)
6952   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6953   ;;
6954   *)
6955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   for ac_exec_ext in '' $ac_executable_extensions; do
6961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6969
6970   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6971   ;;
6972 esac
6973 fi
6974 NEATO=$ac_cv_path_NEATO
6975 if test -n "$NEATO"; then
6976   { echo "$as_me:$LINENO: result: $NEATO" >&5
6977 echo "${ECHO_T}$NEATO" >&6; }
6978 else
6979   { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6981 fi
6982
6983
6984 if test "$NEATO" != "echo neato" ; then
6985
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_NEATO 1
6988 _ACEOF
6989
6990     if test "$llvm_cv_os_type" = "MingW" ; then
6991     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6992   fi
6993
6994 cat >>confdefs.h <<_ACEOF
6995 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6996 _ACEOF
6997
6998 fi
6999 # Extract the first word of "twopi", so it can be a program name with args.
7000 set dummy twopi; ac_word=$2
7001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7003 if test "${ac_cv_path_TWOPI+set}" = set; then
7004   echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006   case $TWOPI in
7007   [\\/]* | ?:[\\/]*)
7008   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7009   ;;
7010   *)
7011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016   for ac_exec_ext in '' $ac_executable_extensions; do
7017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7018     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7027   ;;
7028 esac
7029 fi
7030 TWOPI=$ac_cv_path_TWOPI
7031 if test -n "$TWOPI"; then
7032   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7033 echo "${ECHO_T}$TWOPI" >&6; }
7034 else
7035   { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7037 fi
7038
7039
7040 if test "$TWOPI" != "echo twopi" ; then
7041
7042 cat >>confdefs.h <<\_ACEOF
7043 #define HAVE_TWOPI 1
7044 _ACEOF
7045
7046     if test "$llvm_cv_os_type" = "MingW" ; then
7047     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7048   fi
7049
7050 cat >>confdefs.h <<_ACEOF
7051 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7052 _ACEOF
7053
7054 fi
7055 # Extract the first word of "circo", so it can be a program name with args.
7056 set dummy circo; ac_word=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_CIRCO+set}" = set; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062   case $CIRCO in
7063   [\\/]* | ?:[\\/]*)
7064   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7065   ;;
7066   *)
7067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070   IFS=$as_save_IFS
7071   test -z "$as_dir" && as_dir=.
7072   for ac_exec_ext in '' $ac_executable_extensions; do
7073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077   fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7081
7082   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7083   ;;
7084 esac
7085 fi
7086 CIRCO=$ac_cv_path_CIRCO
7087 if test -n "$CIRCO"; then
7088   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7089 echo "${ECHO_T}$CIRCO" >&6; }
7090 else
7091   { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7093 fi
7094
7095
7096 if test "$CIRCO" != "echo circo" ; then
7097
7098 cat >>confdefs.h <<\_ACEOF
7099 #define HAVE_CIRCO 1
7100 _ACEOF
7101
7102     if test "$llvm_cv_os_type" = "MingW" ; then
7103     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7104   fi
7105
7106 cat >>confdefs.h <<_ACEOF
7107 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7108 _ACEOF
7109
7110 fi
7111 for ac_prog in gv gsview32
7112 do
7113   # Extract the first word of "$ac_prog", so it can be a program name with args.
7114 set dummy $ac_prog; ac_word=$2
7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117 if test "${ac_cv_path_GV+set}" = set; then
7118   echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120   case $GV in
7121   [\\/]* | ?:[\\/]*)
7122   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7123   ;;
7124   *)
7125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130   for ac_exec_ext in '' $ac_executable_extensions; do
7131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7132     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7139
7140   ;;
7141 esac
7142 fi
7143 GV=$ac_cv_path_GV
7144 if test -n "$GV"; then
7145   { echo "$as_me:$LINENO: result: $GV" >&5
7146 echo "${ECHO_T}$GV" >&6; }
7147 else
7148   { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7150 fi
7151
7152
7153   test -n "$GV" && break
7154 done
7155 test -n "$GV" || GV="echo gv"
7156
7157 if test "$GV" != "echo gv" ; then
7158
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_GV 1
7161 _ACEOF
7162
7163     if test "$llvm_cv_os_type" = "MingW" ; then
7164     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7165   fi
7166
7167 cat >>confdefs.h <<_ACEOF
7168 #define LLVM_PATH_GV "$GV${EXEEXT}"
7169 _ACEOF
7170
7171 fi
7172 # Extract the first word of "dotty", so it can be a program name with args.
7173 set dummy dotty; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_DOTTY+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   case $DOTTY in
7180   [\\/]* | ?:[\\/]*)
7181   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7182   ;;
7183   *)
7184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189   for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7200   ;;
7201 esac
7202 fi
7203 DOTTY=$ac_cv_path_DOTTY
7204 if test -n "$DOTTY"; then
7205   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7206 echo "${ECHO_T}$DOTTY" >&6; }
7207 else
7208   { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7210 fi
7211
7212
7213 if test "$DOTTY" != "echo dotty" ; then
7214
7215 cat >>confdefs.h <<\_ACEOF
7216 #define HAVE_DOTTY 1
7217 _ACEOF
7218
7219     if test "$llvm_cv_os_type" = "MingW" ; then
7220     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7221   fi
7222
7223 cat >>confdefs.h <<_ACEOF
7224 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7225 _ACEOF
7226
7227 fi
7228 # Extract the first word of "xdot.py", so it can be a program name with args.
7229 set dummy xdot.py; ac_word=$2
7230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   case $XDOT_PY in
7236   [\\/]* | ?:[\\/]*)
7237   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7238   ;;
7239   *)
7240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243   IFS=$as_save_IFS
7244   test -z "$as_dir" && as_dir=.
7245   for ac_exec_ext in '' $ac_executable_extensions; do
7246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7247     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249     break 2
7250   fi
7251 done
7252 done
7253 IFS=$as_save_IFS
7254
7255   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7256   ;;
7257 esac
7258 fi
7259 XDOT_PY=$ac_cv_path_XDOT_PY
7260 if test -n "$XDOT_PY"; then
7261   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7262 echo "${ECHO_T}$XDOT_PY" >&6; }
7263 else
7264   { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7266 fi
7267
7268
7269 if test "$XDOT_PY" != "echo xdot.py" ; then
7270
7271 cat >>confdefs.h <<\_ACEOF
7272 #define HAVE_XDOT_PY 1
7273 _ACEOF
7274
7275     if test "$llvm_cv_os_type" = "MingW" ; then
7276     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7277   fi
7278
7279 cat >>confdefs.h <<_ACEOF
7280 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7281 _ACEOF
7282
7283 fi
7284
7285 # Find a good install program.  We prefer a C program (faster),
7286 # so one script is as good as another.  But avoid the broken or
7287 # incompatible versions:
7288 # SysV /etc/install, /usr/sbin/install
7289 # SunOS /usr/etc/install
7290 # IRIX /sbin/install
7291 # AIX /bin/install
7292 # AmigaOS /C/install, which installs bootblocks on floppy discs
7293 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7294 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7296 # OS/2's system install, which has a completely different semantic
7297 # ./install, which can be erroneously created by make from ./install.sh.
7298 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7299 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7300 if test -z "$INSTALL"; then
7301 if test "${ac_cv_path_install+set}" = set; then
7302   echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309   # Account for people who put trailing slashes in PATH elements.
7310 case $as_dir/ in
7311   ./ | .// | /cC/* | \
7312   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7313   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7314   /usr/ucb/* ) ;;
7315   *)
7316     # OSF1 and SCO ODT 3.0 have their own names for install.
7317     # Don't use installbsd from OSF since it installs stuff as root
7318     # by default.
7319     for ac_prog in ginstall scoinst install; do
7320       for ac_exec_ext in '' $ac_executable_extensions; do
7321         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7322           if test $ac_prog = install &&
7323             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7324             # AIX install.  It has an incompatible calling convention.
7325             :
7326           elif test $ac_prog = install &&
7327             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7328             # program-specific install script used by HP pwplus--don't use.
7329             :
7330           else
7331             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7332             break 3
7333           fi
7334         fi
7335       done
7336     done
7337     ;;
7338 esac
7339 done
7340 IFS=$as_save_IFS
7341
7342
7343 fi
7344   if test "${ac_cv_path_install+set}" = set; then
7345     INSTALL=$ac_cv_path_install
7346   else
7347     # As a last resort, use the slow shell script.  Don't cache a
7348     # value for INSTALL within a source directory, because that will
7349     # break other packages using the cache if that directory is
7350     # removed, or if the value is a relative name.
7351     INSTALL=$ac_install_sh
7352   fi
7353 fi
7354 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7355 echo "${ECHO_T}$INSTALL" >&6; }
7356
7357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7358 # It thinks the first close brace ends the variable substitution.
7359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7360
7361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7362
7363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7364
7365 case "$INSTALL" in
7366  [\\/$]* | ?:[\\/]* ) ;;
7367  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7368 esac
7369
7370 # Extract the first word of "bzip2", so it can be a program name with args.
7371 set dummy bzip2; ac_word=$2
7372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7374 if test "${ac_cv_path_BZIP2+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   case $BZIP2 in
7378   [\\/]* | ?:[\\/]*)
7379   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7380   ;;
7381   *)
7382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397   ;;
7398 esac
7399 fi
7400 BZIP2=$ac_cv_path_BZIP2
7401 if test -n "$BZIP2"; then
7402   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7403 echo "${ECHO_T}$BZIP2" >&6; }
7404 else
7405   { echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6; }
7407 fi
7408
7409
7410 # Extract the first word of "cat", so it can be a program name with args.
7411 set dummy cat; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_CAT+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   case $CAT in
7418   [\\/]* | ?:[\\/]*)
7419   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7420   ;;
7421   *)
7422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437   ;;
7438 esac
7439 fi
7440 CAT=$ac_cv_path_CAT
7441 if test -n "$CAT"; then
7442   { echo "$as_me:$LINENO: result: $CAT" >&5
7443 echo "${ECHO_T}$CAT" >&6; }
7444 else
7445   { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7447 fi
7448
7449
7450 # Extract the first word of "doxygen", so it can be a program name with args.
7451 set dummy doxygen; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   case $DOXYGEN in
7458   [\\/]* | ?:[\\/]*)
7459   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7460   ;;
7461   *)
7462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477   ;;
7478 esac
7479 fi
7480 DOXYGEN=$ac_cv_path_DOXYGEN
7481 if test -n "$DOXYGEN"; then
7482   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7483 echo "${ECHO_T}$DOXYGEN" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489
7490 # Extract the first word of "groff", so it can be a program name with args.
7491 set dummy groff; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_GROFF+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   case $GROFF in
7498   [\\/]* | ?:[\\/]*)
7499   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7500   ;;
7501   *)
7502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517   ;;
7518 esac
7519 fi
7520 GROFF=$ac_cv_path_GROFF
7521 if test -n "$GROFF"; then
7522   { echo "$as_me:$LINENO: result: $GROFF" >&5
7523 echo "${ECHO_T}$GROFF" >&6; }
7524 else
7525   { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7527 fi
7528
7529
7530 # Extract the first word of "gzip", so it can be a program name with args.
7531 set dummy gzip; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   case $GZIPBIN in
7538   [\\/]* | ?:[\\/]*)
7539   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7540   ;;
7541   *)
7542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   test -z "$as_dir" && as_dir=.
7547   for ac_exec_ext in '' $ac_executable_extensions; do
7548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551     break 2
7552   fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7556
7557   ;;
7558 esac
7559 fi
7560 GZIPBIN=$ac_cv_path_GZIPBIN
7561 if test -n "$GZIPBIN"; then
7562   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7563 echo "${ECHO_T}$GZIPBIN" >&6; }
7564 else
7565   { echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6; }
7567 fi
7568
7569
7570 # Extract the first word of "pdfroff", so it can be a program name with args.
7571 set dummy pdfroff; ac_word=$2
7572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7574 if test "${ac_cv_path_PDFROFF+set}" = set; then
7575   echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577   case $PDFROFF in
7578   [\\/]* | ?:[\\/]*)
7579   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7580   ;;
7581   *)
7582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587   for ac_exec_ext in '' $ac_executable_extensions; do
7588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7589     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594 done
7595 IFS=$as_save_IFS
7596
7597   ;;
7598 esac
7599 fi
7600 PDFROFF=$ac_cv_path_PDFROFF
7601 if test -n "$PDFROFF"; then
7602   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7603 echo "${ECHO_T}$PDFROFF" >&6; }
7604 else
7605   { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7607 fi
7608
7609
7610 # Extract the first word of "zip", so it can be a program name with args.
7611 set dummy zip; ac_word=$2
7612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7614 if test "${ac_cv_path_ZIP+set}" = set; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   case $ZIP in
7618   [\\/]* | ?:[\\/]*)
7619   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7620   ;;
7621   *)
7622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627   for ac_exec_ext in '' $ac_executable_extensions; do
7628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7629     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7636
7637   ;;
7638 esac
7639 fi
7640 ZIP=$ac_cv_path_ZIP
7641 if test -n "$ZIP"; then
7642   { echo "$as_me:$LINENO: result: $ZIP" >&5
7643 echo "${ECHO_T}$ZIP" >&6; }
7644 else
7645   { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7647 fi
7648
7649
7650 for ac_prog in ocamlc
7651 do
7652   # Extract the first word of "$ac_prog", so it can be a program name with args.
7653 set dummy $ac_prog; ac_word=$2
7654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7656 if test "${ac_cv_path_OCAMLC+set}" = set; then
7657   echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659   case $OCAMLC in
7660   [\\/]* | ?:[\\/]*)
7661   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7662   ;;
7663   *)
7664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667   IFS=$as_save_IFS
7668   test -z "$as_dir" && as_dir=.
7669   for ac_exec_ext in '' $ac_executable_extensions; do
7670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7671     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673     break 2
7674   fi
7675 done
7676 done
7677 IFS=$as_save_IFS
7678
7679   ;;
7680 esac
7681 fi
7682 OCAMLC=$ac_cv_path_OCAMLC
7683 if test -n "$OCAMLC"; then
7684   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7685 echo "${ECHO_T}$OCAMLC" >&6; }
7686 else
7687   { echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6; }
7689 fi
7690
7691
7692   test -n "$OCAMLC" && break
7693 done
7694
7695 for ac_prog in ocamlopt
7696 do
7697   # Extract the first word of "$ac_prog", so it can be a program name with args.
7698 set dummy $ac_prog; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   case $OCAMLOPT in
7705   [\\/]* | ?:[\\/]*)
7706   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7707   ;;
7708   *)
7709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714   for ac_exec_ext in '' $ac_executable_extensions; do
7715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7716     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721 done
7722 IFS=$as_save_IFS
7723
7724   ;;
7725 esac
7726 fi
7727 OCAMLOPT=$ac_cv_path_OCAMLOPT
7728 if test -n "$OCAMLOPT"; then
7729   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7730 echo "${ECHO_T}$OCAMLOPT" >&6; }
7731 else
7732   { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7734 fi
7735
7736
7737   test -n "$OCAMLOPT" && break
7738 done
7739
7740 for ac_prog in ocamldep
7741 do
7742   # Extract the first word of "$ac_prog", so it can be a program name with args.
7743 set dummy $ac_prog; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   case $OCAMLDEP in
7750   [\\/]* | ?:[\\/]*)
7751   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7752   ;;
7753   *)
7754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769   ;;
7770 esac
7771 fi
7772 OCAMLDEP=$ac_cv_path_OCAMLDEP
7773 if test -n "$OCAMLDEP"; then
7774   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7775 echo "${ECHO_T}$OCAMLDEP" >&6; }
7776 else
7777   { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7779 fi
7780
7781
7782   test -n "$OCAMLDEP" && break
7783 done
7784
7785 for ac_prog in ocamldoc
7786 do
7787   # Extract the first word of "$ac_prog", so it can be a program name with args.
7788 set dummy $ac_prog; ac_word=$2
7789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794   case $OCAMLDOC in
7795   [\\/]* | ?:[\\/]*)
7796   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7797   ;;
7798   *)
7799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802   IFS=$as_save_IFS
7803   test -z "$as_dir" && as_dir=.
7804   for ac_exec_ext in '' $ac_executable_extensions; do
7805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7806     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808     break 2
7809   fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814   ;;
7815 esac
7816 fi
7817 OCAMLDOC=$ac_cv_path_OCAMLDOC
7818 if test -n "$OCAMLDOC"; then
7819   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7820 echo "${ECHO_T}$OCAMLDOC" >&6; }
7821 else
7822   { echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6; }
7824 fi
7825
7826
7827   test -n "$OCAMLDOC" && break
7828 done
7829
7830 for ac_prog in gas as
7831 do
7832   # Extract the first word of "$ac_prog", so it can be a program name with args.
7833 set dummy $ac_prog; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_GAS+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   case $GAS in
7840   [\\/]* | ?:[\\/]*)
7841   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7842   ;;
7843   *)
7844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849   for ac_exec_ext in '' $ac_executable_extensions; do
7850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856 done
7857 IFS=$as_save_IFS
7858
7859   ;;
7860 esac
7861 fi
7862 GAS=$ac_cv_path_GAS
7863 if test -n "$GAS"; then
7864   { echo "$as_me:$LINENO: result: $GAS" >&5
7865 echo "${ECHO_T}$GAS" >&6; }
7866 else
7867   { echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6; }
7869 fi
7870
7871
7872   test -n "$GAS" && break
7873 done
7874
7875
7876 { echo "$as_me:$LINENO: checking for linker version" >&5
7877 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7878 if test "${llvm_cv_link_version+set}" = set; then
7879   echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881
7882    version_string="$(ld -v 2>&1 | head -1)"
7883
7884    # Check for ld64.
7885    if (echo "$version_string" | grep -q "ld64"); then
7886      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7887    else
7888      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7889    fi
7890
7891 fi
7892 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7893 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7894
7895 cat >>confdefs.h <<_ACEOF
7896 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7897 _ACEOF
7898
7899
7900
7901 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7902 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7903 if test "${llvm_cv_link_use_r+set}" = set; then
7904   echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906    ac_ext=c
7907 ac_cpp='$CPP $CPPFLAGS'
7908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911
7912   oldcflags="$CFLAGS"
7913   CFLAGS="$CFLAGS -Wl,-R."
7914   cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920
7921 int
7922 main ()
7923 {
7924
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (ac_try="$ac_link"
7931 case "(($ac_try" in
7932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933   *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936   (eval "$ac_link") 2>conftest.er1
7937   ac_status=$?
7938   grep -v '^ *+' conftest.er1 >conftest.err
7939   rm -f conftest.er1
7940   cat conftest.err >&5
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); } &&
7943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7944   { (case "(($ac_try" in
7945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946   *) ac_try_echo=$ac_try;;
7947 esac
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949   (eval "$ac_try") 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; } &&
7953          { ac_try='test -s conftest$ac_exeext'
7954   { (case "(($ac_try" in
7955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956   *) ac_try_echo=$ac_try;;
7957 esac
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959   (eval "$ac_try") 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }; }; then
7963   llvm_cv_link_use_r=yes
7964 else
7965   echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7967
7968         llvm_cv_link_use_r=no
7969 fi
7970
7971 rm -f core conftest.err conftest.$ac_objext \
7972       conftest$ac_exeext conftest.$ac_ext
7973   CFLAGS="$oldcflags"
7974   ac_ext=c
7975 ac_cpp='$CPP $CPPFLAGS'
7976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7979
7980
7981 fi
7982 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7983 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7984 if test "$llvm_cv_link_use_r" = yes ; then
7985
7986 cat >>confdefs.h <<\_ACEOF
7987 #define HAVE_LINK_R 1
7988 _ACEOF
7989
7990   fi
7991
7992
7993 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7994 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7995 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7996   echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998    ac_ext=c
7999 ac_cpp='$CPP $CPPFLAGS'
8000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004   oldcflags="$CFLAGS"
8005   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8006   cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012
8013 int
8014 main ()
8015 {
8016
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (ac_try="$ac_link"
8023 case "(($ac_try" in
8024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025   *) ac_try_echo=$ac_try;;
8026 esac
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028   (eval "$ac_link") 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } &&
8035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036   { (case "(($ac_try" in
8037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038   *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041   (eval "$ac_try") 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); }; } &&
8045          { ac_try='test -s conftest$ac_exeext'
8046   { (case "(($ac_try" in
8047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048   *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051   (eval "$ac_try") 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; }; then
8055   llvm_cv_link_use_export_dynamic=yes
8056 else
8057   echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060         llvm_cv_link_use_export_dynamic=no
8061 fi
8062
8063 rm -f core conftest.err conftest.$ac_objext \
8064       conftest$ac_exeext conftest.$ac_ext
8065   CFLAGS="$oldcflags"
8066   ac_ext=c
8067 ac_cpp='$CPP $CPPFLAGS'
8068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072
8073 fi
8074 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8075 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8076 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8077
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_LINK_EXPORT_DYNAMIC 1
8080 _ACEOF
8081
8082   fi
8083
8084
8085 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8086 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8087 if test "${llvm_cv_link_use_version_script+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090    ac_ext=c
8091 ac_cpp='$CPP $CPPFLAGS'
8092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096   oldcflags="$CFLAGS"
8097
8098   # The following code is from the autoconf manual,
8099   # "11.13: Limitations of Usual Tools".
8100   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8101   # Use mktemp if possible; otherwise fall back on mkdir,
8102   # with $RANDOM to make collisions less likely.
8103   : ${TMPDIR=/tmp}
8104   {
8105     tmp=`
8106       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8107     ` &&
8108     test -n "$tmp" && test -d "$tmp"
8109   } || {
8110     tmp=$TMPDIR/foo$$-$RANDOM
8111     (umask 077 && mkdir "$tmp")
8112   } || exit $?
8113
8114   echo "{" > "$tmp/export.map"
8115   echo "  global: main;" >> "$tmp/export.map"
8116   echo "  local: *;" >> "$tmp/export.map"
8117   echo "};" >> "$tmp/export.map"
8118
8119   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8120   cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126
8127 int
8128 main ()
8129 {
8130
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8137 case "(($ac_try" in
8138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139   *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142   (eval "$ac_link") 2>conftest.er1
8143   ac_status=$?
8144   grep -v '^ *+' conftest.er1 >conftest.err
8145   rm -f conftest.er1
8146   cat conftest.err >&5
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } &&
8149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8150   { (case "(($ac_try" in
8151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152   *) ac_try_echo=$ac_try;;
8153 esac
8154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155   (eval "$ac_try") 2>&5
8156   ac_status=$?
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); }; } &&
8159          { ac_try='test -s conftest$ac_exeext'
8160   { (case "(($ac_try" in
8161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162   *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165   (eval "$ac_try") 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); }; }; then
8169   llvm_cv_link_use_version_script=yes
8170 else
8171   echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174         llvm_cv_link_use_version_script=no
8175 fi
8176
8177 rm -f core conftest.err conftest.$ac_objext \
8178       conftest$ac_exeext conftest.$ac_ext
8179   rm "$tmp/export.map"
8180   rmdir "$tmp"
8181   CFLAGS="$oldcflags"
8182   ac_ext=c
8183 ac_cpp='$CPP $CPPFLAGS'
8184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8187
8188
8189 fi
8190 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8191 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8192 if test "$llvm_cv_link_use_version_script" = yes ; then
8193   HAVE_LINK_VERSION_SCRIPT=1
8194
8195   fi
8196
8197
8198
8199
8200 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8201 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8202 if test "${ac_cv_c_const+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   cat >conftest.$ac_ext <<_ACEOF
8206 /* confdefs.h.  */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h.  */
8211
8212 int
8213 main ()
8214 {
8215 /* FIXME: Include the comments suggested by Paul. */
8216 #ifndef __cplusplus
8217   /* Ultrix mips cc rejects this.  */
8218   typedef int charset[2];
8219   const charset x;
8220   /* SunOS 4.1.1 cc rejects this.  */
8221   char const *const *ccp;
8222   char **p;
8223   /* NEC SVR4.0.2 mips cc rejects this.  */
8224   struct point {int x, y;};
8225   static struct point const zero = {0,0};
8226   /* AIX XL C 1.02.0.0 rejects this.
8227      It does not let you subtract one const X* pointer from another in
8228      an arm of an if-expression whose if-part is not a constant
8229      expression */
8230   const char *g = "string";
8231   ccp = &g + (g ? g-g : 0);
8232   /* HPUX 7.0 cc rejects these. */
8233   ++ccp;
8234   p = (char**) ccp;
8235   ccp = (char const *const *) p;
8236   { /* SCO 3.2v4 cc rejects this.  */
8237     char *t;
8238     char const *s = 0 ? (char *) 0 : (char const *) 0;
8239
8240     *t++ = 0;
8241     if (s) return 0;
8242   }
8243   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8244     int x[] = {25, 17};
8245     const int *foo = &x[0];
8246     ++foo;
8247   }
8248   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8249     typedef const int *iptr;
8250     iptr p = 0;
8251     ++p;
8252   }
8253   { /* AIX XL C 1.02.0.0 rejects this saying
8254        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8255     struct s { int j; const int *ap[3]; };
8256     struct s *b; b->j = 5;
8257   }
8258   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8259     const int foo = 10;
8260     if (!foo) return 0;
8261   }
8262   return !x[0] && !zero.x;
8263 #endif
8264
8265   ;
8266   return 0;
8267 }
8268 _ACEOF
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8271 case "(($ac_try" in
8272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273   *) ac_try_echo=$ac_try;;
8274 esac
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276   (eval "$ac_compile") 2>conftest.er1
8277   ac_status=$?
8278   grep -v '^ *+' conftest.er1 >conftest.err
8279   rm -f conftest.er1
8280   cat conftest.err >&5
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } &&
8283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284   { (case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289   (eval "$ac_try") 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; } &&
8293          { ac_try='test -s conftest.$ac_objext'
8294   { (case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_try") 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; }; then
8303   ac_cv_c_const=yes
8304 else
8305   echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308         ac_cv_c_const=no
8309 fi
8310
8311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8312 fi
8313 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8314 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8315 if test $ac_cv_c_const = no; then
8316
8317 cat >>confdefs.h <<\_ACEOF
8318 #define const
8319 _ACEOF
8320
8321 fi
8322
8323
8324
8325
8326
8327
8328 ac_header_dirent=no
8329 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8330   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8331 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8332 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8334   echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336   cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342 #include <sys/types.h>
8343 #include <$ac_hdr>
8344
8345 int
8346 main ()
8347 {
8348 if ((DIR *) 0)
8349 return 0;
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 rm -f conftest.$ac_objext
8355 if { (ac_try="$ac_compile"
8356 case "(($ac_try" in
8357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358   *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361   (eval "$ac_compile") 2>conftest.er1
8362   ac_status=$?
8363   grep -v '^ *+' conftest.er1 >conftest.err
8364   rm -f conftest.er1
8365   cat conftest.err >&5
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); } &&
8368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8369   { (case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_try") 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; } &&
8378          { ac_try='test -s conftest.$ac_objext'
8379   { (case "(($ac_try" in
8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381   *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384   (eval "$ac_try") 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; }; then
8388   eval "$as_ac_Header=yes"
8389 else
8390   echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393         eval "$as_ac_Header=no"
8394 fi
8395
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 fi
8398 ac_res=`eval echo '${'$as_ac_Header'}'`
8399                { echo "$as_me:$LINENO: result: $ac_res" >&5
8400 echo "${ECHO_T}$ac_res" >&6; }
8401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8402   cat >>confdefs.h <<_ACEOF
8403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8404 _ACEOF
8405
8406 ac_header_dirent=$ac_hdr; break
8407 fi
8408
8409 done
8410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8411 if test $ac_header_dirent = dirent.h; then
8412   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8413 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8414 if test "${ac_cv_search_opendir+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417   ac_func_search_save_LIBS=$LIBS
8418 cat >conftest.$ac_ext <<_ACEOF
8419 /* confdefs.h.  */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h.  */
8424
8425 /* Override any GCC internal prototype to avoid an error.
8426    Use char because int might match the return type of a GCC
8427    builtin and then its argument prototype would still apply.  */
8428 #ifdef __cplusplus
8429 extern "C"
8430 #endif
8431 char opendir ();
8432 int
8433 main ()
8434 {
8435 return opendir ();
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 for ac_lib in '' dir; do
8441   if test -z "$ac_lib"; then
8442     ac_res="none required"
8443   else
8444     ac_res=-l$ac_lib
8445     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8446   fi
8447   rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (ac_try="$ac_link"
8449 case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_link") 2>conftest.er1
8455   ac_status=$?
8456   grep -v '^ *+' conftest.er1 >conftest.err
8457   rm -f conftest.er1
8458   cat conftest.err >&5
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); } &&
8461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462   { (case "(($ac_try" in
8463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464   *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467   (eval "$ac_try") 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; } &&
8471          { ac_try='test -s conftest$ac_exeext'
8472   { (case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477   (eval "$ac_try") 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   ac_cv_search_opendir=$ac_res
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486
8487 fi
8488
8489 rm -f core conftest.err conftest.$ac_objext \
8490       conftest$ac_exeext
8491   if test "${ac_cv_search_opendir+set}" = set; then
8492   break
8493 fi
8494 done
8495 if test "${ac_cv_search_opendir+set}" = set; then
8496   :
8497 else
8498   ac_cv_search_opendir=no
8499 fi
8500 rm conftest.$ac_ext
8501 LIBS=$ac_func_search_save_LIBS
8502 fi
8503 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8504 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8505 ac_res=$ac_cv_search_opendir
8506 if test "$ac_res" != no; then
8507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8508
8509 fi
8510
8511 else
8512   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8513 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8514 if test "${ac_cv_search_opendir+set}" = set; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517   ac_func_search_save_LIBS=$LIBS
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524
8525 /* Override any GCC internal prototype to avoid an error.
8526    Use char because int might match the return type of a GCC
8527    builtin and then its argument prototype would still apply.  */
8528 #ifdef __cplusplus
8529 extern "C"
8530 #endif
8531 char opendir ();
8532 int
8533 main ()
8534 {
8535 return opendir ();
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 for ac_lib in '' x; do
8541   if test -z "$ac_lib"; then
8542     ac_res="none required"
8543   else
8544     ac_res=-l$ac_lib
8545     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8546   fi
8547   rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (ac_try="$ac_link"
8549 case "(($ac_try" in
8550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551   *) ac_try_echo=$ac_try;;
8552 esac
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554   (eval "$ac_link") 2>conftest.er1
8555   ac_status=$?
8556   grep -v '^ *+' conftest.er1 >conftest.err
8557   rm -f conftest.er1
8558   cat conftest.err >&5
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } &&
8561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562   { (case "(($ac_try" in
8563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564   *) ac_try_echo=$ac_try;;
8565 esac
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567   (eval "$ac_try") 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); }; } &&
8571          { ac_try='test -s conftest$ac_exeext'
8572   { (case "(($ac_try" in
8573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574   *) ac_try_echo=$ac_try;;
8575 esac
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577   (eval "$ac_try") 2>&5
8578   ac_status=$?
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); }; }; then
8581   ac_cv_search_opendir=$ac_res
8582 else
8583   echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586
8587 fi
8588
8589 rm -f core conftest.err conftest.$ac_objext \
8590       conftest$ac_exeext
8591   if test "${ac_cv_search_opendir+set}" = set; then
8592   break
8593 fi
8594 done
8595 if test "${ac_cv_search_opendir+set}" = set; then
8596   :
8597 else
8598   ac_cv_search_opendir=no
8599 fi
8600 rm conftest.$ac_ext
8601 LIBS=$ac_func_search_save_LIBS
8602 fi
8603 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8604 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8605 ac_res=$ac_cv_search_opendir
8606 if test "$ac_res" != no; then
8607   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8608
8609 fi
8610
8611 fi
8612
8613
8614 for ac_header in dlfcn.h
8615 do
8616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8618   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8621   echo $ECHO_N "(cached) $ECHO_C" >&6
8622 fi
8623 ac_res=`eval echo '${'$as_ac_Header'}'`
8624                { echo "$as_me:$LINENO: result: $ac_res" >&5
8625 echo "${ECHO_T}$ac_res" >&6; }
8626 else
8627   # Is the header compilable?
8628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8630 cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h.  */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h.  */
8636 $ac_includes_default
8637 #include <$ac_header>
8638 _ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (ac_try="$ac_compile"
8641 case "(($ac_try" in
8642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643   *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646   (eval "$ac_compile") 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } &&
8653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654   { (case "(($ac_try" in
8655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656   *) ac_try_echo=$ac_try;;
8657 esac
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659   (eval "$ac_try") 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); }; } &&
8663          { ac_try='test -s conftest.$ac_objext'
8664   { (case "(($ac_try" in
8665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666   *) ac_try_echo=$ac_try;;
8667 esac
8668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669   (eval "$ac_try") 2>&5
8670   ac_status=$?
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); }; }; then
8673   ac_header_compiler=yes
8674 else
8675   echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678         ac_header_compiler=no
8679 fi
8680
8681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8683 echo "${ECHO_T}$ac_header_compiler" >&6; }
8684
8685 # Is the header present?
8686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694 #include <$ac_header>
8695 _ACEOF
8696 if { (ac_try="$ac_cpp conftest.$ac_ext"
8697 case "(($ac_try" in
8698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699   *) ac_try_echo=$ac_try;;
8700 esac
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8703   ac_status=$?
8704   grep -v '^ *+' conftest.er1 >conftest.err
8705   rm -f conftest.er1
8706   cat conftest.err >&5
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } >/dev/null; then
8709   if test -s conftest.err; then
8710     ac_cpp_err=$ac_c_preproc_warn_flag
8711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8712   else
8713     ac_cpp_err=
8714   fi
8715 else
8716   ac_cpp_err=yes
8717 fi
8718 if test -z "$ac_cpp_err"; then
8719   ac_header_preproc=yes
8720 else
8721   echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724   ac_header_preproc=no
8725 fi
8726
8727 rm -f conftest.err conftest.$ac_ext
8728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8729 echo "${ECHO_T}$ac_header_preproc" >&6; }
8730
8731 # So?  What about this header?
8732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8733   yes:no: )
8734     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8738     ac_header_preproc=yes
8739     ;;
8740   no:yes:* )
8741     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8743     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8744 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8745     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8747     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8748 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8751     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8753     ( cat <<\_ASBOX
8754 ## ------------------------------------ ##
8755 ## Report this to http://llvm.org/bugs/ ##
8756 ## ------------------------------------ ##
8757 _ASBOX
8758      ) | sed "s/^/$as_me: WARNING:     /" >&2
8759     ;;
8760 esac
8761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8764   echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766   eval "$as_ac_Header=\$ac_header_preproc"
8767 fi
8768 ac_res=`eval echo '${'$as_ac_Header'}'`
8769                { echo "$as_me:$LINENO: result: $ac_res" >&5
8770 echo "${ECHO_T}$ac_res" >&6; }
8771
8772 fi
8773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8774   cat >>confdefs.h <<_ACEOF
8775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8776 _ACEOF
8777
8778 fi
8779
8780 done
8781
8782 # Check whether --enable-ltdl-install was given.
8783 if test "${enable_ltdl_install+set}" = set; then
8784   enableval=$enable_ltdl_install;
8785 fi
8786
8787
8788
8789
8790 if test x"${enable_ltdl_install-no}" != xno; then
8791   INSTALL_LTDL_TRUE=
8792   INSTALL_LTDL_FALSE='#'
8793 else
8794   INSTALL_LTDL_TRUE='#'
8795   INSTALL_LTDL_FALSE=
8796 fi
8797
8798
8799
8800 if test x"${enable_ltdl_convenience-no}" != xno; then
8801   CONVENIENCE_LTDL_TRUE=
8802   CONVENIENCE_LTDL_FALSE='#'
8803 else
8804   CONVENIENCE_LTDL_TRUE='#'
8805   CONVENIENCE_LTDL_FALSE=
8806 fi
8807
8808
8809 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8810 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8811 library_names_spec=
8812 libname_spec='lib$name'
8813 soname_spec=
8814 shrext_cmds=".so"
8815 postinstall_cmds=
8816 postuninstall_cmds=
8817 finish_cmds=
8818 finish_eval=
8819 shlibpath_var=
8820 shlibpath_overrides_runpath=unknown
8821 version_type=none
8822 dynamic_linker="$host_os ld.so"
8823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8824 if test "$GCC" = yes; then
8825   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8826   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8827     # if the path contains ";" then we assume it to be the separator
8828     # otherwise default to the standard path separator (i.e. ":") - it is
8829     # assumed that no part of a normal pathname contains ";" but that should
8830     # okay in the real world where ";" in dirpaths is itself problematic.
8831     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8832   else
8833     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8834   fi
8835 else
8836   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8837 fi
8838 need_lib_prefix=unknown
8839 hardcode_into_libs=no
8840
8841 # when you set need_version to no, make sure it does not cause -set_version
8842 # flags to be left without arguments
8843 need_version=unknown
8844
8845 case $host_os in
8846 aix3*)
8847   version_type=linux
8848   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8849   shlibpath_var=LIBPATH
8850
8851   # AIX 3 has no versioning support, so we append a major version to the name.
8852   soname_spec='${libname}${release}${shared_ext}$major'
8853   ;;
8854
8855 aix4* | aix5*)
8856   version_type=linux
8857   need_lib_prefix=no
8858   need_version=no
8859   hardcode_into_libs=yes
8860   if test "$host_cpu" = ia64; then
8861     # AIX 5 supports IA64
8862     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8863     shlibpath_var=LD_LIBRARY_PATH
8864   else
8865     # With GCC up to 2.95.x, collect2 would create an import file
8866     # for dependence libraries.  The import file would start with
8867     # the line `#! .'.  This would cause the generated library to
8868     # depend on `.', always an invalid library.  This was fixed in
8869     # development snapshots of GCC prior to 3.0.
8870     case $host_os in
8871       aix4 | aix4.[01] | aix4.[01].*)
8872       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8873            echo ' yes '
8874            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8875         :
8876       else
8877         can_build_shared=no
8878       fi
8879       ;;
8880     esac
8881     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8882     # soname into executable. Probably we can add versioning support to
8883     # collect2, so additional links can be useful in future.
8884     if test "$aix_use_runtimelinking" = yes; then
8885       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8886       # instead of lib<name>.a to let people know that these are not
8887       # typical AIX shared libraries.
8888       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8889     else
8890       # We preserve .a as extension for shared libraries through AIX4.2
8891       # and later when we are not doing run time linking.
8892       library_names_spec='${libname}${release}.a $libname.a'
8893       soname_spec='${libname}${release}${shared_ext}$major'
8894     fi
8895     shlibpath_var=LIBPATH
8896   fi
8897   ;;
8898
8899 amigaos*)
8900   library_names_spec='$libname.ixlibrary $libname.a'
8901   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8902   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'
8903   ;;
8904
8905 beos*)
8906   library_names_spec='${libname}${shared_ext}'
8907   dynamic_linker="$host_os ld.so"
8908   shlibpath_var=LIBRARY_PATH
8909   ;;
8910
8911 bsdi[45]*)
8912   version_type=linux
8913   need_version=no
8914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915   soname_spec='${libname}${release}${shared_ext}$major'
8916   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8917   shlibpath_var=LD_LIBRARY_PATH
8918   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8919   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8920   # the default ld.so.conf also contains /usr/contrib/lib and
8921   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8922   # libtool to hard-code these into programs
8923   ;;
8924
8925 cygwin* | mingw* | pw32*)
8926   version_type=windows
8927   shrext_cmds=".dll"
8928   need_version=no
8929   need_lib_prefix=no
8930
8931   case $GCC,$host_os in
8932   yes,cygwin* | yes,mingw* | yes,pw32*)
8933     library_names_spec='$libname.dll.a'
8934     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8935     postinstall_cmds='base_file=`basename \${file}`~
8936       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8937       dldir=$destdir/`dirname \$dlpath`~
8938       test -d \$dldir || mkdir -p \$dldir~
8939       $install_prog $dir/$dlname \$dldir/$dlname~
8940       chmod a+x \$dldir/$dlname'
8941     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8942       dlpath=$dir/\$dldll~
8943        $rm \$dlpath'
8944     shlibpath_overrides_runpath=yes
8945
8946     case $host_os in
8947     cygwin*)
8948       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8949       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8950       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8951       ;;
8952     mingw*)
8953       # MinGW DLLs use traditional 'lib' prefix
8954       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8955       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8956       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8957         # It is most probably a Windows format PATH printed by
8958         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8959         # path with ; separators, and with drive letters. We can handle the
8960         # drive letters (cygwin fileutils understands them), so leave them,
8961         # especially as we might pass files found there to a mingw objdump,
8962         # which wouldn't understand a cygwinified path. Ahh.
8963         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8964       else
8965         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8966       fi
8967       ;;
8968     pw32*)
8969       # pw32 DLLs use 'pw' prefix rather than 'lib'
8970       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971       ;;
8972     esac
8973     ;;
8974
8975   *)
8976     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8977     ;;
8978   esac
8979   dynamic_linker='Win32 ld.exe'
8980   # FIXME: first we should search . and the directory the executable is in
8981   shlibpath_var=PATH
8982   ;;
8983
8984 darwin* | rhapsody*)
8985   dynamic_linker="$host_os dyld"
8986   version_type=darwin
8987   need_lib_prefix=no
8988   need_version=no
8989   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8990   soname_spec='${libname}${release}${major}$shared_ext'
8991   shlibpath_overrides_runpath=yes
8992   shlibpath_var=DYLD_LIBRARY_PATH
8993   shrext_cmds='.dylib'
8994   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8995   if test "$GCC" = yes; then
8996     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"`
8997   else
8998     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8999   fi
9000   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9001   ;;
9002
9003 dgux*)
9004   version_type=linux
9005   need_lib_prefix=no
9006   need_version=no
9007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9008   soname_spec='${libname}${release}${shared_ext}$major'
9009   shlibpath_var=LD_LIBRARY_PATH
9010   ;;
9011
9012 freebsd1.*)
9013   dynamic_linker=no
9014   ;;
9015
9016 kfreebsd*-gnu)
9017   version_type=linux
9018   need_lib_prefix=no
9019   need_version=no
9020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9021   soname_spec='${libname}${release}${shared_ext}$major'
9022   shlibpath_var=LD_LIBRARY_PATH
9023   shlibpath_overrides_runpath=no
9024   hardcode_into_libs=yes
9025   dynamic_linker='GNU ld.so'
9026   ;;
9027
9028 freebsd* | dragonfly*)
9029   # DragonFly does not have aout.  When/if they implement a new
9030   # versioning mechanism, adjust this.
9031   if test -x /usr/bin/objformat; then
9032     objformat=`/usr/bin/objformat`
9033   else
9034     case $host_os in
9035     freebsd[123].*) objformat=aout ;;
9036     *) objformat=elf ;;
9037     esac
9038   fi
9039   version_type=freebsd-$objformat
9040   case $version_type in
9041     freebsd-elf*)
9042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9043       need_version=no
9044       need_lib_prefix=no
9045       ;;
9046     freebsd-*)
9047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9048       need_version=yes
9049       ;;
9050   esac
9051   shlibpath_var=LD_LIBRARY_PATH
9052   case $host_os in
9053   freebsd2.*)
9054     shlibpath_overrides_runpath=yes
9055     ;;
9056   freebsd3.[01]* | freebsdelf3.[01]*)
9057     shlibpath_overrides_runpath=yes
9058     hardcode_into_libs=yes
9059     ;;
9060   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9061   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9062     shlibpath_overrides_runpath=no
9063     hardcode_into_libs=yes
9064     ;;
9065   freebsd*) # from 4.6 on
9066     shlibpath_overrides_runpath=yes
9067     hardcode_into_libs=yes
9068     ;;
9069   esac
9070   ;;
9071
9072 gnu*)
9073   version_type=linux
9074   need_lib_prefix=no
9075   need_version=no
9076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   shlibpath_var=LD_LIBRARY_PATH
9079   hardcode_into_libs=yes
9080   ;;
9081
9082 hpux9* | hpux10* | hpux11*)
9083   # Give a soname corresponding to the major version so that dld.sl refuses to
9084   # link against other versions.
9085   version_type=sunos
9086   need_lib_prefix=no
9087   need_version=no
9088   case $host_cpu in
9089   ia64*)
9090     shrext_cmds='.so'
9091     hardcode_into_libs=yes
9092     dynamic_linker="$host_os dld.so"
9093     shlibpath_var=LD_LIBRARY_PATH
9094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096     soname_spec='${libname}${release}${shared_ext}$major'
9097     if test "X$HPUX_IA64_MODE" = X32; then
9098       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9099     else
9100       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9101     fi
9102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9103     ;;
9104    hppa*64*)
9105      shrext_cmds='.sl'
9106      hardcode_into_libs=yes
9107      dynamic_linker="$host_os dld.sl"
9108      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9109      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9110      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111      soname_spec='${libname}${release}${shared_ext}$major'
9112      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9113      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9114      ;;
9115    *)
9116     shrext_cmds='.sl'
9117     dynamic_linker="$host_os dld.sl"
9118     shlibpath_var=SHLIB_PATH
9119     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121     soname_spec='${libname}${release}${shared_ext}$major'
9122     ;;
9123   esac
9124   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9125   postinstall_cmds='chmod 555 $lib'
9126   ;;
9127
9128 interix3*)
9129   version_type=linux
9130   need_lib_prefix=no
9131   need_version=no
9132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133   soname_spec='${libname}${release}${shared_ext}$major'
9134   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9135   shlibpath_var=LD_LIBRARY_PATH
9136   shlibpath_overrides_runpath=no
9137   hardcode_into_libs=yes
9138   ;;
9139
9140 irix5* | irix6* | nonstopux*)
9141   case $host_os in
9142     nonstopux*) version_type=nonstopux ;;
9143     *)
9144         if test "$lt_cv_prog_gnu_ld" = yes; then
9145                 version_type=linux
9146         else
9147                 version_type=irix
9148         fi ;;
9149   esac
9150   need_lib_prefix=no
9151   need_version=no
9152   soname_spec='${libname}${release}${shared_ext}$major'
9153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9154   case $host_os in
9155   irix5* | nonstopux*)
9156     libsuff= shlibsuff=
9157     ;;
9158   *)
9159     case $LD in # libtool.m4 will add one of these switches to LD
9160     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9161       libsuff= shlibsuff= libmagic=32-bit;;
9162     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9163       libsuff=32 shlibsuff=N32 libmagic=N32;;
9164     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9165       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9166     *) libsuff= shlibsuff= libmagic=never-match;;
9167     esac
9168     ;;
9169   esac
9170   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9171   shlibpath_overrides_runpath=no
9172   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9173   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9174   hardcode_into_libs=yes
9175   ;;
9176
9177 # No shared lib support for Linux oldld, aout, or coff.
9178 linux*oldld* | linux*aout* | linux*coff*)
9179   dynamic_linker=no
9180   ;;
9181
9182 # This must be Linux ELF.
9183 linux*)
9184   version_type=linux
9185   need_lib_prefix=no
9186   need_version=no
9187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188   soname_spec='${libname}${release}${shared_ext}$major'
9189   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9190   shlibpath_var=LD_LIBRARY_PATH
9191   shlibpath_overrides_runpath=no
9192   # This implies no fast_install, which is unacceptable.
9193   # Some rework will be needed to allow for fast_install
9194   # before this can be enabled.
9195   hardcode_into_libs=yes
9196
9197   # Append ld.so.conf contents to the search path
9198   if test -f /etc/ld.so.conf; then
9199     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' ' '`
9200     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9201   fi
9202
9203   # We used to test for /lib/ld.so.1 and disable shared libraries on
9204   # powerpc, because MkLinux only supported shared libraries with the
9205   # GNU dynamic linker.  Since this was broken with cross compilers,
9206   # most powerpc-linux boxes support dynamic linking these days and
9207   # people can always --disable-shared, the test was removed, and we
9208   # assume the GNU/Linux dynamic linker is in use.
9209   dynamic_linker='GNU/Linux ld.so'
9210   ;;
9211
9212 knetbsd*-gnu)
9213   version_type=linux
9214   need_lib_prefix=no
9215   need_version=no
9216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9217   soname_spec='${libname}${release}${shared_ext}$major'
9218   shlibpath_var=LD_LIBRARY_PATH
9219   shlibpath_overrides_runpath=no
9220   hardcode_into_libs=yes
9221   dynamic_linker='GNU ld.so'
9222   ;;
9223
9224 netbsd*)
9225   version_type=sunos
9226   need_lib_prefix=no
9227   need_version=no
9228   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9230     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9231     dynamic_linker='NetBSD (a.out) ld.so'
9232   else
9233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9234     soname_spec='${libname}${release}${shared_ext}$major'
9235     dynamic_linker='NetBSD ld.elf_so'
9236   fi
9237   shlibpath_var=LD_LIBRARY_PATH
9238   shlibpath_overrides_runpath=yes
9239   hardcode_into_libs=yes
9240   ;;
9241
9242 newsos6)
9243   version_type=linux
9244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245   shlibpath_var=LD_LIBRARY_PATH
9246   shlibpath_overrides_runpath=yes
9247   ;;
9248
9249 nto-qnx*)
9250   version_type=linux
9251   need_lib_prefix=no
9252   need_version=no
9253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254   soname_spec='${libname}${release}${shared_ext}$major'
9255   shlibpath_var=LD_LIBRARY_PATH
9256   shlibpath_overrides_runpath=yes
9257   ;;
9258
9259 openbsd* | bitrig*)
9260   version_type=sunos
9261   sys_lib_dlsearch_path_spec="/usr/lib"
9262   need_lib_prefix=no
9263   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9264   case $host_os in
9265     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9266     *)                         need_version=no  ;;
9267   esac
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9269   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9270   shlibpath_var=LD_LIBRARY_PATH
9271   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9272     case $host_os in
9273       openbsd2.[89] | openbsd2.[89].*)
9274         shlibpath_overrides_runpath=no
9275         ;;
9276       *)
9277         shlibpath_overrides_runpath=yes
9278         ;;
9279       esac
9280   else
9281     shlibpath_overrides_runpath=yes
9282   fi
9283   ;;
9284
9285 os2*)
9286   libname_spec='$name'
9287   shrext_cmds=".dll"
9288   need_lib_prefix=no
9289   library_names_spec='$libname${shared_ext} $libname.a'
9290   dynamic_linker='OS/2 ld.exe'
9291   shlibpath_var=LIBPATH
9292   ;;
9293
9294 osf3* | osf4* | osf5*)
9295   version_type=osf
9296   need_lib_prefix=no
9297   need_version=no
9298   soname_spec='${libname}${release}${shared_ext}$major'
9299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300   shlibpath_var=LD_LIBRARY_PATH
9301   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9302   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9303   ;;
9304
9305 solaris*)
9306   version_type=linux
9307   need_lib_prefix=no
9308   need_version=no
9309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310   soname_spec='${libname}${release}${shared_ext}$major'
9311   shlibpath_var=LD_LIBRARY_PATH
9312   shlibpath_overrides_runpath=yes
9313   hardcode_into_libs=yes
9314   # ldd complains unless libraries are executable
9315   postinstall_cmds='chmod +x $lib'
9316   ;;
9317
9318 sunos4*)
9319   version_type=sunos
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9321   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9322   shlibpath_var=LD_LIBRARY_PATH
9323   shlibpath_overrides_runpath=yes
9324   if test "$with_gnu_ld" = yes; then
9325     need_lib_prefix=no
9326   fi
9327   need_version=yes
9328   ;;
9329
9330 sysv4 | sysv4.3*)
9331   version_type=linux
9332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333   soname_spec='${libname}${release}${shared_ext}$major'
9334   shlibpath_var=LD_LIBRARY_PATH
9335   case $host_vendor in
9336     sni)
9337       shlibpath_overrides_runpath=no
9338       need_lib_prefix=no
9339       export_dynamic_flag_spec='${wl}-Blargedynsym'
9340       runpath_var=LD_RUN_PATH
9341       ;;
9342     siemens)
9343       need_lib_prefix=no
9344       ;;
9345     motorola)
9346       need_lib_prefix=no
9347       need_version=no
9348       shlibpath_overrides_runpath=no
9349       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9350       ;;
9351   esac
9352   ;;
9353
9354 sysv4*MP*)
9355   if test -d /usr/nec ;then
9356     version_type=linux
9357     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9358     soname_spec='$libname${shared_ext}.$major'
9359     shlibpath_var=LD_LIBRARY_PATH
9360   fi
9361   ;;
9362
9363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9364   version_type=freebsd-elf
9365   need_lib_prefix=no
9366   need_version=no
9367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9368   soname_spec='${libname}${release}${shared_ext}$major'
9369   shlibpath_var=LD_LIBRARY_PATH
9370   hardcode_into_libs=yes
9371   if test "$with_gnu_ld" = yes; then
9372     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9373     shlibpath_overrides_runpath=no
9374   else
9375     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9376     shlibpath_overrides_runpath=yes
9377     case $host_os in
9378       sco3.2v5*)
9379         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9380         ;;
9381     esac
9382   fi
9383   sys_lib_dlsearch_path_spec='/usr/lib'
9384   ;;
9385
9386 uts4*)
9387   version_type=linux
9388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389   soname_spec='${libname}${release}${shared_ext}$major'
9390   shlibpath_var=LD_LIBRARY_PATH
9391   ;;
9392
9393 *)
9394   dynamic_linker=no
9395   ;;
9396 esac
9397 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9398 echo "${ECHO_T}$dynamic_linker" >&6; }
9399 test "$dynamic_linker" = no && can_build_shared=no
9400
9401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9402 if test "$GCC" = yes; then
9403   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9404 fi
9405
9406
9407 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9408 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9409 if test "${libltdl_cv_shlibext+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412
9413 module=yes
9414 eval libltdl_cv_shlibext=$shrext_cmds
9415
9416 fi
9417 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9418 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9419 if test -n "$libltdl_cv_shlibext"; then
9420
9421 cat >>confdefs.h <<_ACEOF
9422 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9423 _ACEOF
9424
9425 fi
9426
9427
9428 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9429 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9430 if test "${libltdl_cv_sys_search_path+set}" = set; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9434 fi
9435 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9436 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9437 if test -n "$libltdl_cv_sys_search_path"; then
9438   sys_search_path=
9439   for dir in $libltdl_cv_sys_search_path; do
9440     if test -z "$sys_search_path"; then
9441       sys_search_path="$dir"
9442     else
9443       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9444     fi
9445   done
9446
9447 cat >>confdefs.h <<_ACEOF
9448 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9449 _ACEOF
9450
9451 fi
9452
9453 { echo "$as_me:$LINENO: checking for objdir" >&5
9454 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9455 if test "${libltdl_cv_objdir+set}" = set; then
9456   echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458   libltdl_cv_objdir="$objdir"
9459   if test -n "$objdir"; then
9460     :
9461   else
9462     rm -f .libs 2>/dev/null
9463     mkdir .libs 2>/dev/null
9464     if test -d .libs; then
9465       libltdl_cv_objdir=.libs
9466     else
9467       # MS-DOS does not allow filenames that begin with a dot.
9468       libltdl_cv_objdir=_libs
9469     fi
9470   rmdir .libs 2>/dev/null
9471   fi
9472
9473 fi
9474 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9475 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9476
9477 cat >>confdefs.h <<_ACEOF
9478 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9479 _ACEOF
9480
9481
9482
9483
9484
9485
9486 # Check for command to grab the raw symbol name followed by C symbol from nm.
9487 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9488 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9489 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9490   echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492
9493 # These are sane defaults that work on at least a few old systems.
9494 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9495
9496 # Character class describing NM global symbol codes.
9497 symcode='[BCDEGRST]'
9498
9499 # Regexp to match symbols that can be accessed directly from C.
9500 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9501
9502 # Transform an extracted symbol line into a proper C declaration
9503 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9504
9505 # Transform an extracted symbol line into symbol name and symbol address
9506 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'"
9507
9508 # Define system-specific variables.
9509 case $host_os in
9510 aix*)
9511   symcode='[BCDT]'
9512   ;;
9513 cygwin* | mingw* | pw32*)
9514   symcode='[ABCDGISTW]'
9515   ;;
9516 hpux*) # Its linker distinguishes data from code symbols
9517   if test "$host_cpu" = ia64; then
9518     symcode='[ABCDEGRST]'
9519   fi
9520   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9521   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'"
9522   ;;
9523 linux*)
9524   if test "$host_cpu" = ia64; then
9525     symcode='[ABCDGIRSTW]'
9526     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9527     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'"
9528   fi
9529   ;;
9530 irix* | nonstopux*)
9531   symcode='[BCDEGRST]'
9532   ;;
9533 osf*)
9534   symcode='[BCDEGQRST]'
9535   ;;
9536 solaris*)
9537   symcode='[BDRT]'
9538   ;;
9539 sco3.2v5*)
9540   symcode='[DT]'
9541   ;;
9542 sysv4.2uw2*)
9543   symcode='[DT]'
9544   ;;
9545 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9546   symcode='[ABDT]'
9547   ;;
9548 sysv4)
9549   symcode='[DFNSTU]'
9550   ;;
9551 esac
9552
9553 # Handle CRLF in mingw tool chain
9554 opt_cr=
9555 case $build_os in
9556 mingw*)
9557   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9558   ;;
9559 esac
9560
9561 # If we're using GNU nm, then use its standard symbol codes.
9562 case `$NM -V 2>&1` in
9563 *GNU* | *'with BFD'*)
9564   symcode='[ABCDGIRSTW]' ;;
9565 esac
9566
9567 # Try without a prefix undercore, then with it.
9568 for ac_symprfx in "" "_"; do
9569
9570   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9571   symxfrm="\\1 $ac_symprfx\\2 \\2"
9572
9573   # Write the raw and C identifiers.
9574   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9575
9576   # Check to see that the pipe works correctly.
9577   pipe_works=no
9578
9579   rm -f conftest*
9580   cat > conftest.$ac_ext <<EOF
9581 #ifdef __cplusplus
9582 extern "C" {
9583 #endif
9584 char nm_test_var;
9585 void nm_test_func(){}
9586 #ifdef __cplusplus
9587 }
9588 #endif
9589 int main(){nm_test_var='a';nm_test_func();return(0);}
9590 EOF
9591
9592   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9593   (eval $ac_compile) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; then
9597     # Now try to grab the symbols.
9598     nlist=conftest.nm
9599     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9600   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } && test -s "$nlist"; then
9604       # Try sorting and uniquifying the output.
9605       if sort "$nlist" | uniq > "$nlist"T; then
9606         mv -f "$nlist"T "$nlist"
9607       else
9608         rm -f "$nlist"T
9609       fi
9610
9611       # Make sure that we snagged all the symbols we need.
9612       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9613         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9614           cat <<EOF > conftest.$ac_ext
9615 #ifdef __cplusplus
9616 extern "C" {
9617 #endif
9618
9619 EOF
9620           # Now generate the symbol file.
9621           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9622
9623           cat <<EOF >> conftest.$ac_ext
9624 #if defined (__STDC__) && __STDC__
9625 # define lt_ptr_t void *
9626 #else
9627 # define lt_ptr_t char *
9628 # define const
9629 #endif
9630
9631 /* The mapping between symbol names and symbols. */
9632 const struct {
9633   const char *name;
9634   lt_ptr_t address;
9635 }
9636 lt_preloaded_symbols[] =
9637 {
9638 EOF
9639           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9640           cat <<\EOF >> conftest.$ac_ext
9641   {0, (lt_ptr_t) 0}
9642 };
9643
9644 #ifdef __cplusplus
9645 }
9646 #endif
9647 EOF
9648           # Now try linking the two files.
9649           mv conftest.$ac_objext conftstm.$ac_objext
9650           lt_save_LIBS="$LIBS"
9651           lt_save_CFLAGS="$CFLAGS"
9652           LIBS="conftstm.$ac_objext"
9653           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9654           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9655   (eval $ac_link) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9659             pipe_works=yes
9660           fi
9661           LIBS="$lt_save_LIBS"
9662           CFLAGS="$lt_save_CFLAGS"
9663         else
9664           echo "cannot find nm_test_func in $nlist" >&5
9665         fi
9666       else
9667         echo "cannot find nm_test_var in $nlist" >&5
9668       fi
9669     else
9670       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9671     fi
9672   else
9673     echo "$progname: failed program was:" >&5
9674     cat conftest.$ac_ext >&5
9675   fi
9676   rm -f conftest* conftst*
9677
9678   # Do not use the global_symbol_pipe unless it works.
9679   if test "$pipe_works" = yes; then
9680     break
9681   else
9682     lt_cv_sys_global_symbol_pipe=
9683   fi
9684 done
9685
9686 fi
9687
9688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9689   lt_cv_sys_global_symbol_to_cdecl=
9690 fi
9691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9692   { echo "$as_me:$LINENO: result: failed" >&5
9693 echo "${ECHO_T}failed" >&6; }
9694 else
9695   { echo "$as_me:$LINENO: result: ok" >&5
9696 echo "${ECHO_T}ok" >&6; }
9697 fi
9698
9699
9700 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9701 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9702 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9706     libltdl_cv_preloaded_symbols=yes
9707   else
9708     libltdl_cv_preloaded_symbols=no
9709   fi
9710
9711 fi
9712 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9713 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9714 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9715
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_PRELOADED_SYMBOLS 1
9718 _ACEOF
9719
9720 fi
9721
9722 LIBADD_DL=
9723
9724 ac_ext=c
9725 ac_cpp='$CPP $CPPFLAGS'
9726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9729
9730
9731 { echo "$as_me:$LINENO: checking for shl_load" >&5
9732 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9733 if test "${ac_cv_func_shl_load+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9744 #define shl_load innocuous_shl_load
9745
9746 /* System header to define __stub macros and hopefully few prototypes,
9747     which can conflict with char shl_load (); below.
9748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749     <limits.h> exists even on freestanding compilers.  */
9750
9751 #ifdef __STDC__
9752 # include <limits.h>
9753 #else
9754 # include <assert.h>
9755 #endif
9756
9757 #undef shl_load
9758
9759 /* Override any GCC internal prototype to avoid an error.
9760    Use char because int might match the return type of a GCC
9761    builtin and then its argument prototype would still apply.  */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char shl_load ();
9766 /* The GNU C library defines this for functions which it implements
9767     to always fail with ENOSYS.  Some functions are actually named
9768     something starting with __ and the normal name is an alias.  */
9769 #if defined __stub_shl_load || defined __stub___shl_load
9770 choke me
9771 #endif
9772
9773 int
9774 main ()
9775 {
9776 return shl_load ();
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9783 case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_link") 2>conftest.er1
9789   ac_status=$?
9790   grep -v '^ *+' conftest.er1 >conftest.err
9791   rm -f conftest.er1
9792   cat conftest.err >&5
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } &&
9795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9805          { ac_try='test -s conftest$ac_exeext'
9806   { (case "(($ac_try" in
9807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808   *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811   (eval "$ac_try") 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815   ac_cv_func_shl_load=yes
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820         ac_cv_func_shl_load=no
9821 fi
9822
9823 rm -f core conftest.err conftest.$ac_objext \
9824       conftest$ac_exeext conftest.$ac_ext
9825 fi
9826 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9827 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9828 if test $ac_cv_func_shl_load = yes; then
9829
9830 cat >>confdefs.h <<\_ACEOF
9831 #define HAVE_SHL_LOAD 1
9832 _ACEOF
9833
9834 else
9835   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9836 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9837 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9838   echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840   ac_check_lib_save_LIBS=$LIBS
9841 LIBS="-ldld  $LIBS"
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848
9849 /* Override any GCC internal prototype to avoid an error.
9850    Use char because int might match the return type of a GCC
9851    builtin and then its argument prototype would still apply.  */
9852 #ifdef __cplusplus
9853 extern "C"
9854 #endif
9855 char shl_load ();
9856 int
9857 main ()
9858 {
9859 return shl_load ();
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (ac_try="$ac_link"
9866 case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_link") 2>conftest.er1
9872   ac_status=$?
9873   grep -v '^ *+' conftest.er1 >conftest.err
9874   rm -f conftest.er1
9875   cat conftest.err >&5
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); } &&
9878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9888          { ac_try='test -s conftest$ac_exeext'
9889   { (case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_try") 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; }; then
9898   ac_cv_lib_dld_shl_load=yes
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903         ac_cv_lib_dld_shl_load=no
9904 fi
9905
9906 rm -f core conftest.err conftest.$ac_objext \
9907       conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9909 fi
9910 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9912 if test $ac_cv_lib_dld_shl_load = yes; then
9913
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_SHL_LOAD 1
9916 _ACEOF
9917
9918         LIBADD_DL="$LIBADD_DL -ldld"
9919 else
9920   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9921 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9922 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925   ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-ldl  $LIBS"
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933
9934 /* Override any GCC internal prototype to avoid an error.
9935    Use char because int might match the return type of a GCC
9936    builtin and then its argument prototype would still apply.  */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char dlopen ();
9941 int
9942 main ()
9943 {
9944 return dlopen ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9951 case "(($ac_try" in
9952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953   *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956   (eval "$ac_link") 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } &&
9963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9973          { ac_try='test -s conftest$ac_exeext'
9974   { (case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979   (eval "$ac_try") 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; }; then
9983   ac_cv_lib_dl_dlopen=yes
9984 else
9985   echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988         ac_cv_lib_dl_dlopen=no
9989 fi
9990
9991 rm -f core conftest.err conftest.$ac_objext \
9992       conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9994 fi
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9997 if test $ac_cv_lib_dl_dlopen = yes; then
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_LIBDL 1
10001 _ACEOF
10002
10003                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10004 else
10005   cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h.  */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h.  */
10011 #if HAVE_DLFCN_H
10012 #  include <dlfcn.h>
10013 #endif
10014
10015 int
10016 main ()
10017 {
10018 dlopen(0, 0);
10019   ;
10020   return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027   *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030   (eval "$ac_link") 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } &&
10037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10047          { ac_try='test -s conftest$ac_exeext'
10048   { (case "(($ac_try" in
10049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050   *) ac_try_echo=$ac_try;;
10051 esac
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053   (eval "$ac_try") 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); }; }; then
10057
10058 cat >>confdefs.h <<\_ACEOF
10059 #define HAVE_LIBDL 1
10060 _ACEOF
10061  libltdl_cv_func_dlopen="yes"
10062 else
10063   echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071   ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-lsvld  $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h.  */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h.  */
10079
10080 /* Override any GCC internal prototype to avoid an error.
10081    Use char because int might match the return type of a GCC
10082    builtin and then its argument prototype would still apply.  */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char dlopen ();
10087 int
10088 main ()
10089 {
10090 return dlopen ();
10091   ;
10092   return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099   *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102   (eval "$ac_link") 2>conftest.er1
10103   ac_status=$?
10104   grep -v '^ *+' conftest.er1 >conftest.err
10105   rm -f conftest.er1
10106   cat conftest.err >&5
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); } &&
10109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10119          { ac_try='test -s conftest$ac_exeext'
10120   { (case "(($ac_try" in
10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122   *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125   (eval "$ac_try") 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_lib_svld_dlopen=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134         ac_cv_lib_svld_dlopen=no
10135 fi
10136
10137 rm -f core conftest.err conftest.$ac_objext \
10138       conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10140 fi
10141 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10142 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10143 if test $ac_cv_lib_svld_dlopen = yes; then
10144
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_LIBDL 1
10147 _ACEOF
10148
10149                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10150 else
10151   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10152 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-ldld  $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164
10165 /* Override any GCC internal prototype to avoid an error.
10166    Use char because int might match the return type of a GCC
10167    builtin and then its argument prototype would still apply.  */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char dld_link ();
10172 int
10173 main ()
10174 {
10175 return dld_link ();
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184   *) ac_try_echo=$ac_try;;
10185 esac
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187   (eval "$ac_link") 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } &&
10194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10204          { ac_try='test -s conftest$ac_exeext'
10205   { (case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_try") 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_cv_lib_dld_dld_link=yes
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219         ac_cv_lib_dld_dld_link=no
10220 fi
10221
10222 rm -f core conftest.err conftest.$ac_objext \
10223       conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10225 fi
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10228 if test $ac_cv_lib_dld_dld_link = yes; then
10229
10230 cat >>confdefs.h <<\_ACEOF
10231 #define HAVE_DLD 1
10232 _ACEOF
10233
10234                 LIBADD_DL="$LIBADD_DL -ldld"
10235 else
10236   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10237 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10238 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h.  */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h.  */
10247 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10249 #define _dyld_func_lookup innocuous__dyld_func_lookup
10250
10251 /* System header to define __stub macros and hopefully few prototypes,
10252     which can conflict with char _dyld_func_lookup (); below.
10253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10254     <limits.h> exists even on freestanding compilers.  */
10255
10256 #ifdef __STDC__
10257 # include <limits.h>
10258 #else
10259 # include <assert.h>
10260 #endif
10261
10262 #undef _dyld_func_lookup
10263
10264 /* Override any GCC internal prototype to avoid an error.
10265    Use char because int might match the return type of a GCC
10266    builtin and then its argument prototype would still apply.  */
10267 #ifdef __cplusplus
10268 extern "C"
10269 #endif
10270 char _dyld_func_lookup ();
10271 /* The GNU C library defines this for functions which it implements
10272     to always fail with ENOSYS.  Some functions are actually named
10273     something starting with __ and the normal name is an alias.  */
10274 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10275 choke me
10276 #endif
10277
10278 int
10279 main ()
10280 {
10281 return _dyld_func_lookup ();
10282   ;
10283   return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290   *) ac_try_echo=$ac_try;;
10291 esac
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293   (eval "$ac_link") 2>conftest.er1
10294   ac_status=$?
10295   grep -v '^ *+' conftest.er1 >conftest.err
10296   rm -f conftest.er1
10297   cat conftest.err >&5
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); } &&
10300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10310          { ac_try='test -s conftest$ac_exeext'
10311   { (case "(($ac_try" in
10312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313   *) ac_try_echo=$ac_try;;
10314 esac
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316   (eval "$ac_try") 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; }; then
10320   ac_cv_func__dyld_func_lookup=yes
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325         ac_cv_func__dyld_func_lookup=no
10326 fi
10327
10328 rm -f core conftest.err conftest.$ac_objext \
10329       conftest$ac_exeext conftest.$ac_ext
10330 fi
10331 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10332 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10333 if test $ac_cv_func__dyld_func_lookup = yes; then
10334
10335 cat >>confdefs.h <<\_ACEOF
10336 #define HAVE_DYLD 1
10337 _ACEOF
10338
10339 fi
10340
10341
10342 fi
10343
10344
10345 fi
10346
10347
10348 fi
10349
10350 rm -f core conftest.err conftest.$ac_objext \
10351       conftest$ac_exeext conftest.$ac_ext
10352
10353 fi
10354
10355
10356 fi
10357
10358
10359 fi
10360
10361
10362 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10363 then
10364   lt_save_LIBS="$LIBS"
10365   LIBS="$LIBS $LIBADD_DL"
10366
10367 for ac_func in dlerror
10368 do
10369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10373   echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375   cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h.  */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h.  */
10381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10383 #define $ac_func innocuous_$ac_func
10384
10385 /* System header to define __stub macros and hopefully few prototypes,
10386     which can conflict with char $ac_func (); below.
10387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388     <limits.h> exists even on freestanding compilers.  */
10389
10390 #ifdef __STDC__
10391 # include <limits.h>
10392 #else
10393 # include <assert.h>
10394 #endif
10395
10396 #undef $ac_func
10397
10398 /* Override any GCC internal prototype to avoid an error.
10399    Use char because int might match the return type of a GCC
10400    builtin and then its argument prototype would still apply.  */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 char $ac_func ();
10405 /* The GNU C library defines this for functions which it implements
10406     to always fail with ENOSYS.  Some functions are actually named
10407     something starting with __ and the normal name is an alias.  */
10408 #if defined __stub_$ac_func || defined __stub___$ac_func
10409 choke me
10410 #endif
10411
10412 int
10413 main ()
10414 {
10415 return $ac_func ();
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424   *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427   (eval "$ac_link") 2>conftest.er1
10428   ac_status=$?
10429   grep -v '^ *+' conftest.er1 >conftest.err
10430   rm -f conftest.er1
10431   cat conftest.err >&5
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); } &&
10434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10444          { ac_try='test -s conftest$ac_exeext'
10445   { (case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_try") 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; }; then
10454   eval "$as_ac_var=yes"
10455 else
10456   echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459         eval "$as_ac_var=no"
10460 fi
10461
10462 rm -f core conftest.err conftest.$ac_objext \
10463       conftest$ac_exeext conftest.$ac_ext
10464 fi
10465 ac_res=`eval echo '${'$as_ac_var'}'`
10466                { echo "$as_me:$LINENO: result: $ac_res" >&5
10467 echo "${ECHO_T}$ac_res" >&6; }
10468 if test `eval echo '${'$as_ac_var'}'` = yes; then
10469   cat >>confdefs.h <<_ACEOF
10470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10471 _ACEOF
10472
10473 fi
10474 done
10475
10476   LIBS="$lt_save_LIBS"
10477 fi
10478 ac_ext=c
10479 ac_cpp='$CPP $CPPFLAGS'
10480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10483
10484
10485
10486 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10487 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10488 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10489   echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491   ac_cv_sys_symbol_underscore=no
10492   cat > conftest.$ac_ext <<EOF
10493 void nm_test_func(){}
10494 int main(){nm_test_func;return 0;}
10495 EOF
10496   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497   (eval $ac_compile) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); }; then
10501     # Now try to grab the symbols.
10502     ac_nlist=conftest.nm
10503     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10504   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); } && test -s "$ac_nlist"; then
10508       # See whether the symbols have a leading underscore.
10509       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10510         ac_cv_sys_symbol_underscore=yes
10511       else
10512         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10513           :
10514         else
10515           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10516         fi
10517       fi
10518     else
10519       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10520     fi
10521   else
10522     echo "configure: failed program was:" >&5
10523     cat conftest.c >&5
10524   fi
10525   rm -rf conftest*
10526
10527 fi
10528 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10529 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10530
10531
10532 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10533   if test x"$libltdl_cv_func_dlopen" = xyes ||
10534      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10535         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10536 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10537 if test "${libltdl_cv_need_uscore+set}" = set; then
10538   echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540   libltdl_cv_need_uscore=unknown
10541           save_LIBS="$LIBS"
10542           LIBS="$LIBS $LIBADD_DL"
10543           if test "$cross_compiling" = yes; then :
10544   libltdl_cv_need_uscore=cross
10545 else
10546   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10547   lt_status=$lt_dlunknown
10548   cat > conftest.$ac_ext <<EOF
10549 #line 10542 "configure"
10550 #include "confdefs.h"
10551
10552 #if HAVE_DLFCN_H
10553 #include <dlfcn.h>
10554 #endif
10555
10556 #include <stdio.h>
10557
10558 #ifdef RTLD_GLOBAL
10559 #  define LT_DLGLOBAL           RTLD_GLOBAL
10560 #else
10561 #  ifdef DL_GLOBAL
10562 #    define LT_DLGLOBAL         DL_GLOBAL
10563 #  else
10564 #    define LT_DLGLOBAL         0
10565 #  endif
10566 #endif
10567
10568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10569    find out it does not work in some platform. */
10570 #ifndef LT_DLLAZY_OR_NOW
10571 #  ifdef RTLD_LAZY
10572 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10573 #  else
10574 #    ifdef DL_LAZY
10575 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10576 #    else
10577 #      ifdef RTLD_NOW
10578 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10579 #      else
10580 #        ifdef DL_NOW
10581 #          define LT_DLLAZY_OR_NOW      DL_NOW
10582 #        else
10583 #          define LT_DLLAZY_OR_NOW      0
10584 #        endif
10585 #      endif
10586 #    endif
10587 #  endif
10588 #endif
10589
10590 #ifdef __cplusplus
10591 extern "C" void exit (int);
10592 #endif
10593
10594 void fnord() { int i=42;}
10595 int main ()
10596 {
10597   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10598   int status = $lt_dlunknown;
10599
10600   if (self)
10601     {
10602       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10603       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10604       /* dlclose (self); */
10605     }
10606   else
10607     puts (dlerror ());
10608
10609     exit (status);
10610 }
10611 EOF
10612   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613   (eval $ac_link) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10617     (./conftest; exit; ) >&5 2>/dev/null
10618     lt_status=$?
10619     case x$lt_status in
10620       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10621       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10622       x$lt_dlunknown|x*)  ;;
10623     esac
10624   else :
10625     # compilation failed
10626
10627   fi
10628 fi
10629 rm -fr conftest*
10630
10631           LIBS="$save_LIBS"
10632
10633 fi
10634 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10635 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10636   fi
10637 fi
10638
10639 if test x"$libltdl_cv_need_uscore" = xyes; then
10640
10641 cat >>confdefs.h <<\_ACEOF
10642 #define NEED_USCORE 1
10643 _ACEOF
10644
10645 fi
10646
10647
10648 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10649 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10650 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653   # PORTME does your system automatically load deplibs for dlopen?
10654   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10655   # For now, we just catch OSes we know something about -- in the
10656   # future, we'll try test this programmatically.
10657   libltdl_cv_sys_dlopen_deplibs=unknown
10658   case "$host_os" in
10659   aix3*|aix4.1.*|aix4.2.*)
10660     # Unknown whether this is true for these versions of AIX, but
10661     # we want this `case' here to explicitly catch those versions.
10662     libltdl_cv_sys_dlopen_deplibs=unknown
10663     ;;
10664   aix[45]*)
10665     libltdl_cv_sys_dlopen_deplibs=yes
10666     ;;
10667   darwin*)
10668     # Assuming the user has installed a libdl from somewhere, this is true
10669     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10673     # GNU and its variants, using gnu ld.so (Glibc)
10674     libltdl_cv_sys_dlopen_deplibs=yes
10675     ;;
10676   hpux10*|hpux11*)
10677     libltdl_cv_sys_dlopen_deplibs=yes
10678     ;;
10679   interix*)
10680     libltdl_cv_sys_dlopen_deplibs=yes
10681     ;;
10682   irix[12345]*|irix6.[01]*)
10683     # Catch all versions of IRIX before 6.2, and indicate that we don't
10684     # know how it worked for any of those versions.
10685     libltdl_cv_sys_dlopen_deplibs=unknown
10686     ;;
10687   irix*)
10688     # The case above catches anything before 6.2, and it's known that
10689     # at 6.2 and later dlopen does load deplibs.
10690     libltdl_cv_sys_dlopen_deplibs=yes
10691     ;;
10692   netbsd*)
10693     libltdl_cv_sys_dlopen_deplibs=yes
10694     ;;
10695   openbsd*)
10696     libltdl_cv_sys_dlopen_deplibs=yes
10697     ;;
10698   osf[1234]*)
10699     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10700     # it did *not* use an RPATH in a shared library to find objects the
10701     # library depends on, so we explicitly say `no'.
10702     libltdl_cv_sys_dlopen_deplibs=no
10703     ;;
10704   osf5.0|osf5.0a|osf5.1)
10705     # dlopen *does* load deplibs and with the right loader patch applied
10706     # it even uses RPATH in a shared library to search for shared objects
10707     # that the library depends on, but there's no easy way to know if that
10708     # patch is installed.  Since this is the case, all we can really
10709     # say is unknown -- it depends on the patch being installed.  If
10710     # it is, this changes to `yes'.  Without it, it would be `no'.
10711     libltdl_cv_sys_dlopen_deplibs=unknown
10712     ;;
10713   osf*)
10714     # the two cases above should catch all versions of osf <= 5.1.  Read
10715     # the comments above for what we know about them.
10716     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10717     # is used to find them so we can finally say `yes'.
10718     libltdl_cv_sys_dlopen_deplibs=yes
10719     ;;
10720   solaris*)
10721     libltdl_cv_sys_dlopen_deplibs=yes
10722     ;;
10723   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10724     libltdl_cv_sys_dlopen_deplibs=yes
10725     ;;
10726   esac
10727
10728 fi
10729 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10730 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10731 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10732
10733 cat >>confdefs.h <<\_ACEOF
10734 #define LTDL_DLOPEN_DEPLIBS 1
10735 _ACEOF
10736
10737 fi
10738
10739
10740 for ac_header in argz.h
10741 do
10742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10744   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10747   echo $ECHO_N "(cached) $ECHO_C" >&6
10748 fi
10749 ac_res=`eval echo '${'$as_ac_Header'}'`
10750                { echo "$as_me:$LINENO: result: $ac_res" >&5
10751 echo "${ECHO_T}$ac_res" >&6; }
10752 else
10753   # Is the header compilable?
10754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762 $ac_includes_default
10763 #include <$ac_header>
10764 _ACEOF
10765 rm -f conftest.$ac_objext
10766 if { (ac_try="$ac_compile"
10767 case "(($ac_try" in
10768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769   *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772   (eval "$ac_compile") 2>conftest.er1
10773   ac_status=$?
10774   grep -v '^ *+' conftest.er1 >conftest.err
10775   rm -f conftest.er1
10776   cat conftest.err >&5
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); } &&
10779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10789          { ac_try='test -s conftest.$ac_objext'
10790   { (case "(($ac_try" in
10791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792   *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795   (eval "$ac_try") 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; }; then
10799   ac_header_compiler=yes
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804         ac_header_compiler=no
10805 fi
10806
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10809 echo "${ECHO_T}$ac_header_compiler" >&6; }
10810
10811 # Is the header present?
10812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10814 cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h.  */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h.  */
10820 #include <$ac_header>
10821 _ACEOF
10822 if { (ac_try="$ac_cpp conftest.$ac_ext"
10823 case "(($ac_try" in
10824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825   *) ac_try_echo=$ac_try;;
10826 esac
10827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10829   ac_status=$?
10830   grep -v '^ *+' conftest.er1 >conftest.err
10831   rm -f conftest.er1
10832   cat conftest.err >&5
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } >/dev/null; then
10835   if test -s conftest.err; then
10836     ac_cpp_err=$ac_c_preproc_warn_flag
10837     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10838   else
10839     ac_cpp_err=
10840   fi
10841 else
10842   ac_cpp_err=yes
10843 fi
10844 if test -z "$ac_cpp_err"; then
10845   ac_header_preproc=yes
10846 else
10847   echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10849
10850   ac_header_preproc=no
10851 fi
10852
10853 rm -f conftest.err conftest.$ac_ext
10854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10855 echo "${ECHO_T}$ac_header_preproc" >&6; }
10856
10857 # So?  What about this header?
10858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10859   yes:no: )
10860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10864     ac_header_preproc=yes
10865     ;;
10866   no:yes:* )
10867     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10869     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10870 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10871     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10873     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10874 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10877     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10879     ( cat <<\_ASBOX
10880 ## ------------------------------------ ##
10881 ## Report this to http://llvm.org/bugs/ ##
10882 ## ------------------------------------ ##
10883 _ASBOX
10884      ) | sed "s/^/$as_me: WARNING:     /" >&2
10885     ;;
10886 esac
10887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   eval "$as_ac_Header=\$ac_header_preproc"
10893 fi
10894 ac_res=`eval echo '${'$as_ac_Header'}'`
10895                { echo "$as_me:$LINENO: result: $ac_res" >&5
10896 echo "${ECHO_T}$ac_res" >&6; }
10897
10898 fi
10899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10900   cat >>confdefs.h <<_ACEOF
10901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10902 _ACEOF
10903
10904 fi
10905
10906 done
10907
10908
10909 { echo "$as_me:$LINENO: checking for error_t" >&5
10910 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10911 if test "${ac_cv_type_error_t+set}" = set; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914   cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h.  */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h.  */
10920 #if HAVE_ARGZ_H
10921 #  include <argz.h>
10922 #endif
10923
10924 typedef error_t ac__type_new_;
10925 int
10926 main ()
10927 {
10928 if ((ac__type_new_ *) 0)
10929   return 0;
10930 if (sizeof (ac__type_new_))
10931   return 0;
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 rm -f conftest.$ac_objext
10937 if { (ac_try="$ac_compile"
10938 case "(($ac_try" in
10939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940   *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943   (eval "$ac_compile") 2>conftest.er1
10944   ac_status=$?
10945   grep -v '^ *+' conftest.er1 >conftest.err
10946   rm -f conftest.er1
10947   cat conftest.err >&5
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } &&
10950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10960          { ac_try='test -s conftest.$ac_objext'
10961   { (case "(($ac_try" in
10962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963   *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966   (eval "$ac_try") 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; }; then
10970   ac_cv_type_error_t=yes
10971 else
10972   echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975         ac_cv_type_error_t=no
10976 fi
10977
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 fi
10980 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10981 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10982 if test $ac_cv_type_error_t = yes; then
10983
10984 cat >>confdefs.h <<_ACEOF
10985 #define HAVE_ERROR_T 1
10986 _ACEOF
10987
10988
10989 else
10990
10991 cat >>confdefs.h <<\_ACEOF
10992 #define error_t int
10993 _ACEOF
10994
10995 fi
10996
10997
10998
10999
11000
11001
11002
11003 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11004 do
11005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11009   echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011   cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11019 #define $ac_func innocuous_$ac_func
11020
11021 /* System header to define __stub macros and hopefully few prototypes,
11022     which can conflict with char $ac_func (); below.
11023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11024     <limits.h> exists even on freestanding compilers.  */
11025
11026 #ifdef __STDC__
11027 # include <limits.h>
11028 #else
11029 # include <assert.h>
11030 #endif
11031
11032 #undef $ac_func
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035    Use char because int might match the return type of a GCC
11036    builtin and then its argument prototype would still apply.  */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char $ac_func ();
11041 /* The GNU C library defines this for functions which it implements
11042     to always fail with ENOSYS.  Some functions are actually named
11043     something starting with __ and the normal name is an alias.  */
11044 #if defined __stub_$ac_func || defined __stub___$ac_func
11045 choke me
11046 #endif
11047
11048 int
11049 main ()
11050 {
11051 return $ac_func ();
11052   ;
11053   return 0;
11054 }
11055 _ACEOF
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (ac_try="$ac_link"
11058 case "(($ac_try" in
11059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060   *) ac_try_echo=$ac_try;;
11061 esac
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063   (eval "$ac_link") 2>conftest.er1
11064   ac_status=$?
11065   grep -v '^ *+' conftest.er1 >conftest.err
11066   rm -f conftest.er1
11067   cat conftest.err >&5
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } &&
11070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11080          { ac_try='test -s conftest$ac_exeext'
11081   { (case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086   (eval "$ac_try") 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); }; }; then
11090   eval "$as_ac_var=yes"
11091 else
11092   echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095         eval "$as_ac_var=no"
11096 fi
11097
11098 rm -f core conftest.err conftest.$ac_objext \
11099       conftest$ac_exeext conftest.$ac_ext
11100 fi
11101 ac_res=`eval echo '${'$as_ac_var'}'`
11102                { echo "$as_me:$LINENO: result: $ac_res" >&5
11103 echo "${ECHO_T}$ac_res" >&6; }
11104 if test `eval echo '${'$as_ac_var'}'` = yes; then
11105   cat >>confdefs.h <<_ACEOF
11106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11107 _ACEOF
11108
11109 fi
11110 done
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11139                   stdio.h unistd.h
11140 do
11141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11143   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146   echo $ECHO_N "(cached) $ECHO_C" >&6
11147 fi
11148 ac_res=`eval echo '${'$as_ac_Header'}'`
11149                { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11151 else
11152   # Is the header compilable?
11153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h.  */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h.  */
11161 $ac_includes_default
11162 #include <$ac_header>
11163 _ACEOF
11164 rm -f conftest.$ac_objext
11165 if { (ac_try="$ac_compile"
11166 case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_compile") 2>conftest.er1
11172   ac_status=$?
11173   grep -v '^ *+' conftest.er1 >conftest.err
11174   rm -f conftest.er1
11175   cat conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } &&
11178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11179   { (case "(($ac_try" in
11180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181   *) ac_try_echo=$ac_try;;
11182 esac
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184   (eval "$ac_try") 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; } &&
11188          { ac_try='test -s conftest.$ac_objext'
11189   { (case "(($ac_try" in
11190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191   *) ac_try_echo=$ac_try;;
11192 esac
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194   (eval "$ac_try") 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); }; }; then
11198   ac_header_compiler=yes
11199 else
11200   echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203         ac_header_compiler=no
11204 fi
11205
11206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11208 echo "${ECHO_T}$ac_header_compiler" >&6; }
11209
11210 # Is the header present?
11211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h.  */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h.  */
11219 #include <$ac_header>
11220 _ACEOF
11221 if { (ac_try="$ac_cpp conftest.$ac_ext"
11222 case "(($ac_try" in
11223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224   *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11228   ac_status=$?
11229   grep -v '^ *+' conftest.er1 >conftest.err
11230   rm -f conftest.er1
11231   cat conftest.err >&5
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); } >/dev/null; then
11234   if test -s conftest.err; then
11235     ac_cpp_err=$ac_c_preproc_warn_flag
11236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11237   else
11238     ac_cpp_err=
11239   fi
11240 else
11241   ac_cpp_err=yes
11242 fi
11243 if test -z "$ac_cpp_err"; then
11244   ac_header_preproc=yes
11245 else
11246   echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11248
11249   ac_header_preproc=no
11250 fi
11251
11252 rm -f conftest.err conftest.$ac_ext
11253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11254 echo "${ECHO_T}$ac_header_preproc" >&6; }
11255
11256 # So?  What about this header?
11257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11258   yes:no: )
11259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11263     ac_header_preproc=yes
11264     ;;
11265   no:yes:* )
11266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11278     ( cat <<\_ASBOX
11279 ## ------------------------------------ ##
11280 ## Report this to http://llvm.org/bugs/ ##
11281 ## ------------------------------------ ##
11282 _ASBOX
11283      ) | sed "s/^/$as_me: WARNING:     /" >&2
11284     ;;
11285 esac
11286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   eval "$as_ac_Header=\$ac_header_preproc"
11292 fi
11293 ac_res=`eval echo '${'$as_ac_Header'}'`
11294                { echo "$as_me:$LINENO: result: $ac_res" >&5
11295 echo "${ECHO_T}$ac_res" >&6; }
11296
11297 fi
11298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11299   cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301 _ACEOF
11302
11303 fi
11304
11305 done
11306
11307
11308
11309
11310
11311 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11312 do
11313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 fi
11320 ac_res=`eval echo '${'$as_ac_Header'}'`
11321                { echo "$as_me:$LINENO: result: $ac_res" >&5
11322 echo "${ECHO_T}$ac_res" >&6; }
11323 else
11324   # Is the header compilable?
11325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 $ac_includes_default
11334 #include <$ac_header>
11335 _ACEOF
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_compile") 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } &&
11350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351   { (case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_try") 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; } &&
11360          { ac_try='test -s conftest.$ac_objext'
11361   { (case "(($ac_try" in
11362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363   *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366   (eval "$ac_try") 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; }; then
11370   ac_header_compiler=yes
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375         ac_header_compiler=no
11376 fi
11377
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11380 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381
11382 # Is the header present?
11383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h.  */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h.  */
11391 #include <$ac_header>
11392 _ACEOF
11393 if { (ac_try="$ac_cpp conftest.$ac_ext"
11394 case "(($ac_try" in
11395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396   *) ac_try_echo=$ac_try;;
11397 esac
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400   ac_status=$?
11401   grep -v '^ *+' conftest.er1 >conftest.err
11402   rm -f conftest.er1
11403   cat conftest.err >&5
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); } >/dev/null; then
11406   if test -s conftest.err; then
11407     ac_cpp_err=$ac_c_preproc_warn_flag
11408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11409   else
11410     ac_cpp_err=
11411   fi
11412 else
11413   ac_cpp_err=yes
11414 fi
11415 if test -z "$ac_cpp_err"; then
11416   ac_header_preproc=yes
11417 else
11418   echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11420
11421   ac_header_preproc=no
11422 fi
11423
11424 rm -f conftest.err conftest.$ac_ext
11425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11426 echo "${ECHO_T}$ac_header_preproc" >&6; }
11427
11428 # So?  What about this header?
11429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430   yes:no: )
11431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11435     ac_header_preproc=yes
11436     ;;
11437   no:yes:* )
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450     ( cat <<\_ASBOX
11451 ## ------------------------------------ ##
11452 ## Report this to http://llvm.org/bugs/ ##
11453 ## ------------------------------------ ##
11454 _ASBOX
11455      ) | sed "s/^/$as_me: WARNING:     /" >&2
11456     ;;
11457 esac
11458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463   eval "$as_ac_Header=\$ac_header_preproc"
11464 fi
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466                { echo "$as_me:$LINENO: result: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11468
11469 fi
11470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11471   cat >>confdefs.h <<_ACEOF
11472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 _ACEOF
11474
11475 fi
11476
11477 done
11478
11479
11480
11481 for ac_header in string.h strings.h
11482 do
11483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488   echo $ECHO_N "(cached) $ECHO_C" >&6
11489 fi
11490 ac_res=`eval echo '${'$as_ac_Header'}'`
11491                { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11493 else
11494   # Is the header compilable?
11495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 $ac_includes_default
11504 #include <$ac_header>
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510   *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513   (eval "$ac_compile") 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } &&
11520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11521   { (case "(($ac_try" in
11522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523   *) ac_try_echo=$ac_try;;
11524 esac
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526   (eval "$ac_try") 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; } &&
11530          { ac_try='test -s conftest.$ac_objext'
11531   { (case "(($ac_try" in
11532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533   *) ac_try_echo=$ac_try;;
11534 esac
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536   (eval "$ac_try") 2>&5
11537   ac_status=$?
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); }; }; then
11540   ac_header_compiler=yes
11541 else
11542   echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545         ac_header_compiler=no
11546 fi
11547
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550 echo "${ECHO_T}$ac_header_compiler" >&6; }
11551
11552 # Is the header present?
11553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h.  */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h.  */
11561 #include <$ac_header>
11562 _ACEOF
11563 if { (ac_try="$ac_cpp conftest.$ac_ext"
11564 case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11570   ac_status=$?
11571   grep -v '^ *+' conftest.er1 >conftest.err
11572   rm -f conftest.er1
11573   cat conftest.err >&5
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); } >/dev/null; then
11576   if test -s conftest.err; then
11577     ac_cpp_err=$ac_c_preproc_warn_flag
11578     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11579   else
11580     ac_cpp_err=
11581   fi
11582 else
11583   ac_cpp_err=yes
11584 fi
11585 if test -z "$ac_cpp_err"; then
11586   ac_header_preproc=yes
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11590
11591   ac_header_preproc=no
11592 fi
11593
11594 rm -f conftest.err conftest.$ac_ext
11595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596 echo "${ECHO_T}$ac_header_preproc" >&6; }
11597
11598 # So?  What about this header?
11599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11600   yes:no: )
11601     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11605     ac_header_preproc=yes
11606     ;;
11607   no:yes:* )
11608     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11610     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11611 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11612     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11614     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11615 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11618     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11620     ( cat <<\_ASBOX
11621 ## ------------------------------------ ##
11622 ## Report this to http://llvm.org/bugs/ ##
11623 ## ------------------------------------ ##
11624 _ASBOX
11625      ) | sed "s/^/$as_me: WARNING:     /" >&2
11626     ;;
11627 esac
11628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631   echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633   eval "$as_ac_Header=\$ac_header_preproc"
11634 fi
11635 ac_res=`eval echo '${'$as_ac_Header'}'`
11636                { echo "$as_me:$LINENO: result: $ac_res" >&5
11637 echo "${ECHO_T}$ac_res" >&6; }
11638
11639 fi
11640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11641   cat >>confdefs.h <<_ACEOF
11642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 _ACEOF
11644  break
11645 fi
11646
11647 done
11648
11649
11650
11651
11652 for ac_func in strchr index
11653 do
11654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11658   echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660   cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11668 #define $ac_func innocuous_$ac_func
11669
11670 /* System header to define __stub macros and hopefully few prototypes,
11671     which can conflict with char $ac_func (); below.
11672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11673     <limits.h> exists even on freestanding compilers.  */
11674
11675 #ifdef __STDC__
11676 # include <limits.h>
11677 #else
11678 # include <assert.h>
11679 #endif
11680
11681 #undef $ac_func
11682
11683 /* Override any GCC internal prototype to avoid an error.
11684    Use char because int might match the return type of a GCC
11685    builtin and then its argument prototype would still apply.  */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char $ac_func ();
11690 /* The GNU C library defines this for functions which it implements
11691     to always fail with ENOSYS.  Some functions are actually named
11692     something starting with __ and the normal name is an alias.  */
11693 #if defined __stub_$ac_func || defined __stub___$ac_func
11694 choke me
11695 #endif
11696
11697 int
11698 main ()
11699 {
11700 return $ac_func ();
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (ac_try="$ac_link"
11707 case "(($ac_try" in
11708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709   *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712   (eval "$ac_link") 2>conftest.er1
11713   ac_status=$?
11714   grep -v '^ *+' conftest.er1 >conftest.err
11715   rm -f conftest.er1
11716   cat conftest.err >&5
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } &&
11719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720   { (case "(($ac_try" in
11721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722   *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725   (eval "$ac_try") 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; } &&
11729          { ac_try='test -s conftest$ac_exeext'
11730   { (case "(($ac_try" in
11731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732   *) ac_try_echo=$ac_try;;
11733 esac
11734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735   (eval "$ac_try") 2>&5
11736   ac_status=$?
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); }; }; then
11739   eval "$as_ac_var=yes"
11740 else
11741   echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744         eval "$as_ac_var=no"
11745 fi
11746
11747 rm -f core conftest.err conftest.$ac_objext \
11748       conftest$ac_exeext conftest.$ac_ext
11749 fi
11750 ac_res=`eval echo '${'$as_ac_var'}'`
11751                { echo "$as_me:$LINENO: result: $ac_res" >&5
11752 echo "${ECHO_T}$ac_res" >&6; }
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then
11754   cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 _ACEOF
11757  break
11758 fi
11759 done
11760
11761
11762
11763 for ac_func in strrchr rindex
11764 do
11765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771   cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h.  */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h.  */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11779 #define $ac_func innocuous_$ac_func
11780
11781 /* System header to define __stub macros and hopefully few prototypes,
11782     which can conflict with char $ac_func (); below.
11783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784     <limits.h> exists even on freestanding compilers.  */
11785
11786 #ifdef __STDC__
11787 # include <limits.h>
11788 #else
11789 # include <assert.h>
11790 #endif
11791
11792 #undef $ac_func
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795    Use char because int might match the return type of a GCC
11796    builtin and then its argument prototype would still apply.  */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char $ac_func ();
11801 /* The GNU C library defines this for functions which it implements
11802     to always fail with ENOSYS.  Some functions are actually named
11803     something starting with __ and the normal name is an alias.  */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11805 choke me
11806 #endif
11807
11808 int
11809 main ()
11810 {
11811 return $ac_func ();
11812   ;
11813   return 0;
11814 }
11815 _ACEOF
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823   (eval "$ac_link") 2>conftest.er1
11824   ac_status=$?
11825   grep -v '^ *+' conftest.er1 >conftest.err
11826   rm -f conftest.er1
11827   cat conftest.err >&5
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); } &&
11830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831   { (case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836   (eval "$ac_try") 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; } &&
11840          { ac_try='test -s conftest$ac_exeext'
11841   { (case "(($ac_try" in
11842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843   *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846   (eval "$ac_try") 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; }; then
11850   eval "$as_ac_var=yes"
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855         eval "$as_ac_var=no"
11856 fi
11857
11858 rm -f core conftest.err conftest.$ac_objext \
11859       conftest$ac_exeext conftest.$ac_ext
11860 fi
11861 ac_res=`eval echo '${'$as_ac_var'}'`
11862                { echo "$as_me:$LINENO: result: $ac_res" >&5
11863 echo "${ECHO_T}$ac_res" >&6; }
11864 if test `eval echo '${'$as_ac_var'}'` = yes; then
11865   cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867 _ACEOF
11868  break
11869 fi
11870 done
11871
11872
11873
11874 for ac_func in memcpy bcopy
11875 do
11876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11880   echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882   cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11890 #define $ac_func innocuous_$ac_func
11891
11892 /* System header to define __stub macros and hopefully few prototypes,
11893     which can conflict with char $ac_func (); below.
11894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895     <limits.h> exists even on freestanding compilers.  */
11896
11897 #ifdef __STDC__
11898 # include <limits.h>
11899 #else
11900 # include <assert.h>
11901 #endif
11902
11903 #undef $ac_func
11904
11905 /* Override any GCC internal prototype to avoid an error.
11906    Use char because int might match the return type of a GCC
11907    builtin and then its argument prototype would still apply.  */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char $ac_func ();
11912 /* The GNU C library defines this for functions which it implements
11913     to always fail with ENOSYS.  Some functions are actually named
11914     something starting with __ and the normal name is an alias.  */
11915 #if defined __stub_$ac_func || defined __stub___$ac_func
11916 choke me
11917 #endif
11918
11919 int
11920 main ()
11921 {
11922 return $ac_func ();
11923   ;
11924   return 0;
11925 }
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (ac_try="$ac_link"
11929 case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934   (eval "$ac_link") 2>conftest.er1
11935   ac_status=$?
11936   grep -v '^ *+' conftest.er1 >conftest.err
11937   rm -f conftest.er1
11938   cat conftest.err >&5
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); } &&
11941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942   { (case "(($ac_try" in
11943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944   *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947   (eval "$ac_try") 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; } &&
11951          { ac_try='test -s conftest$ac_exeext'
11952   { (case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957   (eval "$ac_try") 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); }; }; then
11961   eval "$as_ac_var=yes"
11962 else
11963   echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966         eval "$as_ac_var=no"
11967 fi
11968
11969 rm -f core conftest.err conftest.$ac_objext \
11970       conftest$ac_exeext conftest.$ac_ext
11971 fi
11972 ac_res=`eval echo '${'$as_ac_var'}'`
11973                { echo "$as_me:$LINENO: result: $ac_res" >&5
11974 echo "${ECHO_T}$ac_res" >&6; }
11975 if test `eval echo '${'$as_ac_var'}'` = yes; then
11976   cat >>confdefs.h <<_ACEOF
11977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978 _ACEOF
11979  break
11980 fi
11981 done
11982
11983
11984
11985 for ac_func in memmove strcmp
11986 do
11987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11991   echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993   cat >conftest.$ac_ext <<_ACEOF
11994 /* confdefs.h.  */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h.  */
11999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12001 #define $ac_func innocuous_$ac_func
12002
12003 /* System header to define __stub macros and hopefully few prototypes,
12004     which can conflict with char $ac_func (); below.
12005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12006     <limits.h> exists even on freestanding compilers.  */
12007
12008 #ifdef __STDC__
12009 # include <limits.h>
12010 #else
12011 # include <assert.h>
12012 #endif
12013
12014 #undef $ac_func
12015
12016 /* Override any GCC internal prototype to avoid an error.
12017    Use char because int might match the return type of a GCC
12018    builtin and then its argument prototype would still apply.  */
12019 #ifdef __cplusplus
12020 extern "C"
12021 #endif
12022 char $ac_func ();
12023 /* The GNU C library defines this for functions which it implements
12024     to always fail with ENOSYS.  Some functions are actually named
12025     something starting with __ and the normal name is an alias.  */
12026 #if defined __stub_$ac_func || defined __stub___$ac_func
12027 choke me
12028 #endif
12029
12030 int
12031 main ()
12032 {
12033 return $ac_func ();
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (ac_try="$ac_link"
12040 case "(($ac_try" in
12041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042   *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045   (eval "$ac_link") 2>conftest.er1
12046   ac_status=$?
12047   grep -v '^ *+' conftest.er1 >conftest.err
12048   rm -f conftest.er1
12049   cat conftest.err >&5
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); } &&
12052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12053   { (case "(($ac_try" in
12054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055   *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058   (eval "$ac_try") 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); }; } &&
12062          { ac_try='test -s conftest$ac_exeext'
12063   { (case "(($ac_try" in
12064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065   *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068   (eval "$ac_try") 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; }; then
12072   eval "$as_ac_var=yes"
12073 else
12074   echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077         eval "$as_ac_var=no"
12078 fi
12079
12080 rm -f core conftest.err conftest.$ac_objext \
12081       conftest$ac_exeext conftest.$ac_ext
12082 fi
12083 ac_res=`eval echo '${'$as_ac_var'}'`
12084                { echo "$as_me:$LINENO: result: $ac_res" >&5
12085 echo "${ECHO_T}$ac_res" >&6; }
12086 if test `eval echo '${'$as_ac_var'}'` = yes; then
12087   cat >>confdefs.h <<_ACEOF
12088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12089 _ACEOF
12090
12091 fi
12092 done
12093
12094
12095
12096
12097 for ac_func in closedir opendir readdir
12098 do
12099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12103   echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105   cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h.  */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h.  */
12111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12113 #define $ac_func innocuous_$ac_func
12114
12115 /* System header to define __stub macros and hopefully few prototypes,
12116     which can conflict with char $ac_func (); below.
12117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118     <limits.h> exists even on freestanding compilers.  */
12119
12120 #ifdef __STDC__
12121 # include <limits.h>
12122 #else
12123 # include <assert.h>
12124 #endif
12125
12126 #undef $ac_func
12127
12128 /* Override any GCC internal prototype to avoid an error.
12129    Use char because int might match the return type of a GCC
12130    builtin and then its argument prototype would still apply.  */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 char $ac_func ();
12135 /* The GNU C library defines this for functions which it implements
12136     to always fail with ENOSYS.  Some functions are actually named
12137     something starting with __ and the normal name is an alias.  */
12138 #if defined __stub_$ac_func || defined __stub___$ac_func
12139 choke me
12140 #endif
12141
12142 int
12143 main ()
12144 {
12145 return $ac_func ();
12146   ;
12147   return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (ac_try="$ac_link"
12152 case "(($ac_try" in
12153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154   *) ac_try_echo=$ac_try;;
12155 esac
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157   (eval "$ac_link") 2>conftest.er1
12158   ac_status=$?
12159   grep -v '^ *+' conftest.er1 >conftest.err
12160   rm -f conftest.er1
12161   cat conftest.err >&5
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } &&
12164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12165   { (case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170   (eval "$ac_try") 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; } &&
12174          { ac_try='test -s conftest$ac_exeext'
12175   { (case "(($ac_try" in
12176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177   *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180   (eval "$ac_try") 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; }; then
12184   eval "$as_ac_var=yes"
12185 else
12186   echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12188
12189         eval "$as_ac_var=no"
12190 fi
12191
12192 rm -f core conftest.err conftest.$ac_objext \
12193       conftest$ac_exeext conftest.$ac_ext
12194 fi
12195 ac_res=`eval echo '${'$as_ac_var'}'`
12196                { echo "$as_me:$LINENO: result: $ac_res" >&5
12197 echo "${ECHO_T}$ac_res" >&6; }
12198 if test `eval echo '${'$as_ac_var'}'` = yes; then
12199   cat >>confdefs.h <<_ACEOF
12200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201 _ACEOF
12202
12203 fi
12204 done
12205
12206
12207
12208 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12209 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12210
12211 ICC=no
12212 IXX=no
12213 case $CC in
12214   icc*|icpc*)
12215     ICC=yes
12216     IXX=yes
12217     ;;
12218    *)
12219     ;;
12220 esac
12221
12222 if test "$GCC" != "yes" && test "$ICC" != "yes"
12223 then
12224   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12225 echo "$as_me: error: gcc|icc required but not found" >&2;}
12226    { (exit 1); exit 1; }; }
12227 fi
12228
12229 if test "$GXX" != "yes" && test "$IXX" != "yes"
12230 then
12231   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12232 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12233    { (exit 1); exit 1; }; }
12234 fi
12235
12236 if test "$GCC" = "yes"
12237 then
12238   cat >conftest.$ac_ext <<_ACEOF
12239
12240   /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245
12246     #if !defined(__GNUC__) || __GNUC__ < 3
12247     #error Unsupported GCC version
12248     #endif
12249
12250
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (ac_try="$ac_compile"
12254 case "(($ac_try" in
12255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256   *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259   (eval "$ac_compile") 2>conftest.er1
12260   ac_status=$?
12261   grep -v '^ *+' conftest.er1 >conftest.err
12262   rm -f conftest.er1
12263   cat conftest.err >&5
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); } &&
12266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12267   { (case "(($ac_try" in
12268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269   *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272   (eval "$ac_try") 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); }; } &&
12276          { ac_try='test -s conftest.$ac_objext'
12277   { (case "(($ac_try" in
12278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279   *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282   (eval "$ac_try") 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); }; }; then
12286   :
12287 else
12288   echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12292 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12293    { (exit 1); exit 1; }; }
12294 fi
12295
12296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12297 fi
12298
12299 if test -z "$llvm_cv_gnu_make_command"
12300 then
12301   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12302 echo "$as_me: error: GNU Make required but not found" >&2;}
12303    { (exit 1); exit 1; }; }
12304 fi
12305
12306 { echo "$as_me:$LINENO: result: ok" >&5
12307 echo "${ECHO_T}ok" >&6; }
12308
12309 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12310 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12311 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12312
12313 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12314
12315 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12316
12317
12318 NO_UNINITIALIZED=
12319 NO_MAYBE_UNINITIALIZED=
12320 if test "$GXX" = "yes"
12321 then
12322   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12323
12324         if test -z "$NO_MAYBE_UNINITIALIZED"
12325   then
12326     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12327
12328   fi
12329 fi
12330 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12331 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12332
12333
12334 # Check whether --with-python was given.
12335 if test "${with_python+set}" = set; then
12336   withval=$with_python; PYTHON="$withval"
12337 fi
12338
12339
12340 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12341   { echo "$as_me:$LINENO: checking for python" >&5
12342 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12343   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12344 echo "${ECHO_T}user defined: $with_python" >&6; }
12345 else
12346   if test -n "$PYTHON" ; then
12347     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12348 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12349   fi
12350
12351   # Extract the first word of "python python2 python26", so it can be a program name with args.
12352 set dummy python python2 python26; ac_word=$2
12353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12355 if test "${ac_cv_path_PYTHON+set}" = set; then
12356   echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358   case $PYTHON in
12359   [\\/]* | ?:[\\/]*)
12360   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12361   ;;
12362   *)
12363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12365 do
12366   IFS=$as_save_IFS
12367   test -z "$as_dir" && as_dir=.
12368   for ac_exec_ext in '' $ac_executable_extensions; do
12369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12370     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12372     break 2
12373   fi
12374 done
12375 done
12376 IFS=$as_save_IFS
12377
12378   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12379 echo "${ECHO_T}not found" >&6; }
12380                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12381 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12382    { (exit 1); exit 1; }; }"
12383   ;;
12384 esac
12385 fi
12386 PYTHON=$ac_cv_path_PYTHON
12387 if test -n "$PYTHON"; then
12388   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12389 echo "${ECHO_T}$PYTHON" >&6; }
12390 else
12391   { echo "$as_me:$LINENO: result: no" >&5
12392 echo "${ECHO_T}no" >&6; }
12393 fi
12394
12395
12396 fi
12397
12398 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12399 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12400 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12401 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12402 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12403 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12404 if   test "$ac_python_version_major" -eq "2" \
12405    && test "$ac_python_version_minor" -ge "5" ; then
12406   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12407 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12408 else
12409   { echo "$as_me:$LINENO: result: not found" >&5
12410 echo "${ECHO_T}not found" >&6; }
12411   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12412 See \`config.log' for more details." >&5
12413 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12414 See \`config.log' for more details." >&2;}
12415    { (exit 1); exit 1; }; }
12416 fi
12417
12418
12419
12420 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12421 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12422 if test "${ac_cv_lib_m_sin+set}" = set; then
12423   echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425   ac_check_lib_save_LIBS=$LIBS
12426 LIBS="-lm  $LIBS"
12427 cat >conftest.$ac_ext <<_ACEOF
12428 /* confdefs.h.  */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h.  */
12433
12434 /* Override any GCC internal prototype to avoid an error.
12435    Use char because int might match the return type of a GCC
12436    builtin and then its argument prototype would still apply.  */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 char sin ();
12441 int
12442 main ()
12443 {
12444 return sin ();
12445   ;
12446   return 0;
12447 }
12448 _ACEOF
12449 rm -f conftest.$ac_objext conftest$ac_exeext
12450 if { (ac_try="$ac_link"
12451 case "(($ac_try" in
12452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453   *) ac_try_echo=$ac_try;;
12454 esac
12455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456   (eval "$ac_link") 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } &&
12463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12464   { (case "(($ac_try" in
12465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466   *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469   (eval "$ac_try") 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; } &&
12473          { ac_try='test -s conftest$ac_exeext'
12474   { (case "(($ac_try" in
12475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476   *) ac_try_echo=$ac_try;;
12477 esac
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479   (eval "$ac_try") 2>&5
12480   ac_status=$?
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); }; }; then
12483   ac_cv_lib_m_sin=yes
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488         ac_cv_lib_m_sin=no
12489 fi
12490
12491 rm -f core conftest.err conftest.$ac_objext \
12492       conftest$ac_exeext conftest.$ac_ext
12493 LIBS=$ac_check_lib_save_LIBS
12494 fi
12495 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12496 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12497 if test $ac_cv_lib_m_sin = yes; then
12498   cat >>confdefs.h <<_ACEOF
12499 #define HAVE_LIBM 1
12500 _ACEOF
12501
12502   LIBS="-lm $LIBS"
12503
12504 fi
12505
12506 if test "$llvm_cv_os_type" = "MingW" ; then
12507
12508 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12509 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12510 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12511   echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513   ac_check_lib_save_LIBS=$LIBS
12514 LIBS="-limagehlp  $LIBS"
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521
12522
12523 int
12524 main ()
12525 {
12526 return main ();
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (ac_try="$ac_link"
12533 case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_link") 2>conftest.er1
12539   ac_status=$?
12540   grep -v '^ *+' conftest.er1 >conftest.err
12541   rm -f conftest.er1
12542   cat conftest.err >&5
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); } &&
12545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12546   { (case "(($ac_try" in
12547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548   *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551   (eval "$ac_try") 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; } &&
12555          { ac_try='test -s conftest$ac_exeext'
12556   { (case "(($ac_try" in
12557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558   *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561   (eval "$ac_try") 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; }; then
12565   ac_cv_lib_imagehlp_main=yes
12566 else
12567   echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12569
12570         ac_cv_lib_imagehlp_main=no
12571 fi
12572
12573 rm -f core conftest.err conftest.$ac_objext \
12574       conftest$ac_exeext conftest.$ac_ext
12575 LIBS=$ac_check_lib_save_LIBS
12576 fi
12577 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12578 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12579 if test $ac_cv_lib_imagehlp_main = yes; then
12580   cat >>confdefs.h <<_ACEOF
12581 #define HAVE_LIBIMAGEHLP 1
12582 _ACEOF
12583
12584   LIBS="-limagehlp $LIBS"
12585
12586 fi
12587
12588
12589 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12590 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12591 if test "${ac_cv_lib_psapi_main+set}" = set; then
12592   echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594   ac_check_lib_save_LIBS=$LIBS
12595 LIBS="-lpsapi  $LIBS"
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602
12603
12604 int
12605 main ()
12606 {
12607 return main ();
12608   ;
12609   return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616   *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619   (eval "$ac_link") 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } &&
12626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12627   { (case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_try") 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; } &&
12636          { ac_try='test -s conftest$ac_exeext'
12637   { (case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_try") 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; }; then
12646   ac_cv_lib_psapi_main=yes
12647 else
12648   echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651         ac_cv_lib_psapi_main=no
12652 fi
12653
12654 rm -f core conftest.err conftest.$ac_objext \
12655       conftest$ac_exeext conftest.$ac_ext
12656 LIBS=$ac_check_lib_save_LIBS
12657 fi
12658 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12659 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12660 if test $ac_cv_lib_psapi_main = yes; then
12661   cat >>confdefs.h <<_ACEOF
12662 #define HAVE_LIBPSAPI 1
12663 _ACEOF
12664
12665   LIBS="-lpsapi $LIBS"
12666
12667 fi
12668
12669 fi
12670
12671 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12672 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12673 if test "${ac_cv_search_dlopen+set}" = set; then
12674   echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676   ac_func_search_save_LIBS=$LIBS
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683
12684 /* Override any GCC internal prototype to avoid an error.
12685    Use char because int might match the return type of a GCC
12686    builtin and then its argument prototype would still apply.  */
12687 #ifdef __cplusplus
12688 extern "C"
12689 #endif
12690 char dlopen ();
12691 int
12692 main ()
12693 {
12694 return dlopen ();
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 for ac_lib in '' dl; do
12700   if test -z "$ac_lib"; then
12701     ac_res="none required"
12702   else
12703     ac_res=-l$ac_lib
12704     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12705   fi
12706   rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (ac_try="$ac_link"
12708 case "(($ac_try" in
12709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710   *) ac_try_echo=$ac_try;;
12711 esac
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713   (eval "$ac_link") 2>conftest.er1
12714   ac_status=$?
12715   grep -v '^ *+' conftest.er1 >conftest.err
12716   rm -f conftest.er1
12717   cat conftest.err >&5
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } &&
12720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12721   { (case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726   (eval "$ac_try") 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; } &&
12730          { ac_try='test -s conftest$ac_exeext'
12731   { (case "(($ac_try" in
12732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733   *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736   (eval "$ac_try") 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740   ac_cv_search_dlopen=$ac_res
12741 else
12742   echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12744
12745
12746 fi
12747
12748 rm -f core conftest.err conftest.$ac_objext \
12749       conftest$ac_exeext
12750   if test "${ac_cv_search_dlopen+set}" = set; then
12751   break
12752 fi
12753 done
12754 if test "${ac_cv_search_dlopen+set}" = set; then
12755   :
12756 else
12757   ac_cv_search_dlopen=no
12758 fi
12759 rm conftest.$ac_ext
12760 LIBS=$ac_func_search_save_LIBS
12761 fi
12762 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12763 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12764 ac_res=$ac_cv_search_dlopen
12765 if test "$ac_res" != no; then
12766   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12767
12768 cat >>confdefs.h <<\_ACEOF
12769 #define HAVE_DLOPEN 1
12770 _ACEOF
12771
12772 else
12773   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12774 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12775 fi
12776
12777
12778 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12779 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12780 if test "${ac_cv_search_clock_gettime+set}" = set; then
12781   echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783   ac_func_search_save_LIBS=$LIBS
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h.  */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h.  */
12790
12791 /* Override any GCC internal prototype to avoid an error.
12792    Use char because int might match the return type of a GCC
12793    builtin and then its argument prototype would still apply.  */
12794 #ifdef __cplusplus
12795 extern "C"
12796 #endif
12797 char clock_gettime ();
12798 int
12799 main ()
12800 {
12801 return clock_gettime ();
12802   ;
12803   return 0;
12804 }
12805 _ACEOF
12806 for ac_lib in '' rt; do
12807   if test -z "$ac_lib"; then
12808     ac_res="none required"
12809   else
12810     ac_res=-l$ac_lib
12811     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12812   fi
12813   rm -f conftest.$ac_objext conftest$ac_exeext
12814 if { (ac_try="$ac_link"
12815 case "(($ac_try" in
12816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817   *) ac_try_echo=$ac_try;;
12818 esac
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820   (eval "$ac_link") 2>conftest.er1
12821   ac_status=$?
12822   grep -v '^ *+' conftest.er1 >conftest.err
12823   rm -f conftest.er1
12824   cat conftest.err >&5
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } &&
12827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828   { (case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_try") 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; } &&
12837          { ac_try='test -s conftest$ac_exeext'
12838   { (case "(($ac_try" in
12839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840   *) ac_try_echo=$ac_try;;
12841 esac
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843   (eval "$ac_try") 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   ac_cv_search_clock_gettime=$ac_res
12848 else
12849   echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852
12853 fi
12854
12855 rm -f core conftest.err conftest.$ac_objext \
12856       conftest$ac_exeext
12857   if test "${ac_cv_search_clock_gettime+set}" = set; then
12858   break
12859 fi
12860 done
12861 if test "${ac_cv_search_clock_gettime+set}" = set; then
12862   :
12863 else
12864   ac_cv_search_clock_gettime=no
12865 fi
12866 rm conftest.$ac_ext
12867 LIBS=$ac_func_search_save_LIBS
12868 fi
12869 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12870 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12871 ac_res=$ac_cv_search_clock_gettime
12872 if test "$ac_res" != no; then
12873   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12874
12875 fi
12876
12877
12878 if test "$llvm_cv_enable_libffi" = "yes" ; then
12879   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12880 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12881 if test "${ac_cv_search_ffi_call+set}" = set; then
12882   echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884   ac_func_search_save_LIBS=$LIBS
12885 cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h.  */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h.  */
12891
12892 /* Override any GCC internal prototype to avoid an error.
12893    Use char because int might match the return type of a GCC
12894    builtin and then its argument prototype would still apply.  */
12895 #ifdef __cplusplus
12896 extern "C"
12897 #endif
12898 char ffi_call ();
12899 int
12900 main ()
12901 {
12902 return ffi_call ();
12903   ;
12904   return 0;
12905 }
12906 _ACEOF
12907 for ac_lib in '' ffi; do
12908   if test -z "$ac_lib"; then
12909     ac_res="none required"
12910   else
12911     ac_res=-l$ac_lib
12912     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12913   fi
12914   rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (ac_try="$ac_link"
12916 case "(($ac_try" in
12917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918   *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921   (eval "$ac_link") 2>conftest.er1
12922   ac_status=$?
12923   grep -v '^ *+' conftest.er1 >conftest.err
12924   rm -f conftest.er1
12925   cat conftest.err >&5
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); } &&
12928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12929   { (case "(($ac_try" in
12930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931   *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934   (eval "$ac_try") 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; } &&
12938          { ac_try='test -s conftest$ac_exeext'
12939   { (case "(($ac_try" in
12940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941   *) ac_try_echo=$ac_try;;
12942 esac
12943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944   (eval "$ac_try") 2>&5
12945   ac_status=$?
12946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); }; }; then
12948   ac_cv_search_ffi_call=$ac_res
12949 else
12950   echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12952
12953
12954 fi
12955
12956 rm -f core conftest.err conftest.$ac_objext \
12957       conftest$ac_exeext
12958   if test "${ac_cv_search_ffi_call+set}" = set; then
12959   break
12960 fi
12961 done
12962 if test "${ac_cv_search_ffi_call+set}" = set; then
12963   :
12964 else
12965   ac_cv_search_ffi_call=no
12966 fi
12967 rm conftest.$ac_ext
12968 LIBS=$ac_func_search_save_LIBS
12969 fi
12970 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12971 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12972 ac_res=$ac_cv_search_ffi_call
12973 if test "$ac_res" != no; then
12974   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12975
12976 cat >>confdefs.h <<\_ACEOF
12977 #define HAVE_FFI_CALL 1
12978 _ACEOF
12979
12980 else
12981   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12982 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12983    { (exit 1); exit 1; }; }
12984 fi
12985
12986 fi
12987
12988 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12989 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12990 if test "${ac_cv_search_mallinfo+set}" = set; then
12991   echo $ECHO_N "(cached) $ECHO_C" >&6
12992 else
12993   ac_func_search_save_LIBS=$LIBS
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000
13001 /* Override any GCC internal prototype to avoid an error.
13002    Use char because int might match the return type of a GCC
13003    builtin and then its argument prototype would still apply.  */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char mallinfo ();
13008 int
13009 main ()
13010 {
13011 return mallinfo ();
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 for ac_lib in '' malloc; do
13017   if test -z "$ac_lib"; then
13018     ac_res="none required"
13019   else
13020     ac_res=-l$ac_lib
13021     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13022   fi
13023   rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (ac_try="$ac_link"
13025 case "(($ac_try" in
13026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027   *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030   (eval "$ac_link") 2>conftest.er1
13031   ac_status=$?
13032   grep -v '^ *+' conftest.er1 >conftest.err
13033   rm -f conftest.er1
13034   cat conftest.err >&5
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } &&
13037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038   { (case "(($ac_try" in
13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040   *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043   (eval "$ac_try") 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; } &&
13047          { ac_try='test -s conftest$ac_exeext'
13048   { (case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053   (eval "$ac_try") 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); }; }; then
13057   ac_cv_search_mallinfo=$ac_res
13058 else
13059   echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13061
13062
13063 fi
13064
13065 rm -f core conftest.err conftest.$ac_objext \
13066       conftest$ac_exeext
13067   if test "${ac_cv_search_mallinfo+set}" = set; then
13068   break
13069 fi
13070 done
13071 if test "${ac_cv_search_mallinfo+set}" = set; then
13072   :
13073 else
13074   ac_cv_search_mallinfo=no
13075 fi
13076 rm conftest.$ac_ext
13077 LIBS=$ac_func_search_save_LIBS
13078 fi
13079 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13080 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13081 ac_res=$ac_cv_search_mallinfo
13082 if test "$ac_res" != no; then
13083   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_MALLINFO 1
13087 _ACEOF
13088
13089 fi
13090
13091
13092 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13093
13094 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13095 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13096 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-lpthread  $LIBS"
13101 cat >conftest.$ac_ext <<_ACEOF
13102 /* confdefs.h.  */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h.  */
13107
13108 /* Override any GCC internal prototype to avoid an error.
13109    Use char because int might match the return type of a GCC
13110    builtin and then its argument prototype would still apply.  */
13111 #ifdef __cplusplus
13112 extern "C"
13113 #endif
13114 char pthread_mutex_init ();
13115 int
13116 main ()
13117 {
13118 return pthread_mutex_init ();
13119   ;
13120   return 0;
13121 }
13122 _ACEOF
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127   *) ac_try_echo=$ac_try;;
13128 esac
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130   (eval "$ac_link") 2>conftest.er1
13131   ac_status=$?
13132   grep -v '^ *+' conftest.er1 >conftest.err
13133   rm -f conftest.er1
13134   cat conftest.err >&5
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); } &&
13137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138   { (case "(($ac_try" in
13139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140   *) ac_try_echo=$ac_try;;
13141 esac
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143   (eval "$ac_try") 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; } &&
13147          { ac_try='test -s conftest$ac_exeext'
13148   { (case "(($ac_try" in
13149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150   *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153   (eval "$ac_try") 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; }; then
13157   ac_cv_lib_pthread_pthread_mutex_init=yes
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162         ac_cv_lib_pthread_pthread_mutex_init=no
13163 fi
13164
13165 rm -f core conftest.err conftest.$ac_objext \
13166       conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13168 fi
13169 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13170 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13171 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13172   cat >>confdefs.h <<_ACEOF
13173 #define HAVE_LIBPTHREAD 1
13174 _ACEOF
13175
13176   LIBS="-lpthread $LIBS"
13177
13178 fi
13179
13180   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13181 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13182 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13183   echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185   ac_func_search_save_LIBS=$LIBS
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h.  */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h.  */
13192
13193 /* Override any GCC internal prototype to avoid an error.
13194    Use char because int might match the return type of a GCC
13195    builtin and then its argument prototype would still apply.  */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 char pthread_mutex_lock ();
13200 int
13201 main ()
13202 {
13203 return pthread_mutex_lock ();
13204   ;
13205   return 0;
13206 }
13207 _ACEOF
13208 for ac_lib in '' pthread; do
13209   if test -z "$ac_lib"; then
13210     ac_res="none required"
13211   else
13212     ac_res=-l$ac_lib
13213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13214   fi
13215   rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (ac_try="$ac_link"
13217 case "(($ac_try" in
13218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219   *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222   (eval "$ac_link") 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13230   { (case "(($ac_try" in
13231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232   *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235   (eval "$ac_try") 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; } &&
13239          { ac_try='test -s conftest$ac_exeext'
13240   { (case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_try") 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; }; then
13249   ac_cv_search_pthread_mutex_lock=$ac_res
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254
13255 fi
13256
13257 rm -f core conftest.err conftest.$ac_objext \
13258       conftest$ac_exeext
13259   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13260   break
13261 fi
13262 done
13263 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13264   :
13265 else
13266   ac_cv_search_pthread_mutex_lock=no
13267 fi
13268 rm conftest.$ac_ext
13269 LIBS=$ac_func_search_save_LIBS
13270 fi
13271 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13272 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13273 ac_res=$ac_cv_search_pthread_mutex_lock
13274 if test "$ac_res" != no; then
13275   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13276
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_PTHREAD_MUTEX_LOCK 1
13279 _ACEOF
13280
13281 fi
13282
13283   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13284 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13285 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13286   echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288   ac_func_search_save_LIBS=$LIBS
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295
13296 /* Override any GCC internal prototype to avoid an error.
13297    Use char because int might match the return type of a GCC
13298    builtin and then its argument prototype would still apply.  */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 char pthread_rwlock_init ();
13303 int
13304 main ()
13305 {
13306 return pthread_rwlock_init ();
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 for ac_lib in '' pthread; do
13312   if test -z "$ac_lib"; then
13313     ac_res="none required"
13314   else
13315     ac_res=-l$ac_lib
13316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13317   fi
13318   rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (ac_try="$ac_link"
13320 case "(($ac_try" in
13321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322   *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325   (eval "$ac_link") 2>conftest.er1
13326   ac_status=$?
13327   grep -v '^ *+' conftest.er1 >conftest.err
13328   rm -f conftest.er1
13329   cat conftest.err >&5
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); } &&
13332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13333   { (case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_try") 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; } &&
13342          { ac_try='test -s conftest$ac_exeext'
13343   { (case "(($ac_try" in
13344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345   *) ac_try_echo=$ac_try;;
13346 esac
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348   (eval "$ac_try") 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; }; then
13352   ac_cv_search_pthread_rwlock_init=$ac_res
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357
13358 fi
13359
13360 rm -f core conftest.err conftest.$ac_objext \
13361       conftest$ac_exeext
13362   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13363   break
13364 fi
13365 done
13366 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13367   :
13368 else
13369   ac_cv_search_pthread_rwlock_init=no
13370 fi
13371 rm conftest.$ac_ext
13372 LIBS=$ac_func_search_save_LIBS
13373 fi
13374 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13375 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13376 ac_res=$ac_cv_search_pthread_rwlock_init
13377 if test "$ac_res" != no; then
13378   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13379
13380 cat >>confdefs.h <<\_ACEOF
13381 #define HAVE_PTHREAD_RWLOCK_INIT 1
13382 _ACEOF
13383
13384 fi
13385
13386   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13387 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13388 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13389   echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391   ac_func_search_save_LIBS=$LIBS
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h.  */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h.  */
13398
13399 /* Override any GCC internal prototype to avoid an error.
13400    Use char because int might match the return type of a GCC
13401    builtin and then its argument prototype would still apply.  */
13402 #ifdef __cplusplus
13403 extern "C"
13404 #endif
13405 char pthread_getspecific ();
13406 int
13407 main ()
13408 {
13409 return pthread_getspecific ();
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 for ac_lib in '' pthread; do
13415   if test -z "$ac_lib"; then
13416     ac_res="none required"
13417   else
13418     ac_res=-l$ac_lib
13419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13420   fi
13421   rm -f conftest.$ac_objext conftest$ac_exeext
13422 if { (ac_try="$ac_link"
13423 case "(($ac_try" in
13424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425   *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428   (eval "$ac_link") 2>conftest.er1
13429   ac_status=$?
13430   grep -v '^ *+' conftest.er1 >conftest.err
13431   rm -f conftest.er1
13432   cat conftest.err >&5
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); } &&
13435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13436   { (case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_try") 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; } &&
13445          { ac_try='test -s conftest$ac_exeext'
13446   { (case "(($ac_try" in
13447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448   *) ac_try_echo=$ac_try;;
13449 esac
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451   (eval "$ac_try") 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); }; }; then
13455   ac_cv_search_pthread_getspecific=$ac_res
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460
13461 fi
13462
13463 rm -f core conftest.err conftest.$ac_objext \
13464       conftest$ac_exeext
13465   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13466   break
13467 fi
13468 done
13469 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13470   :
13471 else
13472   ac_cv_search_pthread_getspecific=no
13473 fi
13474 rm conftest.$ac_ext
13475 LIBS=$ac_func_search_save_LIBS
13476 fi
13477 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13478 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13479 ac_res=$ac_cv_search_pthread_getspecific
13480 if test "$ac_res" != no; then
13481   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13482
13483 cat >>confdefs.h <<\_ACEOF
13484 #define HAVE_PTHREAD_GETSPECIFIC 1
13485 _ACEOF
13486
13487 fi
13488
13489 fi
13490
13491 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13492
13493 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13494 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13495 if test "${ac_cv_lib_z_compress2+set}" = set; then
13496   echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498   ac_check_lib_save_LIBS=$LIBS
13499 LIBS="-lz  $LIBS"
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506
13507 /* Override any GCC internal prototype to avoid an error.
13508    Use char because int might match the return type of a GCC
13509    builtin and then its argument prototype would still apply.  */
13510 #ifdef __cplusplus
13511 extern "C"
13512 #endif
13513 char compress2 ();
13514 int
13515 main ()
13516 {
13517 return compress2 ();
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (ac_try="$ac_link"
13524 case "(($ac_try" in
13525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526   *) ac_try_echo=$ac_try;;
13527 esac
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529   (eval "$ac_link") 2>conftest.er1
13530   ac_status=$?
13531   grep -v '^ *+' conftest.er1 >conftest.err
13532   rm -f conftest.er1
13533   cat conftest.err >&5
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); } &&
13536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13537   { (case "(($ac_try" in
13538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539   *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542   (eval "$ac_try") 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; } &&
13546          { ac_try='test -s conftest$ac_exeext'
13547   { (case "(($ac_try" in
13548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549   *) ac_try_echo=$ac_try;;
13550 esac
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552   (eval "$ac_try") 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; }; then
13556   ac_cv_lib_z_compress2=yes
13557 else
13558   echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561         ac_cv_lib_z_compress2=no
13562 fi
13563
13564 rm -f core conftest.err conftest.$ac_objext \
13565       conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13567 fi
13568 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13569 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13570 if test $ac_cv_lib_z_compress2 = yes; then
13571   cat >>confdefs.h <<_ACEOF
13572 #define HAVE_LIBZ 1
13573 _ACEOF
13574
13575   LIBS="-lz $LIBS"
13576
13577 fi
13578
13579 fi
13580
13581
13582 # Check whether --with-udis86 was given.
13583 if test "${with_udis86+set}" = set; then
13584   withval=$with_udis86;
13585       USE_UDIS86=1
13586
13587       case "$withval" in
13588         /usr/lib|yes) ;;
13589         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13590       esac
13591
13592 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13593 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13594 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13595   echo $ECHO_N "(cached) $ECHO_C" >&6
13596 else
13597   ac_check_lib_save_LIBS=$LIBS
13598 LIBS="-ludis86  $LIBS"
13599 cat >conftest.$ac_ext <<_ACEOF
13600 /* confdefs.h.  */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h.  */
13605
13606 /* Override any GCC internal prototype to avoid an error.
13607    Use char because int might match the return type of a GCC
13608    builtin and then its argument prototype would still apply.  */
13609 #ifdef __cplusplus
13610 extern "C"
13611 #endif
13612 char ud_init ();
13613 int
13614 main ()
13615 {
13616 return ud_init ();
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 rm -f conftest.$ac_objext conftest$ac_exeext
13622 if { (ac_try="$ac_link"
13623 case "(($ac_try" in
13624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625   *) ac_try_echo=$ac_try;;
13626 esac
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628   (eval "$ac_link") 2>conftest.er1
13629   ac_status=$?
13630   grep -v '^ *+' conftest.er1 >conftest.err
13631   rm -f conftest.er1
13632   cat conftest.err >&5
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); } &&
13635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13636   { (case "(($ac_try" in
13637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638   *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641   (eval "$ac_try") 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; } &&
13645          { ac_try='test -s conftest$ac_exeext'
13646   { (case "(($ac_try" in
13647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648   *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651   (eval "$ac_try") 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); }; }; then
13655   ac_cv_lib_udis86_ud_init=yes
13656 else
13657   echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13659
13660         ac_cv_lib_udis86_ud_init=no
13661 fi
13662
13663 rm -f core conftest.err conftest.$ac_objext \
13664       conftest$ac_exeext conftest.$ac_ext
13665 LIBS=$ac_check_lib_save_LIBS
13666 fi
13667 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13668 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13669 if test $ac_cv_lib_udis86_ud_init = yes; then
13670   cat >>confdefs.h <<_ACEOF
13671 #define HAVE_LIBUDIS86 1
13672 _ACEOF
13673
13674   LIBS="-ludis86 $LIBS"
13675
13676 else
13677
13678         echo "Error! You need to have libudis86 around."
13679         exit -1
13680
13681 fi
13682
13683
13684 else
13685   USE_UDIS86=0
13686
13687 fi
13688
13689
13690 cat >>confdefs.h <<_ACEOF
13691 #define USE_UDIS86 $USE_UDIS86
13692 _ACEOF
13693
13694
13695
13696 # Check whether --with-oprofile was given.
13697 if test "${with_oprofile+set}" = set; then
13698   withval=$with_oprofile;
13699       USE_OPROFILE=1
13700
13701       case "$withval" in
13702         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13703         no) llvm_cv_oppath=
13704             USE_OPROFILE=0
13705  ;;
13706         *) llvm_cv_oppath="${withval}/lib/oprofile"
13707            CPPFLAGS="-I${withval}/include";;
13708       esac
13709       case $llvm_cv_os_type in
13710         Linux)
13711           if test -n "$llvm_cv_oppath" ; then
13712             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13713                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13714 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13715 if test "${ac_cv_search_bfd_init+set}" = set; then
13716   echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718   ac_func_search_save_LIBS=$LIBS
13719 cat >conftest.$ac_ext <<_ACEOF
13720 /* confdefs.h.  */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h.  */
13725
13726 /* Override any GCC internal prototype to avoid an error.
13727    Use char because int might match the return type of a GCC
13728    builtin and then its argument prototype would still apply.  */
13729 #ifdef __cplusplus
13730 extern "C"
13731 #endif
13732 char bfd_init ();
13733 int
13734 main ()
13735 {
13736 return bfd_init ();
13737   ;
13738   return 0;
13739 }
13740 _ACEOF
13741 for ac_lib in '' bfd; do
13742   if test -z "$ac_lib"; then
13743     ac_res="none required"
13744   else
13745     ac_res=-l$ac_lib
13746     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13747   fi
13748   rm -f conftest.$ac_objext conftest$ac_exeext
13749 if { (ac_try="$ac_link"
13750 case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_link") 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } &&
13762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13763   { (case "(($ac_try" in
13764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765   *) ac_try_echo=$ac_try;;
13766 esac
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768   (eval "$ac_try") 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); }; } &&
13772          { ac_try='test -s conftest$ac_exeext'
13773   { (case "(($ac_try" in
13774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775   *) ac_try_echo=$ac_try;;
13776 esac
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778   (eval "$ac_try") 2>&5
13779   ac_status=$?
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); }; }; then
13782   ac_cv_search_bfd_init=$ac_res
13783 else
13784   echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13786
13787
13788 fi
13789
13790 rm -f core conftest.err conftest.$ac_objext \
13791       conftest$ac_exeext
13792   if test "${ac_cv_search_bfd_init+set}" = set; then
13793   break
13794 fi
13795 done
13796 if test "${ac_cv_search_bfd_init+set}" = set; then
13797   :
13798 else
13799   ac_cv_search_bfd_init=no
13800 fi
13801 rm conftest.$ac_ext
13802 LIBS=$ac_func_search_save_LIBS
13803 fi
13804 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13805 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13806 ac_res=$ac_cv_search_bfd_init
13807 if test "$ac_res" != no; then
13808   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13809
13810 fi
13811
13812             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13813 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13814 if test "${ac_cv_search_op_open_agent+set}" = set; then
13815   echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817   ac_func_search_save_LIBS=$LIBS
13818 cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h.  */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h.  */
13824
13825 /* Override any GCC internal prototype to avoid an error.
13826    Use char because int might match the return type of a GCC
13827    builtin and then its argument prototype would still apply.  */
13828 #ifdef __cplusplus
13829 extern "C"
13830 #endif
13831 char op_open_agent ();
13832 int
13833 main ()
13834 {
13835 return op_open_agent ();
13836   ;
13837   return 0;
13838 }
13839 _ACEOF
13840 for ac_lib in '' opagent; do
13841   if test -z "$ac_lib"; then
13842     ac_res="none required"
13843   else
13844     ac_res=-l$ac_lib
13845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13846   fi
13847   rm -f conftest.$ac_objext conftest$ac_exeext
13848 if { (ac_try="$ac_link"
13849 case "(($ac_try" in
13850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851   *) ac_try_echo=$ac_try;;
13852 esac
13853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13854   (eval "$ac_link") 2>conftest.er1
13855   ac_status=$?
13856   grep -v '^ *+' conftest.er1 >conftest.err
13857   rm -f conftest.er1
13858   cat conftest.err >&5
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } &&
13861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13862   { (case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867   (eval "$ac_try") 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); }; } &&
13871          { ac_try='test -s conftest$ac_exeext'
13872   { (case "(($ac_try" in
13873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874   *) ac_try_echo=$ac_try;;
13875 esac
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877   (eval "$ac_try") 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; }; then
13881   ac_cv_search_op_open_agent=$ac_res
13882 else
13883   echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13885
13886
13887 fi
13888
13889 rm -f core conftest.err conftest.$ac_objext \
13890       conftest$ac_exeext
13891   if test "${ac_cv_search_op_open_agent+set}" = set; then
13892   break
13893 fi
13894 done
13895 if test "${ac_cv_search_op_open_agent+set}" = set; then
13896   :
13897 else
13898   ac_cv_search_op_open_agent=no
13899 fi
13900 rm conftest.$ac_ext
13901 LIBS=$ac_func_search_save_LIBS
13902 fi
13903 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13904 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13905 ac_res=$ac_cv_search_op_open_agent
13906 if test "$ac_res" != no; then
13907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13908
13909 else
13910
13911               echo "Error! You need to have libopagent around."
13912               exit -1
13913
13914 fi
13915
13916             if test "${ac_cv_header_opagent_h+set}" = set; then
13917   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13918 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13919 if test "${ac_cv_header_opagent_h+set}" = set; then
13920   echo $ECHO_N "(cached) $ECHO_C" >&6
13921 fi
13922 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13923 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13924 else
13925   # Is the header compilable?
13926 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13927 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13928 cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934 $ac_includes_default
13935 #include <opagent.h>
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (ac_try="$ac_compile"
13939 case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944   (eval "$ac_compile") 2>conftest.er1
13945   ac_status=$?
13946   grep -v '^ *+' conftest.er1 >conftest.err
13947   rm -f conftest.er1
13948   cat conftest.err >&5
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } &&
13951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13952   { (case "(($ac_try" in
13953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954   *) ac_try_echo=$ac_try;;
13955 esac
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957   (eval "$ac_try") 2>&5
13958   ac_status=$?
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); }; } &&
13961          { ac_try='test -s conftest.$ac_objext'
13962   { (case "(($ac_try" in
13963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964   *) ac_try_echo=$ac_try;;
13965 esac
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967   (eval "$ac_try") 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }; then
13971   ac_header_compiler=yes
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976         ac_header_compiler=no
13977 fi
13978
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13981 echo "${ECHO_T}$ac_header_compiler" >&6; }
13982
13983 # Is the header present?
13984 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13985 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13986 cat >conftest.$ac_ext <<_ACEOF
13987 /* confdefs.h.  */
13988 _ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h.  */
13992 #include <opagent.h>
13993 _ACEOF
13994 if { (ac_try="$ac_cpp conftest.$ac_ext"
13995 case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14001   ac_status=$?
14002   grep -v '^ *+' conftest.er1 >conftest.err
14003   rm -f conftest.er1
14004   cat conftest.err >&5
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } >/dev/null; then
14007   if test -s conftest.err; then
14008     ac_cpp_err=$ac_c_preproc_warn_flag
14009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14010   else
14011     ac_cpp_err=
14012   fi
14013 else
14014   ac_cpp_err=yes
14015 fi
14016 if test -z "$ac_cpp_err"; then
14017   ac_header_preproc=yes
14018 else
14019   echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14021
14022   ac_header_preproc=no
14023 fi
14024
14025 rm -f conftest.err conftest.$ac_ext
14026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14027 echo "${ECHO_T}$ac_header_preproc" >&6; }
14028
14029 # So?  What about this header?
14030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14031   yes:no: )
14032     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14033 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14034     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14035 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14036     ac_header_preproc=yes
14037     ;;
14038   no:yes:* )
14039     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14040 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14041     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14042 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14043     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14044 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14045     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14046 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14047     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14048 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14049     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14050 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14051     ( cat <<\_ASBOX
14052 ## ------------------------------------ ##
14053 ## Report this to http://llvm.org/bugs/ ##
14054 ## ------------------------------------ ##
14055 _ASBOX
14056      ) | sed "s/^/$as_me: WARNING:     /" >&2
14057     ;;
14058 esac
14059 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14060 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14061 if test "${ac_cv_header_opagent_h+set}" = set; then
14062   echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064   ac_cv_header_opagent_h=$ac_header_preproc
14065 fi
14066 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14067 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14068
14069 fi
14070 if test $ac_cv_header_opagent_h = yes; then
14071   :
14072 else
14073
14074               echo "Error! You need to have opagent.h around."
14075               exit -1
14076
14077 fi
14078
14079
14080           fi ;;
14081         *)
14082           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14083 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14084    { (exit 1); exit 1; }; } ;;
14085       esac
14086
14087 else
14088
14089       USE_OPROFILE=0
14090
14091
14092 fi
14093
14094
14095 cat >>confdefs.h <<_ACEOF
14096 #define LLVM_USE_OPROFILE $USE_OPROFILE
14097 _ACEOF
14098
14099
14100
14101 # Check whether --with-intel-jitevents was given.
14102 if test "${with_intel_jitevents+set}" = set; then
14103   withval=$with_intel_jitevents;
14104        case "$withval" in
14105           yes) USE_INTEL_JITEVENTS=1
14106 ;;
14107           no)  USE_INTEL_JITEVENTS=0
14108 ;;
14109           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14110 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14111    { (exit 1); exit 1; }; };;
14112        esac
14113
14114       case $llvm_cv_os_type in
14115         Linux|Win32|Cygwin|MingW) ;;
14116         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14117 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14118    { (exit 1); exit 1; }; };;
14119       esac
14120
14121       case "$llvm_cv_target_arch" in
14122         x86|x86_64) ;;
14123         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14124 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14125    { (exit 1); exit 1; }; };;
14126       esac
14127
14128 else
14129
14130       USE_INTEL_JITEVENTS=0
14131
14132
14133 fi
14134
14135
14136 cat >>confdefs.h <<_ACEOF
14137 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14138 _ACEOF
14139
14140
14141 for ac_prog in xml2-config
14142 do
14143   # Extract the first word of "$ac_prog", so it can be a program name with args.
14144 set dummy $ac_prog; ac_word=$2
14145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14147 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14148   echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150   if test -n "$XML2CONFIG"; then
14151   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14152 else
14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14155 do
14156   IFS=$as_save_IFS
14157   test -z "$as_dir" && as_dir=.
14158   for ac_exec_ext in '' $ac_executable_extensions; do
14159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14160     ac_cv_prog_XML2CONFIG="$ac_prog"
14161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14162     break 2
14163   fi
14164 done
14165 done
14166 IFS=$as_save_IFS
14167
14168 fi
14169 fi
14170 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14171 if test -n "$XML2CONFIG"; then
14172   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14173 echo "${ECHO_T}$XML2CONFIG" >&6; }
14174 else
14175   { echo "$as_me:$LINENO: result: no" >&5
14176 echo "${ECHO_T}no" >&6; }
14177 fi
14178
14179
14180   test -n "$XML2CONFIG" && break
14181 done
14182
14183
14184 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14185 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14186 if test "x$XML2CONFIG" = "x"; then
14187  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14188 echo "${ECHO_T}xml2-config not found" >&6; }
14189 else
14190  LIBXML2_INC=`$XML2CONFIG --cflags`
14191  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14192 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14193  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14194 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14195 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198   ac_check_lib_save_LIBS=$LIBS
14199 LIBS="-lxml2  $LIBS"
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h.  */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h.  */
14206
14207 /* Override any GCC internal prototype to avoid an error.
14208    Use char because int might match the return type of a GCC
14209    builtin and then its argument prototype would still apply.  */
14210 #ifdef __cplusplus
14211 extern "C"
14212 #endif
14213 char xmlReadFile ();
14214 int
14215 main ()
14216 {
14217 return xmlReadFile ();
14218   ;
14219   return 0;
14220 }
14221 _ACEOF
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (ac_try="$ac_link"
14224 case "(($ac_try" in
14225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226   *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229   (eval "$ac_link") 2>conftest.er1
14230   ac_status=$?
14231   grep -v '^ *+' conftest.er1 >conftest.err
14232   rm -f conftest.er1
14233   cat conftest.err >&5
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); } &&
14236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14237   { (case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_try") 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }; } &&
14246          { ac_try='test -s conftest$ac_exeext'
14247   { (case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252   (eval "$ac_try") 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); }; }; then
14256   ac_cv_lib_xml2_xmlReadFile=yes
14257 else
14258   echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261         ac_cv_lib_xml2_xmlReadFile=no
14262 fi
14263
14264 rm -f core conftest.err conftest.$ac_objext \
14265       conftest$ac_exeext conftest.$ac_ext
14266 LIBS=$ac_check_lib_save_LIBS
14267 fi
14268 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14269 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14270 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14271
14272 cat >>confdefs.h <<\_ACEOF
14273 #define CLANG_HAVE_LIBXML 1
14274 _ACEOF
14275
14276                                 LIBXML2_LIBS="-lxml2"
14277 fi
14278
14279 fi
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289 ac_header_dirent=no
14290 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14291   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14292 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14293 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14295   echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297   cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h.  */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h.  */
14303 #include <sys/types.h>
14304 #include <$ac_hdr>
14305
14306 int
14307 main ()
14308 {
14309 if ((DIR *) 0)
14310 return 0;
14311   ;
14312   return 0;
14313 }
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319   *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322   (eval "$ac_compile") 2>conftest.er1
14323   ac_status=$?
14324   grep -v '^ *+' conftest.er1 >conftest.err
14325   rm -f conftest.er1
14326   cat conftest.err >&5
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } &&
14329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14330   { (case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335   (eval "$ac_try") 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); }; } &&
14339          { ac_try='test -s conftest.$ac_objext'
14340   { (case "(($ac_try" in
14341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14342   *) ac_try_echo=$ac_try;;
14343 esac
14344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14345   (eval "$ac_try") 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; }; then
14349   eval "$as_ac_Header=yes"
14350 else
14351   echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354         eval "$as_ac_Header=no"
14355 fi
14356
14357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 fi
14359 ac_res=`eval echo '${'$as_ac_Header'}'`
14360                { echo "$as_me:$LINENO: result: $ac_res" >&5
14361 echo "${ECHO_T}$ac_res" >&6; }
14362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14363   cat >>confdefs.h <<_ACEOF
14364 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14365 _ACEOF
14366
14367 ac_header_dirent=$ac_hdr; break
14368 fi
14369
14370 done
14371 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14372 if test $ac_header_dirent = dirent.h; then
14373   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14374 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14375 if test "${ac_cv_search_opendir+set}" = set; then
14376   echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378   ac_func_search_save_LIBS=$LIBS
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385
14386 /* Override any GCC internal prototype to avoid an error.
14387    Use char because int might match the return type of a GCC
14388    builtin and then its argument prototype would still apply.  */
14389 #ifdef __cplusplus
14390 extern "C"
14391 #endif
14392 char opendir ();
14393 int
14394 main ()
14395 {
14396 return opendir ();
14397   ;
14398   return 0;
14399 }
14400 _ACEOF
14401 for ac_lib in '' dir; do
14402   if test -z "$ac_lib"; then
14403     ac_res="none required"
14404   else
14405     ac_res=-l$ac_lib
14406     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14407   fi
14408   rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (ac_try="$ac_link"
14410 case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415   (eval "$ac_link") 2>conftest.er1
14416   ac_status=$?
14417   grep -v '^ *+' conftest.er1 >conftest.err
14418   rm -f conftest.er1
14419   cat conftest.err >&5
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); } &&
14422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14423   { (case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_try") 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; } &&
14432          { ac_try='test -s conftest$ac_exeext'
14433   { (case "(($ac_try" in
14434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435   *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438   (eval "$ac_try") 2>&5
14439   ac_status=$?
14440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441   (exit $ac_status); }; }; then
14442   ac_cv_search_opendir=$ac_res
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447
14448 fi
14449
14450 rm -f core conftest.err conftest.$ac_objext \
14451       conftest$ac_exeext
14452   if test "${ac_cv_search_opendir+set}" = set; then
14453   break
14454 fi
14455 done
14456 if test "${ac_cv_search_opendir+set}" = set; then
14457   :
14458 else
14459   ac_cv_search_opendir=no
14460 fi
14461 rm conftest.$ac_ext
14462 LIBS=$ac_func_search_save_LIBS
14463 fi
14464 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14465 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14466 ac_res=$ac_cv_search_opendir
14467 if test "$ac_res" != no; then
14468   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14469
14470 fi
14471
14472 else
14473   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14474 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14475 if test "${ac_cv_search_opendir+set}" = set; then
14476   echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478   ac_func_search_save_LIBS=$LIBS
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485
14486 /* Override any GCC internal prototype to avoid an error.
14487    Use char because int might match the return type of a GCC
14488    builtin and then its argument prototype would still apply.  */
14489 #ifdef __cplusplus
14490 extern "C"
14491 #endif
14492 char opendir ();
14493 int
14494 main ()
14495 {
14496 return opendir ();
14497   ;
14498   return 0;
14499 }
14500 _ACEOF
14501 for ac_lib in '' x; do
14502   if test -z "$ac_lib"; then
14503     ac_res="none required"
14504   else
14505     ac_res=-l$ac_lib
14506     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14507   fi
14508   rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (ac_try="$ac_link"
14510 case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515   (eval "$ac_link") 2>conftest.er1
14516   ac_status=$?
14517   grep -v '^ *+' conftest.er1 >conftest.err
14518   rm -f conftest.er1
14519   cat conftest.err >&5
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); } &&
14522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14523   { (case "(($ac_try" in
14524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525   *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528   (eval "$ac_try") 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; } &&
14532          { ac_try='test -s conftest$ac_exeext'
14533   { (case "(($ac_try" in
14534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535   *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538   (eval "$ac_try") 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); }; }; then
14542   ac_cv_search_opendir=$ac_res
14543 else
14544   echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547
14548 fi
14549
14550 rm -f core conftest.err conftest.$ac_objext \
14551       conftest$ac_exeext
14552   if test "${ac_cv_search_opendir+set}" = set; then
14553   break
14554 fi
14555 done
14556 if test "${ac_cv_search_opendir+set}" = set; then
14557   :
14558 else
14559   ac_cv_search_opendir=no
14560 fi
14561 rm conftest.$ac_ext
14562 LIBS=$ac_func_search_save_LIBS
14563 fi
14564 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14565 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14566 ac_res=$ac_cv_search_opendir
14567 if test "$ac_res" != no; then
14568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14569
14570 fi
14571
14572 fi
14573
14574 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14575 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14576 if test "${ac_cv_header_mmap_anon+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579    ac_ext=c
14580 ac_cpp='$CPP $CPPFLAGS'
14581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14584
14585   cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h.  */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h.  */
14591 #include <sys/mman.h>
14592 #include <unistd.h>
14593 #include <fcntl.h>
14594 int
14595 main ()
14596 {
14597 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 rm -f conftest.$ac_objext
14603 if { (ac_try="$ac_compile"
14604 case "(($ac_try" in
14605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606   *) ac_try_echo=$ac_try;;
14607 esac
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609   (eval "$ac_compile") 2>conftest.er1
14610   ac_status=$?
14611   grep -v '^ *+' conftest.er1 >conftest.err
14612   rm -f conftest.er1
14613   cat conftest.err >&5
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); } &&
14616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14617   { (case "(($ac_try" in
14618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619   *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622   (eval "$ac_try") 2>&5
14623   ac_status=$?
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); }; } &&
14626          { ac_try='test -s conftest.$ac_objext'
14627   { (case "(($ac_try" in
14628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629   *) ac_try_echo=$ac_try;;
14630 esac
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632   (eval "$ac_try") 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); }; }; then
14636   ac_cv_header_mmap_anon=yes
14637 else
14638   echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641         ac_cv_header_mmap_anon=no
14642 fi
14643
14644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645   ac_ext=c
14646 ac_cpp='$CPP $CPPFLAGS'
14647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14650
14651
14652 fi
14653 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14654 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14655 if test "$ac_cv_header_mmap_anon" = yes; then
14656
14657 cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_MMAP_ANONYMOUS 1
14659 _ACEOF
14660
14661 fi
14662
14663 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14664 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14665 if test "${ac_cv_header_stat_broken+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668   cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h.  */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h.  */
14674 #include <sys/types.h>
14675 #include <sys/stat.h>
14676
14677 #if defined S_ISBLK && defined S_IFDIR
14678 # if S_ISBLK (S_IFDIR)
14679 You lose.
14680 # endif
14681 #endif
14682
14683 #if defined S_ISBLK && defined S_IFCHR
14684 # if S_ISBLK (S_IFCHR)
14685 You lose.
14686 # endif
14687 #endif
14688
14689 #if defined S_ISLNK && defined S_IFREG
14690 # if S_ISLNK (S_IFREG)
14691 You lose.
14692 # endif
14693 #endif
14694
14695 #if defined S_ISSOCK && defined S_IFREG
14696 # if S_ISSOCK (S_IFREG)
14697 You lose.
14698 # endif
14699 #endif
14700
14701 _ACEOF
14702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14703   $EGREP "You lose" >/dev/null 2>&1; then
14704   ac_cv_header_stat_broken=yes
14705 else
14706   ac_cv_header_stat_broken=no
14707 fi
14708 rm -f conftest*
14709
14710 fi
14711 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14712 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14713 if test $ac_cv_header_stat_broken = yes; then
14714
14715 cat >>confdefs.h <<\_ACEOF
14716 #define STAT_MACROS_BROKEN 1
14717 _ACEOF
14718
14719 fi
14720
14721 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14722 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14723 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726   cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732 #include <sys/types.h>
14733 #include <sys/wait.h>
14734 #ifndef WEXITSTATUS
14735 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14736 #endif
14737 #ifndef WIFEXITED
14738 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14739 #endif
14740
14741 int
14742 main ()
14743 {
14744   int s;
14745   wait (&s);
14746   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14747   ;
14748   return 0;
14749 }
14750 _ACEOF
14751 rm -f conftest.$ac_objext
14752 if { (ac_try="$ac_compile"
14753 case "(($ac_try" in
14754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755   *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758   (eval "$ac_compile") 2>conftest.er1
14759   ac_status=$?
14760   grep -v '^ *+' conftest.er1 >conftest.err
14761   rm -f conftest.er1
14762   cat conftest.err >&5
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); } &&
14765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14766   { (case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_try") 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; } &&
14775          { ac_try='test -s conftest.$ac_objext'
14776   { (case "(($ac_try" in
14777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778   *) ac_try_echo=$ac_try;;
14779 esac
14780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781   (eval "$ac_try") 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); }; }; then
14785   ac_cv_header_sys_wait_h=yes
14786 else
14787   echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14789
14790         ac_cv_header_sys_wait_h=no
14791 fi
14792
14793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794 fi
14795 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14796 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14797 if test $ac_cv_header_sys_wait_h = yes; then
14798
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_SYS_WAIT_H 1
14801 _ACEOF
14802
14803 fi
14804
14805 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14806 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14807 if test "${ac_cv_header_time+set}" = set; then
14808   echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810   cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h.  */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h.  */
14816 #include <sys/types.h>
14817 #include <sys/time.h>
14818 #include <time.h>
14819
14820 int
14821 main ()
14822 {
14823 if ((struct tm *) 0)
14824 return 0;
14825   ;
14826   return 0;
14827 }
14828 _ACEOF
14829 rm -f conftest.$ac_objext
14830 if { (ac_try="$ac_compile"
14831 case "(($ac_try" in
14832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833   *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836   (eval "$ac_compile") 2>conftest.er1
14837   ac_status=$?
14838   grep -v '^ *+' conftest.er1 >conftest.err
14839   rm -f conftest.er1
14840   cat conftest.err >&5
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } &&
14843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14844   { (case "(($ac_try" in
14845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846   *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849   (eval "$ac_try") 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); }; } &&
14853          { ac_try='test -s conftest.$ac_objext'
14854   { (case "(($ac_try" in
14855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856   *) ac_try_echo=$ac_try;;
14857 esac
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859   (eval "$ac_try") 2>&5
14860   ac_status=$?
14861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862   (exit $ac_status); }; }; then
14863   ac_cv_header_time=yes
14864 else
14865   echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14867
14868         ac_cv_header_time=no
14869 fi
14870
14871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14872 fi
14873 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14874 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14875 if test $ac_cv_header_time = yes; then
14876
14877 cat >>confdefs.h <<\_ACEOF
14878 #define TIME_WITH_SYS_TIME 1
14879 _ACEOF
14880
14881 fi
14882
14883
14884 ac_ext=cpp
14885 ac_cpp='$CXXCPP $CPPFLAGS'
14886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14889
14890 ac_ext=cpp
14891 ac_cpp='$CXXCPP $CPPFLAGS'
14892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14895 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14896 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14897 if test -z "$CXXCPP"; then
14898   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14899   echo $ECHO_N "(cached) $ECHO_C" >&6
14900 else
14901       # Double quotes because CXXCPP needs to be expanded
14902     for CXXCPP in "$CXX -E" "/lib/cpp"
14903     do
14904       ac_preproc_ok=false
14905 for ac_cxx_preproc_warn_flag in '' yes
14906 do
14907   # Use a header file that comes with gcc, so configuring glibc
14908   # with a fresh cross-compiler works.
14909   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14910   # <limits.h> exists even on freestanding compilers.
14911   # On the NeXT, cc -E runs the code through the compiler's parser,
14912   # not just through cpp. "Syntax error" is here to catch this case.
14913   cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h.  */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h.  */
14919 #ifdef __STDC__
14920 # include <limits.h>
14921 #else
14922 # include <assert.h>
14923 #endif
14924                      Syntax error
14925 _ACEOF
14926 if { (ac_try="$ac_cpp conftest.$ac_ext"
14927 case "(($ac_try" in
14928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929   *) ac_try_echo=$ac_try;;
14930 esac
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14933   ac_status=$?
14934   grep -v '^ *+' conftest.er1 >conftest.err
14935   rm -f conftest.er1
14936   cat conftest.err >&5
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); } >/dev/null; then
14939   if test -s conftest.err; then
14940     ac_cpp_err=$ac_cxx_preproc_warn_flag
14941     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14942   else
14943     ac_cpp_err=
14944   fi
14945 else
14946   ac_cpp_err=yes
14947 fi
14948 if test -z "$ac_cpp_err"; then
14949   :
14950 else
14951   echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954   # Broken: fails on valid input.
14955 continue
14956 fi
14957
14958 rm -f conftest.err conftest.$ac_ext
14959
14960   # OK, works on sane cases.  Now check whether nonexistent headers
14961   # can be detected and how.
14962   cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h.  */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h.  */
14968 #include <ac_nonexistent.h>
14969 _ACEOF
14970 if { (ac_try="$ac_cpp conftest.$ac_ext"
14971 case "(($ac_try" in
14972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973   *) ac_try_echo=$ac_try;;
14974 esac
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14977   ac_status=$?
14978   grep -v '^ *+' conftest.er1 >conftest.err
14979   rm -f conftest.er1
14980   cat conftest.err >&5
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); } >/dev/null; then
14983   if test -s conftest.err; then
14984     ac_cpp_err=$ac_cxx_preproc_warn_flag
14985     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14986   else
14987     ac_cpp_err=
14988   fi
14989 else
14990   ac_cpp_err=yes
14991 fi
14992 if test -z "$ac_cpp_err"; then
14993   # Broken: success on invalid input.
14994 continue
14995 else
14996   echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999   # Passes both tests.
15000 ac_preproc_ok=:
15001 break
15002 fi
15003
15004 rm -f conftest.err conftest.$ac_ext
15005
15006 done
15007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15008 rm -f conftest.err conftest.$ac_ext
15009 if $ac_preproc_ok; then
15010   break
15011 fi
15012
15013     done
15014     ac_cv_prog_CXXCPP=$CXXCPP
15015
15016 fi
15017   CXXCPP=$ac_cv_prog_CXXCPP
15018 else
15019   ac_cv_prog_CXXCPP=$CXXCPP
15020 fi
15021 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15022 echo "${ECHO_T}$CXXCPP" >&6; }
15023 ac_preproc_ok=false
15024 for ac_cxx_preproc_warn_flag in '' yes
15025 do
15026   # Use a header file that comes with gcc, so configuring glibc
15027   # with a fresh cross-compiler works.
15028   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15029   # <limits.h> exists even on freestanding compilers.
15030   # On the NeXT, cc -E runs the code through the compiler's parser,
15031   # not just through cpp. "Syntax error" is here to catch this case.
15032   cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038 #ifdef __STDC__
15039 # include <limits.h>
15040 #else
15041 # include <assert.h>
15042 #endif
15043                      Syntax error
15044 _ACEOF
15045 if { (ac_try="$ac_cpp conftest.$ac_ext"
15046 case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15052   ac_status=$?
15053   grep -v '^ *+' conftest.er1 >conftest.err
15054   rm -f conftest.er1
15055   cat conftest.err >&5
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); } >/dev/null; then
15058   if test -s conftest.err; then
15059     ac_cpp_err=$ac_cxx_preproc_warn_flag
15060     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15061   else
15062     ac_cpp_err=
15063   fi
15064 else
15065   ac_cpp_err=yes
15066 fi
15067 if test -z "$ac_cpp_err"; then
15068   :
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073   # Broken: fails on valid input.
15074 continue
15075 fi
15076
15077 rm -f conftest.err conftest.$ac_ext
15078
15079   # OK, works on sane cases.  Now check whether nonexistent headers
15080   # can be detected and how.
15081   cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h.  */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h.  */
15087 #include <ac_nonexistent.h>
15088 _ACEOF
15089 if { (ac_try="$ac_cpp conftest.$ac_ext"
15090 case "(($ac_try" in
15091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092   *) ac_try_echo=$ac_try;;
15093 esac
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15096   ac_status=$?
15097   grep -v '^ *+' conftest.er1 >conftest.err
15098   rm -f conftest.er1
15099   cat conftest.err >&5
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } >/dev/null; then
15102   if test -s conftest.err; then
15103     ac_cpp_err=$ac_cxx_preproc_warn_flag
15104     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15105   else
15106     ac_cpp_err=
15107   fi
15108 else
15109   ac_cpp_err=yes
15110 fi
15111 if test -z "$ac_cpp_err"; then
15112   # Broken: success on invalid input.
15113 continue
15114 else
15115   echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118   # Passes both tests.
15119 ac_preproc_ok=:
15120 break
15121 fi
15122
15123 rm -f conftest.err conftest.$ac_ext
15124
15125 done
15126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15127 rm -f conftest.err conftest.$ac_ext
15128 if $ac_preproc_ok; then
15129   :
15130 else
15131   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15132 See \`config.log' for more details." >&5
15133 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15134 See \`config.log' for more details." >&2;}
15135    { (exit 1); exit 1; }; }
15136 fi
15137
15138 ac_ext=cpp
15139 ac_cpp='$CXXCPP $CPPFLAGS'
15140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15143
15144
15145
15146 for ac_header in cxxabi.h
15147 do
15148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15153   echo $ECHO_N "(cached) $ECHO_C" >&6
15154 fi
15155 ac_res=`eval echo '${'$as_ac_Header'}'`
15156                { echo "$as_me:$LINENO: result: $ac_res" >&5
15157 echo "${ECHO_T}$ac_res" >&6; }
15158 else
15159   # Is the header compilable?
15160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168 $ac_includes_default
15169 #include <$ac_header>
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (ac_try="$ac_compile"
15173 case "(($ac_try" in
15174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175   *) ac_try_echo=$ac_try;;
15176 esac
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178   (eval "$ac_compile") 2>conftest.er1
15179   ac_status=$?
15180   grep -v '^ *+' conftest.er1 >conftest.err
15181   rm -f conftest.er1
15182   cat conftest.err >&5
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); } &&
15185          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15186   { (case "(($ac_try" in
15187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188   *) ac_try_echo=$ac_try;;
15189 esac
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191   (eval "$ac_try") 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; } &&
15195          { ac_try='test -s conftest.$ac_objext'
15196   { (case "(($ac_try" in
15197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198   *) ac_try_echo=$ac_try;;
15199 esac
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201   (eval "$ac_try") 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); }; }; then
15205   ac_header_compiler=yes
15206 else
15207   echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210         ac_header_compiler=no
15211 fi
15212
15213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15215 echo "${ECHO_T}$ac_header_compiler" >&6; }
15216
15217 # Is the header present?
15218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15220 cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226 #include <$ac_header>
15227 _ACEOF
15228 if { (ac_try="$ac_cpp conftest.$ac_ext"
15229 case "(($ac_try" in
15230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231   *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15235   ac_status=$?
15236   grep -v '^ *+' conftest.er1 >conftest.err
15237   rm -f conftest.er1
15238   cat conftest.err >&5
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } >/dev/null; then
15241   if test -s conftest.err; then
15242     ac_cpp_err=$ac_cxx_preproc_warn_flag
15243     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15244   else
15245     ac_cpp_err=
15246   fi
15247 else
15248   ac_cpp_err=yes
15249 fi
15250 if test -z "$ac_cpp_err"; then
15251   ac_header_preproc=yes
15252 else
15253   echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256   ac_header_preproc=no
15257 fi
15258
15259 rm -f conftest.err conftest.$ac_ext
15260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15261 echo "${ECHO_T}$ac_header_preproc" >&6; }
15262
15263 # So?  What about this header?
15264 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15265   yes:no: )
15266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15270     ac_header_preproc=yes
15271     ;;
15272   no:yes:* )
15273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15285     ( cat <<\_ASBOX
15286 ## ------------------------------------ ##
15287 ## Report this to http://llvm.org/bugs/ ##
15288 ## ------------------------------------ ##
15289 _ASBOX
15290      ) | sed "s/^/$as_me: WARNING:     /" >&2
15291     ;;
15292 esac
15293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15296   echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298   eval "$as_ac_Header=\$ac_header_preproc"
15299 fi
15300 ac_res=`eval echo '${'$as_ac_Header'}'`
15301                { echo "$as_me:$LINENO: result: $ac_res" >&5
15302 echo "${ECHO_T}$ac_res" >&6; }
15303
15304 fi
15305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15306   cat >>confdefs.h <<_ACEOF
15307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15308 _ACEOF
15309
15310 fi
15311
15312 done
15313
15314 ac_ext=c
15315 ac_cpp='$CPP $CPPFLAGS'
15316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15319
15320
15321
15322
15323
15324
15325
15326 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15327 do
15328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15330   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 fi
15335 ac_res=`eval echo '${'$as_ac_Header'}'`
15336                { echo "$as_me:$LINENO: result: $ac_res" >&5
15337 echo "${ECHO_T}$ac_res" >&6; }
15338 else
15339   # Is the header compilable?
15340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15342 cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h.  */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h.  */
15348 $ac_includes_default
15349 #include <$ac_header>
15350 _ACEOF
15351 rm -f conftest.$ac_objext
15352 if { (ac_try="$ac_compile"
15353 case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358   (eval "$ac_compile") 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } &&
15365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15366   { (case "(($ac_try" in
15367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368   *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371   (eval "$ac_try") 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; } &&
15375          { ac_try='test -s conftest.$ac_objext'
15376   { (case "(($ac_try" in
15377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378   *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381   (eval "$ac_try") 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); }; }; then
15385   ac_header_compiler=yes
15386 else
15387   echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390         ac_header_compiler=no
15391 fi
15392
15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15395 echo "${ECHO_T}$ac_header_compiler" >&6; }
15396
15397 # Is the header present?
15398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406 #include <$ac_header>
15407 _ACEOF
15408 if { (ac_try="$ac_cpp conftest.$ac_ext"
15409 case "(($ac_try" in
15410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411   *) ac_try_echo=$ac_try;;
15412 esac
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15415   ac_status=$?
15416   grep -v '^ *+' conftest.er1 >conftest.err
15417   rm -f conftest.er1
15418   cat conftest.err >&5
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); } >/dev/null; then
15421   if test -s conftest.err; then
15422     ac_cpp_err=$ac_c_preproc_warn_flag
15423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15424   else
15425     ac_cpp_err=
15426   fi
15427 else
15428   ac_cpp_err=yes
15429 fi
15430 if test -z "$ac_cpp_err"; then
15431   ac_header_preproc=yes
15432 else
15433   echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15435
15436   ac_header_preproc=no
15437 fi
15438
15439 rm -f conftest.err conftest.$ac_ext
15440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15441 echo "${ECHO_T}$ac_header_preproc" >&6; }
15442
15443 # So?  What about this header?
15444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15445   yes:no: )
15446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15450     ac_header_preproc=yes
15451     ;;
15452   no:yes:* )
15453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15465     ( cat <<\_ASBOX
15466 ## ------------------------------------ ##
15467 ## Report this to http://llvm.org/bugs/ ##
15468 ## ------------------------------------ ##
15469 _ASBOX
15470      ) | sed "s/^/$as_me: WARNING:     /" >&2
15471     ;;
15472 esac
15473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476   echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478   eval "$as_ac_Header=\$ac_header_preproc"
15479 fi
15480 ac_res=`eval echo '${'$as_ac_Header'}'`
15481                { echo "$as_me:$LINENO: result: $ac_res" >&5
15482 echo "${ECHO_T}$ac_res" >&6; }
15483
15484 fi
15485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15486   cat >>confdefs.h <<_ACEOF
15487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15488 _ACEOF
15489
15490 fi
15491
15492 done
15493
15494
15495
15496
15497
15498
15499
15500 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15501 do
15502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15504   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15507   echo $ECHO_N "(cached) $ECHO_C" >&6
15508 fi
15509 ac_res=`eval echo '${'$as_ac_Header'}'`
15510                { echo "$as_me:$LINENO: result: $ac_res" >&5
15511 echo "${ECHO_T}$ac_res" >&6; }
15512 else
15513   # Is the header compilable?
15514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15516 cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h.  */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h.  */
15522 $ac_includes_default
15523 #include <$ac_header>
15524 _ACEOF
15525 rm -f conftest.$ac_objext
15526 if { (ac_try="$ac_compile"
15527 case "(($ac_try" in
15528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529   *) ac_try_echo=$ac_try;;
15530 esac
15531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532   (eval "$ac_compile") 2>conftest.er1
15533   ac_status=$?
15534   grep -v '^ *+' conftest.er1 >conftest.err
15535   rm -f conftest.er1
15536   cat conftest.err >&5
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); } &&
15539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15540   { (case "(($ac_try" in
15541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542   *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545   (eval "$ac_try") 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; } &&
15549          { ac_try='test -s conftest.$ac_objext'
15550   { (case "(($ac_try" in
15551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552   *) ac_try_echo=$ac_try;;
15553 esac
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555   (eval "$ac_try") 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; }; then
15559   ac_header_compiler=yes
15560 else
15561   echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15563
15564         ac_header_compiler=no
15565 fi
15566
15567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15569 echo "${ECHO_T}$ac_header_compiler" >&6; }
15570
15571 # Is the header present?
15572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15574 cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580 #include <$ac_header>
15581 _ACEOF
15582 if { (ac_try="$ac_cpp conftest.$ac_ext"
15583 case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15589   ac_status=$?
15590   grep -v '^ *+' conftest.er1 >conftest.err
15591   rm -f conftest.er1
15592   cat conftest.err >&5
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); } >/dev/null; then
15595   if test -s conftest.err; then
15596     ac_cpp_err=$ac_c_preproc_warn_flag
15597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15598   else
15599     ac_cpp_err=
15600   fi
15601 else
15602   ac_cpp_err=yes
15603 fi
15604 if test -z "$ac_cpp_err"; then
15605   ac_header_preproc=yes
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610   ac_header_preproc=no
15611 fi
15612
15613 rm -f conftest.err conftest.$ac_ext
15614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15615 echo "${ECHO_T}$ac_header_preproc" >&6; }
15616
15617 # So?  What about this header?
15618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15619   yes:no: )
15620     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15624     ac_header_preproc=yes
15625     ;;
15626   no:yes:* )
15627     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15629     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15630 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15631     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15633     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15634 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15637     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15639     ( cat <<\_ASBOX
15640 ## ------------------------------------ ##
15641 ## Report this to http://llvm.org/bugs/ ##
15642 ## ------------------------------------ ##
15643 _ASBOX
15644      ) | sed "s/^/$as_me: WARNING:     /" >&2
15645     ;;
15646 esac
15647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15650   echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652   eval "$as_ac_Header=\$ac_header_preproc"
15653 fi
15654 ac_res=`eval echo '${'$as_ac_Header'}'`
15655                { echo "$as_me:$LINENO: result: $ac_res" >&5
15656 echo "${ECHO_T}$ac_res" >&6; }
15657
15658 fi
15659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15660   cat >>confdefs.h <<_ACEOF
15661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15662 _ACEOF
15663
15664 fi
15665
15666 done
15667
15668
15669
15670 for ac_header in utime.h windows.h
15671 do
15672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15674   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15677   echo $ECHO_N "(cached) $ECHO_C" >&6
15678 fi
15679 ac_res=`eval echo '${'$as_ac_Header'}'`
15680                { echo "$as_me:$LINENO: result: $ac_res" >&5
15681 echo "${ECHO_T}$ac_res" >&6; }
15682 else
15683   # Is the header compilable?
15684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15686 cat >conftest.$ac_ext <<_ACEOF
15687 /* confdefs.h.  */
15688 _ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h.  */
15692 $ac_includes_default
15693 #include <$ac_header>
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699   *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702   (eval "$ac_compile") 2>conftest.er1
15703   ac_status=$?
15704   grep -v '^ *+' conftest.er1 >conftest.err
15705   rm -f conftest.er1
15706   cat conftest.err >&5
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } &&
15709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710   { (case "(($ac_try" in
15711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712   *) ac_try_echo=$ac_try;;
15713 esac
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715   (eval "$ac_try") 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); }; } &&
15719          { ac_try='test -s conftest.$ac_objext'
15720   { (case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_try") 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; }; then
15729   ac_header_compiler=yes
15730 else
15731   echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15733
15734         ac_header_compiler=no
15735 fi
15736
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15739 echo "${ECHO_T}$ac_header_compiler" >&6; }
15740
15741 # Is the header present?
15742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15744 cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h.  */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h.  */
15750 #include <$ac_header>
15751 _ACEOF
15752 if { (ac_try="$ac_cpp conftest.$ac_ext"
15753 case "(($ac_try" in
15754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755   *) ac_try_echo=$ac_try;;
15756 esac
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } >/dev/null; then
15765   if test -s conftest.err; then
15766     ac_cpp_err=$ac_c_preproc_warn_flag
15767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15768   else
15769     ac_cpp_err=
15770   fi
15771 else
15772   ac_cpp_err=yes
15773 fi
15774 if test -z "$ac_cpp_err"; then
15775   ac_header_preproc=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780   ac_header_preproc=no
15781 fi
15782
15783 rm -f conftest.err conftest.$ac_ext
15784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 echo "${ECHO_T}$ac_header_preproc" >&6; }
15786
15787 # So?  What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789   yes:no: )
15790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15794     ac_header_preproc=yes
15795     ;;
15796   no:yes:* )
15797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15809     ( cat <<\_ASBOX
15810 ## ------------------------------------ ##
15811 ## Report this to http://llvm.org/bugs/ ##
15812 ## ------------------------------------ ##
15813 _ASBOX
15814      ) | sed "s/^/$as_me: WARNING:     /" >&2
15815     ;;
15816 esac
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820   echo $ECHO_N "(cached) $ECHO_C" >&6
15821 else
15822   eval "$as_ac_Header=\$ac_header_preproc"
15823 fi
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825                { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15827
15828 fi
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830   cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15832 _ACEOF
15833
15834 fi
15835
15836 done
15837
15838
15839
15840
15841
15842
15843 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15844 do
15845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15850   echo $ECHO_N "(cached) $ECHO_C" >&6
15851 fi
15852 ac_res=`eval echo '${'$as_ac_Header'}'`
15853                { echo "$as_me:$LINENO: result: $ac_res" >&5
15854 echo "${ECHO_T}$ac_res" >&6; }
15855 else
15856   # Is the header compilable?
15857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15859 cat >conftest.$ac_ext <<_ACEOF
15860 /* confdefs.h.  */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h.  */
15865 $ac_includes_default
15866 #include <$ac_header>
15867 _ACEOF
15868 rm -f conftest.$ac_objext
15869 if { (ac_try="$ac_compile"
15870 case "(($ac_try" in
15871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872   *) ac_try_echo=$ac_try;;
15873 esac
15874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875   (eval "$ac_compile") 2>conftest.er1
15876   ac_status=$?
15877   grep -v '^ *+' conftest.er1 >conftest.err
15878   rm -f conftest.er1
15879   cat conftest.err >&5
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); } &&
15882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15883   { (case "(($ac_try" in
15884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885   *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888   (eval "$ac_try") 2>&5
15889   ac_status=$?
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); }; } &&
15892          { ac_try='test -s conftest.$ac_objext'
15893   { (case "(($ac_try" in
15894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895   *) ac_try_echo=$ac_try;;
15896 esac
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898   (eval "$ac_try") 2>&5
15899   ac_status=$?
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); }; }; then
15902   ac_header_compiler=yes
15903 else
15904   echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907         ac_header_compiler=no
15908 fi
15909
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15912 echo "${ECHO_T}$ac_header_compiler" >&6; }
15913
15914 # Is the header present?
15915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h.  */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h.  */
15923 #include <$ac_header>
15924 _ACEOF
15925 if { (ac_try="$ac_cpp conftest.$ac_ext"
15926 case "(($ac_try" in
15927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928   *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15932   ac_status=$?
15933   grep -v '^ *+' conftest.er1 >conftest.err
15934   rm -f conftest.er1
15935   cat conftest.err >&5
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); } >/dev/null; then
15938   if test -s conftest.err; then
15939     ac_cpp_err=$ac_c_preproc_warn_flag
15940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15941   else
15942     ac_cpp_err=
15943   fi
15944 else
15945   ac_cpp_err=yes
15946 fi
15947 if test -z "$ac_cpp_err"; then
15948   ac_header_preproc=yes
15949 else
15950   echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953   ac_header_preproc=no
15954 fi
15955
15956 rm -f conftest.err conftest.$ac_ext
15957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15958 echo "${ECHO_T}$ac_header_preproc" >&6; }
15959
15960 # So?  What about this header?
15961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15962   yes:no: )
15963     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15967     ac_header_preproc=yes
15968     ;;
15969   no:yes:* )
15970     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15972     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15973 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15974     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15976     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15977 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15980     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15982     ( cat <<\_ASBOX
15983 ## ------------------------------------ ##
15984 ## Report this to http://llvm.org/bugs/ ##
15985 ## ------------------------------------ ##
15986 _ASBOX
15987      ) | sed "s/^/$as_me: WARNING:     /" >&2
15988     ;;
15989 esac
15990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15993   echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995   eval "$as_ac_Header=\$ac_header_preproc"
15996 fi
15997 ac_res=`eval echo '${'$as_ac_Header'}'`
15998                { echo "$as_me:$LINENO: result: $ac_res" >&5
15999 echo "${ECHO_T}$ac_res" >&6; }
16000
16001 fi
16002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16003   cat >>confdefs.h <<_ACEOF
16004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16005 _ACEOF
16006
16007 fi
16008
16009 done
16010
16011
16012
16013
16014
16015 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16016 do
16017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16022   echo $ECHO_N "(cached) $ECHO_C" >&6
16023 fi
16024 ac_res=`eval echo '${'$as_ac_Header'}'`
16025                { echo "$as_me:$LINENO: result: $ac_res" >&5
16026 echo "${ECHO_T}$ac_res" >&6; }
16027 else
16028   # Is the header compilable?
16029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 $ac_includes_default
16038 #include <$ac_header>
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (ac_try="$ac_compile"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_compile") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } &&
16054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16055   { (case "(($ac_try" in
16056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057   *) ac_try_echo=$ac_try;;
16058 esac
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060   (eval "$ac_try") 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; } &&
16064          { ac_try='test -s conftest.$ac_objext'
16065   { (case "(($ac_try" in
16066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067   *) ac_try_echo=$ac_try;;
16068 esac
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070   (eval "$ac_try") 2>&5
16071   ac_status=$?
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); }; }; then
16074   ac_header_compiler=yes
16075 else
16076   echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079         ac_header_compiler=no
16080 fi
16081
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16084 echo "${ECHO_T}$ac_header_compiler" >&6; }
16085
16086 # Is the header present?
16087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h.  */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h.  */
16095 #include <$ac_header>
16096 _ACEOF
16097 if { (ac_try="$ac_cpp conftest.$ac_ext"
16098 case "(($ac_try" in
16099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100   *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16104   ac_status=$?
16105   grep -v '^ *+' conftest.er1 >conftest.err
16106   rm -f conftest.er1
16107   cat conftest.err >&5
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); } >/dev/null; then
16110   if test -s conftest.err; then
16111     ac_cpp_err=$ac_c_preproc_warn_flag
16112     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16113   else
16114     ac_cpp_err=
16115   fi
16116 else
16117   ac_cpp_err=yes
16118 fi
16119 if test -z "$ac_cpp_err"; then
16120   ac_header_preproc=yes
16121 else
16122   echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125   ac_header_preproc=no
16126 fi
16127
16128 rm -f conftest.err conftest.$ac_ext
16129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16130 echo "${ECHO_T}$ac_header_preproc" >&6; }
16131
16132 # So?  What about this header?
16133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16134   yes:no: )
16135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16139     ac_header_preproc=yes
16140     ;;
16141   no:yes:* )
16142     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16144     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16145 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16146     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16148     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16149 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16152     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16154     ( cat <<\_ASBOX
16155 ## ------------------------------------ ##
16156 ## Report this to http://llvm.org/bugs/ ##
16157 ## ------------------------------------ ##
16158 _ASBOX
16159      ) | sed "s/^/$as_me: WARNING:     /" >&2
16160     ;;
16161 esac
16162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16165   echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167   eval "$as_ac_Header=\$ac_header_preproc"
16168 fi
16169 ac_res=`eval echo '${'$as_ac_Header'}'`
16170                { echo "$as_me:$LINENO: result: $ac_res" >&5
16171 echo "${ECHO_T}$ac_res" >&6; }
16172
16173 fi
16174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16175   cat >>confdefs.h <<_ACEOF
16176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16177 _ACEOF
16178
16179 fi
16180
16181 done
16182
16183
16184 for ac_header in valgrind/valgrind.h
16185 do
16186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16188   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 fi
16193 ac_res=`eval echo '${'$as_ac_Header'}'`
16194                { echo "$as_me:$LINENO: result: $ac_res" >&5
16195 echo "${ECHO_T}$ac_res" >&6; }
16196 else
16197   # Is the header compilable?
16198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16200 cat >conftest.$ac_ext <<_ACEOF
16201 /* confdefs.h.  */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h.  */
16206 $ac_includes_default
16207 #include <$ac_header>
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216   (eval "$ac_compile") 2>conftest.er1
16217   ac_status=$?
16218   grep -v '^ *+' conftest.er1 >conftest.err
16219   rm -f conftest.er1
16220   cat conftest.err >&5
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } &&
16223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16224   { (case "(($ac_try" in
16225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226   *) ac_try_echo=$ac_try;;
16227 esac
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229   (eval "$ac_try") 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); }; } &&
16233          { ac_try='test -s conftest.$ac_objext'
16234   { (case "(($ac_try" in
16235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236   *) ac_try_echo=$ac_try;;
16237 esac
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239   (eval "$ac_try") 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; }; then
16243   ac_header_compiler=yes
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248         ac_header_compiler=no
16249 fi
16250
16251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16253 echo "${ECHO_T}$ac_header_compiler" >&6; }
16254
16255 # Is the header present?
16256 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16258 cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h.  */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h.  */
16264 #include <$ac_header>
16265 _ACEOF
16266 if { (ac_try="$ac_cpp conftest.$ac_ext"
16267 case "(($ac_try" in
16268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269   *) ac_try_echo=$ac_try;;
16270 esac
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16273   ac_status=$?
16274   grep -v '^ *+' conftest.er1 >conftest.err
16275   rm -f conftest.er1
16276   cat conftest.err >&5
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } >/dev/null; then
16279   if test -s conftest.err; then
16280     ac_cpp_err=$ac_c_preproc_warn_flag
16281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16282   else
16283     ac_cpp_err=
16284   fi
16285 else
16286   ac_cpp_err=yes
16287 fi
16288 if test -z "$ac_cpp_err"; then
16289   ac_header_preproc=yes
16290 else
16291   echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16293
16294   ac_header_preproc=no
16295 fi
16296
16297 rm -f conftest.err conftest.$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16299 echo "${ECHO_T}$ac_header_preproc" >&6; }
16300
16301 # So?  What about this header?
16302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16303   yes:no: )
16304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16308     ac_header_preproc=yes
16309     ;;
16310   no:yes:* )
16311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16313     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16314 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16315     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16317     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16318 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16321     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16323     ( cat <<\_ASBOX
16324 ## ------------------------------------ ##
16325 ## Report this to http://llvm.org/bugs/ ##
16326 ## ------------------------------------ ##
16327 _ASBOX
16328      ) | sed "s/^/$as_me: WARNING:     /" >&2
16329     ;;
16330 esac
16331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334   echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336   eval "$as_ac_Header=\$ac_header_preproc"
16337 fi
16338 ac_res=`eval echo '${'$as_ac_Header'}'`
16339                { echo "$as_me:$LINENO: result: $ac_res" >&5
16340 echo "${ECHO_T}$ac_res" >&6; }
16341
16342 fi
16343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16344   cat >>confdefs.h <<_ACEOF
16345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16346 _ACEOF
16347
16348 fi
16349
16350 done
16351
16352
16353 for ac_header in fenv.h
16354 do
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360   echo $ECHO_N "(cached) $ECHO_C" >&6
16361 fi
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363                { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16365 else
16366   # Is the header compilable?
16367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h.  */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h.  */
16375 $ac_includes_default
16376 #include <$ac_header>
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382   *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385   (eval "$ac_compile") 2>conftest.er1
16386   ac_status=$?
16387   grep -v '^ *+' conftest.er1 >conftest.err
16388   rm -f conftest.er1
16389   cat conftest.err >&5
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16393   { (case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_try") 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; } &&
16402          { ac_try='test -s conftest.$ac_objext'
16403   { (case "(($ac_try" in
16404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405   *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408   (eval "$ac_try") 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; }; then
16412   ac_header_compiler=yes
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417         ac_header_compiler=no
16418 fi
16419
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16422 echo "${ECHO_T}$ac_header_compiler" >&6; }
16423
16424 # Is the header present?
16425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16427 cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 #include <$ac_header>
16434 _ACEOF
16435 if { (ac_try="$ac_cpp conftest.$ac_ext"
16436 case "(($ac_try" in
16437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438   *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16442   ac_status=$?
16443   grep -v '^ *+' conftest.er1 >conftest.err
16444   rm -f conftest.er1
16445   cat conftest.err >&5
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); } >/dev/null; then
16448   if test -s conftest.err; then
16449     ac_cpp_err=$ac_c_preproc_warn_flag
16450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16451   else
16452     ac_cpp_err=
16453   fi
16454 else
16455   ac_cpp_err=yes
16456 fi
16457 if test -z "$ac_cpp_err"; then
16458   ac_header_preproc=yes
16459 else
16460   echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463   ac_header_preproc=no
16464 fi
16465
16466 rm -f conftest.err conftest.$ac_ext
16467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16468 echo "${ECHO_T}$ac_header_preproc" >&6; }
16469
16470 # So?  What about this header?
16471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16472   yes:no: )
16473     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16477     ac_header_preproc=yes
16478     ;;
16479   no:yes:* )
16480     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16482     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16483 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16484     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16486     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16487 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16490     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16492     ( cat <<\_ASBOX
16493 ## ------------------------------------ ##
16494 ## Report this to http://llvm.org/bugs/ ##
16495 ## ------------------------------------ ##
16496 _ASBOX
16497      ) | sed "s/^/$as_me: WARNING:     /" >&2
16498     ;;
16499 esac
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505   eval "$as_ac_Header=\$ac_header_preproc"
16506 fi
16507 ac_res=`eval echo '${'$as_ac_Header'}'`
16508                { echo "$as_me:$LINENO: result: $ac_res" >&5
16509 echo "${ECHO_T}$ac_res" >&6; }
16510
16511 fi
16512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16513   cat >>confdefs.h <<_ACEOF
16514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16515 _ACEOF
16516
16517 fi
16518
16519 done
16520
16521 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16522 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16523 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16524   echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526   cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h.  */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h.  */
16532 #include <fenv.h>
16533
16534 int
16535 main ()
16536 {
16537 #ifndef FE_ALL_EXCEPT
16538   char *p = (char *) FE_ALL_EXCEPT;
16539   return !p;
16540 #endif
16541
16542   ;
16543   return 0;
16544 }
16545 _ACEOF
16546 rm -f conftest.$ac_objext
16547 if { (ac_try="$ac_compile"
16548 case "(($ac_try" in
16549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550   *) ac_try_echo=$ac_try;;
16551 esac
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553   (eval "$ac_compile") 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } &&
16560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16561   { (case "(($ac_try" in
16562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563   *) ac_try_echo=$ac_try;;
16564 esac
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566   (eval "$ac_try") 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; } &&
16570          { ac_try='test -s conftest.$ac_objext'
16571   { (case "(($ac_try" in
16572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573   *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576   (eval "$ac_try") 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; }; then
16580   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16581 else
16582   echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16584
16585         ac_cv_have_decl_FE_ALL_EXCEPT=no
16586 fi
16587
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589 fi
16590 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16591 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16592 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16593
16594 cat >>confdefs.h <<_ACEOF
16595 #define HAVE_DECL_FE_ALL_EXCEPT 1
16596 _ACEOF
16597
16598
16599 else
16600   cat >>confdefs.h <<_ACEOF
16601 #define HAVE_DECL_FE_ALL_EXCEPT 0
16602 _ACEOF
16603
16604
16605 fi
16606 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16607 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16608 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16609   echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611   cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h.  */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h.  */
16617 #include <fenv.h>
16618
16619 int
16620 main ()
16621 {
16622 #ifndef FE_INEXACT
16623   char *p = (char *) FE_INEXACT;
16624   return !p;
16625 #endif
16626
16627   ;
16628   return 0;
16629 }
16630 _ACEOF
16631 rm -f conftest.$ac_objext
16632 if { (ac_try="$ac_compile"
16633 case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638   (eval "$ac_compile") 2>conftest.er1
16639   ac_status=$?
16640   grep -v '^ *+' conftest.er1 >conftest.err
16641   rm -f conftest.er1
16642   cat conftest.err >&5
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); } &&
16645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646   { (case "(($ac_try" in
16647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648   *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651   (eval "$ac_try") 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); }; } &&
16655          { ac_try='test -s conftest.$ac_objext'
16656   { (case "(($ac_try" in
16657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658   *) ac_try_echo=$ac_try;;
16659 esac
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661   (eval "$ac_try") 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); }; }; then
16665   ac_cv_have_decl_FE_INEXACT=yes
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670         ac_cv_have_decl_FE_INEXACT=no
16671 fi
16672
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 fi
16675 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16676 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16677 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16678
16679 cat >>confdefs.h <<_ACEOF
16680 #define HAVE_DECL_FE_INEXACT 1
16681 _ACEOF
16682
16683
16684 else
16685   cat >>confdefs.h <<_ACEOF
16686 #define HAVE_DECL_FE_INEXACT 0
16687 _ACEOF
16688
16689
16690 fi
16691
16692
16693 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16694
16695 for ac_header in pthread.h
16696 do
16697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16699   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16702   echo $ECHO_N "(cached) $ECHO_C" >&6
16703 fi
16704 ac_res=`eval echo '${'$as_ac_Header'}'`
16705                { echo "$as_me:$LINENO: result: $ac_res" >&5
16706 echo "${ECHO_T}$ac_res" >&6; }
16707 else
16708   # Is the header compilable?
16709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16711 cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h.  */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h.  */
16717 $ac_includes_default
16718 #include <$ac_header>
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (ac_try="$ac_compile"
16722 case "(($ac_try" in
16723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724   *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727   (eval "$ac_compile") 2>conftest.er1
16728   ac_status=$?
16729   grep -v '^ *+' conftest.er1 >conftest.err
16730   rm -f conftest.er1
16731   cat conftest.err >&5
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); } &&
16734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16735   { (case "(($ac_try" in
16736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737   *) ac_try_echo=$ac_try;;
16738 esac
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740   (eval "$ac_try") 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; } &&
16744          { ac_try='test -s conftest.$ac_objext'
16745   { (case "(($ac_try" in
16746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747   *) ac_try_echo=$ac_try;;
16748 esac
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750   (eval "$ac_try") 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; }; then
16754   ac_header_compiler=yes
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759         ac_header_compiler=no
16760 fi
16761
16762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16764 echo "${ECHO_T}$ac_header_compiler" >&6; }
16765
16766 # Is the header present?
16767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16769 cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h.  */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h.  */
16775 #include <$ac_header>
16776 _ACEOF
16777 if { (ac_try="$ac_cpp conftest.$ac_ext"
16778 case "(($ac_try" in
16779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780   *) ac_try_echo=$ac_try;;
16781 esac
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16784   ac_status=$?
16785   grep -v '^ *+' conftest.er1 >conftest.err
16786   rm -f conftest.er1
16787   cat conftest.err >&5
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); } >/dev/null; then
16790   if test -s conftest.err; then
16791     ac_cpp_err=$ac_c_preproc_warn_flag
16792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16793   else
16794     ac_cpp_err=
16795   fi
16796 else
16797   ac_cpp_err=yes
16798 fi
16799 if test -z "$ac_cpp_err"; then
16800   ac_header_preproc=yes
16801 else
16802   echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805   ac_header_preproc=no
16806 fi
16807
16808 rm -f conftest.err conftest.$ac_ext
16809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16810 echo "${ECHO_T}$ac_header_preproc" >&6; }
16811
16812 # So?  What about this header?
16813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16814   yes:no: )
16815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16819     ac_header_preproc=yes
16820     ;;
16821   no:yes:* )
16822     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16824     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16825 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16826     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16828     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16829 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16832     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16834     ( cat <<\_ASBOX
16835 ## ------------------------------------ ##
16836 ## Report this to http://llvm.org/bugs/ ##
16837 ## ------------------------------------ ##
16838 _ASBOX
16839      ) | sed "s/^/$as_me: WARNING:     /" >&2
16840     ;;
16841 esac
16842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16845   echo $ECHO_N "(cached) $ECHO_C" >&6
16846 else
16847   eval "$as_ac_Header=\$ac_header_preproc"
16848 fi
16849 ac_res=`eval echo '${'$as_ac_Header'}'`
16850                { echo "$as_me:$LINENO: result: $ac_res" >&5
16851 echo "${ECHO_T}$ac_res" >&6; }
16852
16853 fi
16854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16855   cat >>confdefs.h <<_ACEOF
16856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16857 _ACEOF
16858  HAVE_PTHREAD=1
16859
16860 else
16861   HAVE_PTHREAD=0
16862
16863 fi
16864
16865 done
16866
16867 else
16868   HAVE_PTHREAD=0
16869
16870 fi
16871 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16872
16873 for ac_header in zlib.h
16874 do
16875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16877   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16880   echo $ECHO_N "(cached) $ECHO_C" >&6
16881 fi
16882 ac_res=`eval echo '${'$as_ac_Header'}'`
16883                { echo "$as_me:$LINENO: result: $ac_res" >&5
16884 echo "${ECHO_T}$ac_res" >&6; }
16885 else
16886   # Is the header compilable?
16887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16889 cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h.  */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h.  */
16895 $ac_includes_default
16896 #include <$ac_header>
16897 _ACEOF
16898 rm -f conftest.$ac_objext
16899 if { (ac_try="$ac_compile"
16900 case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_compile") 2>conftest.er1
16906   ac_status=$?
16907   grep -v '^ *+' conftest.er1 >conftest.err
16908   rm -f conftest.er1
16909   cat conftest.err >&5
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); } &&
16912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16913   { (case "(($ac_try" in
16914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915   *) ac_try_echo=$ac_try;;
16916 esac
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918   (eval "$ac_try") 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; } &&
16922          { ac_try='test -s conftest.$ac_objext'
16923   { (case "(($ac_try" in
16924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925   *) ac_try_echo=$ac_try;;
16926 esac
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928   (eval "$ac_try") 2>&5
16929   ac_status=$?
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); }; }; then
16932   ac_header_compiler=yes
16933 else
16934   echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937         ac_header_compiler=no
16938 fi
16939
16940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16942 echo "${ECHO_T}$ac_header_compiler" >&6; }
16943
16944 # Is the header present?
16945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h.  */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h.  */
16953 #include <$ac_header>
16954 _ACEOF
16955 if { (ac_try="$ac_cpp conftest.$ac_ext"
16956 case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16962   ac_status=$?
16963   grep -v '^ *+' conftest.er1 >conftest.err
16964   rm -f conftest.er1
16965   cat conftest.err >&5
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } >/dev/null; then
16968   if test -s conftest.err; then
16969     ac_cpp_err=$ac_c_preproc_warn_flag
16970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16971   else
16972     ac_cpp_err=
16973   fi
16974 else
16975   ac_cpp_err=yes
16976 fi
16977 if test -z "$ac_cpp_err"; then
16978   ac_header_preproc=yes
16979 else
16980   echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983   ac_header_preproc=no
16984 fi
16985
16986 rm -f conftest.err conftest.$ac_ext
16987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16988 echo "${ECHO_T}$ac_header_preproc" >&6; }
16989
16990 # So?  What about this header?
16991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16992   yes:no: )
16993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16997     ac_header_preproc=yes
16998     ;;
16999   no:yes:* )
17000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17002     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17003 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17004     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17006     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17007 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17010     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17012     ( cat <<\_ASBOX
17013 ## ------------------------------------ ##
17014 ## Report this to http://llvm.org/bugs/ ##
17015 ## ------------------------------------ ##
17016 _ASBOX
17017      ) | sed "s/^/$as_me: WARNING:     /" >&2
17018     ;;
17019 esac
17020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17023   echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025   eval "$as_ac_Header=\$ac_header_preproc"
17026 fi
17027 ac_res=`eval echo '${'$as_ac_Header'}'`
17028                { echo "$as_me:$LINENO: result: $ac_res" >&5
17029 echo "${ECHO_T}$ac_res" >&6; }
17030
17031 fi
17032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17033   cat >>confdefs.h <<_ACEOF
17034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17035 _ACEOF
17036  HAVE_LIBZ=1
17037
17038 else
17039   HAVE_LIBZ=0
17040
17041 fi
17042
17043 done
17044
17045 else
17046   HAVE_LIBZ=0
17047
17048 fi
17049
17050 if test "$llvm_cv_enable_libffi" = "yes" ; then
17051
17052
17053 for ac_header in ffi.h ffi/ffi.h
17054 do
17055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17057   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17060   echo $ECHO_N "(cached) $ECHO_C" >&6
17061 fi
17062 ac_res=`eval echo '${'$as_ac_Header'}'`
17063                { echo "$as_me:$LINENO: result: $ac_res" >&5
17064 echo "${ECHO_T}$ac_res" >&6; }
17065 else
17066   # Is the header compilable?
17067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h.  */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h.  */
17075 $ac_includes_default
17076 #include <$ac_header>
17077 _ACEOF
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
17080 case "(($ac_try" in
17081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082   *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085   (eval "$ac_compile") 2>conftest.er1
17086   ac_status=$?
17087   grep -v '^ *+' conftest.er1 >conftest.err
17088   rm -f conftest.er1
17089   cat conftest.err >&5
17090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091   (exit $ac_status); } &&
17092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093   { (case "(($ac_try" in
17094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095   *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098   (eval "$ac_try") 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); }; } &&
17102          { ac_try='test -s conftest.$ac_objext'
17103   { (case "(($ac_try" in
17104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105   *) ac_try_echo=$ac_try;;
17106 esac
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108   (eval "$ac_try") 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; }; then
17112   ac_header_compiler=yes
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117         ac_header_compiler=no
17118 fi
17119
17120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17122 echo "${ECHO_T}$ac_header_compiler" >&6; }
17123
17124 # Is the header present?
17125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h.  */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h.  */
17133 #include <$ac_header>
17134 _ACEOF
17135 if { (ac_try="$ac_cpp conftest.$ac_ext"
17136 case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17142   ac_status=$?
17143   grep -v '^ *+' conftest.er1 >conftest.err
17144   rm -f conftest.er1
17145   cat conftest.err >&5
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); } >/dev/null; then
17148   if test -s conftest.err; then
17149     ac_cpp_err=$ac_c_preproc_warn_flag
17150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17151   else
17152     ac_cpp_err=
17153   fi
17154 else
17155   ac_cpp_err=yes
17156 fi
17157 if test -z "$ac_cpp_err"; then
17158   ac_header_preproc=yes
17159 else
17160   echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163   ac_header_preproc=no
17164 fi
17165
17166 rm -f conftest.err conftest.$ac_ext
17167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17168 echo "${ECHO_T}$ac_header_preproc" >&6; }
17169
17170 # So?  What about this header?
17171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17172   yes:no: )
17173     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17177     ac_header_preproc=yes
17178     ;;
17179   no:yes:* )
17180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17182     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17183 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17184     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17186     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17187 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17190     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17192     ( cat <<\_ASBOX
17193 ## ------------------------------------ ##
17194 ## Report this to http://llvm.org/bugs/ ##
17195 ## ------------------------------------ ##
17196 _ASBOX
17197      ) | sed "s/^/$as_me: WARNING:     /" >&2
17198     ;;
17199 esac
17200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205   eval "$as_ac_Header=\$ac_header_preproc"
17206 fi
17207 ac_res=`eval echo '${'$as_ac_Header'}'`
17208                { echo "$as_me:$LINENO: result: $ac_res" >&5
17209 echo "${ECHO_T}$ac_res" >&6; }
17210
17211 fi
17212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17213   cat >>confdefs.h <<_ACEOF
17214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17215 _ACEOF
17216
17217 fi
17218
17219 done
17220
17221 fi
17222
17223
17224 for ac_header in CrashReporterClient.h
17225 do
17226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17228   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17231   echo $ECHO_N "(cached) $ECHO_C" >&6
17232 fi
17233 ac_res=`eval echo '${'$as_ac_Header'}'`
17234                { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17236 else
17237   # Is the header compilable?
17238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h.  */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h.  */
17246 $ac_includes_default
17247 #include <$ac_header>
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (ac_try="$ac_compile"
17251 case "(($ac_try" in
17252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253   *) ac_try_echo=$ac_try;;
17254 esac
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256   (eval "$ac_compile") 2>conftest.er1
17257   ac_status=$?
17258   grep -v '^ *+' conftest.er1 >conftest.err
17259   rm -f conftest.er1
17260   cat conftest.err >&5
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); } &&
17263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17264   { (case "(($ac_try" in
17265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266   *) ac_try_echo=$ac_try;;
17267 esac
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269   (eval "$ac_try") 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; } &&
17273          { ac_try='test -s conftest.$ac_objext'
17274   { (case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_try") 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); }; }; then
17283   ac_header_compiler=yes
17284 else
17285   echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17287
17288         ac_header_compiler=no
17289 fi
17290
17291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17293 echo "${ECHO_T}$ac_header_compiler" >&6; }
17294
17295 # Is the header present?
17296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h.  */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h.  */
17304 #include <$ac_header>
17305 _ACEOF
17306 if { (ac_try="$ac_cpp conftest.$ac_ext"
17307 case "(($ac_try" in
17308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309   *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17313   ac_status=$?
17314   grep -v '^ *+' conftest.er1 >conftest.err
17315   rm -f conftest.er1
17316   cat conftest.err >&5
17317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); } >/dev/null; then
17319   if test -s conftest.err; then
17320     ac_cpp_err=$ac_c_preproc_warn_flag
17321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17322   else
17323     ac_cpp_err=
17324   fi
17325 else
17326   ac_cpp_err=yes
17327 fi
17328 if test -z "$ac_cpp_err"; then
17329   ac_header_preproc=yes
17330 else
17331   echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17333
17334   ac_header_preproc=no
17335 fi
17336
17337 rm -f conftest.err conftest.$ac_ext
17338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17339 echo "${ECHO_T}$ac_header_preproc" >&6; }
17340
17341 # So?  What about this header?
17342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17343   yes:no: )
17344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17348     ac_header_preproc=yes
17349     ;;
17350   no:yes:* )
17351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17363     ( cat <<\_ASBOX
17364 ## ------------------------------------ ##
17365 ## Report this to http://llvm.org/bugs/ ##
17366 ## ------------------------------------ ##
17367 _ASBOX
17368      ) | sed "s/^/$as_me: WARNING:     /" >&2
17369     ;;
17370 esac
17371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376   eval "$as_ac_Header=\$ac_header_preproc"
17377 fi
17378 ac_res=`eval echo '${'$as_ac_Header'}'`
17379                { echo "$as_me:$LINENO: result: $ac_res" >&5
17380 echo "${ECHO_T}$ac_res" >&6; }
17381
17382 fi
17383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17384   cat >>confdefs.h <<_ACEOF
17385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17386 _ACEOF
17387
17388 fi
17389
17390 done
17391
17392
17393 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17394 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17395 cat >conftest.$ac_ext <<_ACEOF
17396
17397   /* confdefs.h.  */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h.  */
17402
17403     extern const char *__crashreporter_info__;
17404     int main() {
17405       __crashreporter_info__ = "test";
17406       return 0;
17407     }
17408
17409
17410 _ACEOF
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415   *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418   (eval "$ac_link") 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } &&
17425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17426   { (case "(($ac_try" in
17427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428   *) ac_try_echo=$ac_try;;
17429 esac
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431   (eval "$ac_try") 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; } &&
17435          { ac_try='test -s conftest$ac_exeext'
17436   { (case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_try") 2>&5
17442   ac_status=$?
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); }; }; then
17445
17446   { echo "$as_me:$LINENO: result: yes" >&5
17447 echo "${ECHO_T}yes" >&6; }
17448
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_CRASHREPORTER_INFO 1
17451 _ACEOF
17452
17453
17454 else
17455   echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17457
17458
17459   { echo "$as_me:$LINENO: result: no" >&5
17460 echo "${ECHO_T}no" >&6; }
17461
17462 cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_CRASHREPORTER_INFO 0
17464 _ACEOF
17465
17466
17467 fi
17468
17469 rm -f core conftest.err conftest.$ac_objext \
17470       conftest$ac_exeext conftest.$ac_ext
17471
17472
17473
17474   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17475 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17476 if test "${ac_cv_huge_val_sanity+set}" = set; then
17477   echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479
17480     ac_ext=cpp
17481 ac_cpp='$CXXCPP $CPPFLAGS'
17482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17485
17486     ac_save_CXXFLAGS=$CXXFLAGS
17487     CXXFLAGS="$CXXFLAGS -pedantic"
17488     if test "$cross_compiling" = yes; then
17489   ac_cv_huge_val_sanity=yes
17490 else
17491   cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h.  */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h.  */
17497 #include <math.h>
17498 int
17499 main ()
17500 {
17501 double x = HUGE_VAL; return x != x;
17502   ;
17503   return 0;
17504 }
17505 _ACEOF
17506 rm -f conftest$ac_exeext
17507 if { (ac_try="$ac_link"
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_link") 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17517   { (case "(($ac_try" in
17518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519   *) ac_try_echo=$ac_try;;
17520 esac
17521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17522   (eval "$ac_try") 2>&5
17523   ac_status=$?
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); }; }; then
17526   ac_cv_huge_val_sanity=yes
17527 else
17528   echo "$as_me: program exited with status $ac_status" >&5
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17531
17532 ( exit $ac_status )
17533 ac_cv_huge_val_sanity=no
17534 fi
17535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17536 fi
17537
17538
17539     CXXFLAGS=$ac_save_CXXFLAGS
17540     ac_ext=c
17541 ac_cpp='$CPP $CPPFLAGS'
17542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17545
17546
17547 fi
17548 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17549 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17550   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17551
17552
17553 { echo "$as_me:$LINENO: checking for pid_t" >&5
17554 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17555 if test "${ac_cv_type_pid_t+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558   cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h.  */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h.  */
17564 $ac_includes_default
17565 typedef pid_t ac__type_new_;
17566 int
17567 main ()
17568 {
17569 if ((ac__type_new_ *) 0)
17570   return 0;
17571 if (sizeof (ac__type_new_))
17572   return 0;
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 rm -f conftest.$ac_objext
17578 if { (ac_try="$ac_compile"
17579 case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_compile") 2>conftest.er1
17585   ac_status=$?
17586   grep -v '^ *+' conftest.er1 >conftest.err
17587   rm -f conftest.er1
17588   cat conftest.err >&5
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } &&
17591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17592   { (case "(($ac_try" in
17593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594   *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597   (eval "$ac_try") 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; } &&
17601          { ac_try='test -s conftest.$ac_objext'
17602   { (case "(($ac_try" in
17603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604   *) ac_try_echo=$ac_try;;
17605 esac
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607   (eval "$ac_try") 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; }; then
17611   ac_cv_type_pid_t=yes
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616         ac_cv_type_pid_t=no
17617 fi
17618
17619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17620 fi
17621 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17622 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17623 if test $ac_cv_type_pid_t = yes; then
17624   :
17625 else
17626
17627 cat >>confdefs.h <<_ACEOF
17628 #define pid_t int
17629 _ACEOF
17630
17631 fi
17632
17633 { echo "$as_me:$LINENO: checking for size_t" >&5
17634 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17635 if test "${ac_cv_type_size_t+set}" = set; then
17636   echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638   cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644 $ac_includes_default
17645 typedef size_t ac__type_new_;
17646 int
17647 main ()
17648 {
17649 if ((ac__type_new_ *) 0)
17650   return 0;
17651 if (sizeof (ac__type_new_))
17652   return 0;
17653   ;
17654   return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661   *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664   (eval "$ac_compile") 2>conftest.er1
17665   ac_status=$?
17666   grep -v '^ *+' conftest.er1 >conftest.err
17667   rm -f conftest.er1
17668   cat conftest.err >&5
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); } &&
17671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17672   { (case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_try") 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; } &&
17681          { ac_try='test -s conftest.$ac_objext'
17682   { (case "(($ac_try" in
17683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684   *) ac_try_echo=$ac_try;;
17685 esac
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687   (eval "$ac_try") 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; }; then
17691   ac_cv_type_size_t=yes
17692 else
17693   echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696         ac_cv_type_size_t=no
17697 fi
17698
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 fi
17701 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17702 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17703 if test $ac_cv_type_size_t = yes; then
17704   :
17705 else
17706
17707 cat >>confdefs.h <<_ACEOF
17708 #define size_t unsigned int
17709 _ACEOF
17710
17711 fi
17712
17713
17714 cat >>confdefs.h <<_ACEOF
17715 #define RETSIGTYPE void
17716 _ACEOF
17717
17718 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17719 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17720 if test "${ac_cv_struct_tm+set}" = set; then
17721   echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723   cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h.  */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h.  */
17729 #include <sys/types.h>
17730 #include <time.h>
17731
17732 int
17733 main ()
17734 {
17735 struct tm *tp; tp->tm_sec;
17736   ;
17737   return 0;
17738 }
17739 _ACEOF
17740 rm -f conftest.$ac_objext
17741 if { (ac_try="$ac_compile"
17742 case "(($ac_try" in
17743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744   *) ac_try_echo=$ac_try;;
17745 esac
17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747   (eval "$ac_compile") 2>conftest.er1
17748   ac_status=$?
17749   grep -v '^ *+' conftest.er1 >conftest.err
17750   rm -f conftest.er1
17751   cat conftest.err >&5
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); } &&
17754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17755   { (case "(($ac_try" in
17756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757   *) ac_try_echo=$ac_try;;
17758 esac
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760   (eval "$ac_try") 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; } &&
17764          { ac_try='test -s conftest.$ac_objext'
17765   { (case "(($ac_try" in
17766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767   *) ac_try_echo=$ac_try;;
17768 esac
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770   (eval "$ac_try") 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; }; then
17774   ac_cv_struct_tm=time.h
17775 else
17776   echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17778
17779         ac_cv_struct_tm=sys/time.h
17780 fi
17781
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783 fi
17784 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17785 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17786 if test $ac_cv_struct_tm = sys/time.h; then
17787
17788 cat >>confdefs.h <<\_ACEOF
17789 #define TM_IN_SYS_TIME 1
17790 _ACEOF
17791
17792 fi
17793
17794 { echo "$as_me:$LINENO: checking for int64_t" >&5
17795 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17796 if test "${ac_cv_type_int64_t+set}" = set; then
17797   echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799   cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805 $ac_includes_default
17806 typedef int64_t ac__type_new_;
17807 int
17808 main ()
17809 {
17810 if ((ac__type_new_ *) 0)
17811   return 0;
17812 if (sizeof (ac__type_new_))
17813   return 0;
17814   ;
17815   return 0;
17816 }
17817 _ACEOF
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822   *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825   (eval "$ac_compile") 2>conftest.er1
17826   ac_status=$?
17827   grep -v '^ *+' conftest.er1 >conftest.err
17828   rm -f conftest.er1
17829   cat conftest.err >&5
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); } &&
17832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17833   { (case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_try") 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }; } &&
17842          { ac_try='test -s conftest.$ac_objext'
17843   { (case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_try") 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }; }; then
17852   ac_cv_type_int64_t=yes
17853 else
17854   echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857         ac_cv_type_int64_t=no
17858 fi
17859
17860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861 fi
17862 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17863 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17864 if test $ac_cv_type_int64_t = yes; then
17865
17866 cat >>confdefs.h <<_ACEOF
17867 #define HAVE_INT64_T 1
17868 _ACEOF
17869
17870
17871 else
17872   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17873 echo "$as_me: error: Type int64_t required but not found" >&2;}
17874    { (exit 1); exit 1; }; }
17875 fi
17876
17877 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17878 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17879 if test "${ac_cv_type_uint64_t+set}" = set; then
17880   echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882   cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h.  */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h.  */
17888 $ac_includes_default
17889 typedef uint64_t ac__type_new_;
17890 int
17891 main ()
17892 {
17893 if ((ac__type_new_ *) 0)
17894   return 0;
17895 if (sizeof (ac__type_new_))
17896   return 0;
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 rm -f conftest.$ac_objext
17902 if { (ac_try="$ac_compile"
17903 case "(($ac_try" in
17904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905   *) ac_try_echo=$ac_try;;
17906 esac
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908   (eval "$ac_compile") 2>conftest.er1
17909   ac_status=$?
17910   grep -v '^ *+' conftest.er1 >conftest.err
17911   rm -f conftest.er1
17912   cat conftest.err >&5
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); } &&
17915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17916   { (case "(($ac_try" in
17917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918   *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921   (eval "$ac_try") 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; } &&
17925          { ac_try='test -s conftest.$ac_objext'
17926   { (case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931   (eval "$ac_try") 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; }; then
17935   ac_cv_type_uint64_t=yes
17936 else
17937   echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940         ac_cv_type_uint64_t=no
17941 fi
17942
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 fi
17945 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17946 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17947 if test $ac_cv_type_uint64_t = yes; then
17948
17949 cat >>confdefs.h <<_ACEOF
17950 #define HAVE_UINT64_T 1
17951 _ACEOF
17952
17953
17954 else
17955   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17956 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17957 if test "${ac_cv_type_u_int64_t+set}" = set; then
17958   echo $ECHO_N "(cached) $ECHO_C" >&6
17959 else
17960   cat >conftest.$ac_ext <<_ACEOF
17961 /* confdefs.h.  */
17962 _ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h.  */
17966 $ac_includes_default
17967 typedef u_int64_t ac__type_new_;
17968 int
17969 main ()
17970 {
17971 if ((ac__type_new_ *) 0)
17972   return 0;
17973 if (sizeof (ac__type_new_))
17974   return 0;
17975   ;
17976   return 0;
17977 }
17978 _ACEOF
17979 rm -f conftest.$ac_objext
17980 if { (ac_try="$ac_compile"
17981 case "(($ac_try" in
17982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983   *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986   (eval "$ac_compile") 2>conftest.er1
17987   ac_status=$?
17988   grep -v '^ *+' conftest.er1 >conftest.err
17989   rm -f conftest.er1
17990   cat conftest.err >&5
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); } &&
17993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17994   { (case "(($ac_try" in
17995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996   *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999   (eval "$ac_try") 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; } &&
18003          { ac_try='test -s conftest.$ac_objext'
18004   { (case "(($ac_try" in
18005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006   *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009   (eval "$ac_try") 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; }; then
18013   ac_cv_type_u_int64_t=yes
18014 else
18015   echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018         ac_cv_type_u_int64_t=no
18019 fi
18020
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022 fi
18023 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18024 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18025 if test $ac_cv_type_u_int64_t = yes; then
18026
18027 cat >>confdefs.h <<_ACEOF
18028 #define HAVE_U_INT64_T 1
18029 _ACEOF
18030
18031
18032 else
18033   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18034 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18035    { (exit 1); exit 1; }; }
18036 fi
18037
18038 fi
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18050 do
18051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18055   echo $ECHO_N "(cached) $ECHO_C" >&6
18056 else
18057   cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h.  */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h.  */
18063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18065 #define $ac_func innocuous_$ac_func
18066
18067 /* System header to define __stub macros and hopefully few prototypes,
18068     which can conflict with char $ac_func (); below.
18069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18070     <limits.h> exists even on freestanding compilers.  */
18071
18072 #ifdef __STDC__
18073 # include <limits.h>
18074 #else
18075 # include <assert.h>
18076 #endif
18077
18078 #undef $ac_func
18079
18080 /* Override any GCC internal prototype to avoid an error.
18081    Use char because int might match the return type of a GCC
18082    builtin and then its argument prototype would still apply.  */
18083 #ifdef __cplusplus
18084 extern "C"
18085 #endif
18086 char $ac_func ();
18087 /* The GNU C library defines this for functions which it implements
18088     to always fail with ENOSYS.  Some functions are actually named
18089     something starting with __ and the normal name is an alias.  */
18090 #if defined __stub_$ac_func || defined __stub___$ac_func
18091 choke me
18092 #endif
18093
18094 int
18095 main ()
18096 {
18097 return $ac_func ();
18098   ;
18099   return 0;
18100 }
18101 _ACEOF
18102 rm -f conftest.$ac_objext conftest$ac_exeext
18103 if { (ac_try="$ac_link"
18104 case "(($ac_try" in
18105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106   *) ac_try_echo=$ac_try;;
18107 esac
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109   (eval "$ac_link") 2>conftest.er1
18110   ac_status=$?
18111   grep -v '^ *+' conftest.er1 >conftest.err
18112   rm -f conftest.er1
18113   cat conftest.err >&5
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); } &&
18116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117   { (case "(($ac_try" in
18118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119   *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122   (eval "$ac_try") 2>&5
18123   ac_status=$?
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); }; } &&
18126          { ac_try='test -s conftest$ac_exeext'
18127   { (case "(($ac_try" in
18128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129   *) ac_try_echo=$ac_try;;
18130 esac
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132   (eval "$ac_try") 2>&5
18133   ac_status=$?
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); }; }; then
18136   eval "$as_ac_var=yes"
18137 else
18138   echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141         eval "$as_ac_var=no"
18142 fi
18143
18144 rm -f core conftest.err conftest.$ac_objext \
18145       conftest$ac_exeext conftest.$ac_ext
18146 fi
18147 ac_res=`eval echo '${'$as_ac_var'}'`
18148                { echo "$as_me:$LINENO: result: $ac_res" >&5
18149 echo "${ECHO_T}$ac_res" >&6; }
18150 if test `eval echo '${'$as_ac_var'}'` = yes; then
18151   cat >>confdefs.h <<_ACEOF
18152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18153 _ACEOF
18154
18155 fi
18156 done
18157
18158
18159
18160
18161
18162 for ac_func in powf fmodf strtof round
18163 do
18164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18168   echo $ECHO_N "(cached) $ECHO_C" >&6
18169 else
18170   cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18178 #define $ac_func innocuous_$ac_func
18179
18180 /* System header to define __stub macros and hopefully few prototypes,
18181     which can conflict with char $ac_func (); below.
18182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183     <limits.h> exists even on freestanding compilers.  */
18184
18185 #ifdef __STDC__
18186 # include <limits.h>
18187 #else
18188 # include <assert.h>
18189 #endif
18190
18191 #undef $ac_func
18192
18193 /* Override any GCC internal prototype to avoid an error.
18194    Use char because int might match the return type of a GCC
18195    builtin and then its argument prototype would still apply.  */
18196 #ifdef __cplusplus
18197 extern "C"
18198 #endif
18199 char $ac_func ();
18200 /* The GNU C library defines this for functions which it implements
18201     to always fail with ENOSYS.  Some functions are actually named
18202     something starting with __ and the normal name is an alias.  */
18203 #if defined __stub_$ac_func || defined __stub___$ac_func
18204 choke me
18205 #endif
18206
18207 int
18208 main ()
18209 {
18210 return $ac_func ();
18211   ;
18212   return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219   *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222   (eval "$ac_link") 2>conftest.er1
18223   ac_status=$?
18224   grep -v '^ *+' conftest.er1 >conftest.err
18225   rm -f conftest.er1
18226   cat conftest.err >&5
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); } &&
18229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18230   { (case "(($ac_try" in
18231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232   *) ac_try_echo=$ac_try;;
18233 esac
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235   (eval "$ac_try") 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; } &&
18239          { ac_try='test -s conftest$ac_exeext'
18240   { (case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_try") 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); }; }; then
18249   eval "$as_ac_var=yes"
18250 else
18251   echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254         eval "$as_ac_var=no"
18255 fi
18256
18257 rm -f core conftest.err conftest.$ac_objext \
18258       conftest$ac_exeext conftest.$ac_ext
18259 fi
18260 ac_res=`eval echo '${'$as_ac_var'}'`
18261                { echo "$as_me:$LINENO: result: $ac_res" >&5
18262 echo "${ECHO_T}$ac_res" >&6; }
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18264   cat >>confdefs.h <<_ACEOF
18265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18266 _ACEOF
18267
18268 fi
18269 done
18270
18271
18272
18273
18274
18275
18276 for ac_func in log log2 log10 exp exp2
18277 do
18278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18282   echo $ECHO_N "(cached) $ECHO_C" >&6
18283 else
18284   cat >conftest.$ac_ext <<_ACEOF
18285 /* confdefs.h.  */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h.  */
18290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18292 #define $ac_func innocuous_$ac_func
18293
18294 /* System header to define __stub macros and hopefully few prototypes,
18295     which can conflict with char $ac_func (); below.
18296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18297     <limits.h> exists even on freestanding compilers.  */
18298
18299 #ifdef __STDC__
18300 # include <limits.h>
18301 #else
18302 # include <assert.h>
18303 #endif
18304
18305 #undef $ac_func
18306
18307 /* Override any GCC internal prototype to avoid an error.
18308    Use char because int might match the return type of a GCC
18309    builtin and then its argument prototype would still apply.  */
18310 #ifdef __cplusplus
18311 extern "C"
18312 #endif
18313 char $ac_func ();
18314 /* The GNU C library defines this for functions which it implements
18315     to always fail with ENOSYS.  Some functions are actually named
18316     something starting with __ and the normal name is an alias.  */
18317 #if defined __stub_$ac_func || defined __stub___$ac_func
18318 choke me
18319 #endif
18320
18321 int
18322 main ()
18323 {
18324 return $ac_func ();
18325   ;
18326   return 0;
18327 }
18328 _ACEOF
18329 rm -f conftest.$ac_objext conftest$ac_exeext
18330 if { (ac_try="$ac_link"
18331 case "(($ac_try" in
18332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333   *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336   (eval "$ac_link") 2>conftest.er1
18337   ac_status=$?
18338   grep -v '^ *+' conftest.er1 >conftest.err
18339   rm -f conftest.er1
18340   cat conftest.err >&5
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); } &&
18343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18344   { (case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_try") 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; } &&
18353          { ac_try='test -s conftest$ac_exeext'
18354   { (case "(($ac_try" in
18355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356   *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359   (eval "$ac_try") 2>&5
18360   ac_status=$?
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); }; }; then
18363   eval "$as_ac_var=yes"
18364 else
18365   echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368         eval "$as_ac_var=no"
18369 fi
18370
18371 rm -f core conftest.err conftest.$ac_objext \
18372       conftest$ac_exeext conftest.$ac_ext
18373 fi
18374 ac_res=`eval echo '${'$as_ac_var'}'`
18375                { echo "$as_me:$LINENO: result: $ac_res" >&5
18376 echo "${ECHO_T}$ac_res" >&6; }
18377 if test `eval echo '${'$as_ac_var'}'` = yes; then
18378   cat >>confdefs.h <<_ACEOF
18379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18380 _ACEOF
18381
18382 fi
18383 done
18384
18385
18386
18387
18388
18389
18390 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18391 do
18392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18396   echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398   cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h.  */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h.  */
18404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18406 #define $ac_func innocuous_$ac_func
18407
18408 /* System header to define __stub macros and hopefully few prototypes,
18409     which can conflict with char $ac_func (); below.
18410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18411     <limits.h> exists even on freestanding compilers.  */
18412
18413 #ifdef __STDC__
18414 # include <limits.h>
18415 #else
18416 # include <assert.h>
18417 #endif
18418
18419 #undef $ac_func
18420
18421 /* Override any GCC internal prototype to avoid an error.
18422    Use char because int might match the return type of a GCC
18423    builtin and then its argument prototype would still apply.  */
18424 #ifdef __cplusplus
18425 extern "C"
18426 #endif
18427 char $ac_func ();
18428 /* The GNU C library defines this for functions which it implements
18429     to always fail with ENOSYS.  Some functions are actually named
18430     something starting with __ and the normal name is an alias.  */
18431 #if defined __stub_$ac_func || defined __stub___$ac_func
18432 choke me
18433 #endif
18434
18435 int
18436 main ()
18437 {
18438 return $ac_func ();
18439   ;
18440   return 0;
18441 }
18442 _ACEOF
18443 rm -f conftest.$ac_objext conftest$ac_exeext
18444 if { (ac_try="$ac_link"
18445 case "(($ac_try" in
18446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447   *) ac_try_echo=$ac_try;;
18448 esac
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450   (eval "$ac_link") 2>conftest.er1
18451   ac_status=$?
18452   grep -v '^ *+' conftest.er1 >conftest.err
18453   rm -f conftest.er1
18454   cat conftest.err >&5
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } &&
18457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458   { (case "(($ac_try" in
18459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460   *) ac_try_echo=$ac_try;;
18461 esac
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463   (eval "$ac_try") 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; } &&
18467          { ac_try='test -s conftest$ac_exeext'
18468   { (case "(($ac_try" in
18469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470   *) ac_try_echo=$ac_try;;
18471 esac
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473   (eval "$ac_try") 2>&5
18474   ac_status=$?
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); }; }; then
18477   eval "$as_ac_var=yes"
18478 else
18479   echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18481
18482         eval "$as_ac_var=no"
18483 fi
18484
18485 rm -f core conftest.err conftest.$ac_objext \
18486       conftest$ac_exeext conftest.$ac_ext
18487 fi
18488 ac_res=`eval echo '${'$as_ac_var'}'`
18489                { echo "$as_me:$LINENO: result: $ac_res" >&5
18490 echo "${ECHO_T}$ac_res" >&6; }
18491 if test `eval echo '${'$as_ac_var'}'` = yes; then
18492   cat >>confdefs.h <<_ACEOF
18493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18494 _ACEOF
18495
18496 fi
18497 done
18498
18499
18500
18501
18502 for ac_func in isatty mkdtemp mkstemp
18503 do
18504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18508   echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510   cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h.  */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h.  */
18516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18518 #define $ac_func innocuous_$ac_func
18519
18520 /* System header to define __stub macros and hopefully few prototypes,
18521     which can conflict with char $ac_func (); below.
18522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18523     <limits.h> exists even on freestanding compilers.  */
18524
18525 #ifdef __STDC__
18526 # include <limits.h>
18527 #else
18528 # include <assert.h>
18529 #endif
18530
18531 #undef $ac_func
18532
18533 /* Override any GCC internal prototype to avoid an error.
18534    Use char because int might match the return type of a GCC
18535    builtin and then its argument prototype would still apply.  */
18536 #ifdef __cplusplus
18537 extern "C"
18538 #endif
18539 char $ac_func ();
18540 /* The GNU C library defines this for functions which it implements
18541     to always fail with ENOSYS.  Some functions are actually named
18542     something starting with __ and the normal name is an alias.  */
18543 #if defined __stub_$ac_func || defined __stub___$ac_func
18544 choke me
18545 #endif
18546
18547 int
18548 main ()
18549 {
18550 return $ac_func ();
18551   ;
18552   return 0;
18553 }
18554 _ACEOF
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (ac_try="$ac_link"
18557 case "(($ac_try" in
18558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559   *) ac_try_echo=$ac_try;;
18560 esac
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562   (eval "$ac_link") 2>conftest.er1
18563   ac_status=$?
18564   grep -v '^ *+' conftest.er1 >conftest.err
18565   rm -f conftest.er1
18566   cat conftest.err >&5
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); } &&
18569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18570   { (case "(($ac_try" in
18571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572   *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575   (eval "$ac_try") 2>&5
18576   ac_status=$?
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); }; } &&
18579          { ac_try='test -s conftest$ac_exeext'
18580   { (case "(($ac_try" in
18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582   *) ac_try_echo=$ac_try;;
18583 esac
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585   (eval "$ac_try") 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; }; then
18589   eval "$as_ac_var=yes"
18590 else
18591   echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18593
18594         eval "$as_ac_var=no"
18595 fi
18596
18597 rm -f core conftest.err conftest.$ac_objext \
18598       conftest$ac_exeext conftest.$ac_ext
18599 fi
18600 ac_res=`eval echo '${'$as_ac_var'}'`
18601                { echo "$as_me:$LINENO: result: $ac_res" >&5
18602 echo "${ECHO_T}$ac_res" >&6; }
18603 if test `eval echo '${'$as_ac_var'}'` = yes; then
18604   cat >>confdefs.h <<_ACEOF
18605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18606 _ACEOF
18607
18608 fi
18609 done
18610
18611
18612
18613
18614
18615
18616
18617
18618 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18619 do
18620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18634 #define $ac_func innocuous_$ac_func
18635
18636 /* System header to define __stub macros and hopefully few prototypes,
18637     which can conflict with char $ac_func (); below.
18638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18639     <limits.h> exists even on freestanding compilers.  */
18640
18641 #ifdef __STDC__
18642 # include <limits.h>
18643 #else
18644 # include <assert.h>
18645 #endif
18646
18647 #undef $ac_func
18648
18649 /* Override any GCC internal prototype to avoid an error.
18650    Use char because int might match the return type of a GCC
18651    builtin and then its argument prototype would still apply.  */
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 char $ac_func ();
18656 /* The GNU C library defines this for functions which it implements
18657     to always fail with ENOSYS.  Some functions are actually named
18658     something starting with __ and the normal name is an alias.  */
18659 #if defined __stub_$ac_func || defined __stub___$ac_func
18660 choke me
18661 #endif
18662
18663 int
18664 main ()
18665 {
18666 return $ac_func ();
18667   ;
18668   return 0;
18669 }
18670 _ACEOF
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (ac_try="$ac_link"
18673 case "(($ac_try" in
18674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675   *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678   (eval "$ac_link") 2>conftest.er1
18679   ac_status=$?
18680   grep -v '^ *+' conftest.er1 >conftest.err
18681   rm -f conftest.er1
18682   cat conftest.err >&5
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); } &&
18685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18686   { (case "(($ac_try" in
18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688   *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691   (eval "$ac_try") 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; } &&
18695          { ac_try='test -s conftest$ac_exeext'
18696   { (case "(($ac_try" in
18697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698   *) ac_try_echo=$ac_try;;
18699 esac
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701   (eval "$ac_try") 2>&5
18702   ac_status=$?
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); }; }; then
18705   eval "$as_ac_var=yes"
18706 else
18707   echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18709
18710         eval "$as_ac_var=no"
18711 fi
18712
18713 rm -f core conftest.err conftest.$ac_objext \
18714       conftest$ac_exeext conftest.$ac_ext
18715 fi
18716 ac_res=`eval echo '${'$as_ac_var'}'`
18717                { echo "$as_me:$LINENO: result: $ac_res" >&5
18718 echo "${ECHO_T}$ac_res" >&6; }
18719 if test `eval echo '${'$as_ac_var'}'` = yes; then
18720   cat >>confdefs.h <<_ACEOF
18721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18722 _ACEOF
18723
18724 fi
18725 done
18726
18727
18728
18729
18730
18731 for ac_func in strerror strerror_r setenv arc4random
18732 do
18733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18737   echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739   cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18747 #define $ac_func innocuous_$ac_func
18748
18749 /* System header to define __stub macros and hopefully few prototypes,
18750     which can conflict with char $ac_func (); below.
18751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752     <limits.h> exists even on freestanding compilers.  */
18753
18754 #ifdef __STDC__
18755 # include <limits.h>
18756 #else
18757 # include <assert.h>
18758 #endif
18759
18760 #undef $ac_func
18761
18762 /* Override any GCC internal prototype to avoid an error.
18763    Use char because int might match the return type of a GCC
18764    builtin and then its argument prototype would still apply.  */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 char $ac_func ();
18769 /* The GNU C library defines this for functions which it implements
18770     to always fail with ENOSYS.  Some functions are actually named
18771     something starting with __ and the normal name is an alias.  */
18772 #if defined __stub_$ac_func || defined __stub___$ac_func
18773 choke me
18774 #endif
18775
18776 int
18777 main ()
18778 {
18779 return $ac_func ();
18780   ;
18781   return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (ac_try="$ac_link"
18786 case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791   (eval "$ac_link") 2>conftest.er1
18792   ac_status=$?
18793   grep -v '^ *+' conftest.er1 >conftest.err
18794   rm -f conftest.er1
18795   cat conftest.err >&5
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); } &&
18798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18799   { (case "(($ac_try" in
18800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801   *) ac_try_echo=$ac_try;;
18802 esac
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804   (eval "$ac_try") 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; } &&
18808          { ac_try='test -s conftest$ac_exeext'
18809   { (case "(($ac_try" in
18810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811   *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814   (eval "$ac_try") 2>&5
18815   ac_status=$?
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); }; }; then
18818   eval "$as_ac_var=yes"
18819 else
18820   echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18822
18823         eval "$as_ac_var=no"
18824 fi
18825
18826 rm -f core conftest.err conftest.$ac_objext \
18827       conftest$ac_exeext conftest.$ac_ext
18828 fi
18829 ac_res=`eval echo '${'$as_ac_var'}'`
18830                { echo "$as_me:$LINENO: result: $ac_res" >&5
18831 echo "${ECHO_T}$ac_res" >&6; }
18832 if test `eval echo '${'$as_ac_var'}'` = yes; then
18833   cat >>confdefs.h <<_ACEOF
18834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18835 _ACEOF
18836
18837 fi
18838 done
18839
18840
18841
18842
18843
18844 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18845 do
18846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18850   echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852   cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h.  */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h.  */
18858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18860 #define $ac_func innocuous_$ac_func
18861
18862 /* System header to define __stub macros and hopefully few prototypes,
18863     which can conflict with char $ac_func (); below.
18864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18865     <limits.h> exists even on freestanding compilers.  */
18866
18867 #ifdef __STDC__
18868 # include <limits.h>
18869 #else
18870 # include <assert.h>
18871 #endif
18872
18873 #undef $ac_func
18874
18875 /* Override any GCC internal prototype to avoid an error.
18876    Use char because int might match the return type of a GCC
18877    builtin and then its argument prototype would still apply.  */
18878 #ifdef __cplusplus
18879 extern "C"
18880 #endif
18881 char $ac_func ();
18882 /* The GNU C library defines this for functions which it implements
18883     to always fail with ENOSYS.  Some functions are actually named
18884     something starting with __ and the normal name is an alias.  */
18885 #if defined __stub_$ac_func || defined __stub___$ac_func
18886 choke me
18887 #endif
18888
18889 int
18890 main ()
18891 {
18892 return $ac_func ();
18893   ;
18894   return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (ac_try="$ac_link"
18899 case "(($ac_try" in
18900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901   *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904   (eval "$ac_link") 2>conftest.er1
18905   ac_status=$?
18906   grep -v '^ *+' conftest.er1 >conftest.err
18907   rm -f conftest.er1
18908   cat conftest.err >&5
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } &&
18911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18912   { (case "(($ac_try" in
18913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914   *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917   (eval "$ac_try") 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; } &&
18921          { ac_try='test -s conftest$ac_exeext'
18922   { (case "(($ac_try" in
18923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924   *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927   (eval "$ac_try") 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; }; then
18931   eval "$as_ac_var=yes"
18932 else
18933   echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936         eval "$as_ac_var=no"
18937 fi
18938
18939 rm -f core conftest.err conftest.$ac_objext \
18940       conftest$ac_exeext conftest.$ac_ext
18941 fi
18942 ac_res=`eval echo '${'$as_ac_var'}'`
18943                { echo "$as_me:$LINENO: result: $ac_res" >&5
18944 echo "${ECHO_T}$ac_res" >&6; }
18945 if test `eval echo '${'$as_ac_var'}'` = yes; then
18946   cat >>confdefs.h <<_ACEOF
18947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18948 _ACEOF
18949
18950 fi
18951 done
18952
18953
18954
18955
18956
18957
18958 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18959 do
18960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18964   echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966   cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h.  */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h.  */
18972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18974 #define $ac_func innocuous_$ac_func
18975
18976 /* System header to define __stub macros and hopefully few prototypes,
18977     which can conflict with char $ac_func (); below.
18978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18979     <limits.h> exists even on freestanding compilers.  */
18980
18981 #ifdef __STDC__
18982 # include <limits.h>
18983 #else
18984 # include <assert.h>
18985 #endif
18986
18987 #undef $ac_func
18988
18989 /* Override any GCC internal prototype to avoid an error.
18990    Use char because int might match the return type of a GCC
18991    builtin and then its argument prototype would still apply.  */
18992 #ifdef __cplusplus
18993 extern "C"
18994 #endif
18995 char $ac_func ();
18996 /* The GNU C library defines this for functions which it implements
18997     to always fail with ENOSYS.  Some functions are actually named
18998     something starting with __ and the normal name is an alias.  */
18999 #if defined __stub_$ac_func || defined __stub___$ac_func
19000 choke me
19001 #endif
19002
19003 int
19004 main ()
19005 {
19006 return $ac_func ();
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 rm -f conftest.$ac_objext conftest$ac_exeext
19012 if { (ac_try="$ac_link"
19013 case "(($ac_try" in
19014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015   *) ac_try_echo=$ac_try;;
19016 esac
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018   (eval "$ac_link") 2>conftest.er1
19019   ac_status=$?
19020   grep -v '^ *+' conftest.er1 >conftest.err
19021   rm -f conftest.er1
19022   cat conftest.err >&5
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); } &&
19025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19026   { (case "(($ac_try" in
19027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028   *) ac_try_echo=$ac_try;;
19029 esac
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031   (eval "$ac_try") 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; } &&
19035          { ac_try='test -s conftest$ac_exeext'
19036   { (case "(($ac_try" in
19037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038   *) ac_try_echo=$ac_try;;
19039 esac
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041   (eval "$ac_try") 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; }; then
19045   eval "$as_ac_var=yes"
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050         eval "$as_ac_var=no"
19051 fi
19052
19053 rm -f core conftest.err conftest.$ac_objext \
19054       conftest$ac_exeext conftest.$ac_ext
19055 fi
19056 ac_res=`eval echo '${'$as_ac_var'}'`
19057                { echo "$as_me:$LINENO: result: $ac_res" >&5
19058 echo "${ECHO_T}$ac_res" >&6; }
19059 if test `eval echo '${'$as_ac_var'}'` = yes; then
19060   cat >>confdefs.h <<_ACEOF
19061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19062 _ACEOF
19063
19064 fi
19065 done
19066
19067 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19068 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19069 if test "${llvm_cv_c_printf_a+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   ac_ext=c
19073 ac_cpp='$CPP $CPPFLAGS'
19074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077
19078  if test "$cross_compiling" = yes; then
19079   llvmac_cv_c_printf_a=no
19080 else
19081   cat >conftest.$ac_ext <<_ACEOF
19082
19083   /* confdefs.h.  */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h.  */
19088
19089 #include <stdio.h>
19090 #include <stdlib.h>
19091
19092 int
19093 main ()
19094 {
19095
19096 volatile double A, B;
19097 char Buffer[100];
19098 A = 1;
19099 A /= 10.0;
19100 sprintf(Buffer, "%a", A);
19101 B = atof(Buffer);
19102 if (A != B)
19103   return (1);
19104 if (A != 0x1.999999999999ap-4)
19105   return (1);
19106 return (0);
19107   ;
19108   return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest$ac_exeext
19112 if { (ac_try="$ac_link"
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_link") 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19122   { (case "(($ac_try" in
19123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124   *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127   (eval "$ac_try") 2>&5
19128   ac_status=$?
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); }; }; then
19131   llvm_cv_c_printf_a=yes
19132 else
19133   echo "$as_me: program exited with status $ac_status" >&5
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137 ( exit $ac_status )
19138 llvmac_cv_c_printf_a=no
19139 fi
19140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19141 fi
19142
19143
19144  ac_ext=c
19145 ac_cpp='$CPP $CPPFLAGS'
19146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19149
19150 fi
19151 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19152 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19153  if test "$llvm_cv_c_printf_a" = "yes"; then
19154
19155 cat >>confdefs.h <<\_ACEOF
19156 #define HAVE_PRINTF_A 1
19157 _ACEOF
19158
19159  fi
19160
19161
19162
19163   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19164 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19165 if test "${ac_cv_func_rand48+set}" = set; then
19166   echo $ECHO_N "(cached) $ECHO_C" >&6
19167 else
19168
19169     ac_ext=cpp
19170 ac_cpp='$CXXCPP $CPPFLAGS'
19171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19174
19175     cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181 #include <stdlib.h>
19182 int
19183 main ()
19184 {
19185 srand48(0);lrand48();drand48();
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_compile") 2>conftest.er1
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
19201   cat conftest.err >&5
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } &&
19204          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19205   { (case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_try") 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; } &&
19214          { ac_try='test -s conftest.$ac_objext'
19215   { (case "(($ac_try" in
19216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217   *) ac_try_echo=$ac_try;;
19218 esac
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220   (eval "$ac_try") 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); }; }; then
19224   ac_cv_func_rand48=yes
19225 else
19226   echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229         ac_cv_func_rand48=no
19230 fi
19231
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233     ac_ext=c
19234 ac_cpp='$CPP $CPPFLAGS'
19235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19238
19239
19240 fi
19241 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19242 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19243
19244 if test "$ac_cv_func_rand48" = "yes" ; then
19245
19246 cat >>confdefs.h <<\_ACEOF
19247 #define HAVE_RAND48 1
19248 _ACEOF
19249
19250 fi
19251
19252
19253 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19254 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19255 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19256   echo $ECHO_N "(cached) $ECHO_C" >&6
19257 else
19258   cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h.  */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h.  */
19264 $ac_includes_default
19265 int
19266 main ()
19267 {
19268 #ifndef strerror_s
19269   char *p = (char *) strerror_s;
19270   return !p;
19271 #endif
19272
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 rm -f conftest.$ac_objext
19278 if { (ac_try="$ac_compile"
19279 case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_compile") 2>conftest.er1
19285   ac_status=$?
19286   grep -v '^ *+' conftest.er1 >conftest.err
19287   rm -f conftest.er1
19288   cat conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } &&
19291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19292   { (case "(($ac_try" in
19293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294   *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297   (eval "$ac_try") 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; } &&
19301          { ac_try='test -s conftest.$ac_objext'
19302   { (case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_try") 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; }; then
19311   ac_cv_have_decl_strerror_s=yes
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316         ac_cv_have_decl_strerror_s=no
19317 fi
19318
19319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320 fi
19321 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19322 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19323 if test $ac_cv_have_decl_strerror_s = yes; then
19324
19325 cat >>confdefs.h <<_ACEOF
19326 #define HAVE_DECL_STRERROR_S 1
19327 _ACEOF
19328
19329
19330 else
19331   cat >>confdefs.h <<_ACEOF
19332 #define HAVE_DECL_STRERROR_S 0
19333 _ACEOF
19334
19335
19336 fi
19337
19338
19339
19340 if test "$llvm_cv_os_type" = "MingW" ; then
19341   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19342 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19343 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19344   echo $ECHO_N "(cached) $ECHO_C" >&6
19345 else
19346   ac_check_lib_save_LIBS=$LIBS
19347 LIBS="-lgcc  $LIBS"
19348 cat >conftest.$ac_ext <<_ACEOF
19349 /* confdefs.h.  */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h.  */
19354
19355 /* Override any GCC internal prototype to avoid an error.
19356    Use char because int might match the return type of a GCC
19357    builtin and then its argument prototype would still apply.  */
19358 #ifdef __cplusplus
19359 extern "C"
19360 #endif
19361 char _alloca ();
19362 int
19363 main ()
19364 {
19365 return _alloca ();
19366   ;
19367   return 0;
19368 }
19369 _ACEOF
19370 rm -f conftest.$ac_objext conftest$ac_exeext
19371 if { (ac_try="$ac_link"
19372 case "(($ac_try" in
19373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374   *) ac_try_echo=$ac_try;;
19375 esac
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377   (eval "$ac_link") 2>conftest.er1
19378   ac_status=$?
19379   grep -v '^ *+' conftest.er1 >conftest.err
19380   rm -f conftest.er1
19381   cat conftest.err >&5
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); } &&
19384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19385   { (case "(($ac_try" in
19386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387   *) ac_try_echo=$ac_try;;
19388 esac
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390   (eval "$ac_try") 2>&5
19391   ac_status=$?
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); }; } &&
19394          { ac_try='test -s conftest$ac_exeext'
19395   { (case "(($ac_try" in
19396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397   *) ac_try_echo=$ac_try;;
19398 esac
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400   (eval "$ac_try") 2>&5
19401   ac_status=$?
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); }; }; then
19404   ac_cv_lib_gcc__alloca=yes
19405 else
19406   echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409         ac_cv_lib_gcc__alloca=no
19410 fi
19411
19412 rm -f core conftest.err conftest.$ac_objext \
19413       conftest$ac_exeext conftest.$ac_ext
19414 LIBS=$ac_check_lib_save_LIBS
19415 fi
19416 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19417 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19418 if test $ac_cv_lib_gcc__alloca = yes; then
19419
19420 cat >>confdefs.h <<\_ACEOF
19421 #define HAVE__ALLOCA 1
19422 _ACEOF
19423
19424 fi
19425
19426   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19427 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19428 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19429   echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431   ac_check_lib_save_LIBS=$LIBS
19432 LIBS="-lgcc  $LIBS"
19433 cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h.  */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h.  */
19439
19440 /* Override any GCC internal prototype to avoid an error.
19441    Use char because int might match the return type of a GCC
19442    builtin and then its argument prototype would still apply.  */
19443 #ifdef __cplusplus
19444 extern "C"
19445 #endif
19446 char __alloca ();
19447 int
19448 main ()
19449 {
19450 return __alloca ();
19451   ;
19452   return 0;
19453 }
19454 _ACEOF
19455 rm -f conftest.$ac_objext conftest$ac_exeext
19456 if { (ac_try="$ac_link"
19457 case "(($ac_try" in
19458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459   *) ac_try_echo=$ac_try;;
19460 esac
19461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462   (eval "$ac_link") 2>conftest.er1
19463   ac_status=$?
19464   grep -v '^ *+' conftest.er1 >conftest.err
19465   rm -f conftest.er1
19466   cat conftest.err >&5
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); } &&
19469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19470   { (case "(($ac_try" in
19471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472   *) ac_try_echo=$ac_try;;
19473 esac
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475   (eval "$ac_try") 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; } &&
19479          { ac_try='test -s conftest$ac_exeext'
19480   { (case "(($ac_try" in
19481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482   *) ac_try_echo=$ac_try;;
19483 esac
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485   (eval "$ac_try") 2>&5
19486   ac_status=$?
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); }; }; then
19489   ac_cv_lib_gcc___alloca=yes
19490 else
19491   echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494         ac_cv_lib_gcc___alloca=no
19495 fi
19496
19497 rm -f core conftest.err conftest.$ac_objext \
19498       conftest$ac_exeext conftest.$ac_ext
19499 LIBS=$ac_check_lib_save_LIBS
19500 fi
19501 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19502 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19503 if test $ac_cv_lib_gcc___alloca = yes; then
19504
19505 cat >>confdefs.h <<\_ACEOF
19506 #define HAVE___ALLOCA 1
19507 _ACEOF
19508
19509 fi
19510
19511   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19512 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19513 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19514   echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516   ac_check_lib_save_LIBS=$LIBS
19517 LIBS="-lgcc  $LIBS"
19518 cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524
19525 /* Override any GCC internal prototype to avoid an error.
19526    Use char because int might match the return type of a GCC
19527    builtin and then its argument prototype would still apply.  */
19528 #ifdef __cplusplus
19529 extern "C"
19530 #endif
19531 char __chkstk ();
19532 int
19533 main ()
19534 {
19535 return __chkstk ();
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 rm -f conftest.$ac_objext conftest$ac_exeext
19541 if { (ac_try="$ac_link"
19542 case "(($ac_try" in
19543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544   *) ac_try_echo=$ac_try;;
19545 esac
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547   (eval "$ac_link") 2>conftest.er1
19548   ac_status=$?
19549   grep -v '^ *+' conftest.er1 >conftest.err
19550   rm -f conftest.er1
19551   cat conftest.err >&5
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); } &&
19554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19555   { (case "(($ac_try" in
19556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557   *) ac_try_echo=$ac_try;;
19558 esac
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560   (eval "$ac_try") 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; } &&
19564          { ac_try='test -s conftest$ac_exeext'
19565   { (case "(($ac_try" in
19566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567   *) ac_try_echo=$ac_try;;
19568 esac
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570   (eval "$ac_try") 2>&5
19571   ac_status=$?
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); }; }; then
19574   ac_cv_lib_gcc___chkstk=yes
19575 else
19576   echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19578
19579         ac_cv_lib_gcc___chkstk=no
19580 fi
19581
19582 rm -f core conftest.err conftest.$ac_objext \
19583       conftest$ac_exeext conftest.$ac_ext
19584 LIBS=$ac_check_lib_save_LIBS
19585 fi
19586 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19587 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19588 if test $ac_cv_lib_gcc___chkstk = yes; then
19589
19590 cat >>confdefs.h <<\_ACEOF
19591 #define HAVE___CHKSTK 1
19592 _ACEOF
19593
19594 fi
19595
19596   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19597 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19598 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19599   echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601   ac_check_lib_save_LIBS=$LIBS
19602 LIBS="-lgcc  $LIBS"
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609
19610 /* Override any GCC internal prototype to avoid an error.
19611    Use char because int might match the return type of a GCC
19612    builtin and then its argument prototype would still apply.  */
19613 #ifdef __cplusplus
19614 extern "C"
19615 #endif
19616 char ___chkstk ();
19617 int
19618 main ()
19619 {
19620 return ___chkstk ();
19621   ;
19622   return 0;
19623 }
19624 _ACEOF
19625 rm -f conftest.$ac_objext conftest$ac_exeext
19626 if { (ac_try="$ac_link"
19627 case "(($ac_try" in
19628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629   *) ac_try_echo=$ac_try;;
19630 esac
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632   (eval "$ac_link") 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } &&
19639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19640   { (case "(($ac_try" in
19641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642   *) ac_try_echo=$ac_try;;
19643 esac
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645   (eval "$ac_try") 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; } &&
19649          { ac_try='test -s conftest$ac_exeext'
19650   { (case "(($ac_try" in
19651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652   *) ac_try_echo=$ac_try;;
19653 esac
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655   (eval "$ac_try") 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); }; }; then
19659   ac_cv_lib_gcc____chkstk=yes
19660 else
19661   echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664         ac_cv_lib_gcc____chkstk=no
19665 fi
19666
19667 rm -f core conftest.err conftest.$ac_objext \
19668       conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19670 fi
19671 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19672 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19673 if test $ac_cv_lib_gcc____chkstk = yes; then
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define HAVE____CHKSTK 1
19677 _ACEOF
19678
19679 fi
19680
19681
19682   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19683 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19684 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19685   echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687   ac_check_lib_save_LIBS=$LIBS
19688 LIBS="-lgcc  $LIBS"
19689 cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h.  */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h.  */
19695
19696 /* Override any GCC internal prototype to avoid an error.
19697    Use char because int might match the return type of a GCC
19698    builtin and then its argument prototype would still apply.  */
19699 #ifdef __cplusplus
19700 extern "C"
19701 #endif
19702 char __ashldi3 ();
19703 int
19704 main ()
19705 {
19706 return __ashldi3 ();
19707   ;
19708   return 0;
19709 }
19710 _ACEOF
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (ac_try="$ac_link"
19713 case "(($ac_try" in
19714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715   *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718   (eval "$ac_link") 2>conftest.er1
19719   ac_status=$?
19720   grep -v '^ *+' conftest.er1 >conftest.err
19721   rm -f conftest.er1
19722   cat conftest.err >&5
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); } &&
19725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19726   { (case "(($ac_try" in
19727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728   *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731   (eval "$ac_try") 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; } &&
19735          { ac_try='test -s conftest$ac_exeext'
19736   { (case "(($ac_try" in
19737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738   *) ac_try_echo=$ac_try;;
19739 esac
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741   (eval "$ac_try") 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; }; then
19745   ac_cv_lib_gcc___ashldi3=yes
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750         ac_cv_lib_gcc___ashldi3=no
19751 fi
19752
19753 rm -f core conftest.err conftest.$ac_objext \
19754       conftest$ac_exeext conftest.$ac_ext
19755 LIBS=$ac_check_lib_save_LIBS
19756 fi
19757 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19758 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19759 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19760
19761 cat >>confdefs.h <<\_ACEOF
19762 #define HAVE___ASHLDI3 1
19763 _ACEOF
19764
19765 fi
19766
19767   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19768 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19769 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772   ac_check_lib_save_LIBS=$LIBS
19773 LIBS="-lgcc  $LIBS"
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h.  */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h.  */
19780
19781 /* Override any GCC internal prototype to avoid an error.
19782    Use char because int might match the return type of a GCC
19783    builtin and then its argument prototype would still apply.  */
19784 #ifdef __cplusplus
19785 extern "C"
19786 #endif
19787 char __ashrdi3 ();
19788 int
19789 main ()
19790 {
19791 return __ashrdi3 ();
19792   ;
19793   return 0;
19794 }
19795 _ACEOF
19796 rm -f conftest.$ac_objext conftest$ac_exeext
19797 if { (ac_try="$ac_link"
19798 case "(($ac_try" in
19799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800   *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803   (eval "$ac_link") 2>conftest.er1
19804   ac_status=$?
19805   grep -v '^ *+' conftest.er1 >conftest.err
19806   rm -f conftest.er1
19807   cat conftest.err >&5
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); } &&
19810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19811   { (case "(($ac_try" in
19812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813   *) ac_try_echo=$ac_try;;
19814 esac
19815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19816   (eval "$ac_try") 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); }; } &&
19820          { ac_try='test -s conftest$ac_exeext'
19821   { (case "(($ac_try" in
19822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823   *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826   (eval "$ac_try") 2>&5
19827   ac_status=$?
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); }; }; then
19830   ac_cv_lib_gcc___ashrdi3=yes
19831 else
19832   echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835         ac_cv_lib_gcc___ashrdi3=no
19836 fi
19837
19838 rm -f core conftest.err conftest.$ac_objext \
19839       conftest$ac_exeext conftest.$ac_ext
19840 LIBS=$ac_check_lib_save_LIBS
19841 fi
19842 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19843 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19844 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19845
19846 cat >>confdefs.h <<\_ACEOF
19847 #define HAVE___ASHRDI3 1
19848 _ACEOF
19849
19850 fi
19851
19852   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19853 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19854 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19855   echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19857   ac_check_lib_save_LIBS=$LIBS
19858 LIBS="-lgcc  $LIBS"
19859 cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h.  */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h.  */
19865
19866 /* Override any GCC internal prototype to avoid an error.
19867    Use char because int might match the return type of a GCC
19868    builtin and then its argument prototype would still apply.  */
19869 #ifdef __cplusplus
19870 extern "C"
19871 #endif
19872 char __divdi3 ();
19873 int
19874 main ()
19875 {
19876 return __divdi3 ();
19877   ;
19878   return 0;
19879 }
19880 _ACEOF
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885   *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888   (eval "$ac_link") 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } &&
19895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19896   { (case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901   (eval "$ac_try") 2>&5
19902   ac_status=$?
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); }; } &&
19905          { ac_try='test -s conftest$ac_exeext'
19906   { (case "(($ac_try" in
19907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908   *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911   (eval "$ac_try") 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); }; }; then
19915   ac_cv_lib_gcc___divdi3=yes
19916 else
19917   echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920         ac_cv_lib_gcc___divdi3=no
19921 fi
19922
19923 rm -f core conftest.err conftest.$ac_objext \
19924       conftest$ac_exeext conftest.$ac_ext
19925 LIBS=$ac_check_lib_save_LIBS
19926 fi
19927 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19928 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19929 if test $ac_cv_lib_gcc___divdi3 = yes; then
19930
19931 cat >>confdefs.h <<\_ACEOF
19932 #define HAVE___DIVDI3 1
19933 _ACEOF
19934
19935 fi
19936
19937   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19938 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19939 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   ac_check_lib_save_LIBS=$LIBS
19943 LIBS="-lgcc  $LIBS"
19944 cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950
19951 /* Override any GCC internal prototype to avoid an error.
19952    Use char because int might match the return type of a GCC
19953    builtin and then its argument prototype would still apply.  */
19954 #ifdef __cplusplus
19955 extern "C"
19956 #endif
19957 char __fixdfdi ();
19958 int
19959 main ()
19960 {
19961 return __fixdfdi ();
19962   ;
19963   return 0;
19964 }
19965 _ACEOF
19966 rm -f conftest.$ac_objext conftest$ac_exeext
19967 if { (ac_try="$ac_link"
19968 case "(($ac_try" in
19969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970   *) ac_try_echo=$ac_try;;
19971 esac
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973   (eval "$ac_link") 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } &&
19980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981   { (case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_try") 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; } &&
19990          { ac_try='test -s conftest$ac_exeext'
19991   { (case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_try") 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; }; then
20000   ac_cv_lib_gcc___fixdfdi=yes
20001 else
20002   echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005         ac_cv_lib_gcc___fixdfdi=no
20006 fi
20007
20008 rm -f core conftest.err conftest.$ac_objext \
20009       conftest$ac_exeext conftest.$ac_ext
20010 LIBS=$ac_check_lib_save_LIBS
20011 fi
20012 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20013 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20014 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20015
20016 cat >>confdefs.h <<\_ACEOF
20017 #define HAVE___FIXDFDI 1
20018 _ACEOF
20019
20020 fi
20021
20022   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20023 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20024 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20025   echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027   ac_check_lib_save_LIBS=$LIBS
20028 LIBS="-lgcc  $LIBS"
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h.  */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h.  */
20035
20036 /* Override any GCC internal prototype to avoid an error.
20037    Use char because int might match the return type of a GCC
20038    builtin and then its argument prototype would still apply.  */
20039 #ifdef __cplusplus
20040 extern "C"
20041 #endif
20042 char __fixsfdi ();
20043 int
20044 main ()
20045 {
20046 return __fixsfdi ();
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (ac_try="$ac_link"
20053 case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058   (eval "$ac_link") 2>conftest.er1
20059   ac_status=$?
20060   grep -v '^ *+' conftest.er1 >conftest.err
20061   rm -f conftest.er1
20062   cat conftest.err >&5
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } &&
20065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20066   { (case "(($ac_try" in
20067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068   *) ac_try_echo=$ac_try;;
20069 esac
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071   (eval "$ac_try") 2>&5
20072   ac_status=$?
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); }; } &&
20075          { ac_try='test -s conftest$ac_exeext'
20076   { (case "(($ac_try" in
20077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078   *) ac_try_echo=$ac_try;;
20079 esac
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081   (eval "$ac_try") 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); }; }; then
20085   ac_cv_lib_gcc___fixsfdi=yes
20086 else
20087   echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20089
20090         ac_cv_lib_gcc___fixsfdi=no
20091 fi
20092
20093 rm -f core conftest.err conftest.$ac_objext \
20094       conftest$ac_exeext conftest.$ac_ext
20095 LIBS=$ac_check_lib_save_LIBS
20096 fi
20097 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20098 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20099 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20100
20101 cat >>confdefs.h <<\_ACEOF
20102 #define HAVE___FIXSFDI 1
20103 _ACEOF
20104
20105 fi
20106
20107   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20108 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20109 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20110   echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112   ac_check_lib_save_LIBS=$LIBS
20113 LIBS="-lgcc  $LIBS"
20114 cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h.  */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h.  */
20120
20121 /* Override any GCC internal prototype to avoid an error.
20122    Use char because int might match the return type of a GCC
20123    builtin and then its argument prototype would still apply.  */
20124 #ifdef __cplusplus
20125 extern "C"
20126 #endif
20127 char __floatdidf ();
20128 int
20129 main ()
20130 {
20131 return __floatdidf ();
20132   ;
20133   return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140   *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143   (eval "$ac_link") 2>conftest.er1
20144   ac_status=$?
20145   grep -v '^ *+' conftest.er1 >conftest.err
20146   rm -f conftest.er1
20147   cat conftest.err >&5
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } &&
20150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20151   { (case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_try") 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; } &&
20160          { ac_try='test -s conftest$ac_exeext'
20161   { (case "(($ac_try" in
20162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163   *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166   (eval "$ac_try") 2>&5
20167   ac_status=$?
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); }; }; then
20170   ac_cv_lib_gcc___floatdidf=yes
20171 else
20172   echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175         ac_cv_lib_gcc___floatdidf=no
20176 fi
20177
20178 rm -f core conftest.err conftest.$ac_objext \
20179       conftest$ac_exeext conftest.$ac_ext
20180 LIBS=$ac_check_lib_save_LIBS
20181 fi
20182 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20183 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20184 if test $ac_cv_lib_gcc___floatdidf = yes; then
20185
20186 cat >>confdefs.h <<\_ACEOF
20187 #define HAVE___FLOATDIDF 1
20188 _ACEOF
20189
20190 fi
20191
20192   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20193 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20194 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   ac_check_lib_save_LIBS=$LIBS
20198 LIBS="-lgcc  $LIBS"
20199 cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205
20206 /* Override any GCC internal prototype to avoid an error.
20207    Use char because int might match the return type of a GCC
20208    builtin and then its argument prototype would still apply.  */
20209 #ifdef __cplusplus
20210 extern "C"
20211 #endif
20212 char __lshrdi3 ();
20213 int
20214 main ()
20215 {
20216 return __lshrdi3 ();
20217   ;
20218   return 0;
20219 }
20220 _ACEOF
20221 rm -f conftest.$ac_objext conftest$ac_exeext
20222 if { (ac_try="$ac_link"
20223 case "(($ac_try" in
20224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225   *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228   (eval "$ac_link") 2>conftest.er1
20229   ac_status=$?
20230   grep -v '^ *+' conftest.er1 >conftest.err
20231   rm -f conftest.er1
20232   cat conftest.err >&5
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); } &&
20235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20236   { (case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_try") 2>&5
20242   ac_status=$?
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); }; } &&
20245          { ac_try='test -s conftest$ac_exeext'
20246   { (case "(($ac_try" in
20247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248   *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251   (eval "$ac_try") 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }; }; then
20255   ac_cv_lib_gcc___lshrdi3=yes
20256 else
20257   echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260         ac_cv_lib_gcc___lshrdi3=no
20261 fi
20262
20263 rm -f core conftest.err conftest.$ac_objext \
20264       conftest$ac_exeext conftest.$ac_ext
20265 LIBS=$ac_check_lib_save_LIBS
20266 fi
20267 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20268 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20269 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20270
20271 cat >>confdefs.h <<\_ACEOF
20272 #define HAVE___LSHRDI3 1
20273 _ACEOF
20274
20275 fi
20276
20277   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20278 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20279 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20280   echo $ECHO_N "(cached) $ECHO_C" >&6
20281 else
20282   ac_check_lib_save_LIBS=$LIBS
20283 LIBS="-lgcc  $LIBS"
20284 cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h.  */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h.  */
20290
20291 /* Override any GCC internal prototype to avoid an error.
20292    Use char because int might match the return type of a GCC
20293    builtin and then its argument prototype would still apply.  */
20294 #ifdef __cplusplus
20295 extern "C"
20296 #endif
20297 char __moddi3 ();
20298 int
20299 main ()
20300 {
20301 return __moddi3 ();
20302   ;
20303   return 0;
20304 }
20305 _ACEOF
20306 rm -f conftest.$ac_objext conftest$ac_exeext
20307 if { (ac_try="$ac_link"
20308 case "(($ac_try" in
20309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310   *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313   (eval "$ac_link") 2>conftest.er1
20314   ac_status=$?
20315   grep -v '^ *+' conftest.er1 >conftest.err
20316   rm -f conftest.er1
20317   cat conftest.err >&5
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); } &&
20320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; } &&
20330          { ac_try='test -s conftest$ac_exeext'
20331   { (case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_try") 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; }; then
20340   ac_cv_lib_gcc___moddi3=yes
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345         ac_cv_lib_gcc___moddi3=no
20346 fi
20347
20348 rm -f core conftest.err conftest.$ac_objext \
20349       conftest$ac_exeext conftest.$ac_ext
20350 LIBS=$ac_check_lib_save_LIBS
20351 fi
20352 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20353 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20354 if test $ac_cv_lib_gcc___moddi3 = yes; then
20355
20356 cat >>confdefs.h <<\_ACEOF
20357 #define HAVE___MODDI3 1
20358 _ACEOF
20359
20360 fi
20361
20362   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20363 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20364 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20365   echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367   ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-lgcc  $LIBS"
20369 cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375
20376 /* Override any GCC internal prototype to avoid an error.
20377    Use char because int might match the return type of a GCC
20378    builtin and then its argument prototype would still apply.  */
20379 #ifdef __cplusplus
20380 extern "C"
20381 #endif
20382 char __udivdi3 ();
20383 int
20384 main ()
20385 {
20386 return __udivdi3 ();
20387   ;
20388   return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (ac_try="$ac_link"
20393 case "(($ac_try" in
20394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395   *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398   (eval "$ac_link") 2>conftest.er1
20399   ac_status=$?
20400   grep -v '^ *+' conftest.er1 >conftest.err
20401   rm -f conftest.er1
20402   cat conftest.err >&5
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); } &&
20405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20406   { (case "(($ac_try" in
20407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408   *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411   (eval "$ac_try") 2>&5
20412   ac_status=$?
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); }; } &&
20415          { ac_try='test -s conftest$ac_exeext'
20416   { (case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_try") 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; }; then
20425   ac_cv_lib_gcc___udivdi3=yes
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430         ac_cv_lib_gcc___udivdi3=no
20431 fi
20432
20433 rm -f core conftest.err conftest.$ac_objext \
20434       conftest$ac_exeext conftest.$ac_ext
20435 LIBS=$ac_check_lib_save_LIBS
20436 fi
20437 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20438 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20439 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20440
20441 cat >>confdefs.h <<\_ACEOF
20442 #define HAVE___UDIVDI3 1
20443 _ACEOF
20444
20445 fi
20446
20447   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20448 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20449 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20450   echo $ECHO_N "(cached) $ECHO_C" >&6
20451 else
20452   ac_check_lib_save_LIBS=$LIBS
20453 LIBS="-lgcc  $LIBS"
20454 cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460
20461 /* Override any GCC internal prototype to avoid an error.
20462    Use char because int might match the return type of a GCC
20463    builtin and then its argument prototype would still apply.  */
20464 #ifdef __cplusplus
20465 extern "C"
20466 #endif
20467 char __umoddi3 ();
20468 int
20469 main ()
20470 {
20471 return __umoddi3 ();
20472   ;
20473   return 0;
20474 }
20475 _ACEOF
20476 rm -f conftest.$ac_objext conftest$ac_exeext
20477 if { (ac_try="$ac_link"
20478 case "(($ac_try" in
20479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480   *) ac_try_echo=$ac_try;;
20481 esac
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483   (eval "$ac_link") 2>conftest.er1
20484   ac_status=$?
20485   grep -v '^ *+' conftest.er1 >conftest.err
20486   rm -f conftest.er1
20487   cat conftest.err >&5
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); } &&
20490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20491   { (case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_try") 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); }; } &&
20500          { ac_try='test -s conftest$ac_exeext'
20501   { (case "(($ac_try" in
20502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503   *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506   (eval "$ac_try") 2>&5
20507   ac_status=$?
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); }; }; then
20510   ac_cv_lib_gcc___umoddi3=yes
20511 else
20512   echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515         ac_cv_lib_gcc___umoddi3=no
20516 fi
20517
20518 rm -f core conftest.err conftest.$ac_objext \
20519       conftest$ac_exeext conftest.$ac_ext
20520 LIBS=$ac_check_lib_save_LIBS
20521 fi
20522 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20523 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20524 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20525
20526 cat >>confdefs.h <<\_ACEOF
20527 #define HAVE___UMODDI3 1
20528 _ACEOF
20529
20530 fi
20531
20532
20533   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20534 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20535 if test "${ac_cv_lib_gcc___main+set}" = set; then
20536   echo $ECHO_N "(cached) $ECHO_C" >&6
20537 else
20538   ac_check_lib_save_LIBS=$LIBS
20539 LIBS="-lgcc  $LIBS"
20540 cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h.  */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h.  */
20546
20547 /* Override any GCC internal prototype to avoid an error.
20548    Use char because int might match the return type of a GCC
20549    builtin and then its argument prototype would still apply.  */
20550 #ifdef __cplusplus
20551 extern "C"
20552 #endif
20553 char __main ();
20554 int
20555 main ()
20556 {
20557 return __main ();
20558   ;
20559   return 0;
20560 }
20561 _ACEOF
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (ac_try="$ac_link"
20564 case "(($ac_try" in
20565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566   *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569   (eval "$ac_link") 2>conftest.er1
20570   ac_status=$?
20571   grep -v '^ *+' conftest.er1 >conftest.err
20572   rm -f conftest.er1
20573   cat conftest.err >&5
20574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575   (exit $ac_status); } &&
20576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20577   { (case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_try") 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); }; } &&
20586          { ac_try='test -s conftest$ac_exeext'
20587   { (case "(($ac_try" in
20588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589   *) ac_try_echo=$ac_try;;
20590 esac
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592   (eval "$ac_try") 2>&5
20593   ac_status=$?
20594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595   (exit $ac_status); }; }; then
20596   ac_cv_lib_gcc___main=yes
20597 else
20598   echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601         ac_cv_lib_gcc___main=no
20602 fi
20603
20604 rm -f core conftest.err conftest.$ac_objext \
20605       conftest$ac_exeext conftest.$ac_ext
20606 LIBS=$ac_check_lib_save_LIBS
20607 fi
20608 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20609 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20610 if test $ac_cv_lib_gcc___main = yes; then
20611
20612 cat >>confdefs.h <<\_ACEOF
20613 #define HAVE___MAIN 1
20614 _ACEOF
20615
20616 fi
20617
20618   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20619 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20620 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20621   echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623   ac_check_lib_save_LIBS=$LIBS
20624 LIBS="-lgcc  $LIBS"
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h.  */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h.  */
20631
20632 /* Override any GCC internal prototype to avoid an error.
20633    Use char because int might match the return type of a GCC
20634    builtin and then its argument prototype would still apply.  */
20635 #ifdef __cplusplus
20636 extern "C"
20637 #endif
20638 char __cmpdi2 ();
20639 int
20640 main ()
20641 {
20642 return __cmpdi2 ();
20643   ;
20644   return 0;
20645 }
20646 _ACEOF
20647 rm -f conftest.$ac_objext conftest$ac_exeext
20648 if { (ac_try="$ac_link"
20649 case "(($ac_try" in
20650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651   *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654   (eval "$ac_link") 2>conftest.er1
20655   ac_status=$?
20656   grep -v '^ *+' conftest.er1 >conftest.err
20657   rm -f conftest.er1
20658   cat conftest.err >&5
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); } &&
20661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20662   { (case "(($ac_try" in
20663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664   *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667   (eval "$ac_try") 2>&5
20668   ac_status=$?
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); }; } &&
20671          { ac_try='test -s conftest$ac_exeext'
20672   { (case "(($ac_try" in
20673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674   *) ac_try_echo=$ac_try;;
20675 esac
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677   (eval "$ac_try") 2>&5
20678   ac_status=$?
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); }; }; then
20681   ac_cv_lib_gcc___cmpdi2=yes
20682 else
20683   echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686         ac_cv_lib_gcc___cmpdi2=no
20687 fi
20688
20689 rm -f core conftest.err conftest.$ac_objext \
20690       conftest$ac_exeext conftest.$ac_ext
20691 LIBS=$ac_check_lib_save_LIBS
20692 fi
20693 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20694 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20695 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20696
20697 cat >>confdefs.h <<\_ACEOF
20698 #define HAVE___CMPDI2 1
20699 _ACEOF
20700
20701 fi
20702
20703 fi
20704
20705 if test "$llvm_cv_os_type" = "MingW" ; then
20706   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20707 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20708   cat >conftest.$ac_ext <<_ACEOF
20709
20710   /* confdefs.h.  */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h.  */
20715
20716     #include <windows.h>
20717     #include <imagehlp.h>
20718     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20719     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20720
20721
20722 _ACEOF
20723 rm -f conftest.$ac_objext
20724 if { (ac_try="$ac_compile"
20725 case "(($ac_try" in
20726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727   *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730   (eval "$ac_compile") 2>conftest.er1
20731   ac_status=$?
20732   grep -v '^ *+' conftest.er1 >conftest.err
20733   rm -f conftest.er1
20734   cat conftest.err >&5
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); } &&
20737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20738   { (case "(($ac_try" in
20739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740   *) ac_try_echo=$ac_try;;
20741 esac
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743   (eval "$ac_try") 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); }; } &&
20747          { ac_try='test -s conftest.$ac_objext'
20748   { (case "(($ac_try" in
20749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750   *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753   (eval "$ac_try") 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; }; then
20757
20758   { echo "$as_me:$LINENO: result: yes" >&5
20759 echo "${ECHO_T}yes" >&6; }
20760   llvm_cv_win32_elmcb_pcstr="PCSTR"
20761
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766
20767   { echo "$as_me:$LINENO: result: no" >&5
20768 echo "${ECHO_T}no" >&6; }
20769   llvm_cv_win32_elmcb_pcstr="PSTR"
20770
20771 fi
20772
20773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20774
20775 cat >>confdefs.h <<_ACEOF
20776 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20777 _ACEOF
20778
20779 fi
20780
20781
20782
20783   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20784 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20785 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20786   echo $ECHO_N "(cached) $ECHO_C" >&6
20787 else
20788
20789     ac_ext=cpp
20790 ac_cpp='$CXXCPP $CPPFLAGS'
20791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20794
20795     cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801 #include <math.h>
20802 int
20803 main ()
20804 {
20805 float f; isnan(f);
20806   ;
20807   return 0;
20808 }
20809 _ACEOF
20810 rm -f conftest.$ac_objext
20811 if { (ac_try="$ac_compile"
20812 case "(($ac_try" in
20813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814   *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817   (eval "$ac_compile") 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } &&
20824          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20825   { (case "(($ac_try" in
20826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827   *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830   (eval "$ac_try") 2>&5
20831   ac_status=$?
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); }; } &&
20834          { ac_try='test -s conftest.$ac_objext'
20835   { (case "(($ac_try" in
20836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837   *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840   (eval "$ac_try") 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); }; }; then
20844   ac_cv_func_isnan_in_math_h=yes
20845 else
20846   echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849         ac_cv_func_isnan_in_math_h=no
20850 fi
20851
20852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853     ac_ext=c
20854 ac_cpp='$CPP $CPPFLAGS'
20855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20858
20859
20860 fi
20861 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20862 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20863
20864
20865 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20866
20867 cat >>confdefs.h <<\_ACEOF
20868 #define HAVE_ISNAN_IN_MATH_H 1
20869 _ACEOF
20870
20871 fi
20872
20873
20874   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20875 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20876 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20877   echo $ECHO_N "(cached) $ECHO_C" >&6
20878 else
20879
20880     ac_ext=cpp
20881 ac_cpp='$CXXCPP $CPPFLAGS'
20882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20885
20886     cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h.  */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h.  */
20892 #include <cmath>
20893 int
20894 main ()
20895 {
20896 float f; isnan(f);
20897   ;
20898   return 0;
20899 }
20900 _ACEOF
20901 rm -f conftest.$ac_objext
20902 if { (ac_try="$ac_compile"
20903 case "(($ac_try" in
20904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905   *) ac_try_echo=$ac_try;;
20906 esac
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908   (eval "$ac_compile") 2>conftest.er1
20909   ac_status=$?
20910   grep -v '^ *+' conftest.er1 >conftest.err
20911   rm -f conftest.er1
20912   cat conftest.err >&5
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } &&
20915          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20916   { (case "(($ac_try" in
20917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918   *) ac_try_echo=$ac_try;;
20919 esac
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921   (eval "$ac_try") 2>&5
20922   ac_status=$?
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; } &&
20925          { ac_try='test -s conftest.$ac_objext'
20926   { (case "(($ac_try" in
20927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928   *) ac_try_echo=$ac_try;;
20929 esac
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931   (eval "$ac_try") 2>&5
20932   ac_status=$?
20933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); }; }; then
20935   ac_cv_func_isnan_in_cmath=yes
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940         ac_cv_func_isnan_in_cmath=no
20941 fi
20942
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944     ac_ext=c
20945 ac_cpp='$CPP $CPPFLAGS'
20946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949
20950
20951 fi
20952 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20953 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20954
20955 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20956
20957 cat >>confdefs.h <<\_ACEOF
20958 #define HAVE_ISNAN_IN_CMATH 1
20959 _ACEOF
20960
20961 fi
20962
20963
20964   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20965 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20966 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20967   echo $ECHO_N "(cached) $ECHO_C" >&6
20968 else
20969
20970     ac_ext=cpp
20971 ac_cpp='$CXXCPP $CPPFLAGS'
20972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20975
20976     cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982 #include <cmath>
20983 int
20984 main ()
20985 {
20986 float f; std::isnan(f);
20987   ;
20988   return 0;
20989 }
20990 _ACEOF
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995   *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998   (eval "$ac_compile") 2>conftest.er1
20999   ac_status=$?
21000   grep -v '^ *+' conftest.er1 >conftest.err
21001   rm -f conftest.er1
21002   cat conftest.err >&5
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } &&
21005          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21006   { (case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_try") 2>&5
21012   ac_status=$?
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); }; } &&
21015          { ac_try='test -s conftest.$ac_objext'
21016   { (case "(($ac_try" in
21017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018   *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021   (eval "$ac_try") 2>&5
21022   ac_status=$?
21023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); }; }; then
21025   ac_cv_func_std_isnan_in_cmath=yes
21026 else
21027   echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21029
21030         ac_cv_func_std_isnan_in_cmath=no
21031 fi
21032
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034     ac_ext=c
21035 ac_cpp='$CPP $CPPFLAGS'
21036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21039
21040
21041 fi
21042 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21043 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21044
21045 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21046
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_STD_ISNAN_IN_CMATH 1
21049 _ACEOF
21050
21051 fi
21052
21053
21054
21055
21056   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21057 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21058 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21059   echo $ECHO_N "(cached) $ECHO_C" >&6
21060 else
21061
21062     ac_ext=cpp
21063 ac_cpp='$CXXCPP $CPPFLAGS'
21064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21067
21068     cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 #include <math.h>
21075 int
21076 main ()
21077 {
21078 float f; isinf(f);
21079   ;
21080   return 0;
21081 }
21082 _ACEOF
21083 rm -f conftest.$ac_objext
21084 if { (ac_try="$ac_compile"
21085 case "(($ac_try" in
21086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087   *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090   (eval "$ac_compile") 2>conftest.er1
21091   ac_status=$?
21092   grep -v '^ *+' conftest.er1 >conftest.err
21093   rm -f conftest.er1
21094   cat conftest.err >&5
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); } &&
21097          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21098   { (case "(($ac_try" in
21099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100   *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103   (eval "$ac_try") 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); }; } &&
21107          { ac_try='test -s conftest.$ac_objext'
21108   { (case "(($ac_try" in
21109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110   *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113   (eval "$ac_try") 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); }; }; then
21117   ac_cv_func_isinf_in_math_h=yes
21118 else
21119   echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122         ac_cv_func_isinf_in_math_h=no
21123 fi
21124
21125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126     ac_ext=c
21127 ac_cpp='$CPP $CPPFLAGS'
21128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21131
21132
21133 fi
21134 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21135 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21136
21137 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21138
21139 cat >>confdefs.h <<\_ACEOF
21140 #define HAVE_ISINF_IN_MATH_H 1
21141 _ACEOF
21142
21143 fi
21144
21145
21146   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21147 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21148 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151
21152     ac_ext=cpp
21153 ac_cpp='$CXXCPP $CPPFLAGS'
21154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21157
21158     cat >conftest.$ac_ext <<_ACEOF
21159 /* confdefs.h.  */
21160 _ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h.  */
21164 #include <cmath>
21165 int
21166 main ()
21167 {
21168 float f; isinf(f);
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177   *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180   (eval "$ac_compile") 2>conftest.er1
21181   ac_status=$?
21182   grep -v '^ *+' conftest.er1 >conftest.err
21183   rm -f conftest.er1
21184   cat conftest.err >&5
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); } &&
21187          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21188   { (case "(($ac_try" in
21189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190   *) ac_try_echo=$ac_try;;
21191 esac
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193   (eval "$ac_try") 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; } &&
21197          { ac_try='test -s conftest.$ac_objext'
21198   { (case "(($ac_try" in
21199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200   *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203   (eval "$ac_try") 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; }; then
21207   ac_cv_func_isinf_in_cmath=yes
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212         ac_cv_func_isinf_in_cmath=no
21213 fi
21214
21215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21216     ac_ext=c
21217 ac_cpp='$CPP $CPPFLAGS'
21218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21221
21222
21223 fi
21224 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21225 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21226
21227 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21228
21229 cat >>confdefs.h <<\_ACEOF
21230 #define HAVE_ISINF_IN_CMATH 1
21231 _ACEOF
21232
21233 fi
21234
21235
21236   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21237 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21238 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21239   echo $ECHO_N "(cached) $ECHO_C" >&6
21240 else
21241
21242     ac_ext=cpp
21243 ac_cpp='$CXXCPP $CPPFLAGS'
21244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21247
21248     cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h.  */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h.  */
21254 #include <cmath>
21255 int
21256 main ()
21257 {
21258 float f; std::isinf(f);
21259   ;
21260   return 0;
21261 }
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267   *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270   (eval "$ac_compile") 2>conftest.er1
21271   ac_status=$?
21272   grep -v '^ *+' conftest.er1 >conftest.err
21273   rm -f conftest.er1
21274   cat conftest.err >&5
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); } &&
21277          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21278   { (case "(($ac_try" in
21279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280   *) ac_try_echo=$ac_try;;
21281 esac
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283   (eval "$ac_try") 2>&5
21284   ac_status=$?
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); }; } &&
21287          { ac_try='test -s conftest.$ac_objext'
21288   { (case "(($ac_try" in
21289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290   *) ac_try_echo=$ac_try;;
21291 esac
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293   (eval "$ac_try") 2>&5
21294   ac_status=$?
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); }; }; then
21297   ac_cv_func_std_isinf_in_cmath=yes
21298 else
21299   echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302         ac_cv_func_std_isinf_in_cmath=no
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306     ac_ext=c
21307 ac_cpp='$CPP $CPPFLAGS'
21308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21311
21312
21313 fi
21314 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21315 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21316
21317 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21318
21319 cat >>confdefs.h <<\_ACEOF
21320 #define HAVE_STD_ISINF_IN_CMATH 1
21321 _ACEOF
21322
21323 fi
21324
21325
21326   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21327 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21328 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21329   echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331
21332     ac_ext=cpp
21333 ac_cpp='$CXXCPP $CPPFLAGS'
21334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21337
21338     cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h.  */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h.  */
21344 #include <ieeefp.h>
21345 int
21346 main ()
21347 {
21348 float f; finite(f);
21349   ;
21350   return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357   *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360   (eval "$ac_compile") 2>conftest.er1
21361   ac_status=$?
21362   grep -v '^ *+' conftest.er1 >conftest.err
21363   rm -f conftest.er1
21364   cat conftest.err >&5
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); } &&
21367          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21368   { (case "(($ac_try" in
21369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370   *) ac_try_echo=$ac_try;;
21371 esac
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373   (eval "$ac_try") 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); }; } &&
21377          { ac_try='test -s conftest.$ac_objext'
21378   { (case "(($ac_try" in
21379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380   *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383   (eval "$ac_try") 2>&5
21384   ac_status=$?
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); }; }; then
21387   ac_cv_func_finite_in_ieeefp_h=yes
21388 else
21389   echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21391
21392         ac_cv_func_finite_in_ieeefp_h=no
21393 fi
21394
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396     ac_ext=c
21397 ac_cpp='$CPP $CPPFLAGS'
21398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21401
21402
21403 fi
21404 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21405 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21406
21407 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21408
21409 cat >>confdefs.h <<\_ACEOF
21410 #define HAVE_FINITE_IN_IEEEFP_H 1
21411 _ACEOF
21412
21413 fi
21414
21415
21416
21417 if test "$llvm_cv_platform_type" = "Unix" ; then
21418
21419
21420 for ac_header in stdlib.h unistd.h
21421 do
21422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21427   echo $ECHO_N "(cached) $ECHO_C" >&6
21428 fi
21429 ac_res=`eval echo '${'$as_ac_Header'}'`
21430                { echo "$as_me:$LINENO: result: $ac_res" >&5
21431 echo "${ECHO_T}$ac_res" >&6; }
21432 else
21433   # Is the header compilable?
21434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h.  */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h.  */
21442 $ac_includes_default
21443 #include <$ac_header>
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_compile") 2>conftest.er1
21453   ac_status=$?
21454   grep -v '^ *+' conftest.er1 >conftest.err
21455   rm -f conftest.er1
21456   cat conftest.err >&5
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); } &&
21459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21460   { (case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_try") 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; } &&
21469          { ac_try='test -s conftest.$ac_objext'
21470   { (case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475   (eval "$ac_try") 2>&5
21476   ac_status=$?
21477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); }; }; then
21479   ac_header_compiler=yes
21480 else
21481   echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21483
21484         ac_header_compiler=no
21485 fi
21486
21487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21489 echo "${ECHO_T}$ac_header_compiler" >&6; }
21490
21491 # Is the header present?
21492 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21494 cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h.  */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h.  */
21500 #include <$ac_header>
21501 _ACEOF
21502 if { (ac_try="$ac_cpp conftest.$ac_ext"
21503 case "(($ac_try" in
21504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505   *) ac_try_echo=$ac_try;;
21506 esac
21507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21509   ac_status=$?
21510   grep -v '^ *+' conftest.er1 >conftest.err
21511   rm -f conftest.er1
21512   cat conftest.err >&5
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); } >/dev/null; then
21515   if test -s conftest.err; then
21516     ac_cpp_err=$ac_c_preproc_warn_flag
21517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21518   else
21519     ac_cpp_err=
21520   fi
21521 else
21522   ac_cpp_err=yes
21523 fi
21524 if test -z "$ac_cpp_err"; then
21525   ac_header_preproc=yes
21526 else
21527   echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21529
21530   ac_header_preproc=no
21531 fi
21532
21533 rm -f conftest.err conftest.$ac_ext
21534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21535 echo "${ECHO_T}$ac_header_preproc" >&6; }
21536
21537 # So?  What about this header?
21538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21539   yes:no: )
21540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21544     ac_header_preproc=yes
21545     ;;
21546   no:yes:* )
21547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21549     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21550 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21551     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21553     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21554 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21557     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21559     ( cat <<\_ASBOX
21560 ## ------------------------------------ ##
21561 ## Report this to http://llvm.org/bugs/ ##
21562 ## ------------------------------------ ##
21563 _ASBOX
21564      ) | sed "s/^/$as_me: WARNING:     /" >&2
21565     ;;
21566 esac
21567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21570   echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572   eval "$as_ac_Header=\$ac_header_preproc"
21573 fi
21574 ac_res=`eval echo '${'$as_ac_Header'}'`
21575                { echo "$as_me:$LINENO: result: $ac_res" >&5
21576 echo "${ECHO_T}$ac_res" >&6; }
21577
21578 fi
21579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21580   cat >>confdefs.h <<_ACEOF
21581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21582 _ACEOF
21583
21584 fi
21585
21586 done
21587
21588
21589 for ac_func in getpagesize
21590 do
21591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21595   echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597   cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h.  */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h.  */
21603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21605 #define $ac_func innocuous_$ac_func
21606
21607 /* System header to define __stub macros and hopefully few prototypes,
21608     which can conflict with char $ac_func (); below.
21609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21610     <limits.h> exists even on freestanding compilers.  */
21611
21612 #ifdef __STDC__
21613 # include <limits.h>
21614 #else
21615 # include <assert.h>
21616 #endif
21617
21618 #undef $ac_func
21619
21620 /* Override any GCC internal prototype to avoid an error.
21621    Use char because int might match the return type of a GCC
21622    builtin and then its argument prototype would still apply.  */
21623 #ifdef __cplusplus
21624 extern "C"
21625 #endif
21626 char $ac_func ();
21627 /* The GNU C library defines this for functions which it implements
21628     to always fail with ENOSYS.  Some functions are actually named
21629     something starting with __ and the normal name is an alias.  */
21630 #if defined __stub_$ac_func || defined __stub___$ac_func
21631 choke me
21632 #endif
21633
21634 int
21635 main ()
21636 {
21637 return $ac_func ();
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (ac_try="$ac_link"
21644 case "(($ac_try" in
21645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646   *) ac_try_echo=$ac_try;;
21647 esac
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649   (eval "$ac_link") 2>conftest.er1
21650   ac_status=$?
21651   grep -v '^ *+' conftest.er1 >conftest.err
21652   rm -f conftest.er1
21653   cat conftest.err >&5
21654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655   (exit $ac_status); } &&
21656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21657   { (case "(($ac_try" in
21658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659   *) ac_try_echo=$ac_try;;
21660 esac
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662   (eval "$ac_try") 2>&5
21663   ac_status=$?
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); }; } &&
21666          { ac_try='test -s conftest$ac_exeext'
21667   { (case "(($ac_try" in
21668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669   *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672   (eval "$ac_try") 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; }; then
21676   eval "$as_ac_var=yes"
21677 else
21678   echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681         eval "$as_ac_var=no"
21682 fi
21683
21684 rm -f core conftest.err conftest.$ac_objext \
21685       conftest$ac_exeext conftest.$ac_ext
21686 fi
21687 ac_res=`eval echo '${'$as_ac_var'}'`
21688                { echo "$as_me:$LINENO: result: $ac_res" >&5
21689 echo "${ECHO_T}$ac_res" >&6; }
21690 if test `eval echo '${'$as_ac_var'}'` = yes; then
21691   cat >>confdefs.h <<_ACEOF
21692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21693 _ACEOF
21694
21695 fi
21696 done
21697
21698 { echo "$as_me:$LINENO: checking for working mmap" >&5
21699 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21700 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21701   echo $ECHO_N "(cached) $ECHO_C" >&6
21702 else
21703   if test "$cross_compiling" = yes; then
21704   ac_cv_func_mmap_fixed_mapped=no
21705 else
21706   cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h.  */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h.  */
21712 $ac_includes_default
21713 /* malloc might have been renamed as rpl_malloc. */
21714 #undef malloc
21715
21716 /* Thanks to Mike Haertel and Jim Avera for this test.
21717    Here is a matrix of mmap possibilities:
21718         mmap private not fixed
21719         mmap private fixed at somewhere currently unmapped
21720         mmap private fixed at somewhere already mapped
21721         mmap shared not fixed
21722         mmap shared fixed at somewhere currently unmapped
21723         mmap shared fixed at somewhere already mapped
21724    For private mappings, we should verify that changes cannot be read()
21725    back from the file, nor mmap's back from the file at a different
21726    address.  (There have been systems where private was not correctly
21727    implemented like the infamous i386 svr4.0, and systems where the
21728    VM page cache was not coherent with the file system buffer cache
21729    like early versions of FreeBSD and possibly contemporary NetBSD.)
21730    For shared mappings, we should conversely verify that changes get
21731    propagated back to all the places they're supposed to be.
21732
21733    Grep wants private fixed already mapped.
21734    The main things grep needs to know about mmap are:
21735    * does it exist and is it safe to write into the mmap'd area
21736    * how to use it (BSD variants)  */
21737
21738 #include <fcntl.h>
21739 #include <sys/mman.h>
21740
21741 #if !STDC_HEADERS && !HAVE_STDLIB_H
21742 char *malloc ();
21743 #endif
21744
21745 /* This mess was copied from the GNU getpagesize.h.  */
21746 #if !HAVE_GETPAGESIZE
21747 /* Assume that all systems that can run configure have sys/param.h.  */
21748 # if !HAVE_SYS_PARAM_H
21749 #  define HAVE_SYS_PARAM_H 1
21750 # endif
21751
21752 # ifdef _SC_PAGESIZE
21753 #  define getpagesize() sysconf(_SC_PAGESIZE)
21754 # else /* no _SC_PAGESIZE */
21755 #  if HAVE_SYS_PARAM_H
21756 #   include <sys/param.h>
21757 #   ifdef EXEC_PAGESIZE
21758 #    define getpagesize() EXEC_PAGESIZE
21759 #   else /* no EXEC_PAGESIZE */
21760 #    ifdef NBPG
21761 #     define getpagesize() NBPG * CLSIZE
21762 #     ifndef CLSIZE
21763 #      define CLSIZE 1
21764 #     endif /* no CLSIZE */
21765 #    else /* no NBPG */
21766 #     ifdef NBPC
21767 #      define getpagesize() NBPC
21768 #     else /* no NBPC */
21769 #      ifdef PAGESIZE
21770 #       define getpagesize() PAGESIZE
21771 #      endif /* PAGESIZE */
21772 #     endif /* no NBPC */
21773 #    endif /* no NBPG */
21774 #   endif /* no EXEC_PAGESIZE */
21775 #  else /* no HAVE_SYS_PARAM_H */
21776 #   define getpagesize() 8192   /* punt totally */
21777 #  endif /* no HAVE_SYS_PARAM_H */
21778 # endif /* no _SC_PAGESIZE */
21779
21780 #endif /* no HAVE_GETPAGESIZE */
21781
21782 int
21783 main ()
21784 {
21785   char *data, *data2, *data3;
21786   int i, pagesize;
21787   int fd;
21788
21789   pagesize = getpagesize ();
21790
21791   /* First, make a file with some known garbage in it. */
21792   data = (char *) malloc (pagesize);
21793   if (!data)
21794     return 1;
21795   for (i = 0; i < pagesize; ++i)
21796     *(data + i) = rand ();
21797   umask (0);
21798   fd = creat ("conftest.mmap", 0600);
21799   if (fd < 0)
21800     return 1;
21801   if (write (fd, data, pagesize) != pagesize)
21802     return 1;
21803   close (fd);
21804
21805   /* Next, try to mmap the file at a fixed address which already has
21806      something else allocated at it.  If we can, also make sure that
21807      we see the same garbage.  */
21808   fd = open ("conftest.mmap", O_RDWR);
21809   if (fd < 0)
21810     return 1;
21811   data2 = (char *) malloc (2 * pagesize);
21812   if (!data2)
21813     return 1;
21814   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21815   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21816                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21817     return 1;
21818   for (i = 0; i < pagesize; ++i)
21819     if (*(data + i) != *(data2 + i))
21820       return 1;
21821
21822   /* Finally, make sure that changes to the mapped area do not
21823      percolate back to the file as seen by read().  (This is a bug on
21824      some variants of i386 svr4.0.)  */
21825   for (i = 0; i < pagesize; ++i)
21826     *(data2 + i) = *(data2 + i) + 1;
21827   data3 = (char *) malloc (pagesize);
21828   if (!data3)
21829     return 1;
21830   if (read (fd, data3, pagesize) != pagesize)
21831     return 1;
21832   for (i = 0; i < pagesize; ++i)
21833     if (*(data + i) != *(data3 + i))
21834       return 1;
21835   close (fd);
21836   return 0;
21837 }
21838 _ACEOF
21839 rm -f conftest$ac_exeext
21840 if { (ac_try="$ac_link"
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_link") 2>&5
21847   ac_status=$?
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21850   { (case "(($ac_try" in
21851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852   *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855   (eval "$ac_try") 2>&5
21856   ac_status=$?
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); }; }; then
21859   ac_cv_func_mmap_fixed_mapped=yes
21860 else
21861   echo "$as_me: program exited with status $ac_status" >&5
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 ( exit $ac_status )
21866 ac_cv_func_mmap_fixed_mapped=no
21867 fi
21868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21869 fi
21870
21871
21872 fi
21873 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21874 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21875 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21876
21877 cat >>confdefs.h <<\_ACEOF
21878 #define HAVE_MMAP 1
21879 _ACEOF
21880
21881 fi
21882 rm -f conftest.mmap
21883
21884   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21885 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21886 if test "${ac_cv_func_mmap_file+set}" = set; then
21887   echo $ECHO_N "(cached) $ECHO_C" >&6
21888 else
21889    ac_ext=c
21890 ac_cpp='$CPP $CPPFLAGS'
21891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21894
21895   if test "$cross_compiling" = yes; then
21896   ac_cv_func_mmap_file=no
21897 else
21898   cat >conftest.$ac_ext <<_ACEOF
21899
21900     /* confdefs.h.  */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h.  */
21905
21906 #include <sys/types.h>
21907 #include <sys/mman.h>
21908 #include <fcntl.h>
21909
21910 int
21911 main ()
21912 {
21913
21914   int fd;
21915   fd = creat ("foo",0777);
21916   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21917   unlink ("foo");
21918   return (fd != (int) MAP_FAILED);
21919   ;
21920   return 0;
21921 }
21922 _ACEOF
21923 rm -f conftest$ac_exeext
21924 if { (ac_try="$ac_link"
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_link") 2>&5
21931   ac_status=$?
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21934   { (case "(($ac_try" in
21935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936   *) ac_try_echo=$ac_try;;
21937 esac
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939   (eval "$ac_try") 2>&5
21940   ac_status=$?
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); }; }; then
21943   ac_cv_func_mmap_file=yes
21944 else
21945   echo "$as_me: program exited with status $ac_status" >&5
21946 echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21948
21949 ( exit $ac_status )
21950 ac_cv_func_mmap_file=no
21951 fi
21952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21953 fi
21954
21955
21956   ac_ext=c
21957 ac_cpp='$CPP $CPPFLAGS'
21958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21961
21962
21963 fi
21964 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21965 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21966 if test "$ac_cv_func_mmap_file" = yes; then
21967
21968 cat >>confdefs.h <<\_ACEOF
21969 #define HAVE_MMAP_FILE
21970 _ACEOF
21971
21972    MMAP_FILE=yes
21973
21974 fi
21975
21976   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21977 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21978 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21979   echo $ECHO_N "(cached) $ECHO_C" >&6
21980 else
21981   if test "$llvm_cv_os_type" = "Interix" ; then
21982    ac_cv_need_dev_zero_for_mmap=yes
21983  else
21984    ac_cv_need_dev_zero_for_mmap=no
21985  fi
21986
21987 fi
21988 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21989 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21990 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21991
21992 cat >>confdefs.h <<\_ACEOF
21993 #define NEED_DEV_ZERO_FOR_MMAP 1
21994 _ACEOF
21995
21996 fi
21997
21998   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21999   then
22000     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22001 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22002   fi
22003   if test "$ac_cv_func_mmap_file" = "no"
22004   then
22005     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22006 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22007   fi
22008 fi
22009
22010 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22011 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22012 ac_ext=cpp
22013 ac_cpp='$CXXCPP $CPPFLAGS'
22014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22017
22018 cat >conftest.$ac_ext <<_ACEOF
22019
22020   /* confdefs.h.  */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h.  */
22025
22026     int main() {
22027       volatile unsigned long val = 1;
22028       __sync_synchronize();
22029       __sync_val_compare_and_swap(&val, 1, 0);
22030       __sync_add_and_fetch(&val, 1);
22031       __sync_sub_and_fetch(&val, 1);
22032       return 0;
22033     }
22034
22035
22036 _ACEOF
22037 rm -f conftest.$ac_objext conftest$ac_exeext
22038 if { (ac_try="$ac_link"
22039 case "(($ac_try" in
22040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041   *) ac_try_echo=$ac_try;;
22042 esac
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044   (eval "$ac_link") 2>conftest.er1
22045   ac_status=$?
22046   grep -v '^ *+' conftest.er1 >conftest.err
22047   rm -f conftest.er1
22048   cat conftest.err >&5
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); } &&
22051          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22052   { (case "(($ac_try" in
22053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054   *) ac_try_echo=$ac_try;;
22055 esac
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057   (eval "$ac_try") 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); }; } &&
22061          { ac_try='test -s conftest$ac_exeext'
22062   { (case "(($ac_try" in
22063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064   *) ac_try_echo=$ac_try;;
22065 esac
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067   (eval "$ac_try") 2>&5
22068   ac_status=$?
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); }; }; then
22071
22072   { echo "$as_me:$LINENO: result: yes" >&5
22073 echo "${ECHO_T}yes" >&6; }
22074
22075 cat >>confdefs.h <<\_ACEOF
22076 #define LLVM_HAS_ATOMICS 1
22077 _ACEOF
22078
22079
22080 else
22081   echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22083
22084
22085   { echo "$as_me:$LINENO: result: no" >&5
22086 echo "${ECHO_T}no" >&6; }
22087
22088 cat >>confdefs.h <<\_ACEOF
22089 #define LLVM_HAS_ATOMICS 0
22090 _ACEOF
22091
22092   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22093 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22094
22095 fi
22096
22097 rm -f core conftest.err conftest.$ac_objext \
22098       conftest$ac_exeext conftest.$ac_ext
22099 ac_ext=c
22100 ac_cpp='$CPP $CPPFLAGS'
22101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22104
22105
22106
22107 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22108   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22109 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22110 if test "${llvm_cv_linux_mixed+set}" = set; then
22111   echo $ECHO_N "(cached) $ECHO_C" >&6
22112 else
22113    ac_ext=c
22114 ac_cpp='$CPP $CPPFLAGS'
22115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22118
22119   cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h.  */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h.  */
22125 #ifndef __x86_64__
22126        error: Not x86-64 even if uname says so!
22127       #endif
22128
22129 int
22130 main ()
22131 {
22132
22133   ;
22134   return 0;
22135 }
22136 _ACEOF
22137 rm -f conftest.$ac_objext
22138 if { (ac_try="$ac_compile"
22139 case "(($ac_try" in
22140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22141   *) ac_try_echo=$ac_try;;
22142 esac
22143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22144   (eval "$ac_compile") 2>conftest.er1
22145   ac_status=$?
22146   grep -v '^ *+' conftest.er1 >conftest.err
22147   rm -f conftest.er1
22148   cat conftest.err >&5
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); } &&
22151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22152   { (case "(($ac_try" in
22153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154   *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157   (eval "$ac_try") 2>&5
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; } &&
22161          { ac_try='test -s conftest.$ac_objext'
22162   { (case "(($ac_try" in
22163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164   *) ac_try_echo=$ac_try;;
22165 esac
22166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167   (eval "$ac_try") 2>&5
22168   ac_status=$?
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); }; }; then
22171   llvm_cv_linux_mixed=no
22172 else
22173   echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176         llvm_cv_linux_mixed=yes
22177 fi
22178
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180   ac_ext=c
22181 ac_cpp='$CPP $CPPFLAGS'
22182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22185
22186
22187 fi
22188 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22189 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22190
22191   if test "$llvm_cv_linux_mixed" = "yes"; then
22192     llvm_cv_target_arch="x86"
22193     ARCH="x86"
22194   fi
22195 fi
22196
22197
22198 for ac_func in __dso_handle
22199 do
22200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22204   echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206   cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h.  */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h.  */
22212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22214 #define $ac_func innocuous_$ac_func
22215
22216 /* System header to define __stub macros and hopefully few prototypes,
22217     which can conflict with char $ac_func (); below.
22218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22219     <limits.h> exists even on freestanding compilers.  */
22220
22221 #ifdef __STDC__
22222 # include <limits.h>
22223 #else
22224 # include <assert.h>
22225 #endif
22226
22227 #undef $ac_func
22228
22229 /* Override any GCC internal prototype to avoid an error.
22230    Use char because int might match the return type of a GCC
22231    builtin and then its argument prototype would still apply.  */
22232 #ifdef __cplusplus
22233 extern "C"
22234 #endif
22235 char $ac_func ();
22236 /* The GNU C library defines this for functions which it implements
22237     to always fail with ENOSYS.  Some functions are actually named
22238     something starting with __ and the normal name is an alias.  */
22239 #if defined __stub_$ac_func || defined __stub___$ac_func
22240 choke me
22241 #endif
22242
22243 int
22244 main ()
22245 {
22246 return $ac_func ();
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 rm -f conftest.$ac_objext conftest$ac_exeext
22252 if { (ac_try="$ac_link"
22253 case "(($ac_try" in
22254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255   *) ac_try_echo=$ac_try;;
22256 esac
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258   (eval "$ac_link") 2>conftest.er1
22259   ac_status=$?
22260   grep -v '^ *+' conftest.er1 >conftest.err
22261   rm -f conftest.er1
22262   cat conftest.err >&5
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } &&
22265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22266   { (case "(($ac_try" in
22267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268   *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271   (eval "$ac_try") 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; } &&
22275          { ac_try='test -s conftest$ac_exeext'
22276   { (case "(($ac_try" in
22277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278   *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281   (eval "$ac_try") 2>&5
22282   ac_status=$?
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); }; }; then
22285   eval "$as_ac_var=yes"
22286 else
22287   echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22289
22290         eval "$as_ac_var=no"
22291 fi
22292
22293 rm -f core conftest.err conftest.$ac_objext \
22294       conftest$ac_exeext conftest.$ac_ext
22295 fi
22296 ac_res=`eval echo '${'$as_ac_var'}'`
22297                { echo "$as_me:$LINENO: result: $ac_res" >&5
22298 echo "${ECHO_T}$ac_res" >&6; }
22299 if test `eval echo '${'$as_ac_var'}'` = yes; then
22300   cat >>confdefs.h <<_ACEOF
22301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22302 _ACEOF
22303
22304 fi
22305 done
22306
22307
22308 SHLIBEXT=$libltdl_cv_shlibext
22309
22310
22311 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22312
22313
22314 if test "${prefix}" = "NONE" ; then
22315   prefix="/usr/local"
22316 fi
22317 eval LLVM_PREFIX="${prefix}";
22318 eval LLVM_BINDIR="${prefix}/bin";
22319 eval LLVM_DATADIR="${prefix}/share/llvm";
22320 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22321 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22322 eval LLVM_INCLUDEDIR="${prefix}/include";
22323 eval LLVM_INFODIR="${prefix}/info";
22324 eval LLVM_MANDIR="${prefix}/man";
22325 LLVM_CONFIGTIME=`date`
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22337   LLVM_CONFIGTIME="(timestamp not enabled)"
22338 fi
22339
22340
22341 cat >>confdefs.h <<_ACEOF
22342 #define LLVM_PREFIX "$LLVM_PREFIX"
22343 _ACEOF
22344
22345
22346 cat >>confdefs.h <<_ACEOF
22347 #define LLVM_BINDIR "$LLVM_BINDIR"
22348 _ACEOF
22349
22350
22351 cat >>confdefs.h <<_ACEOF
22352 #define LLVM_DATADIR "$LLVM_DATADIR"
22353 _ACEOF
22354
22355
22356 cat >>confdefs.h <<_ACEOF
22357 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22358 _ACEOF
22359
22360
22361 cat >>confdefs.h <<_ACEOF
22362 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22363 _ACEOF
22364
22365
22366 cat >>confdefs.h <<_ACEOF
22367 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22368 _ACEOF
22369
22370
22371 cat >>confdefs.h <<_ACEOF
22372 #define LLVM_INFODIR "$LLVM_INFODIR"
22373 _ACEOF
22374
22375
22376 cat >>confdefs.h <<_ACEOF
22377 #define LLVM_MANDIR "$LLVM_MANDIR"
22378 _ACEOF
22379
22380
22381 cat >>confdefs.h <<_ACEOF
22382 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22383 _ACEOF
22384
22385
22386 cat >>confdefs.h <<_ACEOF
22387 #define LLVM_HOST_TRIPLE "$host"
22388 _ACEOF
22389
22390
22391 cat >>confdefs.h <<_ACEOF
22392 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22393 _ACEOF
22394
22395
22396 if test "$BINDINGS_TO_BUILD" = auto ; then
22397   BINDINGS_TO_BUILD=""
22398   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22399     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22400   fi
22401 fi
22402 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22403
22404
22405 ALL_BINDINGS=ocaml
22406
22407
22408 binding_prereqs_failed=0
22409 for a_binding in $BINDINGS_TO_BUILD ; do
22410   case "$a_binding" in
22411   ocaml)
22412     if test "x$OCAMLC" = x ; then
22413       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22414 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22415       binding_prereqs_failed=1
22416     fi
22417     if test "x$OCAMLDEP" = x ; then
22418       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22419 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22420       binding_prereqs_failed=1
22421     fi
22422     if test "x$OCAMLOPT" = x ; then
22423       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22424 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22425           fi
22426     if test "x$with_ocaml_libdir" != xauto ; then
22427       OCAML_LIBDIR=$with_ocaml_libdir
22428
22429     else
22430       ocaml_stdlib="`"$OCAMLC" -where`"
22431       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22432       then
22433         # ocaml stdlib is beneath our prefix; use stdlib
22434         OCAML_LIBDIR=$ocaml_stdlib
22435
22436       else
22437         # ocaml stdlib is outside our prefix; use libdir/ocaml
22438         OCAML_LIBDIR=${prefix}/lib/ocaml
22439
22440       fi
22441     fi
22442     ;;
22443   esac
22444 done
22445 if test "$binding_prereqs_failed" = 1 ; then
22446   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22447 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22448    { (exit 1); exit 1; }; }
22449 fi
22450
22451 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22452 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22453 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22454   echo $ECHO_N "(cached) $ECHO_C" >&6
22455 else
22456    ac_ext=cpp
22457 ac_cpp='$CXXCPP $CPPFLAGS'
22458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22461
22462   oldcxxflags="$CXXFLAGS"
22463   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22464   cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h.  */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h.  */
22470 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22471 int
22472 main ()
22473 {
22474 X<int>().f();
22475   ;
22476   return 0;
22477 }
22478 _ACEOF
22479 rm -f conftest.$ac_objext
22480 if { (ac_try="$ac_compile"
22481 case "(($ac_try" in
22482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483   *) ac_try_echo=$ac_try;;
22484 esac
22485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22486   (eval "$ac_compile") 2>conftest.er1
22487   ac_status=$?
22488   grep -v '^ *+' conftest.er1 >conftest.err
22489   rm -f conftest.er1
22490   cat conftest.err >&5
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); } &&
22493          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22494   { (case "(($ac_try" in
22495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496   *) ac_try_echo=$ac_try;;
22497 esac
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499   (eval "$ac_try") 2>&5
22500   ac_status=$?
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); }; } &&
22503          { ac_try='test -s conftest.$ac_objext'
22504   { (case "(($ac_try" in
22505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506   *) ac_try_echo=$ac_try;;
22507 esac
22508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22509   (eval "$ac_try") 2>&5
22510   ac_status=$?
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); }; }; then
22513   llvm_cv_cxx_visibility_inlines_hidden=yes
22514 else
22515   echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.$ac_ext >&5
22517
22518         llvm_cv_cxx_visibility_inlines_hidden=no
22519 fi
22520
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522   CXXFLAGS="$oldcxxflags"
22523   ac_ext=c
22524 ac_cpp='$CPP $CPPFLAGS'
22525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22528
22529
22530 fi
22531 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22532 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22533 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22534   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22535
22536 else
22537   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22538
22539 fi
22540
22541
22542 if test "$llvm_cv_link_use_r" = "yes" ; then
22543   RPATH="-Wl,-R"
22544 else
22545   RPATH="-Wl,-rpath"
22546 fi
22547
22548
22549 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22550   RDYNAMIC="-Wl,-export-dynamic"
22551 else
22552   RDYNAMIC=""
22553 fi
22554
22555
22556
22557 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22558
22559
22560
22561
22562
22563
22564 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22565
22566 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22567
22568 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22569
22570 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22571
22572 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22573
22574
22575 ac_config_files="$ac_config_files Makefile.config"
22576
22577
22578 ac_config_files="$ac_config_files llvm.spec"
22579
22580
22581 ac_config_files="$ac_config_files docs/doxygen.cfg"
22582
22583
22584 if test "${clang_src_root}" = ""; then
22585   clang_src_root="$srcdir/tools/clang"
22586 fi
22587 if test -f ${clang_src_root}/README.txt; then
22588     configh="include/clang/Config/config.h"
22589   doxy="docs/doxygen.cfg"
22590   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22591
22592   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22593
22594 fi
22595
22596 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22597
22598
22599 test "x$program_prefix" = "xNONE" && program_prefix=""
22600
22601
22602
22603 ac_config_commands="$ac_config_commands setup"
22604
22605 ac_config_commands="$ac_config_commands Makefile"
22606
22607
22608 ac_config_commands="$ac_config_commands Makefile.common"
22609
22610
22611 ac_config_commands="$ac_config_commands examples/Makefile"
22612
22613
22614 ac_config_commands="$ac_config_commands lib/Makefile"
22615
22616
22617 ac_config_commands="$ac_config_commands runtime/Makefile"
22618
22619
22620 ac_config_commands="$ac_config_commands test/Makefile"
22621
22622
22623 ac_config_commands="$ac_config_commands test/Makefile.tests"
22624
22625
22626 ac_config_commands="$ac_config_commands unittests/Makefile"
22627
22628
22629 ac_config_commands="$ac_config_commands tools/Makefile"
22630
22631
22632 ac_config_commands="$ac_config_commands utils/Makefile"
22633
22634
22635 ac_config_commands="$ac_config_commands projects/Makefile"
22636
22637
22638 ac_config_commands="$ac_config_commands bindings/Makefile"
22639
22640
22641 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22642
22643
22644
22645 cat >confcache <<\_ACEOF
22646 # This file is a shell script that caches the results of configure
22647 # tests run on this system so they can be shared between configure
22648 # scripts and configure runs, see configure's option --config-cache.
22649 # It is not useful on other systems.  If it contains results you don't
22650 # want to keep, you may remove or edit it.
22651 #
22652 # config.status only pays attention to the cache file if you give it
22653 # the --recheck option to rerun configure.
22654 #
22655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22657 # following values.
22658
22659 _ACEOF
22660
22661 # The following way of writing the cache mishandles newlines in values,
22662 # but we know of no workaround that is simple, portable, and efficient.
22663 # So, we kill variables containing newlines.
22664 # Ultrix sh set writes to stderr and can't be redirected directly,
22665 # and sets the high bit in the cache file unless we assign to the vars.
22666 (
22667   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22668     eval ac_val=\$$ac_var
22669     case $ac_val in #(
22670     *${as_nl}*)
22671       case $ac_var in #(
22672       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22673 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22674       esac
22675       case $ac_var in #(
22676       _ | IFS | as_nl) ;; #(
22677       *) $as_unset $ac_var ;;
22678       esac ;;
22679     esac
22680   done
22681
22682   (set) 2>&1 |
22683     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22684     *${as_nl}ac_space=\ *)
22685       # `set' does not quote correctly, so add quotes (double-quote
22686       # substitution turns \\\\ into \\, and sed turns \\ into \).
22687       sed -n \
22688         "s/'/'\\\\''/g;
22689           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22690       ;; #(
22691     *)
22692       # `set' quotes correctly as required by POSIX, so do not add quotes.
22693       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22694       ;;
22695     esac |
22696     sort
22697 ) |
22698   sed '
22699      /^ac_cv_env_/b end
22700      t clear
22701      :clear
22702      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22703      t end
22704      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22705      :end' >>confcache
22706 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22707   if test -w "$cache_file"; then
22708     test "x$cache_file" != "x/dev/null" &&
22709       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22710 echo "$as_me: updating cache $cache_file" >&6;}
22711     cat confcache >$cache_file
22712   else
22713     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22714 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22715   fi
22716 fi
22717 rm -f confcache
22718
22719 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22720 # Let make expand exec_prefix.
22721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22722
22723 DEFS=-DHAVE_CONFIG_H
22724
22725 ac_libobjs=
22726 ac_ltlibobjs=
22727 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22728   # 1. Remove the extension, and $U if already installed.
22729   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22730   ac_i=`echo "$ac_i" | sed "$ac_script"`
22731   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22732   #    will be set to the directory where LIBOBJS objects are built.
22733   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22734   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22735 done
22736 LIBOBJS=$ac_libobjs
22737
22738 LTLIBOBJS=$ac_ltlibobjs
22739
22740
22741 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22742   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22743 Usually this means the macro was only invoked conditionally." >&5
22744 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22745 Usually this means the macro was only invoked conditionally." >&2;}
22746    { (exit 1); exit 1; }; }
22747 fi
22748 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22749   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22750 Usually this means the macro was only invoked conditionally." >&5
22751 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22752 Usually this means the macro was only invoked conditionally." >&2;}
22753    { (exit 1); exit 1; }; }
22754 fi
22755
22756 : ${CONFIG_STATUS=./config.status}
22757 ac_clean_files_save=$ac_clean_files
22758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22759 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22760 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22761 cat >$CONFIG_STATUS <<_ACEOF
22762 #! $SHELL
22763 # Generated by $as_me.
22764 # Run this file to recreate the current configuration.
22765 # Compiler output produced by configure, useful for debugging
22766 # configure, is in config.log if it exists.
22767
22768 debug=false
22769 ac_cs_recheck=false
22770 ac_cs_silent=false
22771 SHELL=\${CONFIG_SHELL-$SHELL}
22772 _ACEOF
22773
22774 cat >>$CONFIG_STATUS <<\_ACEOF
22775 ## --------------------- ##
22776 ## M4sh Initialization.  ##
22777 ## --------------------- ##
22778
22779 # Be Bourne compatible
22780 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22781   emulate sh
22782   NULLCMD=:
22783   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22784   # is contrary to our usage.  Disable this feature.
22785   alias -g '${1+"$@"}'='"$@"'
22786   setopt NO_GLOB_SUBST
22787 else
22788   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22789 fi
22790 BIN_SH=xpg4; export BIN_SH # for Tru64
22791 DUALCASE=1; export DUALCASE # for MKS sh
22792
22793
22794 # PATH needs CR
22795 # Avoid depending upon Character Ranges.
22796 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22797 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22798 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22799 as_cr_digits='0123456789'
22800 as_cr_alnum=$as_cr_Letters$as_cr_digits
22801
22802 # The user is always right.
22803 if test "${PATH_SEPARATOR+set}" != set; then
22804   echo "#! /bin/sh" >conf$$.sh
22805   echo  "exit 0"   >>conf$$.sh
22806   chmod +x conf$$.sh
22807   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22808     PATH_SEPARATOR=';'
22809   else
22810     PATH_SEPARATOR=:
22811   fi
22812   rm -f conf$$.sh
22813 fi
22814
22815 # Support unset when possible.
22816 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22817   as_unset=unset
22818 else
22819   as_unset=false
22820 fi
22821
22822
22823 # IFS
22824 # We need space, tab and new line, in precisely that order.  Quoting is
22825 # there to prevent editors from complaining about space-tab.
22826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22827 # splitting by setting IFS to empty value.)
22828 as_nl='
22829 '
22830 IFS=" ""        $as_nl"
22831
22832 # Find who we are.  Look in the path if we contain no directory separator.
22833 case $0 in
22834   *[\\/]* ) as_myself=$0 ;;
22835   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22836 for as_dir in $PATH
22837 do
22838   IFS=$as_save_IFS
22839   test -z "$as_dir" && as_dir=.
22840   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22841 done
22842 IFS=$as_save_IFS
22843
22844      ;;
22845 esac
22846 # We did not find ourselves, most probably we were run as `sh COMMAND'
22847 # in which case we are not to be found in the path.
22848 if test "x$as_myself" = x; then
22849   as_myself=$0
22850 fi
22851 if test ! -f "$as_myself"; then
22852   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22853   { (exit 1); exit 1; }
22854 fi
22855
22856 # Work around bugs in pre-3.0 UWIN ksh.
22857 for as_var in ENV MAIL MAILPATH
22858 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22859 done
22860 PS1='$ '
22861 PS2='> '
22862 PS4='+ '
22863
22864 # NLS nuisances.
22865 for as_var in \
22866   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22867   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22868   LC_TELEPHONE LC_TIME
22869 do
22870   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22871     eval $as_var=C; export $as_var
22872   else
22873     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22874   fi
22875 done
22876
22877 # Required to use basename.
22878 if expr a : '\(a\)' >/dev/null 2>&1 &&
22879    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22880   as_expr=expr
22881 else
22882   as_expr=false
22883 fi
22884
22885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22886   as_basename=basename
22887 else
22888   as_basename=false
22889 fi
22890
22891
22892 # Name of the executable.
22893 as_me=`$as_basename -- "$0" ||
22894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22895          X"$0" : 'X\(//\)$' \| \
22896          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22897 echo X/"$0" |
22898     sed '/^.*\/\([^/][^/]*\)\/*$/{
22899             s//\1/
22900             q
22901           }
22902           /^X\/\(\/\/\)$/{
22903             s//\1/
22904             q
22905           }
22906           /^X\/\(\/\).*/{
22907             s//\1/
22908             q
22909           }
22910           s/.*/./; q'`
22911
22912 # CDPATH.
22913 $as_unset CDPATH
22914
22915
22916
22917   as_lineno_1=$LINENO
22918   as_lineno_2=$LINENO
22919   test "x$as_lineno_1" != "x$as_lineno_2" &&
22920   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22921
22922   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22923   # uniformly replaced by the line number.  The first 'sed' inserts a
22924   # line-number line after each line using $LINENO; the second 'sed'
22925   # does the real work.  The second script uses 'N' to pair each
22926   # line-number line with the line containing $LINENO, and appends
22927   # trailing '-' during substitution so that $LINENO is not a special
22928   # case at line end.
22929   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22930   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22931   # E. McMahon (1931-1989) for sed's syntax.  :-)
22932   sed -n '
22933     p
22934     /[$]LINENO/=
22935   ' <$as_myself |
22936     sed '
22937       s/[$]LINENO.*/&-/
22938       t lineno
22939       b
22940       :lineno
22941       N
22942       :loop
22943       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22944       t loop
22945       s/-\n.*//
22946     ' >$as_me.lineno &&
22947   chmod +x "$as_me.lineno" ||
22948     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22949    { (exit 1); exit 1; }; }
22950
22951   # Don't try to exec as it changes $[0], causing all sort of problems
22952   # (the dirname of $[0] is not the place where we might find the
22953   # original and so on.  Autoconf is especially sensitive to this).
22954   . "./$as_me.lineno"
22955   # Exit status is that of the last command.
22956   exit
22957 }
22958
22959
22960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22961   as_dirname=dirname
22962 else
22963   as_dirname=false
22964 fi
22965
22966 ECHO_C= ECHO_N= ECHO_T=
22967 case `echo -n x` in
22968 -n*)
22969   case `echo 'x\c'` in
22970   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22971   *)   ECHO_C='\c';;
22972   esac;;
22973 *)
22974   ECHO_N='-n';;
22975 esac
22976
22977 if expr a : '\(a\)' >/dev/null 2>&1 &&
22978    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22979   as_expr=expr
22980 else
22981   as_expr=false
22982 fi
22983
22984 rm -f conf$$ conf$$.exe conf$$.file
22985 if test -d conf$$.dir; then
22986   rm -f conf$$.dir/conf$$.file
22987 else
22988   rm -f conf$$.dir
22989   mkdir conf$$.dir
22990 fi
22991 echo >conf$$.file
22992 if ln -s conf$$.file conf$$ 2>/dev/null; then
22993   as_ln_s='ln -s'
22994   # ... but there are two gotchas:
22995   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22996   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22997   # In both cases, we have to default to `cp -p'.
22998   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22999     as_ln_s='cp -p'
23000 elif ln conf$$.file conf$$ 2>/dev/null; then
23001   as_ln_s=ln
23002 else
23003   as_ln_s='cp -p'
23004 fi
23005 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23006 rmdir conf$$.dir 2>/dev/null
23007
23008 if mkdir -p . 2>/dev/null; then
23009   as_mkdir_p=:
23010 else
23011   test -d ./-p && rmdir ./-p
23012   as_mkdir_p=false
23013 fi
23014
23015 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23016 # systems may use methods other than mode bits to determine executability.
23017 cat >conf$$.file <<_ASEOF
23018 #! /bin/sh
23019 exit 0
23020 _ASEOF
23021 chmod +x conf$$.file
23022 if test -x conf$$.file >/dev/null 2>&1; then
23023   as_executable_p="test -x"
23024 else
23025   as_executable_p=:
23026 fi
23027 rm -f conf$$.file
23028
23029 # Sed expression to map a string onto a valid CPP name.
23030 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23031
23032 # Sed expression to map a string onto a valid variable name.
23033 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23034
23035
23036 exec 6>&1
23037
23038 # Save the log message, to keep $[0] and so on meaningful, and to
23039 # report actual input values of CONFIG_FILES etc. instead of their
23040 # values after options handling.
23041 ac_log="
23042 This file was extended by LLVM $as_me 3.4svn, which was
23043 generated by GNU Autoconf 2.60.  Invocation command line was
23044
23045   CONFIG_FILES    = $CONFIG_FILES
23046   CONFIG_HEADERS  = $CONFIG_HEADERS
23047   CONFIG_LINKS    = $CONFIG_LINKS
23048   CONFIG_COMMANDS = $CONFIG_COMMANDS
23049   $ $0 $@
23050
23051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23052 "
23053
23054 _ACEOF
23055
23056 cat >>$CONFIG_STATUS <<_ACEOF
23057 # Files that config.status was made for.
23058 config_files="$ac_config_files"
23059 config_headers="$ac_config_headers"
23060 config_commands="$ac_config_commands"
23061
23062 _ACEOF
23063
23064 cat >>$CONFIG_STATUS <<\_ACEOF
23065 ac_cs_usage="\
23066 \`$as_me' instantiates files from templates according to the
23067 current configuration.
23068
23069 Usage: $0 [OPTIONS] [FILE]...
23070
23071   -h, --help       print this help, then exit
23072   -V, --version    print version number, then exit
23073   -q, --quiet      do not print progress messages
23074   -d, --debug      don't remove temporary files
23075       --recheck    update $as_me by reconfiguring in the same conditions
23076   --file=FILE[:TEMPLATE]
23077                    instantiate the configuration file FILE
23078   --header=FILE[:TEMPLATE]
23079                    instantiate the configuration header FILE
23080
23081 Configuration files:
23082 $config_files
23083
23084 Configuration headers:
23085 $config_headers
23086
23087 Configuration commands:
23088 $config_commands
23089
23090 Report bugs to <bug-autoconf@gnu.org>."
23091
23092 _ACEOF
23093 cat >>$CONFIG_STATUS <<_ACEOF
23094 ac_cs_version="\\
23095 LLVM config.status 3.4svn
23096 configured by $0, generated by GNU Autoconf 2.60,
23097   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23098
23099 Copyright (C) 2006 Free Software Foundation, Inc.
23100 This config.status script is free software; the Free Software Foundation
23101 gives unlimited permission to copy, distribute and modify it."
23102
23103 ac_pwd='$ac_pwd'
23104 srcdir='$srcdir'
23105 INSTALL='$INSTALL'
23106 _ACEOF
23107
23108 cat >>$CONFIG_STATUS <<\_ACEOF
23109 # If no file are specified by the user, then we need to provide default
23110 # value.  By we need to know if files were specified by the user.
23111 ac_need_defaults=:
23112 while test $# != 0
23113 do
23114   case $1 in
23115   --*=*)
23116     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23117     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23118     ac_shift=:
23119     ;;
23120   *)
23121     ac_option=$1
23122     ac_optarg=$2
23123     ac_shift=shift
23124     ;;
23125   esac
23126
23127   case $ac_option in
23128   # Handling of the options.
23129   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23130     ac_cs_recheck=: ;;
23131   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23132     echo "$ac_cs_version"; exit ;;
23133   --debug | --debu | --deb | --de | --d | -d )
23134     debug=: ;;
23135   --file | --fil | --fi | --f )
23136     $ac_shift
23137     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23138     ac_need_defaults=false;;
23139   --header | --heade | --head | --hea )
23140     $ac_shift
23141     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23142     ac_need_defaults=false;;
23143   --he | --h)
23144     # Conflict between --help and --header
23145     { echo "$as_me: error: ambiguous option: $1
23146 Try \`$0 --help' for more information." >&2
23147    { (exit 1); exit 1; }; };;
23148   --help | --hel | -h )
23149     echo "$ac_cs_usage"; exit ;;
23150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23151   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23152     ac_cs_silent=: ;;
23153
23154   # This is an error.
23155   -*) { echo "$as_me: error: unrecognized option: $1
23156 Try \`$0 --help' for more information." >&2
23157    { (exit 1); exit 1; }; } ;;
23158
23159   *) ac_config_targets="$ac_config_targets $1"
23160      ac_need_defaults=false ;;
23161
23162   esac
23163   shift
23164 done
23165
23166 ac_configure_extra_args=
23167
23168 if $ac_cs_silent; then
23169   exec 6>/dev/null
23170   ac_configure_extra_args="$ac_configure_extra_args --silent"
23171 fi
23172
23173 _ACEOF
23174 cat >>$CONFIG_STATUS <<_ACEOF
23175 if \$ac_cs_recheck; then
23176   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23177   CONFIG_SHELL=$SHELL
23178   export CONFIG_SHELL
23179   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23180 fi
23181
23182 _ACEOF
23183 cat >>$CONFIG_STATUS <<\_ACEOF
23184 exec 5>>config.log
23185 {
23186   echo
23187   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23188 ## Running $as_me. ##
23189 _ASBOX
23190   echo "$ac_log"
23191 } >&5
23192
23193 _ACEOF
23194 cat >>$CONFIG_STATUS <<_ACEOF
23195 #
23196 # INIT-COMMANDS
23197 #
23198 llvm_src="${srcdir}"
23199
23200 _ACEOF
23201
23202 cat >>$CONFIG_STATUS <<\_ACEOF
23203
23204 # Handling of arguments.
23205 for ac_config_target in $ac_config_targets
23206 do
23207   case $ac_config_target in
23208     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23209     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23210     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23211     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23212     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23213     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23214     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23215     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23216     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23217     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23218     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23219     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23220     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23221     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23222     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23223     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23224     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23225     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23226     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23227     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23228     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23229     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23230     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23231     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23232     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23233     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23234     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23235
23236   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23237 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23238    { (exit 1); exit 1; }; };;
23239   esac
23240 done
23241
23242
23243 # If the user did not use the arguments to specify the items to instantiate,
23244 # then the envvar interface is used.  Set only those that are not.
23245 # We use the long form for the default assignment because of an extremely
23246 # bizarre bug on SunOS 4.1.3.
23247 if $ac_need_defaults; then
23248   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23249   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23250   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23251 fi
23252
23253 # Have a temporary directory for convenience.  Make it in the build tree
23254 # simply because there is no reason against having it here, and in addition,
23255 # creating and moving files from /tmp can sometimes cause problems.
23256 # Hook for its removal unless debugging.
23257 # Note that there is a small window in which the directory will not be cleaned:
23258 # after its creation but before its name has been assigned to `$tmp'.
23259 $debug ||
23260 {
23261   tmp=
23262   trap 'exit_status=$?
23263   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23264 ' 0
23265   trap '{ (exit 1); exit 1; }' 1 2 13 15
23266 }
23267 # Create a (secure) tmp directory for tmp files.
23268
23269 {
23270   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23271   test -n "$tmp" && test -d "$tmp"
23272 }  ||
23273 {
23274   tmp=./conf$$-$RANDOM
23275   (umask 077 && mkdir "$tmp")
23276 } ||
23277 {
23278    echo "$me: cannot create a temporary directory in ." >&2
23279    { (exit 1); exit 1; }
23280 }
23281
23282 #
23283 # Set up the sed scripts for CONFIG_FILES section.
23284 #
23285
23286 # No need to generate the scripts if there are no CONFIG_FILES.
23287 # This happens for instance when ./config.status config.h
23288 if test -n "$CONFIG_FILES"; then
23289
23290 _ACEOF
23291
23292
23293
23294 ac_delim='%!_!# '
23295 for ac_last_try in false false false false false :; do
23296   cat >conf$$subs.sed <<_ACEOF
23297 SHELL!$SHELL$ac_delim
23298 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23299 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23300 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23301 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23302 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23303 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23304 exec_prefix!$exec_prefix$ac_delim
23305 prefix!$prefix$ac_delim
23306 program_transform_name!$program_transform_name$ac_delim
23307 bindir!$bindir$ac_delim
23308 sbindir!$sbindir$ac_delim
23309 libexecdir!$libexecdir$ac_delim
23310 datarootdir!$datarootdir$ac_delim
23311 datadir!$datadir$ac_delim
23312 sysconfdir!$sysconfdir$ac_delim
23313 sharedstatedir!$sharedstatedir$ac_delim
23314 localstatedir!$localstatedir$ac_delim
23315 includedir!$includedir$ac_delim
23316 oldincludedir!$oldincludedir$ac_delim
23317 docdir!$docdir$ac_delim
23318 infodir!$infodir$ac_delim
23319 htmldir!$htmldir$ac_delim
23320 dvidir!$dvidir$ac_delim
23321 pdfdir!$pdfdir$ac_delim
23322 psdir!$psdir$ac_delim
23323 libdir!$libdir$ac_delim
23324 localedir!$localedir$ac_delim
23325 mandir!$mandir$ac_delim
23326 DEFS!$DEFS$ac_delim
23327 ECHO_C!$ECHO_C$ac_delim
23328 ECHO_N!$ECHO_N$ac_delim
23329 ECHO_T!$ECHO_T$ac_delim
23330 LIBS!$LIBS$ac_delim
23331 build_alias!$build_alias$ac_delim
23332 host_alias!$host_alias$ac_delim
23333 target_alias!$target_alias$ac_delim
23334 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23335 CC!$CC$ac_delim
23336 CFLAGS!$CFLAGS$ac_delim
23337 LDFLAGS!$LDFLAGS$ac_delim
23338 CPPFLAGS!$CPPFLAGS$ac_delim
23339 ac_ct_CC!$ac_ct_CC$ac_delim
23340 EXEEXT!$EXEEXT$ac_delim
23341 OBJEXT!$OBJEXT$ac_delim
23342 CXX!$CXX$ac_delim
23343 CXXFLAGS!$CXXFLAGS$ac_delim
23344 ac_ct_CXX!$ac_ct_CXX$ac_delim
23345 CPP!$CPP$ac_delim
23346 subdirs!$subdirs$ac_delim
23347 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23348 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23349 build!$build$ac_delim
23350 build_cpu!$build_cpu$ac_delim
23351 build_vendor!$build_vendor$ac_delim
23352 build_os!$build_os$ac_delim
23353 host!$host$ac_delim
23354 host_cpu!$host_cpu$ac_delim
23355 host_vendor!$host_vendor$ac_delim
23356 host_os!$host_os$ac_delim
23357 target!$target$ac_delim
23358 target_cpu!$target_cpu$ac_delim
23359 target_vendor!$target_vendor$ac_delim
23360 target_os!$target_os$ac_delim
23361 OS!$OS$ac_delim
23362 HOST_OS!$HOST_OS$ac_delim
23363 TARGET_OS!$TARGET_OS$ac_delim
23364 LINKALL!$LINKALL$ac_delim
23365 NOLINKALL!$NOLINKALL$ac_delim
23366 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23367 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23368 ARCH!$ARCH$ac_delim
23369 HOST_ARCH!$HOST_ARCH$ac_delim
23370 ENDIAN!$ENDIAN$ac_delim
23371 GREP!$GREP$ac_delim
23372 EGREP!$EGREP$ac_delim
23373 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23374 BUILD_CC!$BUILD_CC$ac_delim
23375 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23376 BUILD_CXX!$BUILD_CXX$ac_delim
23377 CVSBUILD!$CVSBUILD$ac_delim
23378 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23379 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23380 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23381 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23382 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23383 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23384 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23385 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23386 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23387 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23388 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23389 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23390 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23391 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23392 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23393 JIT!$JIT$ac_delim
23394 _ACEOF
23395
23396   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23397     break
23398   elif $ac_last_try; then
23399     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23400 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23401    { (exit 1); exit 1; }; }
23402   else
23403     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23404   fi
23405 done
23406
23407 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23408 if test -n "$ac_eof"; then
23409   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23410   ac_eof=`expr $ac_eof + 1`
23411 fi
23412
23413 cat >>$CONFIG_STATUS <<_ACEOF
23414 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23416 _ACEOF
23417 sed '
23418 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23419 s/^/s,@/; s/!/@,|#_!!_#|/
23420 :n
23421 t n
23422 s/'"$ac_delim"'$/,g/; t
23423 s/$/\\/; p
23424 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23425 ' >>$CONFIG_STATUS <conf$$subs.sed
23426 rm -f conf$$subs.sed
23427 cat >>$CONFIG_STATUS <<_ACEOF
23428 CEOF$ac_eof
23429 _ACEOF
23430
23431
23432 ac_delim='%!_!# '
23433 for ac_last_try in false false false false false :; do
23434   cat >conf$$subs.sed <<_ACEOF
23435 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23436 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23437 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23438 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23439 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23440 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23441 ENABLE_PIC!$ENABLE_PIC$ac_delim
23442 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23443 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23444 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23445 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23446 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23447 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23448 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23449 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23450 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23451 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23452 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23453 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23454 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23455 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23456 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23457 NM!$NM$ac_delim
23458 ifGNUmake!$ifGNUmake$ac_delim
23459 LN_S!$LN_S$ac_delim
23460 CMP!$CMP$ac_delim
23461 CP!$CP$ac_delim
23462 DATE!$DATE$ac_delim
23463 FIND!$FIND$ac_delim
23464 MKDIR!$MKDIR$ac_delim
23465 MV!$MV$ac_delim
23466 RANLIB!$RANLIB$ac_delim
23467 AR!$AR$ac_delim
23468 RM!$RM$ac_delim
23469 SED!$SED$ac_delim
23470 TAR!$TAR$ac_delim
23471 BINPWD!$BINPWD$ac_delim
23472 GRAPHVIZ!$GRAPHVIZ$ac_delim
23473 DOT!$DOT$ac_delim
23474 FDP!$FDP$ac_delim
23475 NEATO!$NEATO$ac_delim
23476 TWOPI!$TWOPI$ac_delim
23477 CIRCO!$CIRCO$ac_delim
23478 GV!$GV$ac_delim
23479 DOTTY!$DOTTY$ac_delim
23480 XDOT_PY!$XDOT_PY$ac_delim
23481 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23482 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23483 INSTALL_DATA!$INSTALL_DATA$ac_delim
23484 BZIP2!$BZIP2$ac_delim
23485 CAT!$CAT$ac_delim
23486 DOXYGEN!$DOXYGEN$ac_delim
23487 GROFF!$GROFF$ac_delim
23488 GZIPBIN!$GZIPBIN$ac_delim
23489 PDFROFF!$PDFROFF$ac_delim
23490 ZIP!$ZIP$ac_delim
23491 OCAMLC!$OCAMLC$ac_delim
23492 OCAMLOPT!$OCAMLOPT$ac_delim
23493 OCAMLDEP!$OCAMLDEP$ac_delim
23494 OCAMLDOC!$OCAMLDOC$ac_delim
23495 GAS!$GAS$ac_delim
23496 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23497 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23498 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23499 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23500 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23501 LIBADD_DL!$LIBADD_DL$ac_delim
23502 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23503 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23504 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23505 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23506 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23507 PYTHON!$PYTHON$ac_delim
23508 USE_UDIS86!$USE_UDIS86$ac_delim
23509 USE_OPROFILE!$USE_OPROFILE$ac_delim
23510 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23511 XML2CONFIG!$XML2CONFIG$ac_delim
23512 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23513 LIBXML2_INC!$LIBXML2_INC$ac_delim
23514 CXXCPP!$CXXCPP$ac_delim
23515 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23516 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23517 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23518 MMAP_FILE!$MMAP_FILE$ac_delim
23519 SHLIBEXT!$SHLIBEXT$ac_delim
23520 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23521 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23522 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23523 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23524 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23525 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23526 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23527 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23528 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23529 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23530 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23531 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23532 _ACEOF
23533
23534   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23535     break
23536   elif $ac_last_try; then
23537     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23538 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23539    { (exit 1); exit 1; }; }
23540   else
23541     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23542   fi
23543 done
23544
23545 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23546 if test -n "$ac_eof"; then
23547   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23548   ac_eof=`expr $ac_eof + 1`
23549 fi
23550
23551 cat >>$CONFIG_STATUS <<_ACEOF
23552 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23554 _ACEOF
23555 sed '
23556 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23557 s/^/s,@/; s/!/@,|#_!!_#|/
23558 :n
23559 t n
23560 s/'"$ac_delim"'$/,g/; t
23561 s/$/\\/; p
23562 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23563 ' >>$CONFIG_STATUS <conf$$subs.sed
23564 rm -f conf$$subs.sed
23565 cat >>$CONFIG_STATUS <<_ACEOF
23566 CEOF$ac_eof
23567 _ACEOF
23568
23569
23570 ac_delim='%!_!# '
23571 for ac_last_try in false false false false false :; do
23572   cat >conf$$subs.sed <<_ACEOF
23573 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23574 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23575 RPATH!$RPATH$ac_delim
23576 RDYNAMIC!$RDYNAMIC$ac_delim
23577 program_prefix!$program_prefix$ac_delim
23578 LIBOBJS!$LIBOBJS$ac_delim
23579 LTLIBOBJS!$LTLIBOBJS$ac_delim
23580 _ACEOF
23581
23582   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23583     break
23584   elif $ac_last_try; then
23585     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23587    { (exit 1); exit 1; }; }
23588   else
23589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23590   fi
23591 done
23592
23593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23594 if test -n "$ac_eof"; then
23595   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23596   ac_eof=`expr $ac_eof + 1`
23597 fi
23598
23599 cat >>$CONFIG_STATUS <<_ACEOF
23600 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23602 _ACEOF
23603 sed '
23604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23605 s/^/s,@/; s/!/@,|#_!!_#|/
23606 :n
23607 t n
23608 s/'"$ac_delim"'$/,g/; t
23609 s/$/\\/; p
23610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23611 ' >>$CONFIG_STATUS <conf$$subs.sed
23612 rm -f conf$$subs.sed
23613 cat >>$CONFIG_STATUS <<_ACEOF
23614 :end
23615 s/|#_!!_#|//g
23616 CEOF$ac_eof
23617 _ACEOF
23618
23619
23620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23622 # trailing colons and then remove the whole line if VPATH becomes empty
23623 # (actually we leave an empty line to preserve line numbers).
23624 if test "x$srcdir" = x.; then
23625   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23626 s/:*\$(srcdir):*/:/
23627 s/:*\${srcdir}:*/:/
23628 s/:*@srcdir@:*/:/
23629 s/^\([^=]*=[     ]*\):*/\1/
23630 s/:*$//
23631 s/^[^=]*=[       ]*$//
23632 }'
23633 fi
23634
23635 cat >>$CONFIG_STATUS <<\_ACEOF
23636 fi # test -n "$CONFIG_FILES"
23637
23638
23639 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23640 do
23641   case $ac_tag in
23642   :[FHLC]) ac_mode=$ac_tag; continue;;
23643   esac
23644   case $ac_mode$ac_tag in
23645   :[FHL]*:*);;
23646   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23647 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23648    { (exit 1); exit 1; }; };;
23649   :[FH]-) ac_tag=-:-;;
23650   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23651   esac
23652   ac_save_IFS=$IFS
23653   IFS=:
23654   set x $ac_tag
23655   IFS=$ac_save_IFS
23656   shift
23657   ac_file=$1
23658   shift
23659
23660   case $ac_mode in
23661   :L) ac_source=$1;;
23662   :[FH])
23663     ac_file_inputs=
23664     for ac_f
23665     do
23666       case $ac_f in
23667       -) ac_f="$tmp/stdin";;
23668       *) # Look for the file first in the build tree, then in the source tree
23669          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23670          # because $ac_f cannot contain `:'.
23671          test -f "$ac_f" ||
23672            case $ac_f in
23673            [\\/$]*) false;;
23674            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23675            esac ||
23676            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23677 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23678    { (exit 1); exit 1; }; };;
23679       esac
23680       ac_file_inputs="$ac_file_inputs $ac_f"
23681     done
23682
23683     # Let's still pretend it is `configure' which instantiates (i.e., don't
23684     # use $as_me), people would be surprised to read:
23685     #    /* config.h.  Generated by config.status.  */
23686     configure_input="Generated from "`IFS=:
23687           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23688     if test x"$ac_file" != x-; then
23689       configure_input="$ac_file.  $configure_input"
23690       { echo "$as_me:$LINENO: creating $ac_file" >&5
23691 echo "$as_me: creating $ac_file" >&6;}
23692     fi
23693
23694     case $ac_tag in
23695     *:-:* | *:-) cat >"$tmp/stdin";;
23696     esac
23697     ;;
23698   esac
23699
23700   ac_dir=`$as_dirname -- "$ac_file" ||
23701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23702          X"$ac_file" : 'X\(//\)[^/]' \| \
23703          X"$ac_file" : 'X\(//\)$' \| \
23704          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23705 echo X"$ac_file" |
23706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23707             s//\1/
23708             q
23709           }
23710           /^X\(\/\/\)[^/].*/{
23711             s//\1/
23712             q
23713           }
23714           /^X\(\/\/\)$/{
23715             s//\1/
23716             q
23717           }
23718           /^X\(\/\).*/{
23719             s//\1/
23720             q
23721           }
23722           s/.*/./; q'`
23723   { as_dir="$ac_dir"
23724   case $as_dir in #(
23725   -*) as_dir=./$as_dir;;
23726   esac
23727   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23728     as_dirs=
23729     while :; do
23730       case $as_dir in #(
23731       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23732       *) as_qdir=$as_dir;;
23733       esac
23734       as_dirs="'$as_qdir' $as_dirs"
23735       as_dir=`$as_dirname -- "$as_dir" ||
23736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23737          X"$as_dir" : 'X\(//\)[^/]' \| \
23738          X"$as_dir" : 'X\(//\)$' \| \
23739          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23740 echo X"$as_dir" |
23741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23742             s//\1/
23743             q
23744           }
23745           /^X\(\/\/\)[^/].*/{
23746             s//\1/
23747             q
23748           }
23749           /^X\(\/\/\)$/{
23750             s//\1/
23751             q
23752           }
23753           /^X\(\/\).*/{
23754             s//\1/
23755             q
23756           }
23757           s/.*/./; q'`
23758       test -d "$as_dir" && break
23759     done
23760     test -z "$as_dirs" || eval "mkdir $as_dirs"
23761   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23762 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23763    { (exit 1); exit 1; }; }; }
23764   ac_builddir=.
23765
23766 case "$ac_dir" in
23767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23768 *)
23769   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23770   # A ".." for each directory in $ac_dir_suffix.
23771   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23772   case $ac_top_builddir_sub in
23773   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23774   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23775   esac ;;
23776 esac
23777 ac_abs_top_builddir=$ac_pwd
23778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23779 # for backward compatibility:
23780 ac_top_builddir=$ac_top_build_prefix
23781
23782 case $srcdir in
23783   .)  # We are building in place.
23784     ac_srcdir=.
23785     ac_top_srcdir=$ac_top_builddir_sub
23786     ac_abs_top_srcdir=$ac_pwd ;;
23787   [\\/]* | ?:[\\/]* )  # Absolute name.
23788     ac_srcdir=$srcdir$ac_dir_suffix;
23789     ac_top_srcdir=$srcdir
23790     ac_abs_top_srcdir=$srcdir ;;
23791   *) # Relative name.
23792     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23793     ac_top_srcdir=$ac_top_build_prefix$srcdir
23794     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23795 esac
23796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23797
23798
23799   case $ac_mode in
23800   :F)
23801   #
23802   # CONFIG_FILE
23803   #
23804
23805   case $INSTALL in
23806   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23807   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23808   esac
23809 _ACEOF
23810
23811 cat >>$CONFIG_STATUS <<\_ACEOF
23812 # If the template does not know about datarootdir, expand it.
23813 # FIXME: This hack should be removed a few years after 2.60.
23814 ac_datarootdir_hack=; ac_datarootdir_seen=
23815
23816 case `sed -n '/datarootdir/ {
23817   p
23818   q
23819 }
23820 /@datadir@/p
23821 /@docdir@/p
23822 /@infodir@/p
23823 /@localedir@/p
23824 /@mandir@/p
23825 ' $ac_file_inputs` in
23826 *datarootdir*) ac_datarootdir_seen=yes;;
23827 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23828   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23829 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23830 _ACEOF
23831 cat >>$CONFIG_STATUS <<_ACEOF
23832   ac_datarootdir_hack='
23833   s&@datadir@&$datadir&g
23834   s&@docdir@&$docdir&g
23835   s&@infodir@&$infodir&g
23836   s&@localedir@&$localedir&g
23837   s&@mandir@&$mandir&g
23838     s&\\\${datarootdir}&$datarootdir&g' ;;
23839 esac
23840 _ACEOF
23841
23842 # Neutralize VPATH when `$srcdir' = `.'.
23843 # Shell code in configure.ac might set extrasub.
23844 # FIXME: do we really want to maintain this feature?
23845 cat >>$CONFIG_STATUS <<_ACEOF
23846   sed "$ac_vpsub
23847 $extrasub
23848 _ACEOF
23849 cat >>$CONFIG_STATUS <<\_ACEOF
23850 :t
23851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23852 s&@configure_input@&$configure_input&;t t
23853 s&@top_builddir@&$ac_top_builddir_sub&;t t
23854 s&@srcdir@&$ac_srcdir&;t t
23855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23856 s&@top_srcdir@&$ac_top_srcdir&;t t
23857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23858 s&@builddir@&$ac_builddir&;t t
23859 s&@abs_builddir@&$ac_abs_builddir&;t t
23860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23861 s&@INSTALL@&$ac_INSTALL&;t t
23862 $ac_datarootdir_hack
23863 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23864
23865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23866   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23867   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23868   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23869 which seems to be undefined.  Please make sure it is defined." >&5
23870 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23871 which seems to be undefined.  Please make sure it is defined." >&2;}
23872
23873   rm -f "$tmp/stdin"
23874   case $ac_file in
23875   -) cat "$tmp/out"; rm -f "$tmp/out";;
23876   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23877   esac
23878  ;;
23879   :H)
23880   #
23881   # CONFIG_HEADER
23882   #
23883 _ACEOF
23884
23885 # Transform confdefs.h into a sed script `conftest.defines', that
23886 # substitutes the proper values into config.h.in to produce config.h.
23887 rm -f conftest.defines conftest.tail
23888 # First, append a space to every undef/define line, to ease matching.
23889 echo 's/$/ /' >conftest.defines
23890 # Then, protect against being on the right side of a sed subst, or in
23891 # an unquoted here document, in config.status.  If some macros were
23892 # called several times there might be several #defines for the same
23893 # symbol, which is useless.  But do not sort them, since the last
23894 # AC_DEFINE must be honored.
23895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23896 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23897 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23898 # PARAMS is the parameter list in the macro definition--in most cases, it's
23899 # just an empty string.
23900 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23901 ac_dB='\\)[      (].*,\\1define\\2'
23902 ac_dC=' '
23903 ac_dD=' ,'
23904
23905 uniq confdefs.h |
23906   sed -n '
23907         t rset
23908         :rset
23909         s/^[     ]*#[    ]*define[       ][      ]*//
23910         t ok
23911         d
23912         :ok
23913         s/[\\&,]/\\&/g
23914         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23915         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23916   ' >>conftest.defines
23917
23918 # Remove the space that was appended to ease matching.
23919 # Then replace #undef with comments.  This is necessary, for
23920 # example, in the case of _POSIX_SOURCE, which is predefined and required
23921 # on some systems where configure will not decide to define it.
23922 # (The regexp can be short, since the line contains either #define or #undef.)
23923 echo 's/ $//
23924 s,^[     #]*u.*,/* & */,' >>conftest.defines
23925
23926 # Break up conftest.defines:
23927 ac_max_sed_lines=50
23928
23929 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23930 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23931 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23932 # et cetera.
23933 ac_in='$ac_file_inputs'
23934 ac_out='"$tmp/out1"'
23935 ac_nxt='"$tmp/out2"'
23936
23937 while :
23938 do
23939   # Write a here document:
23940     cat >>$CONFIG_STATUS <<_ACEOF
23941     # First, check the format of the line:
23942     cat >"\$tmp/defines.sed" <<\\CEOF
23943 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23944 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23945 b
23946 :def
23947 _ACEOF
23948   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23949   echo 'CEOF
23950     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23951   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23952   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23953   grep . conftest.tail >/dev/null || break
23954   rm -f conftest.defines
23955   mv conftest.tail conftest.defines
23956 done
23957 rm -f conftest.defines conftest.tail
23958
23959 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23960 cat >>$CONFIG_STATUS <<\_ACEOF
23961   if test x"$ac_file" != x-; then
23962     echo "/* $configure_input  */" >"$tmp/config.h"
23963     cat "$ac_result" >>"$tmp/config.h"
23964     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23965       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23966 echo "$as_me: $ac_file is unchanged" >&6;}
23967     else
23968       rm -f $ac_file
23969       mv "$tmp/config.h" $ac_file
23970     fi
23971   else
23972     echo "/* $configure_input  */"
23973     cat "$ac_result"
23974   fi
23975   rm -f "$tmp/out12"
23976  ;;
23977
23978   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23979 echo "$as_me: executing $ac_file commands" >&6;}
23980  ;;
23981   esac
23982
23983
23984   case $ac_file$ac_mode in
23985     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23986    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23987     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23988    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23989     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23990    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23991     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23992    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23993     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23994    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23995     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23996    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23997     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23998    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23999     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24000    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24001     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24002    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24003     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24004    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24005     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24006    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24007     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24008    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24009     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24010    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24011
24012   esac
24013 done # for ac_tag
24014
24015
24016 { (exit 0); exit 0; }
24017 _ACEOF
24018 chmod +x $CONFIG_STATUS
24019 ac_clean_files=$ac_clean_files_save
24020
24021
24022 # configure is writing to config.log, and then calls config.status.
24023 # config.status does its own redirection, appending to config.log.
24024 # Unfortunately, on DOS this fails, as config.log is still kept open
24025 # by configure, so config.status won't be able to write to it; its
24026 # output is simply discarded.  So we exec the FD to /dev/null,
24027 # effectively closing config.log, so it can be properly (re)opened and
24028 # appended to by config.status.  When coming back to configure, we
24029 # need to make the FD available again.
24030 if test "$no_create" != yes; then
24031   ac_cs_success=:
24032   ac_config_status_args=
24033   test "$silent" = yes &&
24034     ac_config_status_args="$ac_config_status_args --quiet"
24035   exec 5>/dev/null
24036   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24037   exec 5>>config.log
24038   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24039   # would make configure fail if this is the last instruction.
24040   $ac_cs_success || { (exit 1); exit 1; }
24041 fi
24042
24043 #
24044 # CONFIG_SUBDIRS section.
24045 #
24046 if test "$no_recursion" != yes; then
24047
24048   # Remove --cache-file and --srcdir arguments so they do not pile up.
24049   ac_sub_configure_args=
24050   ac_prev=
24051   eval "set x $ac_configure_args"
24052   shift
24053   for ac_arg
24054   do
24055     if test -n "$ac_prev"; then
24056       ac_prev=
24057       continue
24058     fi
24059     case $ac_arg in
24060     -cache-file | --cache-file | --cache-fil | --cache-fi \
24061     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24062       ac_prev=cache_file ;;
24063     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24064     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24065     | --c=*)
24066       ;;
24067     --config-cache | -C)
24068       ;;
24069     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24070       ac_prev=srcdir ;;
24071     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24072       ;;
24073     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24074       ac_prev=prefix ;;
24075     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24076       ;;
24077     *)
24078       case $ac_arg in
24079       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24080       esac
24081       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24082     esac
24083   done
24084
24085   # Always prepend --prefix to ensure using the same prefix
24086   # in subdir configurations.
24087   ac_arg="--prefix=$prefix"
24088   case $ac_arg in
24089   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24090   esac
24091   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24092
24093   ac_popdir=`pwd`
24094   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24095
24096     # Do not complain, so a configure script can configure whichever
24097     # parts of a large source tree are present.
24098     test -d "$srcdir/$ac_dir" || continue
24099
24100     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24101     echo "$as_me:$LINENO: $ac_msg" >&5
24102     echo "$ac_msg" >&6
24103     { as_dir="$ac_dir"
24104   case $as_dir in #(
24105   -*) as_dir=./$as_dir;;
24106   esac
24107   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24108     as_dirs=
24109     while :; do
24110       case $as_dir in #(
24111       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24112       *) as_qdir=$as_dir;;
24113       esac
24114       as_dirs="'$as_qdir' $as_dirs"
24115       as_dir=`$as_dirname -- "$as_dir" ||
24116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24117          X"$as_dir" : 'X\(//\)[^/]' \| \
24118          X"$as_dir" : 'X\(//\)$' \| \
24119          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24120 echo X"$as_dir" |
24121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24122             s//\1/
24123             q
24124           }
24125           /^X\(\/\/\)[^/].*/{
24126             s//\1/
24127             q
24128           }
24129           /^X\(\/\/\)$/{
24130             s//\1/
24131             q
24132           }
24133           /^X\(\/\).*/{
24134             s//\1/
24135             q
24136           }
24137           s/.*/./; q'`
24138       test -d "$as_dir" && break
24139     done
24140     test -z "$as_dirs" || eval "mkdir $as_dirs"
24141   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24142 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24143    { (exit 1); exit 1; }; }; }
24144     ac_builddir=.
24145
24146 case "$ac_dir" in
24147 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24148 *)
24149   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24150   # A ".." for each directory in $ac_dir_suffix.
24151   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24152   case $ac_top_builddir_sub in
24153   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24154   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24155   esac ;;
24156 esac
24157 ac_abs_top_builddir=$ac_pwd
24158 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24159 # for backward compatibility:
24160 ac_top_builddir=$ac_top_build_prefix
24161
24162 case $srcdir in
24163   .)  # We are building in place.
24164     ac_srcdir=.
24165     ac_top_srcdir=$ac_top_builddir_sub
24166     ac_abs_top_srcdir=$ac_pwd ;;
24167   [\\/]* | ?:[\\/]* )  # Absolute name.
24168     ac_srcdir=$srcdir$ac_dir_suffix;
24169     ac_top_srcdir=$srcdir
24170     ac_abs_top_srcdir=$srcdir ;;
24171   *) # Relative name.
24172     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24173     ac_top_srcdir=$ac_top_build_prefix$srcdir
24174     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24175 esac
24176 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24177
24178
24179     cd "$ac_dir"
24180
24181     # Check for guested configure; otherwise get Cygnus style configure.
24182     if test -f "$ac_srcdir/configure.gnu"; then
24183       ac_sub_configure=$ac_srcdir/configure.gnu
24184     elif test -f "$ac_srcdir/configure"; then
24185       ac_sub_configure=$ac_srcdir/configure
24186     elif test -f "$ac_srcdir/configure.in"; then
24187       # This should be Cygnus configure.
24188       ac_sub_configure=$ac_aux_dir/configure
24189     else
24190       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24192       ac_sub_configure=
24193     fi
24194
24195     # The recursion is here.
24196     if test -n "$ac_sub_configure"; then
24197       # Make the cache file name correct relative to the subdirectory.
24198       case $cache_file in
24199       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24200       *) # Relative name.
24201         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24202       esac
24203
24204       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24205 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24206       # The eval makes quoting arguments work.
24207       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24208            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24209         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24210 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24211    { (exit 1); exit 1; }; }
24212     fi
24213
24214     cd "$ac_popdir"
24215   done
24216 fi
24217