Recognize aarch64 for --enable-targets as advertised.
[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.3svn.
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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 ENABLE_PIC
707 ENABLE_SHARED
708 ENABLE_EMBED_STDCXX
709 ENABLE_TIMESTAMPS
710 ENABLE_BACKTRACES
711 TARGETS_TO_BUILD
712 LLVM_ENUM_TARGETS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
716 OPTIMIZE_OPTION
717 EXTRA_OPTIONS
718 EXTRA_LD_OPTIONS
719 CLANG_SRC_ROOT
720 BINUTILS_INCDIR
721 INTERNAL_PREFIX
722 NM
723 ifGNUmake
724 LN_S
725 CMP
726 CP
727 DATE
728 FIND
729 MKDIR
730 MV
731 RANLIB
732 AR
733 RM
734 SED
735 TAR
736 BINPWD
737 GRAPHVIZ
738 DOT
739 FDP
740 NEATO
741 TWOPI
742 CIRCO
743 GV
744 DOTTY
745 XDOT_PY
746 INSTALL_PROGRAM
747 INSTALL_SCRIPT
748 INSTALL_DATA
749 BZIP2
750 CAT
751 DOXYGEN
752 GROFF
753 GZIPBIN
754 PDFROFF
755 ZIP
756 OCAMLC
757 OCAMLOPT
758 OCAMLDEP
759 OCAMLDOC
760 GAS
761 HAVE_LINK_VERSION_SCRIPT
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 NO_NESTED_ANON_TYPES
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 HAVE_PTHREAD
781 HUGE_VAL_SANITY
782 MMAP_FILE
783 SHLIBEXT
784 SHLIBPATH_VAR
785 LLVM_PREFIX
786 LLVM_BINDIR
787 LLVM_LIBDIR
788 LLVM_DATADIR
789 LLVM_DOCSDIR
790 LLVM_ETCDIR
791 LLVM_INCLUDEDIR
792 LLVM_INFODIR
793 LLVM_MANDIR
794 LLVM_CONFIGTIME
795 BINDINGS_TO_BUILD
796 ALL_BINDINGS
797 OCAML_LIBDIR
798 ENABLE_VISIBILITY_INLINES_HIDDEN
799 RPATH
800 RDYNAMIC
801 program_prefix
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805       ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 CXX
813 CXXFLAGS
814 CCC
815 CPP'
816 ac_subdirs_all='projects/llvm-gcc
817 projects/test-suite
818 projects/llvm-test
819 projects/poolalloc
820 projects/llvm-poolalloc
821 projects/sample
822 projects/privbracket
823 projects/llvm-stacker
824 projects/llvm-reopt
825 projects/llvm-java
826 projects/llvm-tv
827 projects/safecode
828 projects/llvm-kernel
829 tools/polly'
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
836 cache_file=/dev/null
837 exec_prefix=NONE
838 no_create=
839 no_recursion=
840 prefix=NONE
841 program_prefix=NONE
842 program_suffix=NONE
843 program_transform_name=s,x,x,
844 silent=
845 site=
846 srcdir=
847 verbose=
848 x_includes=NONE
849 x_libraries=NONE
850
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
876
877 ac_prev=
878 ac_dashdash=
879 for ac_option
880 do
881   # If the previous option needs an argument, assign it.
882   if test -n "$ac_prev"; then
883     eval $ac_prev=\$ac_option
884     ac_prev=
885     continue
886   fi
887
888   case $ac_option in
889   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890   *)    ac_optarg=yes ;;
891   esac
892
893   # Accept the important Cygnus configure options, so we can diagnose typos.
894
895   case $ac_dashdash$ac_option in
896   --)
897     ac_dashdash=yes ;;
898
899   -bindir | --bindir | --bindi | --bind | --bin | --bi)
900     ac_prev=bindir ;;
901   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902     bindir=$ac_optarg ;;
903
904   -build | --build | --buil | --bui | --bu)
905     ac_prev=build_alias ;;
906   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907     build_alias=$ac_optarg ;;
908
909   -cache-file | --cache-file | --cache-fil | --cache-fi \
910   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911     ac_prev=cache_file ;;
912   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914     cache_file=$ac_optarg ;;
915
916   --config-cache | -C)
917     cache_file=config.cache ;;
918
919   -datadir | --datadir | --datadi | --datad)
920     ac_prev=datadir ;;
921   -datadir=* | --datadir=* | --datadi=* | --datad=*)
922     datadir=$ac_optarg ;;
923
924   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925   | --dataroo | --dataro | --datar)
926     ac_prev=datarootdir ;;
927   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929     datarootdir=$ac_optarg ;;
930
931   -disable-* | --disable-*)
932     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933     # Reject names that are not valid shell variable names.
934     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936    { (exit 1); exit 1; }; }
937     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938     eval enable_$ac_feature=no ;;
939
940   -docdir | --docdir | --docdi | --doc | --do)
941     ac_prev=docdir ;;
942   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943     docdir=$ac_optarg ;;
944
945   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946     ac_prev=dvidir ;;
947   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948     dvidir=$ac_optarg ;;
949
950   -enable-* | --enable-*)
951     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955    { (exit 1); exit 1; }; }
956     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957     eval enable_$ac_feature=\$ac_optarg ;;
958
959   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961   | --exec | --exe | --ex)
962     ac_prev=exec_prefix ;;
963   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965   | --exec=* | --exe=* | --ex=*)
966     exec_prefix=$ac_optarg ;;
967
968   -gas | --gas | --ga | --g)
969     # Obsolete; use --with-gas.
970     with_gas=yes ;;
971
972   -help | --help | --hel | --he | -h)
973     ac_init_help=long ;;
974   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975     ac_init_help=recursive ;;
976   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977     ac_init_help=short ;;
978
979   -host | --host | --hos | --ho)
980     ac_prev=host_alias ;;
981   -host=* | --host=* | --hos=* | --ho=*)
982     host_alias=$ac_optarg ;;
983
984   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985     ac_prev=htmldir ;;
986   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987   | --ht=*)
988     htmldir=$ac_optarg ;;
989
990   -includedir | --includedir | --includedi | --included | --include \
991   | --includ | --inclu | --incl | --inc)
992     ac_prev=includedir ;;
993   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994   | --includ=* | --inclu=* | --incl=* | --inc=*)
995     includedir=$ac_optarg ;;
996
997   -infodir | --infodir | --infodi | --infod | --info | --inf)
998     ac_prev=infodir ;;
999   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000     infodir=$ac_optarg ;;
1001
1002   -libdir | --libdir | --libdi | --libd)
1003     ac_prev=libdir ;;
1004   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005     libdir=$ac_optarg ;;
1006
1007   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008   | --libexe | --libex | --libe)
1009     ac_prev=libexecdir ;;
1010   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011   | --libexe=* | --libex=* | --libe=*)
1012     libexecdir=$ac_optarg ;;
1013
1014   -localedir | --localedir | --localedi | --localed | --locale)
1015     ac_prev=localedir ;;
1016   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017     localedir=$ac_optarg ;;
1018
1019   -localstatedir | --localstatedir | --localstatedi | --localstated \
1020   | --localstate | --localstat | --localsta | --localst | --locals)
1021     ac_prev=localstatedir ;;
1022   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024     localstatedir=$ac_optarg ;;
1025
1026   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027     ac_prev=mandir ;;
1028   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029     mandir=$ac_optarg ;;
1030
1031   -nfp | --nfp | --nf)
1032     # Obsolete; use --without-fp.
1033     with_fp=no ;;
1034
1035   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036   | --no-cr | --no-c | -n)
1037     no_create=yes ;;
1038
1039   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041     no_recursion=yes ;;
1042
1043   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045   | --oldin | --oldi | --old | --ol | --o)
1046     ac_prev=oldincludedir ;;
1047   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050     oldincludedir=$ac_optarg ;;
1051
1052   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053     ac_prev=prefix ;;
1054   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055     prefix=$ac_optarg ;;
1056
1057   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058   | --program-pre | --program-pr | --program-p)
1059     ac_prev=program_prefix ;;
1060   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062     program_prefix=$ac_optarg ;;
1063
1064   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065   | --program-suf | --program-su | --program-s)
1066     ac_prev=program_suffix ;;
1067   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069     program_suffix=$ac_optarg ;;
1070
1071   -program-transform-name | --program-transform-name \
1072   | --program-transform-nam | --program-transform-na \
1073   | --program-transform-n | --program-transform- \
1074   | --program-transform | --program-transfor \
1075   | --program-transfo | --program-transf \
1076   | --program-trans | --program-tran \
1077   | --progr-tra | --program-tr | --program-t)
1078     ac_prev=program_transform_name ;;
1079   -program-transform-name=* | --program-transform-name=* \
1080   | --program-transform-nam=* | --program-transform-na=* \
1081   | --program-transform-n=* | --program-transform-=* \
1082   | --program-transform=* | --program-transfor=* \
1083   | --program-transfo=* | --program-transf=* \
1084   | --program-trans=* | --program-tran=* \
1085   | --progr-tra=* | --program-tr=* | --program-t=*)
1086     program_transform_name=$ac_optarg ;;
1087
1088   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089     ac_prev=pdfdir ;;
1090   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091     pdfdir=$ac_optarg ;;
1092
1093   -psdir | --psdir | --psdi | --psd | --ps)
1094     ac_prev=psdir ;;
1095   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096     psdir=$ac_optarg ;;
1097
1098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099   | -silent | --silent | --silen | --sile | --sil)
1100     silent=yes ;;
1101
1102   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103     ac_prev=sbindir ;;
1104   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105   | --sbi=* | --sb=*)
1106     sbindir=$ac_optarg ;;
1107
1108   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110   | --sharedst | --shareds | --shared | --share | --shar \
1111   | --sha | --sh)
1112     ac_prev=sharedstatedir ;;
1113   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116   | --sha=* | --sh=*)
1117     sharedstatedir=$ac_optarg ;;
1118
1119   -site | --site | --sit)
1120     ac_prev=site ;;
1121   -site=* | --site=* | --sit=*)
1122     site=$ac_optarg ;;
1123
1124   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125     ac_prev=srcdir ;;
1126   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127     srcdir=$ac_optarg ;;
1128
1129   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130   | --syscon | --sysco | --sysc | --sys | --sy)
1131     ac_prev=sysconfdir ;;
1132   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134     sysconfdir=$ac_optarg ;;
1135
1136   -target | --target | --targe | --targ | --tar | --ta | --t)
1137     ac_prev=target_alias ;;
1138   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139     target_alias=$ac_optarg ;;
1140
1141   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142     verbose=yes ;;
1143
1144   -version | --version | --versio | --versi | --vers | -V)
1145     ac_init_version=: ;;
1146
1147   -with-* | --with-*)
1148     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package| sed 's/-/_/g'`
1154     eval with_$ac_package=\$ac_optarg ;;
1155
1156   -without-* | --without-*)
1157     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158     # Reject names that are not valid shell variable names.
1159     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160       { echo "$as_me: error: invalid package name: $ac_package" >&2
1161    { (exit 1); exit 1; }; }
1162     ac_package=`echo $ac_package | sed 's/-/_/g'`
1163     eval with_$ac_package=no ;;
1164
1165   --x)
1166     # Obsolete; use --with-x.
1167     with_x=yes ;;
1168
1169   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170   | --x-incl | --x-inc | --x-in | --x-i)
1171     ac_prev=x_includes ;;
1172   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174     x_includes=$ac_optarg ;;
1175
1176   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178     ac_prev=x_libraries ;;
1179   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181     x_libraries=$ac_optarg ;;
1182
1183   -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185    { (exit 1); exit 1; }; }
1186     ;;
1187
1188   *=*)
1189     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190     # Reject names that are not valid shell variable names.
1191     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193    { (exit 1); exit 1; }; }
1194     eval $ac_envvar=\$ac_optarg
1195     export $ac_envvar ;;
1196
1197   *)
1198     # FIXME: should be removed in autoconf 3.0.
1199     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203     ;;
1204
1205   esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210   { echo "$as_me: error: missing argument to $ac_option" >&2
1211    { (exit 1); exit 1; }; }
1212 fi
1213
1214 # Be sure to have absolute directory names.
1215 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216                 datadir sysconfdir sharedstatedir localstatedir includedir \
1217                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218                 libdir localedir mandir
1219 do
1220   eval ac_val=\$$ac_var
1221   case $ac_val in
1222     [\\/$]* | ?:[\\/]* )  continue;;
1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224   esac
1225   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226    { (exit 1); exit 1; }; }
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238   if test "x$build_alias" = x; then
1239     cross_compiling=maybe
1240     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241     If a cross compiler is detected then cross compile mode will be used." >&2
1242   elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244   fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256   { echo "$as_me: error: Working directory cannot be determined" >&2
1257    { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259   { echo "$as_me: error: pwd does not report name of working directory" >&2
1260    { (exit 1); exit 1; }; }
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265   ac_srcdir_defaulted=yes
1266   # Try the directory containing this script, then the parent directory.
1267   ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269          X"$0" : 'X\(//\)[^/]' \| \
1270          X"$0" : 'X\(//\)$' \| \
1271          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272 echo X"$0" |
1273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\/\)[^/].*/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\/\)$/{
1282             s//\1/
1283             q
1284           }
1285           /^X\(\/\).*/{
1286             s//\1/
1287             q
1288           }
1289           s/.*/./; q'`
1290   srcdir=$ac_confdir
1291   if test ! -r "$srcdir/$ac_unique_file"; then
1292     srcdir=..
1293   fi
1294 else
1295   ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300    { (exit 1); exit 1; }; }
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305    { (exit 1); exit 1; }; }
1306         pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309   srcdir=.
1310 fi
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_env_${ac_var}_value=\$${ac_var}
1320   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1323
1324 #
1325 # Report the --help message.
1326 #
1327 if test "$ac_init_help" = "long"; then
1328   # Omit some internal or obsolete options to make the list less imposing.
1329   # This message is too long to be a string in the A/UX 3.1 sh.
1330   cat <<_ACEOF
1331 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338 Defaults for the options are specified in brackets.
1339
1340 Configuration:
1341   -h, --help              display this help and exit
1342       --help=short        display options specific to this package
1343       --help=recursive    display the short help of all the included packages
1344   -V, --version           display version information and exit
1345   -q, --quiet, --silent   do not print \`checking...' messages
1346       --cache-file=FILE   cache test results in FILE [disabled]
1347   -C, --config-cache      alias for \`--cache-file=config.cache'
1348   -n, --no-create         do not create output files
1349       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351 Installation directories:
1352   --prefix=PREFIX         install architecture-independent files in PREFIX
1353                           [$ac_default_prefix]
1354   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                           [PREFIX]
1356
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1361
1362 For better control, use the options below.
1363
1364 Fine tuning of the installation directories:
1365   --bindir=DIR           user executables [EPREFIX/bin]
1366   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1367   --libexecdir=DIR       program executables [EPREFIX/libexec]
1368   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1369   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1370   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1371   --libdir=DIR           object code libraries [EPREFIX/lib]
1372   --includedir=DIR       C header files [PREFIX/include]
1373   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1374   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1375   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1376   --infodir=DIR          info documentation [DATAROOTDIR/info]
1377   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1378   --mandir=DIR           man documentation [DATAROOTDIR/man]
1379   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1380   --htmldir=DIR          html documentation [DOCDIR]
1381   --dvidir=DIR           dvi documentation [DOCDIR]
1382   --pdfdir=DIR           pdf documentation [DOCDIR]
1383   --psdir=DIR            ps documentation [DOCDIR]
1384 _ACEOF
1385
1386   cat <<\_ACEOF
1387
1388 System types:
1389   --build=BUILD     configure for building on BUILD [guessed]
1390   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391   --target=TARGET   configure for building compilers for TARGET [HOST]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396   case $ac_init_help in
1397      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1398    esac
1399   cat <<\_ACEOF
1400
1401 Optional Features:
1402   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1403   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1404   --enable-polly          Use polly if available (default is YES)
1405   --enable-libcpp         Use libc++ if available (default is NO)
1406   --enable-cxx11          Use c++11 if available (default is NO)
1407   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1408   --enable-clang-static-analyzer
1409                           Enable building of clang Static Analyzer (default is
1410                           YES)
1411   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1412   --enable-optimized      Compile with optimizations enabled (default is NO)
1413   --enable-profiling      Compile with profiling enabled (default is NO)
1414   --enable-assertions     Compile with assertion checks enabled (default is
1415                           YES)
1416   --enable-werror         Compile with -Werror enabled (default is NO)
1417   --enable-expensive-checks
1418                           Compile with expensive debug checks enabled (default
1419                           is NO)
1420   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1421                           NO)
1422   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1423                           optimization is on and YES if it's off)
1424   --enable-keep-symbols   Do not strip installed executables)
1425   --enable-jit            Enable Just In Time Compiling (default is YES)
1426   --enable-docs           Build documents (default is YES)
1427   --enable-doxygen        Build doxygen documentation (default is NO)
1428   --enable-threads        Use threads if available (default is YES)
1429   --enable-pthreads       Use pthreads if available (default is YES)
1430   --enable-pic            Build LLVM with Position Independent Code (default
1431                           is YES)
1432   --enable-shared         Build a shared library and link tools against it
1433                           (default is NO)
1434   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1435                           Win32 DLL (default is NO)
1436   --enable-timestamps     Enable embedding timestamp information in build
1437                           (default is YES)
1438   --enable-backtraces     Enable embedding backtraces on crash (default is
1439                           YES)
1440   --enable-targets        Build specific host targets: all or
1441                           target1,target2,... Valid targets are: host, x86,
1442                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1443                           xcore, msp430, nvptx, and cpp (default=all)
1444   --enable-experimental-targets
1445                           Build experimental host targets: disable or
1446                           target1,target2,... (default=disable)
1447   --enable-bindings       Build specific language bindings:
1448                           all,auto,none,{binding-name} (default=auto)
1449   --enable-libffi         Check for the presence of libffi (default is NO)
1450   --enable-ltdl-install   install libltdl
1451
1452 Optional Packages:
1453   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455   --with-optimize-option  Select the compiler options to use for optimized
1456                           builds
1457   --with-extra-options    Specify additional options to compile LLVM with
1458   --with-extra-ld-options Specify additional options to link LLVM with
1459   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1460                           is stdlib)
1461   --with-clang-srcdir     Directory to the out-of-tree Clang source
1462   --with-clang-resource-dir
1463                           Relative directory from the Clang binary for
1464                           resource files
1465   --with-c-include-dirs   Colon separated list of directories clang will
1466                           search for headers
1467   --with-gcc-toolchain    Directory where gcc is installed.
1468   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1469   --with-binutils-include Specify path to binutils/include/ containing
1470                           plugin-api.h file for gold plugin.
1471   --with-bug-report-url   Specify the URL where bug reports should be
1472                           submitted (default=http://llvm.org/bugs/)
1473   --with-internal-prefix  Installation directory for internal files
1474   --with-python           path to python
1475   --with-udis86=<path>    Use udis86 external x86 disassembler library
1476   --with-oprofile=<prefix>
1477                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1478   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1479
1480
1481 Some influential environment variables:
1482   CC          C compiler command
1483   CFLAGS      C compiler flags
1484   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1485               nonstandard directory <lib dir>
1486   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487               you have headers in a nonstandard directory <include dir>
1488   CXX         C++ compiler command
1489   CXXFLAGS    C++ compiler flags
1490   CPP         C preprocessor
1491
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1494
1495 Report bugs to <http://llvm.org/bugs/>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1499
1500 if test "$ac_init_help" = "recursive"; then
1501   # If there are subdirs, report their specific --help.
1502   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503     test -d "$ac_dir" || continue
1504     ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510   # A ".." for each directory in $ac_dir_suffix.
1511   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512   case $ac_top_builddir_sub in
1513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515   esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523   .)  # We are building in place.
1524     ac_srcdir=.
1525     ac_top_srcdir=$ac_top_builddir_sub
1526     ac_abs_top_srcdir=$ac_pwd ;;
1527   [\\/]* | ?:[\\/]* )  # Absolute name.
1528     ac_srcdir=$srcdir$ac_dir_suffix;
1529     ac_top_srcdir=$srcdir
1530     ac_abs_top_srcdir=$srcdir ;;
1531   *) # Relative name.
1532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533     ac_top_srcdir=$ac_top_build_prefix$srcdir
1534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538     cd "$ac_dir" || { ac_status=$?; continue; }
1539     # Check for guested configure.
1540     if test -f "$ac_srcdir/configure.gnu"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543     elif test -f "$ac_srcdir/configure"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure" --help=recursive
1546     else
1547       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548     fi || ac_status=$?
1549     cd "$ac_pwd" || { ac_status=$?; break; }
1550   done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555   cat <<\_ACEOF
1556 LLVM configure 3.3svn
1557 generated by GNU Autoconf 2.60
1558
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563
1564 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1565 _ACEOF
1566   exit
1567 fi
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1571
1572 It was created by LLVM $as_me 3.3svn, which was
1573 generated by GNU Autoconf 2.60.  Invocation command line was
1574
1575   $ $0 $@
1576
1577 _ACEOF
1578 exec 5>>config.log
1579 {
1580 cat <<_ASUNAME
1581 ## --------- ##
1582 ## Platform. ##
1583 ## --------- ##
1584
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1593
1594 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1595 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1598 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1599 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1600 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1601
1602 _ASUNAME
1603
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1606 do
1607   IFS=$as_save_IFS
1608   test -z "$as_dir" && as_dir=.
1609   echo "PATH: $as_dir"
1610 done
1611 IFS=$as_save_IFS
1612
1613 } >&5
1614
1615 cat >&5 <<_ACEOF
1616
1617
1618 ## ----------- ##
1619 ## Core tests. ##
1620 ## ----------- ##
1621
1622 _ACEOF
1623
1624
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_configure_args=
1631 ac_configure_args0=
1632 ac_configure_args1=
1633 ac_must_keep_next=false
1634 for ac_pass in 1 2
1635 do
1636   for ac_arg
1637   do
1638     case $ac_arg in
1639     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641     | -silent | --silent | --silen | --sile | --sil)
1642       continue ;;
1643     *\'*)
1644       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645     esac
1646     case $ac_pass in
1647     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648     2)
1649       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650       if test $ac_must_keep_next = true; then
1651         ac_must_keep_next=false # Got value, back to normal.
1652       else
1653         case $ac_arg in
1654           *=* | --config-cache | -C | -disable-* | --disable-* \
1655           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657           | -with-* | --with-* | -without-* | --without-* | --x)
1658             case "$ac_configure_args0 " in
1659               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660             esac
1661             ;;
1662           -* ) ac_must_keep_next=true ;;
1663         esac
1664       fi
1665       ac_configure_args="$ac_configure_args '$ac_arg'"
1666       ;;
1667     esac
1668   done
1669 done
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1672
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log.  We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679   # Save into config.log some information that might help in debugging.
1680   {
1681     echo
1682
1683     cat <<\_ASBOX
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1687 _ASBOX
1688     echo
1689     # The following way of writing the cache mishandles newlines in values,
1690 (
1691   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692     eval ac_val=\$$ac_var
1693     case $ac_val in #(
1694     *${as_nl}*)
1695       case $ac_var in #(
1696       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698       esac
1699       case $ac_var in #(
1700       _ | IFS | as_nl) ;; #(
1701       *) $as_unset $ac_var ;;
1702       esac ;;
1703     esac
1704   done
1705   (set) 2>&1 |
1706     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707     *${as_nl}ac_space=\ *)
1708       sed -n \
1709         "s/'\''/'\''\\\\'\'''\''/g;
1710           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711       ;; #(
1712     *)
1713       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714       ;;
1715     esac |
1716     sort
1717 )
1718     echo
1719
1720     cat <<\_ASBOX
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1724 _ASBOX
1725     echo
1726     for ac_var in $ac_subst_vars
1727     do
1728       eval ac_val=\$$ac_var
1729       case $ac_val in
1730       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731       esac
1732       echo "$ac_var='\''$ac_val'\''"
1733     done | sort
1734     echo
1735
1736     if test -n "$ac_subst_files"; then
1737       cat <<\_ASBOX
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1741 _ASBOX
1742       echo
1743       for ac_var in $ac_subst_files
1744       do
1745         eval ac_val=\$$ac_var
1746         case $ac_val in
1747         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748         esac
1749         echo "$ac_var='\''$ac_val'\''"
1750       done | sort
1751       echo
1752     fi
1753
1754     if test -s confdefs.h; then
1755       cat <<\_ASBOX
1756 ## ----------- ##
1757 ## confdefs.h. ##
1758 ## ----------- ##
1759 _ASBOX
1760       echo
1761       cat confdefs.h
1762       echo
1763     fi
1764     test "$ac_signal" != 0 &&
1765       echo "$as_me: caught signal $ac_signal"
1766     echo "$as_me: exit $exit_status"
1767   } >&5
1768   rm -f core *.core core.conftest.* &&
1769     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770     exit $exit_status
1771 ' 0
1772 for ac_signal in 1 2 13 15; do
1773   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 done
1775 ac_signal=0
1776
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1779
1780 # Predefined preprocessor variables.
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 _ACEOF
1805
1806
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810   set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 else
1814   set x "$ac_default_prefix/share/config.site" \
1815         "$ac_default_prefix/etc/config.site"
1816 fi
1817 shift
1818 for ac_site_file
1819 do
1820   if test -r "$ac_site_file"; then
1821     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823     sed 's/^/| /' "$ac_site_file" >&5
1824     . "$ac_site_file"
1825   fi
1826 done
1827
1828 if test -r "$cache_file"; then
1829   # Some versions of bash will fail to source /dev/null (special
1830   # files actually), so we avoid doing that.
1831   if test -f "$cache_file"; then
1832     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1834     case $cache_file in
1835       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836       *)                      . "./$cache_file";;
1837     esac
1838   fi
1839 else
1840   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1842   >$cache_file
1843 fi
1844
1845 # Check that the precious variables saved in the cache have kept the same
1846 # value.
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850   eval ac_new_set=\$ac_env_${ac_var}_set
1851   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852   eval ac_new_val=\$ac_env_${ac_var}_value
1853   case $ac_old_set,$ac_new_set in
1854     set,)
1855       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857       ac_cache_corrupted=: ;;
1858     ,set)
1859       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861       ac_cache_corrupted=: ;;
1862     ,);;
1863     *)
1864       if test "x$ac_old_val" != "x$ac_new_val"; then
1865         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1868 echo "$as_me:   former value:  $ac_old_val" >&2;}
1869         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1870 echo "$as_me:   current value: $ac_new_val" >&2;}
1871         ac_cache_corrupted=:
1872       fi;;
1873   esac
1874   # Pass precious variables to config.status.
1875   if test "$ac_new_set" = set; then
1876     case $ac_new_val in
1877     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878     *) ac_arg=$ac_var=$ac_new_val ;;
1879     esac
1880     case " $ac_configure_args " in
1881       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1882       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883     esac
1884   fi
1885 done
1886 if $ac_cache_corrupted; then
1887   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891    { (exit 1); exit 1; }; }
1892 fi
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
1926 cat >>confdefs.h <<\_ACEOF
1927 #define LLVM_VERSION_MAJOR 3
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<\_ACEOF
1932 #define LLVM_VERSION_MINOR 3
1933 _ACEOF
1934
1935
1936 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1937
1938
1939
1940
1941
1942
1943
1944 ac_aux_dir=
1945 for ac_dir in autoconf "$srcdir"/autoconf; do
1946   if test -f "$ac_dir/install-sh"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/install-sh -c"
1949     break
1950   elif test -f "$ac_dir/install.sh"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/install.sh -c"
1953     break
1954   elif test -f "$ac_dir/shtool"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/shtool install -c"
1957     break
1958   fi
1959 done
1960 if test -z "$ac_aux_dir"; then
1961   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1973
1974
1975
1976 if test ${srcdir} != "." ; then
1977   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1978     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1979 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1980    { (exit 1); exit 1; }; }
1981   fi
1982 fi
1983
1984 ac_ext=c
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989 if test -n "$ac_tool_prefix"; then
1990   for ac_prog in clang llvm-gcc gcc
1991   do
1992     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1996 if test "${ac_cv_prog_CC+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   if test -n "$CC"; then
2000   ac_cv_prog_CC="$CC" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2009     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015 IFS=$as_save_IFS
2016
2017 fi
2018 fi
2019 CC=$ac_cv_prog_CC
2020 if test -n "$CC"; then
2021   { echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6; }
2023 else
2024   { echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6; }
2026 fi
2027
2028
2029     test -n "$CC" && break
2030   done
2031 fi
2032 if test -z "$CC"; then
2033   ac_ct_CC=$CC
2034   for ac_prog in clang llvm-gcc gcc
2035 do
2036   # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   if test -n "$ac_ct_CC"; then
2044   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049   IFS=$as_save_IFS
2050   test -z "$as_dir" && as_dir=.
2051   for ac_exec_ext in '' $ac_executable_extensions; do
2052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2053     ac_cv_prog_ac_ct_CC="$ac_prog"
2054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055     break 2
2056   fi
2057 done
2058 done
2059 IFS=$as_save_IFS
2060
2061 fi
2062 fi
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6; }
2067 else
2068   { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2070 fi
2071
2072
2073   test -n "$ac_ct_CC" && break
2074 done
2075
2076   if test "x$ac_ct_CC" = x; then
2077     CC=""
2078   else
2079     case $cross_compiling:$ac_tool_warned in
2080 yes:)
2081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2082 whose name does not start with the host triplet.  If you think this
2083 configuration is useful to you, please write to autoconf@gnu.org." >&5
2084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2085 whose name does not start with the host triplet.  If you think this
2086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2087 ac_tool_warned=yes ;;
2088 esac
2089     CC=$ac_ct_CC
2090   fi
2091 fi
2092
2093
2094 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&2;}
2098    { (exit 1); exit 1; }; }
2099
2100 # Provide some information about the compiler.
2101 echo "$as_me:$LINENO: checking for C compiler version" >&5
2102 ac_compiler=`set X $ac_compile; echo $2`
2103 { (ac_try="$ac_compiler --version >&5"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109   (eval "$ac_compiler --version >&5") 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }
2113 { (ac_try="$ac_compiler -v >&5"
2114 case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119   (eval "$ac_compiler -v >&5") 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123 { (ac_try="$ac_compiler -V >&5"
2124 case "(($ac_try" in
2125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126   *) ac_try_echo=$ac_try;;
2127 esac
2128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129   (eval "$ac_compiler -V >&5") 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }
2133
2134 cat >conftest.$ac_ext <<_ACEOF
2135 /* confdefs.h.  */
2136 _ACEOF
2137 cat confdefs.h >>conftest.$ac_ext
2138 cat >>conftest.$ac_ext <<_ACEOF
2139 /* end confdefs.h.  */
2140
2141 int
2142 main ()
2143 {
2144
2145   ;
2146   return 0;
2147 }
2148 _ACEOF
2149 ac_clean_files_save=$ac_clean_files
2150 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2151 # Try to create an executable without -o first, disregard a.out.
2152 # It will help us diagnose broken compilers, and finding out an intuition
2153 # of exeext.
2154 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2155 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2156 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2157 #
2158 # List of possible output files, starting from the most likely.
2159 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2160 # only as a last resort.  b.out is created by i960 compilers.
2161 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2162 #
2163 # The IRIX 6 linker writes into existing files which may not be
2164 # executable, retaining their permissions.  Remove them first so a
2165 # subsequent execution test works.
2166 ac_rmfiles=
2167 for ac_file in $ac_files
2168 do
2169   case $ac_file in
2170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2171     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2172   esac
2173 done
2174 rm -f $ac_rmfiles
2175
2176 if { (ac_try="$ac_link_default"
2177 case "(($ac_try" in
2178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179   *) ac_try_echo=$ac_try;;
2180 esac
2181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2182   (eval "$ac_link_default") 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }; then
2186   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2187 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2188 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2189 # so that the user can short-circuit this test for compilers unknown to
2190 # Autoconf.
2191 for ac_file in $ac_files
2192 do
2193   test -f "$ac_file" || continue
2194   case $ac_file in
2195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2196         ;;
2197     [ab].out )
2198         # We found the default executable, but exeext='' is most
2199         # certainly right.
2200         break;;
2201     *.* )
2202         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2203         then :; else
2204            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205         fi
2206         # We set ac_cv_exeext here because the later test for it is not
2207         # safe: cross compilers may not add the suffix if given an `-o'
2208         # argument, so we may need to know it at that point already.
2209         # Even if this section looks crufty: it has the advantage of
2210         # actually working.
2211         break;;
2212     * )
2213         break;;
2214   esac
2215 done
2216 test "$ac_cv_exeext" = no && ac_cv_exeext=
2217
2218 else
2219   echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2221
2222 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&2;}
2226    { (exit 77); exit 77; }; }
2227 fi
2228
2229 ac_exeext=$ac_cv_exeext
2230 { echo "$as_me:$LINENO: result: $ac_file" >&5
2231 echo "${ECHO_T}$ac_file" >&6; }
2232
2233 # Check that the compiler produces executables we can run.  If not, either
2234 # the compiler is broken, or we cross compile.
2235 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2238 # If not cross compiling, check that we can run a simple program.
2239 if test "$cross_compiling" != yes; then
2240   if { ac_try='./$ac_file'
2241   { (case "(($ac_try" in
2242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243   *) ac_try_echo=$ac_try;;
2244 esac
2245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2246   (eval "$ac_try") 2>&5
2247   ac_status=$?
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); }; }; then
2250     cross_compiling=no
2251   else
2252     if test "$cross_compiling" = maybe; then
2253         cross_compiling=yes
2254     else
2255         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&2;}
2261    { (exit 1); exit 1; }; }
2262     fi
2263   fi
2264 fi
2265 { echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6; }
2267
2268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2269 ac_clean_files=$ac_clean_files_save
2270 # Check that the compiler produces executables we can run.  If not, either
2271 # the compiler is broken, or we cross compile.
2272 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2274 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2275 echo "${ECHO_T}$cross_compiling" >&6; }
2276
2277 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2279 if { (ac_try="$ac_link"
2280 case "(($ac_try" in
2281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282   *) ac_try_echo=$ac_try;;
2283 esac
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285   (eval "$ac_link") 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; then
2289   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2290 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2291 # work properly (i.e., refer to `conftest.exe'), while it won't with
2292 # `rm'.
2293 for ac_file in conftest.exe conftest conftest.*; do
2294   test -f "$ac_file" || continue
2295   case $ac_file in
2296     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2297     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2298           break;;
2299     * ) break;;
2300   esac
2301 done
2302 else
2303   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&2;}
2307    { (exit 1); exit 1; }; }
2308 fi
2309
2310 rm -f conftest$ac_cv_exeext
2311 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2313
2314 rm -f conftest.$ac_ext
2315 EXEEXT=$ac_cv_exeext
2316 ac_exeext=$EXEEXT
2317 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2319 if test "${ac_cv_objext+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   cat >conftest.$ac_ext <<_ACEOF
2323 /* confdefs.h.  */
2324 _ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h.  */
2328
2329 int
2330 main ()
2331 {
2332
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 rm -f conftest.o conftest.obj
2338 if { (ac_try="$ac_compile"
2339 case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344   (eval "$ac_compile") 2>&5
2345   ac_status=$?
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); }; then
2348   for ac_file in conftest.o conftest.obj conftest.*; do
2349   test -f "$ac_file" || continue;
2350   case $ac_file in
2351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2352     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2353        break;;
2354   esac
2355 done
2356 else
2357   echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2361 See \`config.log' for more details." >&5
2362 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&2;}
2364    { (exit 1); exit 1; }; }
2365 fi
2366
2367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368 fi
2369 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2370 echo "${ECHO_T}$ac_cv_objext" >&6; }
2371 OBJEXT=$ac_cv_objext
2372 ac_objext=$OBJEXT
2373 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2374 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2375 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2376   echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378   cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h.  */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h.  */
2384
2385 int
2386 main ()
2387 {
2388 #ifndef __GNUC__
2389        choke me
2390 #endif
2391
2392   ;
2393   return 0;
2394 }
2395 _ACEOF
2396 rm -f conftest.$ac_objext
2397 if { (ac_try="$ac_compile"
2398 case "(($ac_try" in
2399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400   *) ac_try_echo=$ac_try;;
2401 esac
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403   (eval "$ac_compile") 2>conftest.er1
2404   ac_status=$?
2405   grep -v '^ *+' conftest.er1 >conftest.err
2406   rm -f conftest.er1
2407   cat conftest.err >&5
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); } &&
2410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2411   { (case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_try") 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; } &&
2420          { ac_try='test -s conftest.$ac_objext'
2421   { (case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_try") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; }; then
2430   ac_compiler_gnu=yes
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435         ac_compiler_gnu=no
2436 fi
2437
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2440
2441 fi
2442 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2443 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2444 GCC=`test $ac_compiler_gnu = yes && echo yes`
2445 ac_test_CFLAGS=${CFLAGS+set}
2446 ac_save_CFLAGS=$CFLAGS
2447 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2448 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_cc_g+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   ac_save_c_werror_flag=$ac_c_werror_flag
2453    ac_c_werror_flag=yes
2454    ac_cv_prog_cc_g=no
2455    CFLAGS="-g"
2456    cat >conftest.$ac_ext <<_ACEOF
2457 /* confdefs.h.  */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h.  */
2462
2463 int
2464 main ()
2465 {
2466
2467   ;
2468   return 0;
2469 }
2470 _ACEOF
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2473 case "(($ac_try" in
2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475   *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478   (eval "$ac_compile") 2>conftest.er1
2479   ac_status=$?
2480   grep -v '^ *+' conftest.er1 >conftest.err
2481   rm -f conftest.er1
2482   cat conftest.err >&5
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486   { (case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_try") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_try") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; }; then
2505   ac_cv_prog_cc_g=yes
2506 else
2507   echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510         CFLAGS=""
2511       cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517
2518 int
2519 main ()
2520 {
2521
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (ac_try="$ac_compile"
2528 case "(($ac_try" in
2529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530   *) ac_try_echo=$ac_try;;
2531 esac
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533   (eval "$ac_compile") 2>conftest.er1
2534   ac_status=$?
2535   grep -v '^ *+' conftest.er1 >conftest.err
2536   rm -f conftest.er1
2537   cat conftest.err >&5
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); } &&
2540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2541   { (case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546   (eval "$ac_try") 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; } &&
2550          { ac_try='test -s conftest.$ac_objext'
2551   { (case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556   (eval "$ac_try") 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; }; then
2560   :
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565         ac_c_werror_flag=$ac_save_c_werror_flag
2566          CFLAGS="-g"
2567          cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h.  */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h.  */
2573
2574 int
2575 main ()
2576 {
2577
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (ac_try="$ac_compile"
2584 case "(($ac_try" in
2585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586   *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589   (eval "$ac_compile") 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2597   { (case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_try") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; } &&
2606          { ac_try='test -s conftest.$ac_objext'
2607   { (case "(($ac_try" in
2608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609   *) ac_try_echo=$ac_try;;
2610 esac
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612   (eval "$ac_try") 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; }; then
2616   ac_cv_prog_cc_g=yes
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621
2622 fi
2623
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 fi
2626
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 fi
2629
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631    ac_c_werror_flag=$ac_save_c_werror_flag
2632 fi
2633 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2634 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2635 if test "$ac_test_CFLAGS" = set; then
2636   CFLAGS=$ac_save_CFLAGS
2637 elif test $ac_cv_prog_cc_g = yes; then
2638   if test "$GCC" = yes; then
2639     CFLAGS="-g -O2"
2640   else
2641     CFLAGS="-g"
2642   fi
2643 else
2644   if test "$GCC" = yes; then
2645     CFLAGS="-O2"
2646   else
2647     CFLAGS=
2648   fi
2649 fi
2650 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2651 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2652 if test "${ac_cv_prog_cc_c89+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   ac_cv_prog_cc_c89=no
2656 ac_save_CC=$CC
2657 cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663 #include <stdarg.h>
2664 #include <stdio.h>
2665 #include <sys/types.h>
2666 #include <sys/stat.h>
2667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2668 struct buf { int x; };
2669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2670 static char *e (p, i)
2671      char **p;
2672      int i;
2673 {
2674   return p[i];
2675 }
2676 static char *f (char * (*g) (char **, int), char **p, ...)
2677 {
2678   char *s;
2679   va_list v;
2680   va_start (v,p);
2681   s = g (p, va_arg (v,int));
2682   va_end (v);
2683   return s;
2684 }
2685
2686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2687    function prototypes and stuff, but not '\xHH' hex character constants.
2688    These don't provoke an error unfortunately, instead are silently treated
2689    as 'x'.  The following induces an error, until -std is added to get
2690    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2691    array size at least.  It's necessary to write '\x00'==0 to get something
2692    that's true only with -std.  */
2693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2694
2695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2696    inside strings and character constants.  */
2697 #define FOO(x) 'x'
2698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2699
2700 int test (int i, double x);
2701 struct s1 {int (*f) (int a);};
2702 struct s2 {int (*f) (double a);};
2703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2704 int argc;
2705 char **argv;
2706 int
2707 main ()
2708 {
2709 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2715         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2716 do
2717   CC="$ac_save_CC $ac_arg"
2718   rm -f conftest.$ac_objext
2719 if { (ac_try="$ac_compile"
2720 case "(($ac_try" in
2721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722   *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725   (eval "$ac_compile") 2>conftest.er1
2726   ac_status=$?
2727   grep -v '^ *+' conftest.er1 >conftest.err
2728   rm -f conftest.er1
2729   cat conftest.err >&5
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); } &&
2732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2733   { (case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_try") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; } &&
2742          { ac_try='test -s conftest.$ac_objext'
2743   { (case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_try") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   ac_cv_prog_cc_c89=$ac_arg
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757
2758 fi
2759
2760 rm -f core conftest.err conftest.$ac_objext
2761   test "x$ac_cv_prog_cc_c89" != "xno" && break
2762 done
2763 rm -f conftest.$ac_ext
2764 CC=$ac_save_CC
2765
2766 fi
2767 # AC_CACHE_VAL
2768 case "x$ac_cv_prog_cc_c89" in
2769   x)
2770     { echo "$as_me:$LINENO: result: none needed" >&5
2771 echo "${ECHO_T}none needed" >&6; } ;;
2772   xno)
2773     { echo "$as_me:$LINENO: result: unsupported" >&5
2774 echo "${ECHO_T}unsupported" >&6; } ;;
2775   *)
2776     CC="$CC $ac_cv_prog_cc_c89"
2777     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2778 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2779 esac
2780
2781
2782 ac_ext=c
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787
2788 ac_ext=cpp
2789 ac_cpp='$CXXCPP $CPPFLAGS'
2790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2793 if test -z "$CXX"; then
2794   if test -n "$CCC"; then
2795     CXX=$CCC
2796   else
2797     if test -n "$ac_tool_prefix"; then
2798   for ac_prog in clang++ llvm-g++ g++
2799   do
2800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2804 if test "${ac_cv_prog_CXX+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   if test -n "$CXX"; then
2808   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813   IFS=$as_save_IFS
2814   test -z "$as_dir" && as_dir=.
2815   for ac_exec_ext in '' $ac_executable_extensions; do
2816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2817     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819     break 2
2820   fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 CXX=$ac_cv_prog_CXX
2828 if test -n "$CXX"; then
2829   { echo "$as_me:$LINENO: result: $CXX" >&5
2830 echo "${ECHO_T}$CXX" >&6; }
2831 else
2832   { echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6; }
2834 fi
2835
2836
2837     test -n "$CXX" && break
2838   done
2839 fi
2840 if test -z "$CXX"; then
2841   ac_ct_CXX=$CXX
2842   for ac_prog in clang++ llvm-g++ g++
2843 do
2844   # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2848 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2849   echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851   if test -n "$ac_ct_CXX"; then
2852   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857   IFS=$as_save_IFS
2858   test -z "$as_dir" && as_dir=.
2859   for ac_exec_ext in '' $ac_executable_extensions; do
2860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2861     ac_cv_prog_ac_ct_CXX="$ac_prog"
2862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863     break 2
2864   fi
2865 done
2866 done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2872 if test -n "$ac_ct_CXX"; then
2873   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2874 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2875 else
2876   { echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6; }
2878 fi
2879
2880
2881   test -n "$ac_ct_CXX" && break
2882 done
2883
2884   if test "x$ac_ct_CXX" = x; then
2885     CXX="g++"
2886   else
2887     case $cross_compiling:$ac_tool_warned in
2888 yes:)
2889 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2890 whose name does not start with the host triplet.  If you think this
2891 configuration is useful to you, please write to autoconf@gnu.org." >&5
2892 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2893 whose name does not start with the host triplet.  If you think this
2894 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2895 ac_tool_warned=yes ;;
2896 esac
2897     CXX=$ac_ct_CXX
2898   fi
2899 fi
2900
2901   fi
2902 fi
2903 # Provide some information about the compiler.
2904 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2905 ac_compiler=`set X $ac_compile; echo $2`
2906 { (ac_try="$ac_compiler --version >&5"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compiler --version >&5") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916 { (ac_try="$ac_compiler -v >&5"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_compiler -v >&5") 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926 { (ac_try="$ac_compiler -V >&5"
2927 case "(($ac_try" in
2928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929   *) ac_try_echo=$ac_try;;
2930 esac
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932   (eval "$ac_compiler -V >&5") 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }
2936
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948
2949 int
2950 main ()
2951 {
2952 #ifndef __GNUC__
2953        choke me
2954 #endif
2955
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967   (eval "$ac_compile") 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } &&
2974          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2975   { (case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_try") 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; } &&
2984          { ac_try='test -s conftest.$ac_objext'
2985   { (case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_try") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; }; then
2994   ac_compiler_gnu=yes
2995 else
2996   echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2998
2999         ac_compiler_gnu=no
3000 fi
3001
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3004
3005 fi
3006 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3007 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3008 GXX=`test $ac_compiler_gnu = yes && echo yes`
3009 ac_test_CXXFLAGS=${CXXFLAGS+set}
3010 ac_save_CXXFLAGS=$CXXFLAGS
3011 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3012 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cxx_g+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3017    ac_cxx_werror_flag=yes
3018    ac_cv_prog_cxx_g=no
3019    CXXFLAGS="-g"
3020    cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026
3027 int
3028 main ()
3029 {
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069   ac_cv_prog_cxx_g=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         CXXFLAGS=""
3075       cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_compile") 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } &&
3104          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; } &&
3114          { ac_try='test -s conftest.$ac_objext'
3115   { (case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_try") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; }; then
3124   :
3125 else
3126   echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3130          CXXFLAGS="-g"
3131          cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h.  */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h.  */
3137
3138 int
3139 main ()
3140 {
3141
3142   ;
3143   return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3148 case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153   (eval "$ac_compile") 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } &&
3160          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3161   { (case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_try") 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; } &&
3170          { ac_try='test -s conftest.$ac_objext'
3171   { (case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_try") 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; }; then
3180   ac_cv_prog_cxx_g=yes
3181 else
3182   echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185
3186 fi
3187
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 fi
3190
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 fi
3193
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3196 fi
3197 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3198 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3199 if test "$ac_test_CXXFLAGS" = set; then
3200   CXXFLAGS=$ac_save_CXXFLAGS
3201 elif test $ac_cv_prog_cxx_g = yes; then
3202   if test "$GXX" = yes; then
3203     CXXFLAGS="-g -O2"
3204   else
3205     CXXFLAGS="-g"
3206   fi
3207 else
3208   if test "$GXX" = yes; then
3209     CXXFLAGS="-O2"
3210   else
3211     CXXFLAGS=
3212   fi
3213 fi
3214 ac_ext=c
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3226 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3227 # On Suns, sometimes $CPP names a directory.
3228 if test -n "$CPP" && test -d "$CPP"; then
3229   CPP=
3230 fi
3231 if test -z "$CPP"; then
3232   if test "${ac_cv_prog_CPP+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235       # Double quotes because CPP needs to be expanded
3236     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3237     do
3238       ac_preproc_ok=false
3239 for ac_c_preproc_warn_flag in '' yes
3240 do
3241   # Use a header file that comes with gcc, so configuring glibc
3242   # with a fresh cross-compiler works.
3243   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3244   # <limits.h> exists even on freestanding compilers.
3245   # On the NeXT, cc -E runs the code through the compiler's parser,
3246   # not just through cpp. "Syntax error" is here to catch this case.
3247   cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h.  */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h.  */
3253 #ifdef __STDC__
3254 # include <limits.h>
3255 #else
3256 # include <assert.h>
3257 #endif
3258                      Syntax error
3259 _ACEOF
3260 if { (ac_try="$ac_cpp conftest.$ac_ext"
3261 case "(($ac_try" in
3262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263   *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3267   ac_status=$?
3268   grep -v '^ *+' conftest.er1 >conftest.err
3269   rm -f conftest.er1
3270   cat conftest.err >&5
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); } >/dev/null; then
3273   if test -s conftest.err; then
3274     ac_cpp_err=$ac_c_preproc_warn_flag
3275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3276   else
3277     ac_cpp_err=
3278   fi
3279 else
3280   ac_cpp_err=yes
3281 fi
3282 if test -z "$ac_cpp_err"; then
3283   :
3284 else
3285   echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288   # Broken: fails on valid input.
3289 continue
3290 fi
3291
3292 rm -f conftest.err conftest.$ac_ext
3293
3294   # OK, works on sane cases.  Now check whether nonexistent headers
3295   # can be detected and how.
3296   cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302 #include <ac_nonexistent.h>
3303 _ACEOF
3304 if { (ac_try="$ac_cpp conftest.$ac_ext"
3305 case "(($ac_try" in
3306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307   *) ac_try_echo=$ac_try;;
3308 esac
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3311   ac_status=$?
3312   grep -v '^ *+' conftest.er1 >conftest.err
3313   rm -f conftest.er1
3314   cat conftest.err >&5
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); } >/dev/null; then
3317   if test -s conftest.err; then
3318     ac_cpp_err=$ac_c_preproc_warn_flag
3319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3320   else
3321     ac_cpp_err=
3322   fi
3323 else
3324   ac_cpp_err=yes
3325 fi
3326 if test -z "$ac_cpp_err"; then
3327   # Broken: success on invalid input.
3328 continue
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333   # Passes both tests.
3334 ac_preproc_ok=:
3335 break
3336 fi
3337
3338 rm -f conftest.err conftest.$ac_ext
3339
3340 done
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3344   break
3345 fi
3346
3347     done
3348     ac_cv_prog_CPP=$CPP
3349
3350 fi
3351   CPP=$ac_cv_prog_CPP
3352 else
3353   ac_cv_prog_CPP=$CPP
3354 fi
3355 { echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6; }
3357 ac_preproc_ok=false
3358 for ac_c_preproc_warn_flag in '' yes
3359 do
3360   # Use a header file that comes with gcc, so configuring glibc
3361   # with a fresh cross-compiler works.
3362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363   # <limits.h> exists even on freestanding compilers.
3364   # On the NeXT, cc -E runs the code through the compiler's parser,
3365   # not just through cpp. "Syntax error" is here to catch this case.
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #ifdef __STDC__
3373 # include <limits.h>
3374 #else
3375 # include <assert.h>
3376 #endif
3377                      Syntax error
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null; then
3392   if test -s conftest.err; then
3393     ac_cpp_err=$ac_c_preproc_warn_flag
3394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3395   else
3396     ac_cpp_err=
3397   fi
3398 else
3399   ac_cpp_err=yes
3400 fi
3401 if test -z "$ac_cpp_err"; then
3402   :
3403 else
3404   echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407   # Broken: fails on valid input.
3408 continue
3409 fi
3410
3411 rm -f conftest.err conftest.$ac_ext
3412
3413   # OK, works on sane cases.  Now check whether nonexistent headers
3414   # can be detected and how.
3415   cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 #include <ac_nonexistent.h>
3422 _ACEOF
3423 if { (ac_try="$ac_cpp conftest.$ac_ext"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3430   ac_status=$?
3431   grep -v '^ *+' conftest.er1 >conftest.err
3432   rm -f conftest.er1
3433   cat conftest.err >&5
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); } >/dev/null; then
3436   if test -s conftest.err; then
3437     ac_cpp_err=$ac_c_preproc_warn_flag
3438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3439   else
3440     ac_cpp_err=
3441   fi
3442 else
3443   ac_cpp_err=yes
3444 fi
3445 if test -z "$ac_cpp_err"; then
3446   # Broken: success on invalid input.
3447 continue
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452   # Passes both tests.
3453 ac_preproc_ok=:
3454 break
3455 fi
3456
3457 rm -f conftest.err conftest.$ac_ext
3458
3459 done
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then
3463   :
3464 else
3465   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3466 See \`config.log' for more details." >&5
3467 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3468 See \`config.log' for more details." >&2;}
3469    { (exit 1); exit 1; }; }
3470 fi
3471
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478
3479 if test "$CXX" = "clang++" ; then
3480   { echo "$as_me:$LINENO: checking whether clang works" >&5
3481 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3482   ac_ext=cpp
3483 ac_cpp='$CXXCPP $CPPFLAGS'
3484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3487
3488
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h.  */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h.  */
3495 #include <limits>
3496 #if __has_include (<cxxabi.h>)
3497 #include <cxxabi.h>
3498 #endif
3499 #if __has_include (<unwind.h>)
3500 #include <unwind.h>
3501 #endif
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518   (eval "$ac_compile") 2>conftest.er1
3519   ac_status=$?
3520   grep -v '^ *+' conftest.er1 >conftest.err
3521   rm -f conftest.er1
3522   cat conftest.err >&5
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); } &&
3525          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3526   { (case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_try") 2>&5
3532   ac_status=$?
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); }; } &&
3535          { ac_try='test -s conftest.$ac_objext'
3536   { (case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541   (eval "$ac_try") 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; }; then
3545
3546   { echo "$as_me:$LINENO: result: yes" >&5
3547 echo "${ECHO_T}yes" >&6; }
3548
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553
3554   { echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6; }
3556   { { 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
3557 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;}
3558    { (exit 1); exit 1; }; }
3559
3560 fi
3561
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563   ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
3569 fi
3570
3571
3572
3573 if test -d ${srcdir}/projects/llvm-gcc ; then
3574   subdirs="$subdirs projects/llvm-gcc"
3575
3576 fi
3577
3578 if test -d ${srcdir}/projects/test-suite ; then
3579   subdirs="$subdirs projects/test-suite"
3580
3581 fi
3582
3583 if test -d ${srcdir}/projects/llvm-test ; then
3584   subdirs="$subdirs projects/llvm-test"
3585
3586 fi
3587
3588 if test -d ${srcdir}/projects/poolalloc ; then
3589   subdirs="$subdirs projects/poolalloc"
3590
3591 fi
3592
3593 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3594   subdirs="$subdirs projects/llvm-poolalloc"
3595
3596 fi
3597
3598 for i in `ls ${srcdir}/projects`
3599 do
3600   if test -d ${srcdir}/projects/${i} ; then
3601     case ${i} in
3602       sample)       subdirs="$subdirs projects/sample"
3603     ;;
3604       privbracket)  subdirs="$subdirs projects/privbracket"
3605  ;;
3606       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3607  ;;
3608       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3609 ;;
3610       llvm-java)    subdirs="$subdirs projects/llvm-java"
3611  ;;
3612       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3613    ;;
3614       safecode)     subdirs="$subdirs projects/safecode"
3615  ;;
3616       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3617  ;;
3618       compiler-rt)       ;;
3619       llvm-gcc)       ;;
3620       test-suite)     ;;
3621       llvm-test)      ;;
3622       poolalloc)      ;;
3623       llvm-poolalloc) ;;
3624       *)
3625         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3626 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3627         ;;
3628     esac
3629   fi
3630 done
3631
3632 # Check whether --enable-polly was given.
3633 if test "${enable_polly+set}" = set; then
3634   enableval=$enable_polly;
3635 else
3636   enableval=default
3637 fi
3638
3639 case "$enableval" in
3640   yes) ENABLE_POLLY=1
3641  ;;
3642   no)  ENABLE_POLLY=0
3643  ;;
3644   default) ENABLE_POLLY=1
3645  ;;
3646   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3647 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3648    { (exit 1); exit 1; }; } ;;
3649 esac
3650
3651
3652 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3653   LLVM_HAS_POLLY=1
3654
3655   subdirs="$subdirs tools/polly"
3656
3657 fi
3658
3659
3660 # Make sure we can run config.sub.
3661 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3662   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3663 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3664    { (exit 1); exit 1; }; }
3665
3666 { echo "$as_me:$LINENO: checking build system type" >&5
3667 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3668 if test "${ac_cv_build+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   ac_build_alias=$build_alias
3672 test "x$ac_build_alias" = x &&
3673   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3674 test "x$ac_build_alias" = x &&
3675   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3676 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3677    { (exit 1); exit 1; }; }
3678 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3679   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3680 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3681    { (exit 1); exit 1; }; }
3682
3683 fi
3684 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3685 echo "${ECHO_T}$ac_cv_build" >&6; }
3686 case $ac_cv_build in
3687 *-*-*) ;;
3688 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3689 echo "$as_me: error: invalid value of canonical build" >&2;}
3690    { (exit 1); exit 1; }; };;
3691 esac
3692 build=$ac_cv_build
3693 ac_save_IFS=$IFS; IFS='-'
3694 set x $ac_cv_build
3695 shift
3696 build_cpu=$1
3697 build_vendor=$2
3698 shift; shift
3699 # Remember, the first character of IFS is used to create $*,
3700 # except with old shells:
3701 build_os=$*
3702 IFS=$ac_save_IFS
3703 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3704
3705
3706 { echo "$as_me:$LINENO: checking host system type" >&5
3707 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3708 if test "${ac_cv_host+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   if test "x$host_alias" = x; then
3712   ac_cv_host=$ac_cv_build
3713 else
3714   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3715     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3716 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3717    { (exit 1); exit 1; }; }
3718 fi
3719
3720 fi
3721 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3722 echo "${ECHO_T}$ac_cv_host" >&6; }
3723 case $ac_cv_host in
3724 *-*-*) ;;
3725 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3726 echo "$as_me: error: invalid value of canonical host" >&2;}
3727    { (exit 1); exit 1; }; };;
3728 esac
3729 host=$ac_cv_host
3730 ac_save_IFS=$IFS; IFS='-'
3731 set x $ac_cv_host
3732 shift
3733 host_cpu=$1
3734 host_vendor=$2
3735 shift; shift
3736 # Remember, the first character of IFS is used to create $*,
3737 # except with old shells:
3738 host_os=$*
3739 IFS=$ac_save_IFS
3740 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3741
3742
3743 { echo "$as_me:$LINENO: checking target system type" >&5
3744 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3745 if test "${ac_cv_target+set}" = set; then
3746   echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748   if test "x$target_alias" = x; then
3749   ac_cv_target=$ac_cv_host
3750 else
3751   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3752     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3753 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3754    { (exit 1); exit 1; }; }
3755 fi
3756
3757 fi
3758 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3759 echo "${ECHO_T}$ac_cv_target" >&6; }
3760 case $ac_cv_target in
3761 *-*-*) ;;
3762 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3763 echo "$as_me: error: invalid value of canonical target" >&2;}
3764    { (exit 1); exit 1; }; };;
3765 esac
3766 target=$ac_cv_target
3767 ac_save_IFS=$IFS; IFS='-'
3768 set x $ac_cv_target
3769 shift
3770 target_cpu=$1
3771 target_vendor=$2
3772 shift; shift
3773 # Remember, the first character of IFS is used to create $*,
3774 # except with old shells:
3775 target_os=$*
3776 IFS=$ac_save_IFS
3777 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3778
3779
3780 # The aliases save the names the user supplied, while $host etc.
3781 # will get canonicalized.
3782 test -n "$target_alias" &&
3783   test "$program_prefix$program_suffix$program_transform_name" = \
3784     NONENONEs,x,x, &&
3785   program_prefix=${target_alias}-
3786
3787 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3788 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3789 if test "${llvm_cv_os_type+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   case $host in
3793   *-*-aix*)
3794     llvm_cv_link_all_option="-Wl,--whole-archive"
3795     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3796     llvm_cv_os_type="AIX"
3797     llvm_cv_platform_type="Unix" ;;
3798   *-*-irix*)
3799     llvm_cv_link_all_option="-Wl,--whole-archive"
3800     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3801     llvm_cv_os_type="IRIX"
3802     llvm_cv_platform_type="Unix" ;;
3803   *-*-cygwin*)
3804     llvm_cv_link_all_option="-Wl,--whole-archive"
3805     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3806     llvm_cv_os_type="Cygwin"
3807     llvm_cv_platform_type="Unix" ;;
3808   *-*-darwin*)
3809     llvm_cv_link_all_option="-Wl,-all_load"
3810     llvm_cv_no_link_all_option="-Wl,-noall_load"
3811     llvm_cv_os_type="Darwin"
3812     llvm_cv_platform_type="Unix" ;;
3813   *-*-minix*)
3814     llvm_cv_link_all_option="-Wl,-all_load"
3815     llvm_cv_no_link_all_option="-Wl,-noall_load"
3816     llvm_cv_os_type="Minix"
3817     llvm_cv_platform_type="Unix" ;;
3818   *-*-freebsd* | *-*-kfreebsd-gnu)
3819     llvm_cv_link_all_option="-Wl,--whole-archive"
3820     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3821     llvm_cv_os_type="FreeBSD"
3822     llvm_cv_platform_type="Unix" ;;
3823   *-*-openbsd*)
3824     llvm_cv_link_all_option="-Wl,--whole-archive"
3825     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3826     llvm_cv_os_type="OpenBSD"
3827     llvm_cv_platform_type="Unix" ;;
3828   *-*-netbsd*)
3829     llvm_cv_link_all_option="-Wl,--whole-archive"
3830     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3831     llvm_cv_os_type="NetBSD"
3832     llvm_cv_platform_type="Unix" ;;
3833   *-*-dragonfly*)
3834     llvm_cv_link_all_option="-Wl,--whole-archive"
3835     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3836     llvm_cv_os_type="DragonFly"
3837     llvm_cv_platform_type="Unix" ;;
3838   *-*-hpux*)
3839     llvm_cv_link_all_option="-Wl,--whole-archive"
3840     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3841     llvm_cv_os_type="HP-UX"
3842     llvm_cv_platform_type="Unix" ;;
3843   *-*-interix*)
3844     llvm_cv_link_all_option="-Wl,--whole-archive"
3845     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3846     llvm_cv_os_type="Interix"
3847     llvm_cv_platform_type="Unix" ;;
3848   *-*-linux*)
3849     llvm_cv_link_all_option="-Wl,--whole-archive"
3850     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3851     llvm_cv_os_type="Linux"
3852     llvm_cv_platform_type="Unix" ;;
3853   *-*-gnu*)
3854     llvm_cv_link_all_option="-Wl,--whole-archive"
3855     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3856     llvm_cv_os_type="GNU"
3857     llvm_cv_platform_type="Unix" ;;
3858   *-*-solaris*)
3859     llvm_cv_link_all_option="-Wl,-z,allextract"
3860     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3861     llvm_cv_os_type="SunOS"
3862     llvm_cv_platform_type="Unix" ;;
3863   *-*-auroraux*)
3864     llvm_cv_link_all_option="-Wl,-z,allextract"
3865     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3866     llvm_cv_os_type="AuroraUX"
3867     llvm_cv_platform_type="Unix" ;;
3868   *-*-win32*)
3869     llvm_cv_link_all_option="-Wl,--whole-archive"
3870     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3871     llvm_cv_os_type="Win32"
3872     llvm_cv_platform_type="Win32" ;;
3873   *-*-mingw*)
3874     llvm_cv_link_all_option="-Wl,--whole-archive"
3875     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3876     llvm_cv_os_type="MingW"
3877     llvm_cv_platform_type="Win32" ;;
3878   *-*-haiku*)
3879     llvm_cv_link_all_option="-Wl,--whole-archive"
3880     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3881     llvm_cv_os_type="Haiku"
3882     llvm_cv_platform_type="Unix" ;;
3883   *-unknown-eabi*)
3884     llvm_cv_link_all_option="-Wl,--whole-archive"
3885     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3886     llvm_cv_os_type="Freestanding"
3887     llvm_cv_platform_type="Unix" ;;
3888   *-unknown-elf*)
3889     llvm_cv_link_all_option="-Wl,--whole-archive"
3890     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3891     llvm_cv_os_type="Freestanding"
3892     llvm_cv_platform_type="Unix" ;;
3893   *)
3894     llvm_cv_link_all_option=""
3895     llvm_cv_no_link_all_option=""
3896     llvm_cv_os_type="Unknown"
3897     llvm_cv_platform_type="Unknown" ;;
3898 esac
3899 fi
3900 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3901 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3902
3903 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3904 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3905 if test "${llvm_cv_target_os_type+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   case $target in
3909   *-*-aix*)
3910     llvm_cv_target_os_type="AIX" ;;
3911   *-*-irix*)
3912     llvm_cv_target_os_type="IRIX" ;;
3913   *-*-cygwin*)
3914     llvm_cv_target_os_type="Cygwin" ;;
3915   *-*-darwin*)
3916     llvm_cv_target_os_type="Darwin" ;;
3917   *-*-minix*)
3918     llvm_cv_target_os_type="Minix" ;;
3919   *-*-freebsd* | *-*-kfreebsd-gnu)
3920     llvm_cv_target_os_type="FreeBSD" ;;
3921   *-*-openbsd*)
3922     llvm_cv_target_os_type="OpenBSD" ;;
3923   *-*-netbsd*)
3924     llvm_cv_target_os_type="NetBSD" ;;
3925   *-*-dragonfly*)
3926     llvm_cv_target_os_type="DragonFly" ;;
3927   *-*-hpux*)
3928     llvm_cv_target_os_type="HP-UX" ;;
3929   *-*-interix*)
3930     llvm_cv_target_os_type="Interix" ;;
3931   *-*-linux*)
3932     llvm_cv_target_os_type="Linux" ;;
3933   *-*-gnu*)
3934     llvm_cv_target_os_type="GNU" ;;
3935   *-*-solaris*)
3936     llvm_cv_target_os_type="SunOS" ;;
3937   *-*-auroraux*)
3938     llvm_cv_target_os_type="AuroraUX" ;;
3939   *-*-win32*)
3940     llvm_cv_target_os_type="Win32" ;;
3941   *-*-mingw*)
3942     llvm_cv_target_os_type="MingW" ;;
3943   *-*-haiku*)
3944     llvm_cv_target_os_type="Haiku" ;;
3945   *-*-rtems*)
3946     llvm_cv_target_os_type="RTEMS" ;;
3947   *-*-nacl*)
3948     llvm_cv_target_os_type="NativeClient" ;;
3949   *-unknown-eabi*)
3950     llvm_cv_target_os_type="Freestanding" ;;
3951   *)
3952     llvm_cv_target_os_type="Unknown" ;;
3953 esac
3954 fi
3955 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3956 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3957
3958 if test "$llvm_cv_os_type" = "Unknown" ; then
3959   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3960 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3961    { (exit 1); exit 1; }; }
3962 fi
3963
3964 OS=$llvm_cv_os_type
3965
3966 HOST_OS=$llvm_cv_os_type
3967
3968 TARGET_OS=$llvm_cv_target_os_type
3969
3970
3971 LINKALL=$llvm_cv_link_all_option
3972
3973 NOLINKALL=$llvm_cv_no_link_all_option
3974
3975
3976 case $llvm_cv_platform_type in
3977   Unix)
3978
3979 cat >>confdefs.h <<\_ACEOF
3980 #define LLVM_ON_UNIX 1
3981 _ACEOF
3982
3983     LLVM_ON_UNIX=1
3984
3985     LLVM_ON_WIN32=0
3986
3987     ;;
3988   Win32)
3989
3990 cat >>confdefs.h <<\_ACEOF
3991 #define LLVM_ON_WIN32 1
3992 _ACEOF
3993
3994     LLVM_ON_UNIX=0
3995
3996     LLVM_ON_WIN32=1
3997
3998     ;;
3999 esac
4000
4001 { echo "$as_me:$LINENO: checking target architecture" >&5
4002 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4003 if test "${llvm_cv_target_arch+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   case $target in
4007   i?86-*)                 llvm_cv_target_arch="x86" ;;
4008   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4009   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4010   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4011   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4012   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4013   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4014   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4015   xcore-*)                llvm_cv_target_arch="XCore" ;;
4016   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4017   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4018   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4019   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4020   *)                      llvm_cv_target_arch="Unknown" ;;
4021 esac
4022 fi
4023 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4024 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4025
4026 if test "$llvm_cv_target_arch" = "Unknown" ; then
4027   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4028 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4029 fi
4030
4031 case "$llvm_cv_target_arch" in
4032     x86)     LLVM_NATIVE_ARCH="X86" ;;
4033     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4034     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4035 esac
4036
4037 ARCH=$llvm_cv_target_arch
4038
4039
4040 case $host in
4041   i?86-*)                 host_arch="x86" ;;
4042   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4043   sparc*-*)               host_arch="Sparc" ;;
4044   powerpc*-*)             host_arch="PowerPC" ;;
4045   arm*-*)                 host_arch="ARM" ;;
4046   aarch64*-*)             host_arch="AArch64" ;;
4047   mips-* | mips64-*)      host_arch="Mips" ;;
4048   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4049   xcore-*)                host_arch="XCore" ;;
4050   msp430-*)               host_arch="MSP430" ;;
4051   hexagon-*)              host_arch="Hexagon" ;;
4052   mblaze-*)               host_arch="MBlaze" ;;
4053   *)                      host_arch="Unknown" ;;
4054 esac
4055
4056 if test "$host_arch" = "Unknown" ; then
4057   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4058 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4059 fi
4060
4061 HOST_ARCH=$host_arch
4062
4063
4064
4065
4066 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4067 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4068 if test "${ac_cv_path_GREP+set}" = set; then
4069   echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071   # Extract the first word of "grep ggrep" to use in msg output
4072 if test -z "$GREP"; then
4073 set dummy grep ggrep; ac_prog_name=$2
4074 if test "${ac_cv_path_GREP+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   ac_path_GREP_found=false
4078 # Loop through the user's path and test for each of PROGNAME-LIST
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4081 do
4082   IFS=$as_save_IFS
4083   test -z "$as_dir" && as_dir=.
4084   for ac_prog in grep ggrep; do
4085   for ac_exec_ext in '' $ac_executable_extensions; do
4086     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4087     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4088     # Check for GNU ac_path_GREP and select it if it is found.
4089   # Check for GNU $ac_path_GREP
4090 case `"$ac_path_GREP" --version 2>&1` in
4091 *GNU*)
4092   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4093 *)
4094   ac_count=0
4095   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4096   while :
4097   do
4098     cat "conftest.in" "conftest.in" >"conftest.tmp"
4099     mv "conftest.tmp" "conftest.in"
4100     cp "conftest.in" "conftest.nl"
4101     echo 'GREP' >> "conftest.nl"
4102     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4103     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4104     ac_count=`expr $ac_count + 1`
4105     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4106       # Best one so far, save it but keep looking for a better one
4107       ac_cv_path_GREP="$ac_path_GREP"
4108       ac_path_GREP_max=$ac_count
4109     fi
4110     # 10*(2^10) chars as input seems more than enough
4111     test $ac_count -gt 10 && break
4112   done
4113   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4114 esac
4115
4116
4117     $ac_path_GREP_found && break 3
4118   done
4119 done
4120
4121 done
4122 IFS=$as_save_IFS
4123
4124
4125 fi
4126
4127 GREP="$ac_cv_path_GREP"
4128 if test -z "$GREP"; then
4129   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4130 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4131    { (exit 1); exit 1; }; }
4132 fi
4133
4134 else
4135   ac_cv_path_GREP=$GREP
4136 fi
4137
4138
4139 fi
4140 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4141 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4142  GREP="$ac_cv_path_GREP"
4143
4144
4145 { echo "$as_me:$LINENO: checking for egrep" >&5
4146 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4147 if test "${ac_cv_path_EGREP+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4151    then ac_cv_path_EGREP="$GREP -E"
4152    else
4153      # Extract the first word of "egrep" to use in msg output
4154 if test -z "$EGREP"; then
4155 set dummy egrep; ac_prog_name=$2
4156 if test "${ac_cv_path_EGREP+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   ac_path_EGREP_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166   for ac_prog in egrep; do
4167   for ac_exec_ext in '' $ac_executable_extensions; do
4168     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4169     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4170     # Check for GNU ac_path_EGREP and select it if it is found.
4171   # Check for GNU $ac_path_EGREP
4172 case `"$ac_path_EGREP" --version 2>&1` in
4173 *GNU*)
4174   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4175 *)
4176   ac_count=0
4177   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4178   while :
4179   do
4180     cat "conftest.in" "conftest.in" >"conftest.tmp"
4181     mv "conftest.tmp" "conftest.in"
4182     cp "conftest.in" "conftest.nl"
4183     echo 'EGREP' >> "conftest.nl"
4184     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186     ac_count=`expr $ac_count + 1`
4187     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4188       # Best one so far, save it but keep looking for a better one
4189       ac_cv_path_EGREP="$ac_path_EGREP"
4190       ac_path_EGREP_max=$ac_count
4191     fi
4192     # 10*(2^10) chars as input seems more than enough
4193     test $ac_count -gt 10 && break
4194   done
4195   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196 esac
4197
4198
4199     $ac_path_EGREP_found && break 3
4200   done
4201 done
4202
4203 done
4204 IFS=$as_save_IFS
4205
4206
4207 fi
4208
4209 EGREP="$ac_cv_path_EGREP"
4210 if test -z "$EGREP"; then
4211   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4212 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4213    { (exit 1); exit 1; }; }
4214 fi
4215
4216 else
4217   ac_cv_path_EGREP=$EGREP
4218 fi
4219
4220
4221    fi
4222 fi
4223 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4224 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4225  EGREP="$ac_cv_path_EGREP"
4226
4227
4228 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4229 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4230 if test "${ac_cv_header_stdc+set}" = set; then
4231   echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233   cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h.  */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h.  */
4239 #include <stdlib.h>
4240 #include <stdarg.h>
4241 #include <string.h>
4242 #include <float.h>
4243
4244 int
4245 main ()
4246 {
4247
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.$ac_objext
4253 if { (ac_try="$ac_compile"
4254 case "(($ac_try" in
4255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256   *) ac_try_echo=$ac_try;;
4257 esac
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259   (eval "$ac_compile") 2>conftest.er1
4260   ac_status=$?
4261   grep -v '^ *+' conftest.er1 >conftest.err
4262   rm -f conftest.er1
4263   cat conftest.err >&5
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } &&
4266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4267   { (case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_try") 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; } &&
4276          { ac_try='test -s conftest.$ac_objext'
4277   { (case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282   (eval "$ac_try") 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; }; then
4286   ac_cv_header_stdc=yes
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291         ac_cv_header_stdc=no
4292 fi
4293
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295
4296 if test $ac_cv_header_stdc = yes; then
4297   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298   cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h.  */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h.  */
4304 #include <string.h>
4305
4306 _ACEOF
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308   $EGREP "memchr" >/dev/null 2>&1; then
4309   :
4310 else
4311   ac_cv_header_stdc=no
4312 fi
4313 rm -f conftest*
4314
4315 fi
4316
4317 if test $ac_cv_header_stdc = yes; then
4318   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319   cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325 #include <stdlib.h>
4326
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329   $EGREP "free" >/dev/null 2>&1; then
4330   :
4331 else
4332   ac_cv_header_stdc=no
4333 fi
4334 rm -f conftest*
4335
4336 fi
4337
4338 if test $ac_cv_header_stdc = yes; then
4339   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340   if test "$cross_compiling" = yes; then
4341   :
4342 else
4343   cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349 #include <ctype.h>
4350 #include <stdlib.h>
4351 #if ((' ' & 0x0FF) == 0x020)
4352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4354 #else
4355 # define ISLOWER(c) \
4356                    (('a' <= (c) && (c) <= 'i') \
4357                      || ('j' <= (c) && (c) <= 'r') \
4358                      || ('s' <= (c) && (c) <= 'z'))
4359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4360 #endif
4361
4362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4363 int
4364 main ()
4365 {
4366   int i;
4367   for (i = 0; i < 256; i++)
4368     if (XOR (islower (i), ISLOWER (i))
4369         || toupper (i) != TOUPPER (i))
4370       return 2;
4371   return 0;
4372 }
4373 _ACEOF
4374 rm -f conftest$ac_exeext
4375 if { (ac_try="$ac_link"
4376 case "(($ac_try" in
4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378   *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381   (eval "$ac_link") 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4385   { (case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390   (eval "$ac_try") 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }; }; then
4394   :
4395 else
4396   echo "$as_me: program exited with status $ac_status" >&5
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 ( exit $ac_status )
4401 ac_cv_header_stdc=no
4402 fi
4403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4404 fi
4405
4406
4407 fi
4408 fi
4409 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4410 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4411 if test $ac_cv_header_stdc = yes; then
4412
4413 cat >>confdefs.h <<\_ACEOF
4414 #define STDC_HEADERS 1
4415 _ACEOF
4416
4417 fi
4418
4419 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4430                   inttypes.h stdint.h unistd.h
4431 do
4432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h.  */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h.  */
4444 $ac_includes_default
4445
4446 #include <$ac_header>
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455   (eval "$ac_compile") 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4463   { (case "(($ac_try" in
4464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465   *) ac_try_echo=$ac_try;;
4466 esac
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468   (eval "$ac_try") 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; } &&
4472          { ac_try='test -s conftest.$ac_objext'
4473   { (case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478   (eval "$ac_try") 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; }; then
4482   eval "$as_ac_Header=yes"
4483 else
4484   echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487         eval "$as_ac_Header=no"
4488 fi
4489
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 fi
4492 ac_res=`eval echo '${'$as_ac_Header'}'`
4493                { echo "$as_me:$LINENO: result: $ac_res" >&5
4494 echo "${ECHO_T}$ac_res" >&6; }
4495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496   cat >>confdefs.h <<_ACEOF
4497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4498 _ACEOF
4499
4500 fi
4501
4502 done
4503
4504
4505 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4506 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4507 if test "${ac_cv_c_bigendian+set}" = set; then
4508   echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510   # See if sys/param.h defines the BYTE_ORDER macro.
4511 cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h.  */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h.  */
4517 #include <sys/types.h>
4518 #include <sys/param.h>
4519
4520 int
4521 main ()
4522 {
4523 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4524  bogus endian macros
4525 #endif
4526
4527   ;
4528   return 0;
4529 }
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (ac_try="$ac_compile"
4533 case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538   (eval "$ac_compile") 2>conftest.er1
4539   ac_status=$?
4540   grep -v '^ *+' conftest.er1 >conftest.err
4541   rm -f conftest.er1
4542   cat conftest.err >&5
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } &&
4545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4546   { (case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551   (eval "$ac_try") 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest.$ac_objext'
4556   { (case "(($ac_try" in
4557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558   *) ac_try_echo=$ac_try;;
4559 esac
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561   (eval "$ac_try") 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }; }; then
4565   # It does; now see whether it defined to BIG_ENDIAN or not.
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572 #include <sys/types.h>
4573 #include <sys/param.h>
4574
4575 int
4576 main ()
4577 {
4578 #if BYTE_ORDER != BIG_ENDIAN
4579  not big endian
4580 #endif
4581
4582   ;
4583   return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (ac_try="$ac_compile"
4588 case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_compile") 2>conftest.er1
4594   ac_status=$?
4595   grep -v '^ *+' conftest.er1 >conftest.err
4596   rm -f conftest.er1
4597   cat conftest.err >&5
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); } &&
4600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4601   { (case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606   (eval "$ac_try") 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }; } &&
4610          { ac_try='test -s conftest.$ac_objext'
4611   { (case "(($ac_try" in
4612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613   *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616   (eval "$ac_try") 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620   ac_cv_c_bigendian=yes
4621 else
4622   echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625         ac_cv_c_bigendian=no
4626 fi
4627
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 else
4630   echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633         # It does not; compile a test program.
4634 if test "$cross_compiling" = yes; then
4635   # try to guess the endianness by grepping values into an object file
4636   ac_cv_c_bigendian=unknown
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4644 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4645 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4646 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4647 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4648 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4649 int
4650 main ()
4651 {
4652  _ascii (); _ebcdic ();
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4659 case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664   (eval "$ac_compile") 2>conftest.er1
4665   ac_status=$?
4666   grep -v '^ *+' conftest.er1 >conftest.err
4667   rm -f conftest.er1
4668   cat conftest.err >&5
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } &&
4671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4672   { (case "(($ac_try" in
4673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674   *) ac_try_echo=$ac_try;;
4675 esac
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677   (eval "$ac_try") 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; } &&
4681          { ac_try='test -s conftest.$ac_objext'
4682   { (case "(($ac_try" in
4683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684   *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687   (eval "$ac_try") 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; }; then
4691   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4692   ac_cv_c_bigendian=yes
4693 fi
4694 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4695   if test "$ac_cv_c_bigendian" = unknown; then
4696     ac_cv_c_bigendian=no
4697   else
4698     # finding both strings is unlikely to happen, but who knows?
4699     ac_cv_c_bigendian=unknown
4700   fi
4701 fi
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706
4707 fi
4708
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 else
4711   cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h.  */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h.  */
4717 $ac_includes_default
4718 int
4719 main ()
4720 {
4721
4722   /* Are we little or big endian?  From Harbison&Steele.  */
4723   union
4724   {
4725     long int l;
4726     char c[sizeof (long int)];
4727   } u;
4728   u.l = 1;
4729   return u.c[sizeof (long int) - 1] == 1;
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest$ac_exeext
4736 if { (ac_try="$ac_link"
4737 case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742   (eval "$ac_link") 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4746   { (case "(($ac_try" in
4747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748   *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751   (eval "$ac_try") 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; }; then
4755   ac_cv_c_bigendian=no
4756 else
4757   echo "$as_me: program exited with status $ac_status" >&5
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 ( exit $ac_status )
4762 ac_cv_c_bigendian=yes
4763 fi
4764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4765 fi
4766
4767
4768 fi
4769
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4773 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4774 case $ac_cv_c_bigendian in
4775   yes)
4776     ENDIAN=big
4777  ;;
4778   no)
4779     ENDIAN=little
4780  ;;
4781   *)
4782     { { echo "$as_me:$LINENO: error: unknown endianness
4783 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4784 echo "$as_me: error: unknown endianness
4785 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4786    { (exit 1); exit 1; }; } ;;
4787 esac
4788
4789
4790 if test "$cross_compiling" = yes; then
4791   LLVM_CROSS_COMPILING=1
4792
4793
4794 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4795 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4796 if test "${ac_cv_build_exeext+set}" = set; then
4797   echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4800   ac_cv_build_exeext=.exe
4801 else
4802   ac_build_prefix=${build_alias}-
4803
4804   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4805 set dummy ${ac_build_prefix}gcc; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   if test -n "$BUILD_CC"; then
4812   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819   for ac_exec_ext in '' $ac_executable_extensions; do
4820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4821     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823     break 2
4824   fi
4825 done
4826 done
4827 IFS=$as_save_IFS
4828
4829 fi
4830 fi
4831 BUILD_CC=$ac_cv_prog_BUILD_CC
4832 if test -n "$BUILD_CC"; then
4833   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4834 echo "${ECHO_T}$BUILD_CC" >&6; }
4835 else
4836   { echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6; }
4838 fi
4839
4840
4841   if test -z "$BUILD_CC"; then
4842      # Extract the first word of "gcc", so it can be a program name with args.
4843 set dummy gcc; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   if test -n "$BUILD_CC"; then
4850   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857   for ac_exec_ext in '' $ac_executable_extensions; do
4858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4859     ac_cv_prog_BUILD_CC="gcc"
4860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864 done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 BUILD_CC=$ac_cv_prog_BUILD_CC
4870 if test -n "$BUILD_CC"; then
4871   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4872 echo "${ECHO_T}$BUILD_CC" >&6; }
4873 else
4874   { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 fi
4877
4878
4879      if test -z "$BUILD_CC"; then
4880        # Extract the first word of "cc", so it can be a program name with args.
4881 set dummy cc; ac_word=$2
4882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4884 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887   if test -n "$BUILD_CC"; then
4888   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4889 else
4890   ac_prog_rejected=no
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896   for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4899        ac_prog_rejected=yes
4900        continue
4901      fi
4902     ac_cv_prog_BUILD_CC="cc"
4903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910 if test $ac_prog_rejected = yes; then
4911   # We found a bogon in the path, so make sure we never use it.
4912   set dummy $ac_cv_prog_BUILD_CC
4913   shift
4914   if test $# != 0; then
4915     # We chose a different compiler from the bogus one.
4916     # However, it has the same basename, so the bogon will be chosen
4917     # first if we set BUILD_CC to just the basename; use the full file name.
4918     shift
4919     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4920   fi
4921 fi
4922 fi
4923 fi
4924 BUILD_CC=$ac_cv_prog_BUILD_CC
4925 if test -n "$BUILD_CC"; then
4926   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4927 echo "${ECHO_T}$BUILD_CC" >&6; }
4928 else
4929   { echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6; }
4931 fi
4932
4933
4934      fi
4935   fi
4936   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4937 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4938    { (exit 1); exit 1; }; }
4939   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4940   rm -f conftest*
4941   echo 'int main () { return 0; }' > conftest.$ac_ext
4942   ac_cv_build_exeext=
4943   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4944   (eval $ac_build_link) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; then
4948     for file in conftest.*; do
4949       case $file in
4950       *.c | *.o | *.obj | *.dSYM) ;;
4951       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4952       esac
4953     done
4954   else
4955     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4956 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4957    { (exit 1); exit 1; }; }
4958   fi
4959   rm -f conftest*
4960   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4961 fi
4962 fi
4963
4964 BUILD_EXEEXT=""
4965 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4966 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4967 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4968 ac_build_exeext=$BUILD_EXEEXT
4969
4970   ac_build_prefix=${build_alias}-
4971   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4972 set dummy ${ac_build_prefix}g++; ac_word=$2
4973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4975 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978   if test -n "$BUILD_CXX"; then
4979   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4983 do
4984   IFS=$as_save_IFS
4985   test -z "$as_dir" && as_dir=.
4986   for ac_exec_ext in '' $ac_executable_extensions; do
4987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4988     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990     break 2
4991   fi
4992 done
4993 done
4994 IFS=$as_save_IFS
4995
4996 fi
4997 fi
4998 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4999 if test -n "$BUILD_CXX"; then
5000   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5001 echo "${ECHO_T}$BUILD_CXX" >&6; }
5002 else
5003   { echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6; }
5005 fi
5006
5007
5008   if test -z "$BUILD_CXX"; then
5009      # Extract the first word of "g++", so it can be a program name with args.
5010 set dummy g++; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   if test -n "$BUILD_CXX"; then
5017   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024   for ac_exec_ext in '' $ac_executable_extensions; do
5025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5026     ac_cv_prog_BUILD_CXX="g++"
5027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031 done
5032 IFS=$as_save_IFS
5033
5034 fi
5035 fi
5036 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5037 if test -n "$BUILD_CXX"; then
5038   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5039 echo "${ECHO_T}$BUILD_CXX" >&6; }
5040 else
5041   { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5043 fi
5044
5045
5046      if test -z "$BUILD_CXX"; then
5047        # Extract the first word of "c++", so it can be a program name with args.
5048 set dummy c++; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   if test -n "$BUILD_CXX"; then
5055   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5056 else
5057   ac_prog_rejected=no
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061   IFS=$as_save_IFS
5062   test -z "$as_dir" && as_dir=.
5063   for ac_exec_ext in '' $ac_executable_extensions; do
5064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5065     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5066        ac_prog_rejected=yes
5067        continue
5068      fi
5069     ac_cv_prog_BUILD_CXX="c++"
5070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071     break 2
5072   fi
5073 done
5074 done
5075 IFS=$as_save_IFS
5076
5077 if test $ac_prog_rejected = yes; then
5078   # We found a bogon in the path, so make sure we never use it.
5079   set dummy $ac_cv_prog_BUILD_CXX
5080   shift
5081   if test $# != 0; then
5082     # We chose a different compiler from the bogus one.
5083     # However, it has the same basename, so the bogon will be chosen
5084     # first if we set BUILD_CXX to just the basename; use the full file name.
5085     shift
5086     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5087   fi
5088 fi
5089 fi
5090 fi
5091 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5092 if test -n "$BUILD_CXX"; then
5093   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5094 echo "${ECHO_T}$BUILD_CXX" >&6; }
5095 else
5096   { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5098 fi
5099
5100
5101      fi
5102   fi
5103 else
5104   LLVM_CROSS_COMPILING=0
5105
5106 fi
5107
5108 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5109   cvsbuild="yes"
5110   optimize="no"
5111   CVSBUILD=CVSBUILD=1
5112
5113 else
5114   cvsbuild="no"
5115   optimize="yes"
5116 fi
5117
5118
5119 # Check whether --enable-libcpp was given.
5120 if test "${enable_libcpp+set}" = set; then
5121   enableval=$enable_libcpp;
5122 else
5123   enableval=default
5124 fi
5125
5126 case "$enableval" in
5127   yes) ENABLE_LIBCPP=1
5128  ;;
5129   no)  ENABLE_LIBCPP=0
5130  ;;
5131   default) ENABLE_LIBCPP=0
5132 ;;
5133   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5134 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5135    { (exit 1); exit 1; }; } ;;
5136 esac
5137
5138 # Check whether --enable-cxx11 was given.
5139 if test "${enable_cxx11+set}" = set; then
5140   enableval=$enable_cxx11;
5141 else
5142   enableval=default
5143 fi
5144
5145 case "$enableval" in
5146   yes) ENABLE_CXX11=1
5147  ;;
5148   no)  ENABLE_CXX11=0
5149  ;;
5150   default) ENABLE_CXX11=0
5151 ;;
5152   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5153 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5154    { (exit 1); exit 1; }; } ;;
5155 esac
5156
5157 clang_arcmt="yes"
5158 # Check whether --enable-clang-arcmt was given.
5159 if test "${enable_clang_arcmt+set}" = set; then
5160   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5161 else
5162   enableval="yes"
5163 fi
5164
5165 case "$enableval" in
5166   yes) ENABLE_CLANG_ARCMT=1
5167  ;;
5168   no)  ENABLE_CLANG_ARCMT=0
5169  ;;
5170   default) ENABLE_CLANG_ARCMT=1
5171 ;;
5172   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5174    { (exit 1); exit 1; }; } ;;
5175 esac
5176
5177 clang_static_analyzer="yes"
5178 # Check whether --enable-clang-static-analyzer was given.
5179 if test "${enable_clang_static_analyzer+set}" = set; then
5180   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5181 else
5182   enableval="yes"
5183 fi
5184
5185 case "$enableval" in
5186   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5187  ;;
5188   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5189  ;;
5190   default) ENABLE_CLANG_STATIC_ANALYZER=1
5191 ;;
5192   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5194    { (exit 1); exit 1; }; } ;;
5195 esac
5196
5197 # Check whether --enable-clang-rewriter was given.
5198 if test "${enable_clang_rewriter+set}" = set; then
5199   enableval=$enable_clang_rewriter;
5200 else
5201   enableval="yes"
5202 fi
5203
5204 case "$enableval" in
5205   yes) ENABLE_CLANG_REWRITER=1
5206  ;;
5207   no)
5208     if test ${clang_arcmt} != "no" ; then
5209       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5210 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5211    { (exit 1); exit 1; }; }
5212     fi
5213     if test ${clang_static_analyzer} != "no" ; then
5214       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5215 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5216    { (exit 1); exit 1; }; }
5217     fi
5218     ENABLE_CLANG_REWRITER=0
5219
5220     ;;
5221   default) ENABLE_CLANG_REWRITER=1
5222 ;;
5223   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5225    { (exit 1); exit 1; }; } ;;
5226 esac
5227
5228 # Check whether --enable-optimized was given.
5229 if test "${enable_optimized+set}" = set; then
5230   enableval=$enable_optimized;
5231 else
5232   enableval=$optimize
5233 fi
5234
5235 if test ${enableval} = "no" ; then
5236   ENABLE_OPTIMIZED=
5237
5238 else
5239   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5240
5241 fi
5242
5243 # Check whether --enable-profiling was given.
5244 if test "${enable_profiling+set}" = set; then
5245   enableval=$enable_profiling;
5246 else
5247   enableval="no"
5248 fi
5249
5250 if test ${enableval} = "no" ; then
5251   ENABLE_PROFILING=
5252
5253 else
5254   ENABLE_PROFILING=ENABLE_PROFILING=1
5255
5256 fi
5257
5258 # Check whether --enable-assertions was given.
5259 if test "${enable_assertions+set}" = set; then
5260   enableval=$enable_assertions;
5261 else
5262   enableval="yes"
5263 fi
5264
5265 if test ${enableval} = "yes" ; then
5266   DISABLE_ASSERTIONS=
5267
5268 else
5269   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5270
5271 fi
5272
5273 # Check whether --enable-werror was given.
5274 if test "${enable_werror+set}" = set; then
5275   enableval=$enable_werror;
5276 else
5277   enableval="no"
5278 fi
5279
5280 case "$enableval" in
5281   yes) ENABLE_WERROR=1
5282  ;;
5283   no)  ENABLE_WERROR=0
5284  ;;
5285   default) ENABLE_WERROR=0
5286 ;;
5287   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5288 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5289    { (exit 1); exit 1; }; } ;;
5290 esac
5291
5292 # Check whether --enable-expensive-checks was given.
5293 if test "${enable_expensive_checks+set}" = set; then
5294   enableval=$enable_expensive_checks;
5295 else
5296   enableval="no"
5297 fi
5298
5299 if test ${enableval} = "yes" ; then
5300   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5301
5302   EXPENSIVE_CHECKS=yes
5303
5304 else
5305   ENABLE_EXPENSIVE_CHECKS=
5306
5307   EXPENSIVE_CHECKS=no
5308
5309 fi
5310
5311 # Check whether --enable-debug-runtime was given.
5312 if test "${enable_debug_runtime+set}" = set; then
5313   enableval=$enable_debug_runtime;
5314 else
5315   enableval=no
5316 fi
5317
5318 if test ${enableval} = "no" ; then
5319   DEBUG_RUNTIME=
5320
5321 else
5322   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5323
5324 fi
5325
5326 # Check whether --enable-debug-symbols was given.
5327 if test "${enable_debug_symbols+set}" = set; then
5328   enableval=$enable_debug_symbols;
5329 else
5330   enableval=no
5331 fi
5332
5333 if test ${enableval} = "no" ; then
5334   DEBUG_SYMBOLS=
5335
5336 else
5337   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5338
5339 fi
5340
5341 # Check whether --enable-keep-symbols was given.
5342 if test "${enable_keep_symbols+set}" = set; then
5343   enableval=$enable_keep_symbols;
5344 else
5345   enableval=no
5346 fi
5347
5348 if test ${enableval} = "no" ; then
5349   KEEP_SYMBOLS=
5350
5351 else
5352   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5353
5354 fi
5355
5356 # Check whether --enable-jit was given.
5357 if test "${enable_jit+set}" = set; then
5358   enableval=$enable_jit;
5359 else
5360   enableval=default
5361 fi
5362
5363 if test ${enableval} = "no"
5364 then
5365   JIT=
5366
5367 else
5368   case "$llvm_cv_target_arch" in
5369     x86)         TARGET_HAS_JIT=1
5370  ;;
5371     Sparc)       TARGET_HAS_JIT=0
5372  ;;
5373     PowerPC)     TARGET_HAS_JIT=1
5374  ;;
5375     x86_64)      TARGET_HAS_JIT=1
5376  ;;
5377     ARM)         TARGET_HAS_JIT=1
5378  ;;
5379     AArch64)     TARGET_HAS_JIT=0
5380  ;;
5381     Mips)        TARGET_HAS_JIT=1
5382  ;;
5383     XCore)       TARGET_HAS_JIT=0
5384  ;;
5385     MSP430)      TARGET_HAS_JIT=0
5386  ;;
5387     Hexagon)     TARGET_HAS_JIT=0
5388  ;;
5389     MBlaze)      TARGET_HAS_JIT=0
5390  ;;
5391     NVPTX)       TARGET_HAS_JIT=0
5392  ;;
5393     *)           TARGET_HAS_JIT=0
5394  ;;
5395   esac
5396 fi
5397
5398 # Check whether --enable-docs was given.
5399 if test "${enable_docs+set}" = set; then
5400   enableval=$enable_docs;
5401 else
5402   enableval=default
5403 fi
5404
5405 case "$enableval" in
5406   yes) ENABLE_DOCS=1
5407  ;;
5408   no)  ENABLE_DOCS=0
5409  ;;
5410   default) ENABLE_DOCS=1
5411  ;;
5412   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5413 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5414    { (exit 1); exit 1; }; } ;;
5415 esac
5416
5417 # Check whether --enable-doxygen was given.
5418 if test "${enable_doxygen+set}" = set; then
5419   enableval=$enable_doxygen;
5420 else
5421   enableval=default
5422 fi
5423
5424 case "$enableval" in
5425   yes) ENABLE_DOXYGEN=1
5426  ;;
5427   no)  ENABLE_DOXYGEN=0
5428  ;;
5429   default) ENABLE_DOXYGEN=0
5430  ;;
5431   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5433    { (exit 1); exit 1; }; } ;;
5434 esac
5435
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438   enableval=$enable_threads;
5439 else
5440   enableval=default
5441 fi
5442
5443 case "$enableval" in
5444   yes) LLVM_ENABLE_THREADS=1
5445  ;;
5446   no)  LLVM_ENABLE_THREADS=0
5447  ;;
5448   default) LLVM_ENABLE_THREADS=1
5449  ;;
5450   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452    { (exit 1); exit 1; }; } ;;
5453 esac
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5457 _ACEOF
5458
5459
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462   enableval=$enable_pthreads;
5463 else
5464   enableval=default
5465 fi
5466
5467 case "$enableval" in
5468   yes) ENABLE_PTHREADS=1
5469  ;;
5470   no)  ENABLE_PTHREADS=0
5471  ;;
5472   default) ENABLE_PTHREADS=1
5473  ;;
5474   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476    { (exit 1); exit 1; }; } ;;
5477 esac
5478
5479 # Check whether --enable-pic was given.
5480 if test "${enable_pic+set}" = set; then
5481   enableval=$enable_pic;
5482 else
5483   enableval=default
5484 fi
5485
5486 case "$enableval" in
5487   yes) ENABLE_PIC=1
5488  ;;
5489   no)  ENABLE_PIC=0
5490  ;;
5491   default) ENABLE_PIC=1
5492  ;;
5493   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5495    { (exit 1); exit 1; }; } ;;
5496 esac
5497
5498 cat >>confdefs.h <<_ACEOF
5499 #define ENABLE_PIC $ENABLE_PIC
5500 _ACEOF
5501
5502
5503 # Check whether --enable-shared was given.
5504 if test "${enable_shared+set}" = set; then
5505   enableval=$enable_shared;
5506 else
5507   enableval=default
5508 fi
5509
5510 case "$enableval" in
5511   yes) ENABLE_SHARED=1
5512  ;;
5513   no)  ENABLE_SHARED=0
5514  ;;
5515   default) ENABLE_SHARED=0
5516  ;;
5517   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5519    { (exit 1); exit 1; }; } ;;
5520 esac
5521
5522 # Check whether --enable-embed-stdcxx was given.
5523 if test "${enable_embed_stdcxx+set}" = set; then
5524   enableval=$enable_embed_stdcxx;
5525 else
5526   enableval=default
5527 fi
5528
5529 case "$enableval" in
5530   yes) ENABLE_EMBED_STDCXX=1
5531  ;;
5532   no)  ENABLE_EMBED_STDCXX=0
5533  ;;
5534   default) ENABLE_EMBED_STDCXX=0
5535  ;;
5536   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5537 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5538    { (exit 1); exit 1; }; } ;;
5539 esac
5540
5541 # Check whether --enable-timestamps was given.
5542 if test "${enable_timestamps+set}" = set; then
5543   enableval=$enable_timestamps;
5544 else
5545   enableval=default
5546 fi
5547
5548 case "$enableval" in
5549   yes) ENABLE_TIMESTAMPS=1
5550  ;;
5551   no)  ENABLE_TIMESTAMPS=0
5552  ;;
5553   default) ENABLE_TIMESTAMPS=1
5554  ;;
5555   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5556 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5557    { (exit 1); exit 1; }; } ;;
5558 esac
5559
5560 cat >>confdefs.h <<_ACEOF
5561 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5562 _ACEOF
5563
5564
5565
5566 # Check whether --enable-backtraces was given.
5567 if test "${enable_backtraces+set}" = set; then
5568   enableval=$enable_backtraces;
5569 else
5570   enableval=default
5571 fi
5572
5573 case "$enableval" in
5574   yes) ENABLE_BACKTRACES=1
5575  ;;
5576   no)  ENABLE_BACKTRACES=0
5577  ;;
5578   default) ENABLE_BACKTRACES=1
5579  ;;
5580   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5581 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5582    { (exit 1); exit 1; }; } ;;
5583 esac
5584
5585 cat >>confdefs.h <<_ACEOF
5586 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5587 _ACEOF
5588
5589
5590 TARGETS_TO_BUILD=""
5591 # Check whether --enable-targets was given.
5592 if test "${enable_targets+set}" = set; then
5593   enableval=$enable_targets;
5594 else
5595   enableval=all
5596 fi
5597
5598 if test "$enableval" = host-only ; then
5599   enableval=host
5600 fi
5601 case "$enableval" in
5602   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5603   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5604       case "$a_target" in
5605         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5606         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5607         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5608         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5609         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5610         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5611         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5612         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5613         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5614         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5615         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5616         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5617         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5618         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5619         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5620         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5621         host) case "$llvm_cv_target_arch" in
5622             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5623             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5624             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5625             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5626             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5627             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5628             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5629             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5630             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5631             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5632             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5633             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5634 echo "$as_me: error: Can not set target to build" >&2;}
5635    { (exit 1); exit 1; }; } ;;
5636           esac ;;
5637         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5638 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5639    { (exit 1); exit 1; }; } ;;
5640       esac
5641   done
5642   ;;
5643 esac
5644
5645 # Check whether --enable-experimental-targets was given.
5646 if test "${enable_experimental_targets+set}" = set; then
5647   enableval=$enable_experimental_targets;
5648 else
5649   enableval=disable
5650 fi
5651
5652
5653 if test ${enableval} != "disable"
5654 then
5655   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5656 fi
5657
5658 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5659
5660
5661 for a_target in $TARGETS_TO_BUILD; do
5662   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5663
5664 cat >>confdefs.h <<_ACEOF
5665 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5666 _ACEOF
5667
5668     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5669     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5670     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5671     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5672     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5673       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5674     fi
5675     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5676       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5677     fi
5678
5679 cat >>confdefs.h <<_ACEOF
5680 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5681 _ACEOF
5682
5683
5684 cat >>confdefs.h <<_ACEOF
5685 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5686 _ACEOF
5687
5688
5689 cat >>confdefs.h <<_ACEOF
5690 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5691 _ACEOF
5692
5693
5694 cat >>confdefs.h <<_ACEOF
5695 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5696 _ACEOF
5697
5698     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5699
5700 cat >>confdefs.h <<_ACEOF
5701 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5702 _ACEOF
5703
5704     fi
5705     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5706
5707 cat >>confdefs.h <<_ACEOF
5708 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5709 _ACEOF
5710
5711     fi
5712   fi
5713 done
5714
5715 LLVM_ENUM_TARGETS=""
5716 LLVM_ENUM_ASM_PRINTERS=""
5717 LLVM_ENUM_ASM_PARSERS=""
5718 LLVM_ENUM_DISASSEMBLERS=""
5719 for target_to_build in $TARGETS_TO_BUILD; do
5720   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5721   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5722     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5723   fi
5724   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5725     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5726   fi
5727   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5728     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5729   fi
5730 done
5731
5732
5733
5734
5735
5736
5737 # Check whether --with-optimize-option was given.
5738 if test "${with_optimize_option+set}" = set; then
5739   withval=$with_optimize_option;
5740 else
5741   withval=default
5742 fi
5743
5744 { echo "$as_me:$LINENO: checking optimization flags" >&5
5745 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5746 case "$withval" in
5747   default)
5748     case "$llvm_cv_os_type" in
5749     FreeBSD) optimize_option=-O2 ;;
5750     MingW) optimize_option=-O2 ;;
5751     *)     optimize_option=-O3 ;;
5752     esac ;;
5753   *) optimize_option="$withval" ;;
5754 esac
5755 OPTIMIZE_OPTION=$optimize_option
5756
5757 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5758 echo "${ECHO_T}$optimize_option" >&6; }
5759
5760
5761 # Check whether --with-extra-options was given.
5762 if test "${with_extra_options+set}" = set; then
5763   withval=$with_extra_options;
5764 else
5765   withval=default
5766 fi
5767
5768 case "$withval" in
5769   default) EXTRA_OPTIONS= ;;
5770   *) EXTRA_OPTIONS=$withval ;;
5771 esac
5772 EXTRA_OPTIONS=$EXTRA_OPTIONS
5773
5774
5775
5776 # Check whether --with-extra-ld-options was given.
5777 if test "${with_extra_ld_options+set}" = set; then
5778   withval=$with_extra_ld_options;
5779 else
5780   withval=default
5781 fi
5782
5783 case "$withval" in
5784   default) EXTRA_LD_OPTIONS= ;;
5785   *) EXTRA_LD_OPTIONS=$withval ;;
5786 esac
5787 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5788
5789
5790 # Check whether --enable-bindings was given.
5791 if test "${enable_bindings+set}" = set; then
5792   enableval=$enable_bindings;
5793 else
5794   enableval=default
5795 fi
5796
5797 BINDINGS_TO_BUILD=""
5798 case "$enableval" in
5799   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5800   all ) BINDINGS_TO_BUILD="ocaml" ;;
5801   none | no) BINDINGS_TO_BUILD="" ;;
5802   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5803       case "$a_binding" in
5804         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5805         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5806 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5807    { (exit 1); exit 1; }; } ;;
5808       esac
5809   done
5810   ;;
5811 esac
5812
5813
5814 # Check whether --with-ocaml-libdir was given.
5815 if test "${with_ocaml_libdir+set}" = set; then
5816   withval=$with_ocaml_libdir;
5817 else
5818   withval=auto
5819 fi
5820
5821 case "$withval" in
5822   auto) with_ocaml_libdir="$withval" ;;
5823   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5824   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5825 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5826    { (exit 1); exit 1; }; } ;;
5827 esac
5828
5829
5830 # Check whether --with-clang-srcdir was given.
5831 if test "${with_clang_srcdir+set}" = set; then
5832   withval=$with_clang_srcdir;
5833 else
5834   withval="-"
5835 fi
5836
5837 case "$withval" in
5838   -) clang_src_root="" ;;
5839   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5840   *) clang_src_root="$ac_pwd/$withval" ;;
5841 esac
5842 CLANG_SRC_ROOT=$clang_src_root
5843
5844
5845
5846 # Check whether --with-clang-resource-dir was given.
5847 if test "${with_clang_resource_dir+set}" = set; then
5848   withval=$with_clang_resource_dir;
5849 else
5850   withval=""
5851 fi
5852
5853
5854 cat >>confdefs.h <<_ACEOF
5855 #define CLANG_RESOURCE_DIR "$withval"
5856 _ACEOF
5857
5858
5859
5860 # Check whether --with-c-include-dirs was given.
5861 if test "${with_c_include_dirs+set}" = set; then
5862   withval=$with_c_include_dirs;
5863 else
5864   withval=""
5865 fi
5866
5867
5868 cat >>confdefs.h <<_ACEOF
5869 #define C_INCLUDE_DIRS "$withval"
5870 _ACEOF
5871
5872
5873 # Clang normally uses the system c++ headers and libraries. With this option,
5874 # clang will use the ones provided by a gcc installation instead. This option should
5875 # be passed the same value that was used with --prefix when configuring gcc.
5876
5877 # Check whether --with-gcc-toolchain was given.
5878 if test "${with_gcc_toolchain+set}" = set; then
5879   withval=$with_gcc_toolchain;
5880 else
5881   withval=""
5882 fi
5883
5884
5885 cat >>confdefs.h <<_ACEOF
5886 #define GCC_INSTALL_PREFIX "$withval"
5887 _ACEOF
5888
5889
5890
5891 # Check whether --with-default-sysroot was given.
5892 if test "${with_default_sysroot+set}" = set; then
5893   withval=$with_default_sysroot;
5894 else
5895   withval=""
5896 fi
5897
5898
5899 cat >>confdefs.h <<_ACEOF
5900 #define DEFAULT_SYSROOT "$withval"
5901 _ACEOF
5902
5903
5904
5905 # Check whether --with-binutils-include was given.
5906 if test "${with_binutils_include+set}" = set; then
5907   withval=$with_binutils_include;
5908 else
5909   withval=default
5910 fi
5911
5912 case "$withval" in
5913   default) WITH_BINUTILS_INCDIR=default ;;
5914   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5915   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5916 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5917    { (exit 1); exit 1; }; } ;;
5918 esac
5919 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5920   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5921
5922   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5923      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5924      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5925 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5926    { (exit 1); exit 1; }; };
5927   fi
5928 fi
5929
5930
5931 # Check whether --with-bug-report-url was given.
5932 if test "${with_bug_report_url+set}" = set; then
5933   withval=$with_bug_report_url;
5934 else
5935   withval="http://llvm.org/bugs/"
5936 fi
5937
5938
5939 cat >>confdefs.h <<_ACEOF
5940 #define BUG_REPORT_URL "$withval"
5941 _ACEOF
5942
5943
5944 # Check whether --enable-libffi was given.
5945 if test "${enable_libffi+set}" = set; then
5946   enableval=$enable_libffi; case "$enableval" in
5947     yes) llvm_cv_enable_libffi="yes" ;;
5948     no)  llvm_cv_enable_libffi="no"  ;;
5949     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5950 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5951    { (exit 1); exit 1; }; } ;;
5952   esac
5953 else
5954   llvm_cv_enable_libffi=no
5955 fi
5956
5957
5958
5959 # Check whether --with-internal-prefix was given.
5960 if test "${with_internal_prefix+set}" = set; then
5961   withval=$with_internal_prefix;
5962 else
5963   withval=""
5964 fi
5965
5966 INTERNAL_PREFIX=$withval
5967
5968
5969
5970 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5971 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5972 if test "${lt_cv_path_NM+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   if test -n "$NM"; then
5976   # Let the user override the test.
5977   lt_cv_path_NM="$NM"
5978 else
5979   lt_nm_to_check="${ac_tool_prefix}nm"
5980   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5981     lt_nm_to_check="$lt_nm_to_check nm"
5982   fi
5983   for lt_tmp_nm in $lt_nm_to_check; do
5984     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5985     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5986       IFS="$lt_save_ifs"
5987       test -z "$ac_dir" && ac_dir=.
5988       tmp_nm="$ac_dir/$lt_tmp_nm"
5989       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5990         # Check to see if the nm accepts a BSD-compat flag.
5991         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5992         #   nm: unknown option "B" ignored
5993         # Tru64's nm complains that /dev/null is an invalid object file
5994         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5995         */dev/null* | *'Invalid file or object type'*)
5996           lt_cv_path_NM="$tmp_nm -B"
5997           break
5998           ;;
5999         *)
6000           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6001           */dev/null*)
6002             lt_cv_path_NM="$tmp_nm -p"
6003             break
6004             ;;
6005           *)
6006             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6007             continue # so that we can try to find one that supports BSD flags
6008             ;;
6009           esac
6010           ;;
6011         esac
6012       fi
6013     done
6014     IFS="$lt_save_ifs"
6015   done
6016   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6017 fi
6018 fi
6019 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6020 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6021 NM="$lt_cv_path_NM"
6022
6023
6024
6025 { echo "$as_me:$LINENO: checking for GNU make" >&5
6026 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6027 if test "${llvm_cv_gnu_make_command+set}" = set; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030   llvm_cv_gnu_make_command=''
6031  for a in "$MAKE" make gmake gnumake ; do
6032   if test -z "$a" ; then continue ; fi ;
6033   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6034   then
6035    llvm_cv_gnu_make_command=$a ;
6036    break;
6037   fi
6038  done
6039 fi
6040 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6041 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6042  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6043    ifGNUmake='' ;
6044  else
6045    ifGNUmake='#' ;
6046    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6047 echo "${ECHO_T}\"Not found\"" >&6; };
6048  fi
6049
6050
6051 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6052 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6053 LN_S=$as_ln_s
6054 if test "$LN_S" = "ln -s"; then
6055   { echo "$as_me:$LINENO: result: yes" >&5
6056 echo "${ECHO_T}yes" >&6; }
6057 else
6058   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6059 echo "${ECHO_T}no, using $LN_S" >&6; }
6060 fi
6061
6062 # Extract the first word of "cmp", so it can be a program name with args.
6063 set dummy cmp; ac_word=$2
6064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066 if test "${ac_cv_path_CMP+set}" = set; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   case $CMP in
6070   [\\/]* | ?:[\\/]*)
6071   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6072   ;;
6073   *)
6074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079   for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6088
6089   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6090   ;;
6091 esac
6092 fi
6093 CMP=$ac_cv_path_CMP
6094 if test -n "$CMP"; then
6095   { echo "$as_me:$LINENO: result: $CMP" >&5
6096 echo "${ECHO_T}$CMP" >&6; }
6097 else
6098   { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6100 fi
6101
6102
6103 # Extract the first word of "cp", so it can be a program name with args.
6104 set dummy cp; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_path_CP+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   case $CP in
6111   [\\/]* | ?:[\\/]*)
6112   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6113   ;;
6114   *)
6115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120   for ac_exec_ext in '' $ac_executable_extensions; do
6121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6131   ;;
6132 esac
6133 fi
6134 CP=$ac_cv_path_CP
6135 if test -n "$CP"; then
6136   { echo "$as_me:$LINENO: result: $CP" >&5
6137 echo "${ECHO_T}$CP" >&6; }
6138 else
6139   { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6141 fi
6142
6143
6144 # Extract the first word of "date", so it can be a program name with args.
6145 set dummy date; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_DATE+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   case $DATE in
6152   [\\/]* | ?:[\\/]*)
6153   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6154   ;;
6155   *)
6156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6172   ;;
6173 esac
6174 fi
6175 DATE=$ac_cv_path_DATE
6176 if test -n "$DATE"; then
6177   { echo "$as_me:$LINENO: result: $DATE" >&5
6178 echo "${ECHO_T}$DATE" >&6; }
6179 else
6180   { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6182 fi
6183
6184
6185 # Extract the first word of "find", so it can be a program name with args.
6186 set dummy find; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_FIND+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   case $FIND in
6193   [\\/]* | ?:[\\/]*)
6194   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6195   ;;
6196   *)
6197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6213   ;;
6214 esac
6215 fi
6216 FIND=$ac_cv_path_FIND
6217 if test -n "$FIND"; then
6218   { echo "$as_me:$LINENO: result: $FIND" >&5
6219 echo "${ECHO_T}$FIND" >&6; }
6220 else
6221   { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6223 fi
6224
6225
6226 # Extract the first word of "grep", so it can be a program name with args.
6227 set dummy grep; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_GREP+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   case $GREP in
6234   [\\/]* | ?:[\\/]*)
6235   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6236   ;;
6237   *)
6238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6254   ;;
6255 esac
6256 fi
6257 GREP=$ac_cv_path_GREP
6258 if test -n "$GREP"; then
6259   { echo "$as_me:$LINENO: result: $GREP" >&5
6260 echo "${ECHO_T}$GREP" >&6; }
6261 else
6262   { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6264 fi
6265
6266
6267 # Extract the first word of "mkdir", so it can be a program name with args.
6268 set dummy mkdir; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_MKDIR+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274   case $MKDIR in
6275   [\\/]* | ?:[\\/]*)
6276   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6277   ;;
6278   *)
6279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282   IFS=$as_save_IFS
6283   test -z "$as_dir" && as_dir=.
6284   for ac_exec_ext in '' $ac_executable_extensions; do
6285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288     break 2
6289   fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6295   ;;
6296 esac
6297 fi
6298 MKDIR=$ac_cv_path_MKDIR
6299 if test -n "$MKDIR"; then
6300   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6301 echo "${ECHO_T}$MKDIR" >&6; }
6302 else
6303   { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6305 fi
6306
6307
6308 # Extract the first word of "mv", so it can be a program name with args.
6309 set dummy mv; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_path_MV+set}" = set; then
6313   echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315   case $MV in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325   for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332 done
6333 IFS=$as_save_IFS
6334
6335   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6336   ;;
6337 esac
6338 fi
6339 MV=$ac_cv_path_MV
6340 if test -n "$MV"; then
6341   { echo "$as_me:$LINENO: result: $MV" >&5
6342 echo "${ECHO_T}$MV" >&6; }
6343 else
6344   { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6346 fi
6347
6348
6349 if test -n "$ac_tool_prefix"; then
6350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6354 if test "${ac_cv_prog_RANLIB+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   if test -n "$RANLIB"; then
6358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365   for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 RANLIB=$ac_cv_prog_RANLIB
6378 if test -n "$RANLIB"; then
6379   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6380 echo "${ECHO_T}$RANLIB" >&6; }
6381 else
6382   { echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_RANLIB"; then
6389   ac_ct_RANLIB=$RANLIB
6390   # Extract the first word of "ranlib", so it can be a program name with args.
6391 set dummy ranlib; ac_word=$2
6392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   if test -n "$ac_ct_RANLIB"; then
6398   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405   for ac_exec_ext in '' $ac_executable_extensions; do
6406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6407     ac_cv_prog_ac_ct_RANLIB="ranlib"
6408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412 done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6418 if test -n "$ac_ct_RANLIB"; then
6419   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6420 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6421 else
6422   { echo "$as_me:$LINENO: result: no" >&5
6423 echo "${ECHO_T}no" >&6; }
6424 fi
6425
6426   if test "x$ac_ct_RANLIB" = x; then
6427     RANLIB=":"
6428   else
6429     case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6432 whose name does not start with the host triplet.  If you think this
6433 configuration is useful to you, please write to autoconf@gnu.org." >&5
6434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6435 whose name does not start with the host triplet.  If you think this
6436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6437 ac_tool_warned=yes ;;
6438 esac
6439     RANLIB=$ac_ct_RANLIB
6440   fi
6441 else
6442   RANLIB="$ac_cv_prog_RANLIB"
6443 fi
6444
6445 if test -n "$ac_tool_prefix"; then
6446   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}ar; ac_word=$2
6448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6450 if test "${ac_cv_prog_AR+set}" = set; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   if test -n "$AR"; then
6454   ac_cv_prog_AR="$AR" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461   for ac_exec_ext in '' $ac_executable_extensions; do
6462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6463     ac_cv_prog_AR="${ac_tool_prefix}ar"
6464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 AR=$ac_cv_prog_AR
6474 if test -n "$AR"; then
6475   { echo "$as_me:$LINENO: result: $AR" >&5
6476 echo "${ECHO_T}$AR" >&6; }
6477 else
6478   { echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6; }
6480 fi
6481
6482
6483 fi
6484 if test -z "$ac_cv_prog_AR"; then
6485   ac_ct_AR=$AR
6486   # Extract the first word of "ar", so it can be a program name with args.
6487 set dummy ar; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   if test -n "$ac_ct_AR"; then
6494   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501   for ac_exec_ext in '' $ac_executable_extensions; do
6502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6503     ac_cv_prog_ac_ct_AR="ar"
6504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508 done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6514 if test -n "$ac_ct_AR"; then
6515   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6516 echo "${ECHO_T}$ac_ct_AR" >&6; }
6517 else
6518   { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6520 fi
6521
6522   if test "x$ac_ct_AR" = x; then
6523     AR="false"
6524   else
6525     case $cross_compiling:$ac_tool_warned in
6526 yes:)
6527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6528 whose name does not start with the host triplet.  If you think this
6529 configuration is useful to you, please write to autoconf@gnu.org." >&5
6530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6531 whose name does not start with the host triplet.  If you think this
6532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6533 ac_tool_warned=yes ;;
6534 esac
6535     AR=$ac_ct_AR
6536   fi
6537 else
6538   AR="$ac_cv_prog_AR"
6539 fi
6540
6541 # Extract the first word of "rm", so it can be a program name with args.
6542 set dummy rm; ac_word=$2
6543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6545 if test "${ac_cv_path_RM+set}" = set; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548   case $RM in
6549   [\\/]* | ?:[\\/]*)
6550   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6551   ;;
6552   *)
6553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558   for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6569   ;;
6570 esac
6571 fi
6572 RM=$ac_cv_path_RM
6573 if test -n "$RM"; then
6574   { echo "$as_me:$LINENO: result: $RM" >&5
6575 echo "${ECHO_T}$RM" >&6; }
6576 else
6577   { echo "$as_me:$LINENO: result: no" >&5
6578 echo "${ECHO_T}no" >&6; }
6579 fi
6580
6581
6582 # Extract the first word of "sed", so it can be a program name with args.
6583 set dummy sed; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_SED+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   case $SED in
6590   [\\/]* | ?:[\\/]*)
6591   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6592   ;;
6593   *)
6594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599   for ac_exec_ext in '' $ac_executable_extensions; do
6600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6610   ;;
6611 esac
6612 fi
6613 SED=$ac_cv_path_SED
6614 if test -n "$SED"; then
6615   { echo "$as_me:$LINENO: result: $SED" >&5
6616 echo "${ECHO_T}$SED" >&6; }
6617 else
6618   { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6620 fi
6621
6622
6623 # Extract the first word of "tar", so it can be a program name with args.
6624 set dummy tar; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_TAR+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   case $TAR in
6631   [\\/]* | ?:[\\/]*)
6632   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6633   ;;
6634   *)
6635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6651   ;;
6652 esac
6653 fi
6654 TAR=$ac_cv_path_TAR
6655 if test -n "$TAR"; then
6656   { echo "$as_me:$LINENO: result: $TAR" >&5
6657 echo "${ECHO_T}$TAR" >&6; }
6658 else
6659   { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6661 fi
6662
6663
6664 # Extract the first word of "pwd", so it can be a program name with args.
6665 set dummy pwd; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_BINPWD+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   case $BINPWD in
6672   [\\/]* | ?:[\\/]*)
6673   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6674   ;;
6675   *)
6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6692   ;;
6693 esac
6694 fi
6695 BINPWD=$ac_cv_path_BINPWD
6696 if test -n "$BINPWD"; then
6697   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6698 echo "${ECHO_T}$BINPWD" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6702 fi
6703
6704
6705
6706 # Extract the first word of "Graphviz", so it can be a program name with args.
6707 set dummy Graphviz; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   case $GRAPHVIZ in
6714   [\\/]* | ?:[\\/]*)
6715   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6716   ;;
6717   *)
6718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6734   ;;
6735 esac
6736 fi
6737 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6738 if test -n "$GRAPHVIZ"; then
6739   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6740 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6741 else
6742   { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6744 fi
6745
6746
6747 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6748
6749 cat >>confdefs.h <<\_ACEOF
6750 #define HAVE_GRAPHVIZ 1
6751 _ACEOF
6752
6753     if test "$llvm_cv_os_type" = "MingW" ; then
6754     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6755   fi
6756
6757 cat >>confdefs.h <<_ACEOF
6758 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6759 _ACEOF
6760
6761 fi
6762 # Extract the first word of "dot", so it can be a program name with args.
6763 set dummy dot; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_DOT+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   case $DOT in
6770   [\\/]* | ?:[\\/]*)
6771   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6772   ;;
6773   *)
6774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777   IFS=$as_save_IFS
6778   test -z "$as_dir" && as_dir=.
6779   for ac_exec_ext in '' $ac_executable_extensions; do
6780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6790   ;;
6791 esac
6792 fi
6793 DOT=$ac_cv_path_DOT
6794 if test -n "$DOT"; then
6795   { echo "$as_me:$LINENO: result: $DOT" >&5
6796 echo "${ECHO_T}$DOT" >&6; }
6797 else
6798   { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6800 fi
6801
6802
6803 if test "$DOT" != "echo dot" ; then
6804
6805 cat >>confdefs.h <<\_ACEOF
6806 #define HAVE_DOT 1
6807 _ACEOF
6808
6809     if test "$llvm_cv_os_type" = "MingW" ; then
6810     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6811   fi
6812
6813 cat >>confdefs.h <<_ACEOF
6814 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6815 _ACEOF
6816
6817 fi
6818 # Extract the first word of "fdp", so it can be a program name with args.
6819 set dummy fdp; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_FDP+set}" = set; then
6823   echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825   case $FDP in
6826   [\\/]* | ?:[\\/]*)
6827   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6828   ;;
6829   *)
6830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835   for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6846   ;;
6847 esac
6848 fi
6849 FDP=$ac_cv_path_FDP
6850 if test -n "$FDP"; then
6851   { echo "$as_me:$LINENO: result: $FDP" >&5
6852 echo "${ECHO_T}$FDP" >&6; }
6853 else
6854   { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6856 fi
6857
6858
6859 if test "$FDP" != "echo fdp" ; then
6860
6861 cat >>confdefs.h <<\_ACEOF
6862 #define HAVE_FDP 1
6863 _ACEOF
6864
6865     if test "$llvm_cv_os_type" = "MingW" ; then
6866     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6867   fi
6868
6869 cat >>confdefs.h <<_ACEOF
6870 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6871 _ACEOF
6872
6873 fi
6874 # Extract the first word of "neato", so it can be a program name with args.
6875 set dummy neato; ac_word=$2
6876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6878 if test "${ac_cv_path_NEATO+set}" = set; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881   case $NEATO in
6882   [\\/]* | ?:[\\/]*)
6883   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6884   ;;
6885   *)
6886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   test -z "$as_dir" && as_dir=.
6891   for ac_exec_ext in '' $ac_executable_extensions; do
6892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6893     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895     break 2
6896   fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6902   ;;
6903 esac
6904 fi
6905 NEATO=$ac_cv_path_NEATO
6906 if test -n "$NEATO"; then
6907   { echo "$as_me:$LINENO: result: $NEATO" >&5
6908 echo "${ECHO_T}$NEATO" >&6; }
6909 else
6910   { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6912 fi
6913
6914
6915 if test "$NEATO" != "echo neato" ; then
6916
6917 cat >>confdefs.h <<\_ACEOF
6918 #define HAVE_NEATO 1
6919 _ACEOF
6920
6921     if test "$llvm_cv_os_type" = "MingW" ; then
6922     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6923   fi
6924
6925 cat >>confdefs.h <<_ACEOF
6926 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6927 _ACEOF
6928
6929 fi
6930 # Extract the first word of "twopi", so it can be a program name with args.
6931 set dummy twopi; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_path_TWOPI+set}" = set; then
6935   echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937   case $TWOPI in
6938   [\\/]* | ?:[\\/]*)
6939   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6940   ;;
6941   *)
6942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947   for ac_exec_ext in '' $ac_executable_extensions; do
6948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6958   ;;
6959 esac
6960 fi
6961 TWOPI=$ac_cv_path_TWOPI
6962 if test -n "$TWOPI"; then
6963   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6964 echo "${ECHO_T}$TWOPI" >&6; }
6965 else
6966   { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6968 fi
6969
6970
6971 if test "$TWOPI" != "echo twopi" ; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define HAVE_TWOPI 1
6975 _ACEOF
6976
6977     if test "$llvm_cv_os_type" = "MingW" ; then
6978     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6979   fi
6980
6981 cat >>confdefs.h <<_ACEOF
6982 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6983 _ACEOF
6984
6985 fi
6986 # Extract the first word of "circo", so it can be a program name with args.
6987 set dummy circo; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_CIRCO+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   case $CIRCO in
6994   [\\/]* | ?:[\\/]*)
6995   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6996   ;;
6997   *)
6998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7014   ;;
7015 esac
7016 fi
7017 CIRCO=$ac_cv_path_CIRCO
7018 if test -n "$CIRCO"; then
7019   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7020 echo "${ECHO_T}$CIRCO" >&6; }
7021 else
7022   { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7024 fi
7025
7026
7027 if test "$CIRCO" != "echo circo" ; then
7028
7029 cat >>confdefs.h <<\_ACEOF
7030 #define HAVE_CIRCO 1
7031 _ACEOF
7032
7033     if test "$llvm_cv_os_type" = "MingW" ; then
7034     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7035   fi
7036
7037 cat >>confdefs.h <<_ACEOF
7038 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7039 _ACEOF
7040
7041 fi
7042 for ac_prog in gv gsview32
7043 do
7044   # Extract the first word of "$ac_prog", so it can be a program name with args.
7045 set dummy $ac_prog; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_path_GV+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   case $GV in
7052   [\\/]* | ?:[\\/]*)
7053   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7054   ;;
7055   *)
7056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061   for ac_exec_ext in '' $ac_executable_extensions; do
7062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7063     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065     break 2
7066   fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071   ;;
7072 esac
7073 fi
7074 GV=$ac_cv_path_GV
7075 if test -n "$GV"; then
7076   { echo "$as_me:$LINENO: result: $GV" >&5
7077 echo "${ECHO_T}$GV" >&6; }
7078 else
7079   { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7081 fi
7082
7083
7084   test -n "$GV" && break
7085 done
7086 test -n "$GV" || GV="echo gv"
7087
7088 if test "$GV" != "echo gv" ; then
7089
7090 cat >>confdefs.h <<\_ACEOF
7091 #define HAVE_GV 1
7092 _ACEOF
7093
7094     if test "$llvm_cv_os_type" = "MingW" ; then
7095     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7096   fi
7097
7098 cat >>confdefs.h <<_ACEOF
7099 #define LLVM_PATH_GV "$GV${EXEEXT}"
7100 _ACEOF
7101
7102 fi
7103 # Extract the first word of "dotty", so it can be a program name with args.
7104 set dummy dotty; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_DOTTY+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   case $DOTTY in
7111   [\\/]* | ?:[\\/]*)
7112   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7113   ;;
7114   *)
7115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120   for ac_exec_ext in '' $ac_executable_extensions; do
7121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7131   ;;
7132 esac
7133 fi
7134 DOTTY=$ac_cv_path_DOTTY
7135 if test -n "$DOTTY"; then
7136   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7137 echo "${ECHO_T}$DOTTY" >&6; }
7138 else
7139   { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7141 fi
7142
7143
7144 if test "$DOTTY" != "echo dotty" ; then
7145
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DOTTY 1
7148 _ACEOF
7149
7150     if test "$llvm_cv_os_type" = "MingW" ; then
7151     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7152   fi
7153
7154 cat >>confdefs.h <<_ACEOF
7155 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7156 _ACEOF
7157
7158 fi
7159 # Extract the first word of "xdot.py", so it can be a program name with args.
7160 set dummy xdot.py; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   case $XDOT_PY in
7167   [\\/]* | ?:[\\/]*)
7168   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7169   ;;
7170   *)
7171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176   for ac_exec_ext in '' $ac_executable_extensions; do
7177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7178     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7187   ;;
7188 esac
7189 fi
7190 XDOT_PY=$ac_cv_path_XDOT_PY
7191 if test -n "$XDOT_PY"; then
7192   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7193 echo "${ECHO_T}$XDOT_PY" >&6; }
7194 else
7195   { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200 if test "$XDOT_PY" != "echo xdot.py" ; then
7201
7202 cat >>confdefs.h <<\_ACEOF
7203 #define HAVE_XDOT_PY 1
7204 _ACEOF
7205
7206     if test "$llvm_cv_os_type" = "MingW" ; then
7207     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7208   fi
7209
7210 cat >>confdefs.h <<_ACEOF
7211 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7212 _ACEOF
7213
7214 fi
7215
7216 # Find a good install program.  We prefer a C program (faster),
7217 # so one script is as good as another.  But avoid the broken or
7218 # incompatible versions:
7219 # SysV /etc/install, /usr/sbin/install
7220 # SunOS /usr/etc/install
7221 # IRIX /sbin/install
7222 # AIX /bin/install
7223 # AmigaOS /C/install, which installs bootblocks on floppy discs
7224 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7227 # OS/2's system install, which has a completely different semantic
7228 # ./install, which can be erroneously created by make from ./install.sh.
7229 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7230 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7231 if test -z "$INSTALL"; then
7232 if test "${ac_cv_path_install+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240   # Account for people who put trailing slashes in PATH elements.
7241 case $as_dir/ in
7242   ./ | .// | /cC/* | \
7243   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7244   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7245   /usr/ucb/* ) ;;
7246   *)
7247     # OSF1 and SCO ODT 3.0 have their own names for install.
7248     # Don't use installbsd from OSF since it installs stuff as root
7249     # by default.
7250     for ac_prog in ginstall scoinst install; do
7251       for ac_exec_ext in '' $ac_executable_extensions; do
7252         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7253           if test $ac_prog = install &&
7254             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7255             # AIX install.  It has an incompatible calling convention.
7256             :
7257           elif test $ac_prog = install &&
7258             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7259             # program-specific install script used by HP pwplus--don't use.
7260             :
7261           else
7262             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7263             break 3
7264           fi
7265         fi
7266       done
7267     done
7268     ;;
7269 esac
7270 done
7271 IFS=$as_save_IFS
7272
7273
7274 fi
7275   if test "${ac_cv_path_install+set}" = set; then
7276     INSTALL=$ac_cv_path_install
7277   else
7278     # As a last resort, use the slow shell script.  Don't cache a
7279     # value for INSTALL within a source directory, because that will
7280     # break other packages using the cache if that directory is
7281     # removed, or if the value is a relative name.
7282     INSTALL=$ac_install_sh
7283   fi
7284 fi
7285 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7286 echo "${ECHO_T}$INSTALL" >&6; }
7287
7288 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7289 # It thinks the first close brace ends the variable substitution.
7290 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7291
7292 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7293
7294 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7295
7296 case "$INSTALL" in
7297  [\\/$]* | ?:[\\/]* ) ;;
7298  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7299 esac
7300
7301 # Extract the first word of "bzip2", so it can be a program name with args.
7302 set dummy bzip2; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_BZIP2+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   case $BZIP2 in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   ;;
7329 esac
7330 fi
7331 BZIP2=$ac_cv_path_BZIP2
7332 if test -n "$BZIP2"; then
7333   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7334 echo "${ECHO_T}$BZIP2" >&6; }
7335 else
7336   { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7338 fi
7339
7340
7341 # Extract the first word of "cat", so it can be a program name with args.
7342 set dummy cat; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_path_CAT+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   case $CAT in
7349   [\\/]* | ?:[\\/]*)
7350   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7351   ;;
7352   *)
7353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356   IFS=$as_save_IFS
7357   test -z "$as_dir" && as_dir=.
7358   for ac_exec_ext in '' $ac_executable_extensions; do
7359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7360     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362     break 2
7363   fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368   ;;
7369 esac
7370 fi
7371 CAT=$ac_cv_path_CAT
7372 if test -n "$CAT"; then
7373   { echo "$as_me:$LINENO: result: $CAT" >&5
7374 echo "${ECHO_T}$CAT" >&6; }
7375 else
7376   { echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6; }
7378 fi
7379
7380
7381 # Extract the first word of "doxygen", so it can be a program name with args.
7382 set dummy doxygen; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   case $DOXYGEN in
7389   [\\/]* | ?:[\\/]*)
7390   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7391   ;;
7392   *)
7393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398   for ac_exec_ext in '' $ac_executable_extensions; do
7399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408   ;;
7409 esac
7410 fi
7411 DOXYGEN=$ac_cv_path_DOXYGEN
7412 if test -n "$DOXYGEN"; then
7413   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7414 echo "${ECHO_T}$DOXYGEN" >&6; }
7415 else
7416   { echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6; }
7418 fi
7419
7420
7421 # Extract the first word of "groff", so it can be a program name with args.
7422 set dummy groff; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_path_GROFF+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   case $GROFF in
7429   [\\/]* | ?:[\\/]*)
7430   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7431   ;;
7432   *)
7433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436   IFS=$as_save_IFS
7437   test -z "$as_dir" && as_dir=.
7438   for ac_exec_ext in '' $ac_executable_extensions; do
7439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442     break 2
7443   fi
7444 done
7445 done
7446 IFS=$as_save_IFS
7447
7448   ;;
7449 esac
7450 fi
7451 GROFF=$ac_cv_path_GROFF
7452 if test -n "$GROFF"; then
7453   { echo "$as_me:$LINENO: result: $GROFF" >&5
7454 echo "${ECHO_T}$GROFF" >&6; }
7455 else
7456   { echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6; }
7458 fi
7459
7460
7461 # Extract the first word of "gzip", so it can be a program name with args.
7462 set dummy gzip; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   case $GZIPBIN in
7469   [\\/]* | ?:[\\/]*)
7470   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7471   ;;
7472   *)
7473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478   for ac_exec_ext in '' $ac_executable_extensions; do
7479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488   ;;
7489 esac
7490 fi
7491 GZIPBIN=$ac_cv_path_GZIPBIN
7492 if test -n "$GZIPBIN"; then
7493   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7494 echo "${ECHO_T}$GZIPBIN" >&6; }
7495 else
7496   { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7498 fi
7499
7500
7501 # Extract the first word of "pdfroff", so it can be a program name with args.
7502 set dummy pdfroff; ac_word=$2
7503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_PDFROFF+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   case $PDFROFF in
7509   [\\/]* | ?:[\\/]*)
7510   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7511   ;;
7512   *)
7513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516   IFS=$as_save_IFS
7517   test -z "$as_dir" && as_dir=.
7518   for ac_exec_ext in '' $ac_executable_extensions; do
7519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7520     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522     break 2
7523   fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528   ;;
7529 esac
7530 fi
7531 PDFROFF=$ac_cv_path_PDFROFF
7532 if test -n "$PDFROFF"; then
7533   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7534 echo "${ECHO_T}$PDFROFF" >&6; }
7535 else
7536   { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7538 fi
7539
7540
7541 # Extract the first word of "zip", so it can be a program name with args.
7542 set dummy zip; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_ZIP+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   case $ZIP in
7549   [\\/]* | ?:[\\/]*)
7550   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7551   ;;
7552   *)
7553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563   fi
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568   ;;
7569 esac
7570 fi
7571 ZIP=$ac_cv_path_ZIP
7572 if test -n "$ZIP"; then
7573   { echo "$as_me:$LINENO: result: $ZIP" >&5
7574 echo "${ECHO_T}$ZIP" >&6; }
7575 else
7576   { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7578 fi
7579
7580
7581 for ac_prog in ocamlc
7582 do
7583   # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_OCAMLC+set}" = set; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   case $OCAMLC in
7591   [\\/]* | ?:[\\/]*)
7592   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7593   ;;
7594   *)
7595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600   for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610   ;;
7611 esac
7612 fi
7613 OCAMLC=$ac_cv_path_OCAMLC
7614 if test -n "$OCAMLC"; then
7615   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7616 echo "${ECHO_T}$OCAMLC" >&6; }
7617 else
7618   { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7620 fi
7621
7622
7623   test -n "$OCAMLC" && break
7624 done
7625
7626 for ac_prog in ocamlopt
7627 do
7628   # Extract the first word of "$ac_prog", so it can be a program name with args.
7629 set dummy $ac_prog; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   case $OCAMLOPT in
7636   [\\/]* | ?:[\\/]*)
7637   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7638   ;;
7639   *)
7640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645   for ac_exec_ext in '' $ac_executable_extensions; do
7646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652 done
7653 IFS=$as_save_IFS
7654
7655   ;;
7656 esac
7657 fi
7658 OCAMLOPT=$ac_cv_path_OCAMLOPT
7659 if test -n "$OCAMLOPT"; then
7660   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7661 echo "${ECHO_T}$OCAMLOPT" >&6; }
7662 else
7663   { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7665 fi
7666
7667
7668   test -n "$OCAMLOPT" && break
7669 done
7670
7671 for ac_prog in ocamldep
7672 do
7673   # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   case $OCAMLDEP in
7681   [\\/]* | ?:[\\/]*)
7682   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7683   ;;
7684   *)
7685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690   for ac_exec_ext in '' $ac_executable_extensions; do
7691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697 done
7698 IFS=$as_save_IFS
7699
7700   ;;
7701 esac
7702 fi
7703 OCAMLDEP=$ac_cv_path_OCAMLDEP
7704 if test -n "$OCAMLDEP"; then
7705   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7706 echo "${ECHO_T}$OCAMLDEP" >&6; }
7707 else
7708   { echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6; }
7710 fi
7711
7712
7713   test -n "$OCAMLDEP" && break
7714 done
7715
7716 for ac_prog in ocamldoc
7717 do
7718   # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   case $OCAMLDOC in
7726   [\\/]* | ?:[\\/]*)
7727   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7728   ;;
7729   *)
7730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735   for ac_exec_ext in '' $ac_executable_extensions; do
7736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7737     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745   ;;
7746 esac
7747 fi
7748 OCAMLDOC=$ac_cv_path_OCAMLDOC
7749 if test -n "$OCAMLDOC"; then
7750   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7751 echo "${ECHO_T}$OCAMLDOC" >&6; }
7752 else
7753   { echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6; }
7755 fi
7756
7757
7758   test -n "$OCAMLDOC" && break
7759 done
7760
7761 for ac_prog in gas as
7762 do
7763   # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7767 if test "${ac_cv_path_GAS+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   case $GAS in
7771   [\\/]* | ?:[\\/]*)
7772   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7773   ;;
7774   *)
7775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778   IFS=$as_save_IFS
7779   test -z "$as_dir" && as_dir=.
7780   for ac_exec_ext in '' $ac_executable_extensions; do
7781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7782     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784     break 2
7785   fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790   ;;
7791 esac
7792 fi
7793 GAS=$ac_cv_path_GAS
7794 if test -n "$GAS"; then
7795   { echo "$as_me:$LINENO: result: $GAS" >&5
7796 echo "${ECHO_T}$GAS" >&6; }
7797 else
7798   { echo "$as_me:$LINENO: result: no" >&5
7799 echo "${ECHO_T}no" >&6; }
7800 fi
7801
7802
7803   test -n "$GAS" && break
7804 done
7805
7806
7807 { echo "$as_me:$LINENO: checking for linker version" >&5
7808 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7809 if test "${llvm_cv_link_version+set}" = set; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812
7813    version_string="$(ld -v 2>&1 | head -1)"
7814
7815    # Check for ld64.
7816    if (echo "$version_string" | grep -q "ld64"); then
7817      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7818    else
7819      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7820    fi
7821
7822 fi
7823 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7824 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7825
7826 cat >>confdefs.h <<_ACEOF
7827 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7828 _ACEOF
7829
7830
7831
7832 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7833 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7834 if test "${llvm_cv_link_use_r+set}" = set; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837    ac_ext=c
7838 ac_cpp='$CPP $CPPFLAGS'
7839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842
7843   oldcflags="$CFLAGS"
7844   CFLAGS="$CFLAGS -Wl,-R."
7845   cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h.  */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h.  */
7851
7852 int
7853 main ()
7854 {
7855
7856   ;
7857   return 0;
7858 }
7859 _ACEOF
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (ac_try="$ac_link"
7862 case "(($ac_try" in
7863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864   *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867   (eval "$ac_link") 2>conftest.er1
7868   ac_status=$?
7869   grep -v '^ *+' conftest.er1 >conftest.err
7870   rm -f conftest.er1
7871   cat conftest.err >&5
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); } &&
7874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875   { (case "(($ac_try" in
7876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877   *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880   (eval "$ac_try") 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; } &&
7884          { ac_try='test -s conftest$ac_exeext'
7885   { (case "(($ac_try" in
7886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887   *) ac_try_echo=$ac_try;;
7888 esac
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890   (eval "$ac_try") 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); }; }; then
7894   llvm_cv_link_use_r=yes
7895 else
7896   echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7898
7899         llvm_cv_link_use_r=no
7900 fi
7901
7902 rm -f core conftest.err conftest.$ac_objext \
7903       conftest$ac_exeext conftest.$ac_ext
7904   CFLAGS="$oldcflags"
7905   ac_ext=c
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910
7911
7912 fi
7913 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7914 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7915 if test "$llvm_cv_link_use_r" = yes ; then
7916
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_LINK_R 1
7919 _ACEOF
7920
7921   fi
7922
7923
7924 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7925 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7926 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929    ac_ext=c
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
7935   oldcflags="$CFLAGS"
7936   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7937   cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943
7944 int
7945 main ()
7946 {
7947
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
7960   ac_status=$?
7961   grep -v '^ *+' conftest.er1 >conftest.err
7962   rm -f conftest.er1
7963   cat conftest.err >&5
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } &&
7966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967   { (case "(($ac_try" in
7968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969   *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972   (eval "$ac_try") 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; } &&
7976          { ac_try='test -s conftest$ac_exeext'
7977   { (case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_try") 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; }; then
7986   llvm_cv_link_use_export_dynamic=yes
7987 else
7988   echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991         llvm_cv_link_use_export_dynamic=no
7992 fi
7993
7994 rm -f core conftest.err conftest.$ac_objext \
7995       conftest$ac_exeext conftest.$ac_ext
7996   CFLAGS="$oldcflags"
7997   ac_ext=c
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003
8004 fi
8005 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8006 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8007 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8008
8009 cat >>confdefs.h <<\_ACEOF
8010 #define HAVE_LINK_EXPORT_DYNAMIC 1
8011 _ACEOF
8012
8013   fi
8014
8015
8016 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8017 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8018 if test "${llvm_cv_link_use_version_script+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021    ac_ext=c
8022 ac_cpp='$CPP $CPPFLAGS'
8023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026
8027   oldcflags="$CFLAGS"
8028
8029   # The following code is from the autoconf manual,
8030   # "11.13: Limitations of Usual Tools".
8031   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8032   # Use mktemp if possible; otherwise fall back on mkdir,
8033   # with $RANDOM to make collisions less likely.
8034   : ${TMPDIR=/tmp}
8035   {
8036     tmp=`
8037       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8038     ` &&
8039     test -n "$tmp" && test -d "$tmp"
8040   } || {
8041     tmp=$TMPDIR/foo$$-$RANDOM
8042     (umask 077 && mkdir "$tmp")
8043   } || exit $?
8044
8045   echo "{" > "$tmp/export.map"
8046   echo "  global: main;" >> "$tmp/export.map"
8047   echo "  local: *;" >> "$tmp/export.map"
8048   echo "};" >> "$tmp/export.map"
8049
8050   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8051   cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057
8058 int
8059 main ()
8060 {
8061
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (ac_try="$ac_link"
8068 case "(($ac_try" in
8069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070   *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073   (eval "$ac_link") 2>conftest.er1
8074   ac_status=$?
8075   grep -v '^ *+' conftest.er1 >conftest.err
8076   rm -f conftest.er1
8077   cat conftest.err >&5
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } &&
8080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8081   { (case "(($ac_try" in
8082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083   *) ac_try_echo=$ac_try;;
8084 esac
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086   (eval "$ac_try") 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; } &&
8090          { ac_try='test -s conftest$ac_exeext'
8091   { (case "(($ac_try" in
8092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093   *) ac_try_echo=$ac_try;;
8094 esac
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096   (eval "$ac_try") 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; }; then
8100   llvm_cv_link_use_version_script=yes
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105         llvm_cv_link_use_version_script=no
8106 fi
8107
8108 rm -f core conftest.err conftest.$ac_objext \
8109       conftest$ac_exeext conftest.$ac_ext
8110   rm "$tmp/export.map"
8111   rmdir "$tmp"
8112   CFLAGS="$oldcflags"
8113   ac_ext=c
8114 ac_cpp='$CPP $CPPFLAGS'
8115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8118
8119
8120 fi
8121 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8122 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8123 if test "$llvm_cv_link_use_version_script" = yes ; then
8124   HAVE_LINK_VERSION_SCRIPT=1
8125
8126   fi
8127
8128
8129
8130
8131 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8132 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8133 if test "${ac_cv_c_const+set}" = set; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142
8143 int
8144 main ()
8145 {
8146 /* FIXME: Include the comments suggested by Paul. */
8147 #ifndef __cplusplus
8148   /* Ultrix mips cc rejects this.  */
8149   typedef int charset[2];
8150   const charset x;
8151   /* SunOS 4.1.1 cc rejects this.  */
8152   char const *const *ccp;
8153   char **p;
8154   /* NEC SVR4.0.2 mips cc rejects this.  */
8155   struct point {int x, y;};
8156   static struct point const zero = {0,0};
8157   /* AIX XL C 1.02.0.0 rejects this.
8158      It does not let you subtract one const X* pointer from another in
8159      an arm of an if-expression whose if-part is not a constant
8160      expression */
8161   const char *g = "string";
8162   ccp = &g + (g ? g-g : 0);
8163   /* HPUX 7.0 cc rejects these. */
8164   ++ccp;
8165   p = (char**) ccp;
8166   ccp = (char const *const *) p;
8167   { /* SCO 3.2v4 cc rejects this.  */
8168     char *t;
8169     char const *s = 0 ? (char *) 0 : (char const *) 0;
8170
8171     *t++ = 0;
8172     if (s) return 0;
8173   }
8174   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8175     int x[] = {25, 17};
8176     const int *foo = &x[0];
8177     ++foo;
8178   }
8179   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8180     typedef const int *iptr;
8181     iptr p = 0;
8182     ++p;
8183   }
8184   { /* AIX XL C 1.02.0.0 rejects this saying
8185        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8186     struct s { int j; const int *ap[3]; };
8187     struct s *b; b->j = 5;
8188   }
8189   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8190     const int foo = 10;
8191     if (!foo) return 0;
8192   }
8193   return !x[0] && !zero.x;
8194 #endif
8195
8196   ;
8197   return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8202 case "(($ac_try" in
8203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204   *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207   (eval "$ac_compile") 2>conftest.er1
8208   ac_status=$?
8209   grep -v '^ *+' conftest.er1 >conftest.err
8210   rm -f conftest.er1
8211   cat conftest.err >&5
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); } &&
8214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; } &&
8224          { ac_try='test -s conftest.$ac_objext'
8225   { (case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230   (eval "$ac_try") 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; }; then
8234   ac_cv_c_const=yes
8235 else
8236   echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239         ac_cv_c_const=no
8240 fi
8241
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 fi
8244 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8245 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8246 if test $ac_cv_c_const = no; then
8247
8248 cat >>confdefs.h <<\_ACEOF
8249 #define const
8250 _ACEOF
8251
8252 fi
8253
8254
8255
8256
8257
8258
8259 ac_header_dirent=no
8260 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8261   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8262 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8263 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273 #include <sys/types.h>
8274 #include <$ac_hdr>
8275
8276 int
8277 main ()
8278 {
8279 if ((DIR *) 0)
8280 return 0;
8281   ;
8282   return 0;
8283 }
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8287 case "(($ac_try" in
8288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289   *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292   (eval "$ac_compile") 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300   { (case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_try") 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; } &&
8309          { ac_try='test -s conftest.$ac_objext'
8310   { (case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_try") 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   eval "$as_ac_Header=yes"
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324         eval "$as_ac_Header=no"
8325 fi
8326
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 fi
8329 ac_res=`eval echo '${'$as_ac_Header'}'`
8330                { echo "$as_me:$LINENO: result: $ac_res" >&5
8331 echo "${ECHO_T}$ac_res" >&6; }
8332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8333   cat >>confdefs.h <<_ACEOF
8334 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8335 _ACEOF
8336
8337 ac_header_dirent=$ac_hdr; break
8338 fi
8339
8340 done
8341 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8342 if test $ac_header_dirent = dirent.h; then
8343   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8344 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8345 if test "${ac_cv_search_opendir+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   ac_func_search_save_LIBS=$LIBS
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355
8356 /* Override any GCC internal prototype to avoid an error.
8357    Use char because int might match the return type of a GCC
8358    builtin and then its argument prototype would still apply.  */
8359 #ifdef __cplusplus
8360 extern "C"
8361 #endif
8362 char opendir ();
8363 int
8364 main ()
8365 {
8366 return opendir ();
8367   ;
8368   return 0;
8369 }
8370 _ACEOF
8371 for ac_lib in '' dir; do
8372   if test -z "$ac_lib"; then
8373     ac_res="none required"
8374   else
8375     ac_res=-l$ac_lib
8376     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8377   fi
8378   rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (ac_try="$ac_link"
8380 case "(($ac_try" in
8381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382   *) ac_try_echo=$ac_try;;
8383 esac
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385   (eval "$ac_link") 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393   { (case "(($ac_try" in
8394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395   *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398   (eval "$ac_try") 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; } &&
8402          { ac_try='test -s conftest$ac_exeext'
8403   { (case "(($ac_try" in
8404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405   *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408   (eval "$ac_try") 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; }; then
8412   ac_cv_search_opendir=$ac_res
8413 else
8414   echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417
8418 fi
8419
8420 rm -f core conftest.err conftest.$ac_objext \
8421       conftest$ac_exeext
8422   if test "${ac_cv_search_opendir+set}" = set; then
8423   break
8424 fi
8425 done
8426 if test "${ac_cv_search_opendir+set}" = set; then
8427   :
8428 else
8429   ac_cv_search_opendir=no
8430 fi
8431 rm conftest.$ac_ext
8432 LIBS=$ac_func_search_save_LIBS
8433 fi
8434 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8435 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8436 ac_res=$ac_cv_search_opendir
8437 if test "$ac_res" != no; then
8438   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8439
8440 fi
8441
8442 else
8443   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445 if test "${ac_cv_search_opendir+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   ac_func_search_save_LIBS=$LIBS
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455
8456 /* Override any GCC internal prototype to avoid an error.
8457    Use char because int might match the return type of a GCC
8458    builtin and then its argument prototype would still apply.  */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 char opendir ();
8463 int
8464 main ()
8465 {
8466 return opendir ();
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 for ac_lib in '' x; do
8472   if test -z "$ac_lib"; then
8473     ac_res="none required"
8474   else
8475     ac_res=-l$ac_lib
8476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8477   fi
8478   rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8480 case "(($ac_try" in
8481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482   *) ac_try_echo=$ac_try;;
8483 esac
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485   (eval "$ac_link") 2>conftest.er1
8486   ac_status=$?
8487   grep -v '^ *+' conftest.er1 >conftest.err
8488   rm -f conftest.er1
8489   cat conftest.err >&5
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } &&
8492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493   { (case "(($ac_try" in
8494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495   *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498   (eval "$ac_try") 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; } &&
8502          { ac_try='test -s conftest$ac_exeext'
8503   { (case "(($ac_try" in
8504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505   *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508   (eval "$ac_try") 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; }; then
8512   ac_cv_search_opendir=$ac_res
8513 else
8514   echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517
8518 fi
8519
8520 rm -f core conftest.err conftest.$ac_objext \
8521       conftest$ac_exeext
8522   if test "${ac_cv_search_opendir+set}" = set; then
8523   break
8524 fi
8525 done
8526 if test "${ac_cv_search_opendir+set}" = set; then
8527   :
8528 else
8529   ac_cv_search_opendir=no
8530 fi
8531 rm conftest.$ac_ext
8532 LIBS=$ac_func_search_save_LIBS
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8536 ac_res=$ac_cv_search_opendir
8537 if test "$ac_res" != no; then
8538   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8539
8540 fi
8541
8542 fi
8543
8544
8545 for ac_header in dlfcn.h
8546 do
8547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8549   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 fi
8554 ac_res=`eval echo '${'$as_ac_Header'}'`
8555                { echo "$as_me:$LINENO: result: $ac_res" >&5
8556 echo "${ECHO_T}$ac_res" >&6; }
8557 else
8558   # Is the header compilable?
8559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8561 cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567 $ac_includes_default
8568 #include <$ac_header>
8569 _ACEOF
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8578   ac_status=$?
8579   grep -v '^ *+' conftest.er1 >conftest.err
8580   rm -f conftest.er1
8581   cat conftest.err >&5
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); } &&
8584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8585   { (case "(($ac_try" in
8586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587   *) ac_try_echo=$ac_try;;
8588 esac
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590   (eval "$ac_try") 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; } &&
8594          { ac_try='test -s conftest.$ac_objext'
8595   { (case "(($ac_try" in
8596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597   *) ac_try_echo=$ac_try;;
8598 esac
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600   (eval "$ac_try") 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; }; then
8604   ac_header_compiler=yes
8605 else
8606   echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8608
8609         ac_header_compiler=no
8610 fi
8611
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8614 echo "${ECHO_T}$ac_header_compiler" >&6; }
8615
8616 # Is the header present?
8617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h.  */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h.  */
8625 #include <$ac_header>
8626 _ACEOF
8627 if { (ac_try="$ac_cpp conftest.$ac_ext"
8628 case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } >/dev/null; then
8640   if test -s conftest.err; then
8641     ac_cpp_err=$ac_c_preproc_warn_flag
8642     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8643   else
8644     ac_cpp_err=
8645   fi
8646 else
8647   ac_cpp_err=yes
8648 fi
8649 if test -z "$ac_cpp_err"; then
8650   ac_header_preproc=yes
8651 else
8652   echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8654
8655   ac_header_preproc=no
8656 fi
8657
8658 rm -f conftest.err conftest.$ac_ext
8659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8660 echo "${ECHO_T}$ac_header_preproc" >&6; }
8661
8662 # So?  What about this header?
8663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8664   yes:no: )
8665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8669     ac_header_preproc=yes
8670     ;;
8671   no:yes:* )
8672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8684     ( cat <<\_ASBOX
8685 ## ------------------------------------ ##
8686 ## Report this to http://llvm.org/bugs/ ##
8687 ## ------------------------------------ ##
8688 _ASBOX
8689      ) | sed "s/^/$as_me: WARNING:     /" >&2
8690     ;;
8691 esac
8692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   eval "$as_ac_Header=\$ac_header_preproc"
8698 fi
8699 ac_res=`eval echo '${'$as_ac_Header'}'`
8700                { echo "$as_me:$LINENO: result: $ac_res" >&5
8701 echo "${ECHO_T}$ac_res" >&6; }
8702
8703 fi
8704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8705   cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8707 _ACEOF
8708
8709 fi
8710
8711 done
8712
8713 # Check whether --enable-ltdl-install was given.
8714 if test "${enable_ltdl_install+set}" = set; then
8715   enableval=$enable_ltdl_install;
8716 fi
8717
8718
8719  if test x"${enable_ltdl_install-no}" != xno; then
8720   INSTALL_LTDL_TRUE=
8721   INSTALL_LTDL_FALSE='#'
8722 else
8723   INSTALL_LTDL_TRUE='#'
8724   INSTALL_LTDL_FALSE=
8725 fi
8726
8727  if test x"${enable_ltdl_convenience-no}" != xno; then
8728   CONVENIENCE_LTDL_TRUE=
8729   CONVENIENCE_LTDL_FALSE='#'
8730 else
8731   CONVENIENCE_LTDL_TRUE='#'
8732   CONVENIENCE_LTDL_FALSE=
8733 fi
8734
8735
8736 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8737 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8738 library_names_spec=
8739 libname_spec='lib$name'
8740 soname_spec=
8741 shrext_cmds=".so"
8742 postinstall_cmds=
8743 postuninstall_cmds=
8744 finish_cmds=
8745 finish_eval=
8746 shlibpath_var=
8747 shlibpath_overrides_runpath=unknown
8748 version_type=none
8749 dynamic_linker="$host_os ld.so"
8750 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8751 if test "$GCC" = yes; then
8752   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8753   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8754     # if the path contains ";" then we assume it to be the separator
8755     # otherwise default to the standard path separator (i.e. ":") - it is
8756     # assumed that no part of a normal pathname contains ";" but that should
8757     # okay in the real world where ";" in dirpaths is itself problematic.
8758     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8759   else
8760     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8761   fi
8762 else
8763   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8764 fi
8765 need_lib_prefix=unknown
8766 hardcode_into_libs=no
8767
8768 # when you set need_version to no, make sure it does not cause -set_version
8769 # flags to be left without arguments
8770 need_version=unknown
8771
8772 case $host_os in
8773 aix3*)
8774   version_type=linux
8775   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8776   shlibpath_var=LIBPATH
8777
8778   # AIX 3 has no versioning support, so we append a major version to the name.
8779   soname_spec='${libname}${release}${shared_ext}$major'
8780   ;;
8781
8782 aix4* | aix5*)
8783   version_type=linux
8784   need_lib_prefix=no
8785   need_version=no
8786   hardcode_into_libs=yes
8787   if test "$host_cpu" = ia64; then
8788     # AIX 5 supports IA64
8789     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8790     shlibpath_var=LD_LIBRARY_PATH
8791   else
8792     # With GCC up to 2.95.x, collect2 would create an import file
8793     # for dependence libraries.  The import file would start with
8794     # the line `#! .'.  This would cause the generated library to
8795     # depend on `.', always an invalid library.  This was fixed in
8796     # development snapshots of GCC prior to 3.0.
8797     case $host_os in
8798       aix4 | aix4.[01] | aix4.[01].*)
8799       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8800            echo ' yes '
8801            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8802         :
8803       else
8804         can_build_shared=no
8805       fi
8806       ;;
8807     esac
8808     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8809     # soname into executable. Probably we can add versioning support to
8810     # collect2, so additional links can be useful in future.
8811     if test "$aix_use_runtimelinking" = yes; then
8812       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8813       # instead of lib<name>.a to let people know that these are not
8814       # typical AIX shared libraries.
8815       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816     else
8817       # We preserve .a as extension for shared libraries through AIX4.2
8818       # and later when we are not doing run time linking.
8819       library_names_spec='${libname}${release}.a $libname.a'
8820       soname_spec='${libname}${release}${shared_ext}$major'
8821     fi
8822     shlibpath_var=LIBPATH
8823   fi
8824   ;;
8825
8826 amigaos*)
8827   library_names_spec='$libname.ixlibrary $libname.a'
8828   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8829   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'
8830   ;;
8831
8832 beos*)
8833   library_names_spec='${libname}${shared_ext}'
8834   dynamic_linker="$host_os ld.so"
8835   shlibpath_var=LIBRARY_PATH
8836   ;;
8837
8838 bsdi[45]*)
8839   version_type=linux
8840   need_version=no
8841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8842   soname_spec='${libname}${release}${shared_ext}$major'
8843   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8844   shlibpath_var=LD_LIBRARY_PATH
8845   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8846   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8847   # the default ld.so.conf also contains /usr/contrib/lib and
8848   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8849   # libtool to hard-code these into programs
8850   ;;
8851
8852 cygwin* | mingw* | pw32*)
8853   version_type=windows
8854   shrext_cmds=".dll"
8855   need_version=no
8856   need_lib_prefix=no
8857
8858   case $GCC,$host_os in
8859   yes,cygwin* | yes,mingw* | yes,pw32*)
8860     library_names_spec='$libname.dll.a'
8861     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8862     postinstall_cmds='base_file=`basename \${file}`~
8863       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8864       dldir=$destdir/`dirname \$dlpath`~
8865       test -d \$dldir || mkdir -p \$dldir~
8866       $install_prog $dir/$dlname \$dldir/$dlname~
8867       chmod a+x \$dldir/$dlname'
8868     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8869       dlpath=$dir/\$dldll~
8870        $rm \$dlpath'
8871     shlibpath_overrides_runpath=yes
8872
8873     case $host_os in
8874     cygwin*)
8875       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8876       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8877       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8878       ;;
8879     mingw*)
8880       # MinGW DLLs use traditional 'lib' prefix
8881       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8882       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8883       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8884         # It is most probably a Windows format PATH printed by
8885         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8886         # path with ; separators, and with drive letters. We can handle the
8887         # drive letters (cygwin fileutils understands them), so leave them,
8888         # especially as we might pass files found there to a mingw objdump,
8889         # which wouldn't understand a cygwinified path. Ahh.
8890         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8891       else
8892         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8893       fi
8894       ;;
8895     pw32*)
8896       # pw32 DLLs use 'pw' prefix rather than 'lib'
8897       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8898       ;;
8899     esac
8900     ;;
8901
8902   *)
8903     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8904     ;;
8905   esac
8906   dynamic_linker='Win32 ld.exe'
8907   # FIXME: first we should search . and the directory the executable is in
8908   shlibpath_var=PATH
8909   ;;
8910
8911 darwin* | rhapsody*)
8912   dynamic_linker="$host_os dyld"
8913   version_type=darwin
8914   need_lib_prefix=no
8915   need_version=no
8916   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8917   soname_spec='${libname}${release}${major}$shared_ext'
8918   shlibpath_overrides_runpath=yes
8919   shlibpath_var=DYLD_LIBRARY_PATH
8920   shrext_cmds='.dylib'
8921   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8922   if test "$GCC" = yes; then
8923     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"`
8924   else
8925     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8926   fi
8927   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8928   ;;
8929
8930 dgux*)
8931   version_type=linux
8932   need_lib_prefix=no
8933   need_version=no
8934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8935   soname_spec='${libname}${release}${shared_ext}$major'
8936   shlibpath_var=LD_LIBRARY_PATH
8937   ;;
8938
8939 freebsd1.*)
8940   dynamic_linker=no
8941   ;;
8942
8943 kfreebsd*-gnu)
8944   version_type=linux
8945   need_lib_prefix=no
8946   need_version=no
8947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8948   soname_spec='${libname}${release}${shared_ext}$major'
8949   shlibpath_var=LD_LIBRARY_PATH
8950   shlibpath_overrides_runpath=no
8951   hardcode_into_libs=yes
8952   dynamic_linker='GNU ld.so'
8953   ;;
8954
8955 freebsd* | dragonfly*)
8956   # DragonFly does not have aout.  When/if they implement a new
8957   # versioning mechanism, adjust this.
8958   if test -x /usr/bin/objformat; then
8959     objformat=`/usr/bin/objformat`
8960   else
8961     case $host_os in
8962     freebsd[123].*) objformat=aout ;;
8963     *) objformat=elf ;;
8964     esac
8965   fi
8966   version_type=freebsd-$objformat
8967   case $version_type in
8968     freebsd-elf*)
8969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8970       need_version=no
8971       need_lib_prefix=no
8972       ;;
8973     freebsd-*)
8974       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8975       need_version=yes
8976       ;;
8977   esac
8978   shlibpath_var=LD_LIBRARY_PATH
8979   case $host_os in
8980   freebsd2.*)
8981     shlibpath_overrides_runpath=yes
8982     ;;
8983   freebsd3.[01]* | freebsdelf3.[01]*)
8984     shlibpath_overrides_runpath=yes
8985     hardcode_into_libs=yes
8986     ;;
8987   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8988   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8989     shlibpath_overrides_runpath=no
8990     hardcode_into_libs=yes
8991     ;;
8992   freebsd*) # from 4.6 on
8993     shlibpath_overrides_runpath=yes
8994     hardcode_into_libs=yes
8995     ;;
8996   esac
8997   ;;
8998
8999 gnu*)
9000   version_type=linux
9001   need_lib_prefix=no
9002   need_version=no
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9004   soname_spec='${libname}${release}${shared_ext}$major'
9005   shlibpath_var=LD_LIBRARY_PATH
9006   hardcode_into_libs=yes
9007   ;;
9008
9009 hpux9* | hpux10* | hpux11*)
9010   # Give a soname corresponding to the major version so that dld.sl refuses to
9011   # link against other versions.
9012   version_type=sunos
9013   need_lib_prefix=no
9014   need_version=no
9015   case $host_cpu in
9016   ia64*)
9017     shrext_cmds='.so'
9018     hardcode_into_libs=yes
9019     dynamic_linker="$host_os dld.so"
9020     shlibpath_var=LD_LIBRARY_PATH
9021     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023     soname_spec='${libname}${release}${shared_ext}$major'
9024     if test "X$HPUX_IA64_MODE" = X32; then
9025       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9026     else
9027       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9028     fi
9029     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9030     ;;
9031    hppa*64*)
9032      shrext_cmds='.sl'
9033      hardcode_into_libs=yes
9034      dynamic_linker="$host_os dld.sl"
9035      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9036      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9037      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038      soname_spec='${libname}${release}${shared_ext}$major'
9039      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9040      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9041      ;;
9042    *)
9043     shrext_cmds='.sl'
9044     dynamic_linker="$host_os dld.sl"
9045     shlibpath_var=SHLIB_PATH
9046     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048     soname_spec='${libname}${release}${shared_ext}$major'
9049     ;;
9050   esac
9051   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9052   postinstall_cmds='chmod 555 $lib'
9053   ;;
9054
9055 interix3*)
9056   version_type=linux
9057   need_lib_prefix=no
9058   need_version=no
9059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9060   soname_spec='${libname}${release}${shared_ext}$major'
9061   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9062   shlibpath_var=LD_LIBRARY_PATH
9063   shlibpath_overrides_runpath=no
9064   hardcode_into_libs=yes
9065   ;;
9066
9067 irix5* | irix6* | nonstopux*)
9068   case $host_os in
9069     nonstopux*) version_type=nonstopux ;;
9070     *)
9071         if test "$lt_cv_prog_gnu_ld" = yes; then
9072                 version_type=linux
9073         else
9074                 version_type=irix
9075         fi ;;
9076   esac
9077   need_lib_prefix=no
9078   need_version=no
9079   soname_spec='${libname}${release}${shared_ext}$major'
9080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9081   case $host_os in
9082   irix5* | nonstopux*)
9083     libsuff= shlibsuff=
9084     ;;
9085   *)
9086     case $LD in # libtool.m4 will add one of these switches to LD
9087     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9088       libsuff= shlibsuff= libmagic=32-bit;;
9089     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9090       libsuff=32 shlibsuff=N32 libmagic=N32;;
9091     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9092       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9093     *) libsuff= shlibsuff= libmagic=never-match;;
9094     esac
9095     ;;
9096   esac
9097   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9098   shlibpath_overrides_runpath=no
9099   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9100   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9101   hardcode_into_libs=yes
9102   ;;
9103
9104 # No shared lib support for Linux oldld, aout, or coff.
9105 linux*oldld* | linux*aout* | linux*coff*)
9106   dynamic_linker=no
9107   ;;
9108
9109 # This must be Linux ELF.
9110 linux*)
9111   version_type=linux
9112   need_lib_prefix=no
9113   need_version=no
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115   soname_spec='${libname}${release}${shared_ext}$major'
9116   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9117   shlibpath_var=LD_LIBRARY_PATH
9118   shlibpath_overrides_runpath=no
9119   # This implies no fast_install, which is unacceptable.
9120   # Some rework will be needed to allow for fast_install
9121   # before this can be enabled.
9122   hardcode_into_libs=yes
9123
9124   # Append ld.so.conf contents to the search path
9125   if test -f /etc/ld.so.conf; then
9126     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' ' '`
9127     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9128   fi
9129
9130   # We used to test for /lib/ld.so.1 and disable shared libraries on
9131   # powerpc, because MkLinux only supported shared libraries with the
9132   # GNU dynamic linker.  Since this was broken with cross compilers,
9133   # most powerpc-linux boxes support dynamic linking these days and
9134   # people can always --disable-shared, the test was removed, and we
9135   # assume the GNU/Linux dynamic linker is in use.
9136   dynamic_linker='GNU/Linux ld.so'
9137   ;;
9138
9139 knetbsd*-gnu)
9140   version_type=linux
9141   need_lib_prefix=no
9142   need_version=no
9143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9144   soname_spec='${libname}${release}${shared_ext}$major'
9145   shlibpath_var=LD_LIBRARY_PATH
9146   shlibpath_overrides_runpath=no
9147   hardcode_into_libs=yes
9148   dynamic_linker='GNU ld.so'
9149   ;;
9150
9151 netbsd*)
9152   version_type=sunos
9153   need_lib_prefix=no
9154   need_version=no
9155   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9157     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9158     dynamic_linker='NetBSD (a.out) ld.so'
9159   else
9160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9161     soname_spec='${libname}${release}${shared_ext}$major'
9162     dynamic_linker='NetBSD ld.elf_so'
9163   fi
9164   shlibpath_var=LD_LIBRARY_PATH
9165   shlibpath_overrides_runpath=yes
9166   hardcode_into_libs=yes
9167   ;;
9168
9169 newsos6)
9170   version_type=linux
9171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172   shlibpath_var=LD_LIBRARY_PATH
9173   shlibpath_overrides_runpath=yes
9174   ;;
9175
9176 nto-qnx*)
9177   version_type=linux
9178   need_lib_prefix=no
9179   need_version=no
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181   soname_spec='${libname}${release}${shared_ext}$major'
9182   shlibpath_var=LD_LIBRARY_PATH
9183   shlibpath_overrides_runpath=yes
9184   ;;
9185
9186 openbsd* | bitrig*)
9187   version_type=sunos
9188   sys_lib_dlsearch_path_spec="/usr/lib"
9189   need_lib_prefix=no
9190   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9191   case $host_os in
9192     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9193     *)                         need_version=no  ;;
9194   esac
9195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9196   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9197   shlibpath_var=LD_LIBRARY_PATH
9198   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9199     case $host_os in
9200       openbsd2.[89] | openbsd2.[89].*)
9201         shlibpath_overrides_runpath=no
9202         ;;
9203       *)
9204         shlibpath_overrides_runpath=yes
9205         ;;
9206       esac
9207   else
9208     shlibpath_overrides_runpath=yes
9209   fi
9210   ;;
9211
9212 os2*)
9213   libname_spec='$name'
9214   shrext_cmds=".dll"
9215   need_lib_prefix=no
9216   library_names_spec='$libname${shared_ext} $libname.a'
9217   dynamic_linker='OS/2 ld.exe'
9218   shlibpath_var=LIBPATH
9219   ;;
9220
9221 osf3* | osf4* | osf5*)
9222   version_type=osf
9223   need_lib_prefix=no
9224   need_version=no
9225   soname_spec='${libname}${release}${shared_ext}$major'
9226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9229   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9230   ;;
9231
9232 solaris*)
9233   version_type=linux
9234   need_lib_prefix=no
9235   need_version=no
9236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237   soname_spec='${libname}${release}${shared_ext}$major'
9238   shlibpath_var=LD_LIBRARY_PATH
9239   shlibpath_overrides_runpath=yes
9240   hardcode_into_libs=yes
9241   # ldd complains unless libraries are executable
9242   postinstall_cmds='chmod +x $lib'
9243   ;;
9244
9245 sunos4*)
9246   version_type=sunos
9247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9248   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9249   shlibpath_var=LD_LIBRARY_PATH
9250   shlibpath_overrides_runpath=yes
9251   if test "$with_gnu_ld" = yes; then
9252     need_lib_prefix=no
9253   fi
9254   need_version=yes
9255   ;;
9256
9257 sysv4 | sysv4.3*)
9258   version_type=linux
9259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   shlibpath_var=LD_LIBRARY_PATH
9262   case $host_vendor in
9263     sni)
9264       shlibpath_overrides_runpath=no
9265       need_lib_prefix=no
9266       export_dynamic_flag_spec='${wl}-Blargedynsym'
9267       runpath_var=LD_RUN_PATH
9268       ;;
9269     siemens)
9270       need_lib_prefix=no
9271       ;;
9272     motorola)
9273       need_lib_prefix=no
9274       need_version=no
9275       shlibpath_overrides_runpath=no
9276       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9277       ;;
9278   esac
9279   ;;
9280
9281 sysv4*MP*)
9282   if test -d /usr/nec ;then
9283     version_type=linux
9284     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9285     soname_spec='$libname${shared_ext}.$major'
9286     shlibpath_var=LD_LIBRARY_PATH
9287   fi
9288   ;;
9289
9290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9291   version_type=freebsd-elf
9292   need_lib_prefix=no
9293   need_version=no
9294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9295   soname_spec='${libname}${release}${shared_ext}$major'
9296   shlibpath_var=LD_LIBRARY_PATH
9297   hardcode_into_libs=yes
9298   if test "$with_gnu_ld" = yes; then
9299     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9300     shlibpath_overrides_runpath=no
9301   else
9302     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9303     shlibpath_overrides_runpath=yes
9304     case $host_os in
9305       sco3.2v5*)
9306         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9307         ;;
9308     esac
9309   fi
9310   sys_lib_dlsearch_path_spec='/usr/lib'
9311   ;;
9312
9313 uts4*)
9314   version_type=linux
9315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316   soname_spec='${libname}${release}${shared_ext}$major'
9317   shlibpath_var=LD_LIBRARY_PATH
9318   ;;
9319
9320 *)
9321   dynamic_linker=no
9322   ;;
9323 esac
9324 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9325 echo "${ECHO_T}$dynamic_linker" >&6; }
9326 test "$dynamic_linker" = no && can_build_shared=no
9327
9328 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9329 if test "$GCC" = yes; then
9330   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9331 fi
9332
9333
9334 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9335 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9336 if test "${libltdl_cv_shlibext+set}" = set; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339
9340 module=yes
9341 eval libltdl_cv_shlibext=$shrext_cmds
9342
9343 fi
9344 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9345 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9346 if test -n "$libltdl_cv_shlibext"; then
9347
9348 cat >>confdefs.h <<_ACEOF
9349 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9350 _ACEOF
9351
9352 fi
9353
9354
9355 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9356 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9357 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9358   echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360   libltdl_cv_shlibpath_var="$shlibpath_var"
9361 fi
9362 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9363 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9364 if test -n "$libltdl_cv_shlibpath_var"; then
9365
9366 cat >>confdefs.h <<_ACEOF
9367 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9368 _ACEOF
9369
9370 fi
9371
9372
9373 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9374 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9375 if test "${libltdl_cv_sys_search_path+set}" = set; then
9376   echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9379 fi
9380 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9381 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9382 if test -n "$libltdl_cv_sys_search_path"; then
9383   sys_search_path=
9384   for dir in $libltdl_cv_sys_search_path; do
9385     if test -z "$sys_search_path"; then
9386       sys_search_path="$dir"
9387     else
9388       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9389     fi
9390   done
9391
9392 cat >>confdefs.h <<_ACEOF
9393 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9394 _ACEOF
9395
9396 fi
9397
9398 { echo "$as_me:$LINENO: checking for objdir" >&5
9399 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9400 if test "${libltdl_cv_objdir+set}" = set; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   libltdl_cv_objdir="$objdir"
9404   if test -n "$objdir"; then
9405     :
9406   else
9407     rm -f .libs 2>/dev/null
9408     mkdir .libs 2>/dev/null
9409     if test -d .libs; then
9410       libltdl_cv_objdir=.libs
9411     else
9412       # MS-DOS does not allow filenames that begin with a dot.
9413       libltdl_cv_objdir=_libs
9414     fi
9415   rmdir .libs 2>/dev/null
9416   fi
9417
9418 fi
9419 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9420 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9421
9422 cat >>confdefs.h <<_ACEOF
9423 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9424 _ACEOF
9425
9426
9427
9428
9429
9430
9431 # Check for command to grab the raw symbol name followed by C symbol from nm.
9432 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9433 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9434 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437
9438 # These are sane defaults that work on at least a few old systems.
9439 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9440
9441 # Character class describing NM global symbol codes.
9442 symcode='[BCDEGRST]'
9443
9444 # Regexp to match symbols that can be accessed directly from C.
9445 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9446
9447 # Transform an extracted symbol line into a proper C declaration
9448 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9449
9450 # Transform an extracted symbol line into symbol name and symbol address
9451 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'"
9452
9453 # Define system-specific variables.
9454 case $host_os in
9455 aix*)
9456   symcode='[BCDT]'
9457   ;;
9458 cygwin* | mingw* | pw32*)
9459   symcode='[ABCDGISTW]'
9460   ;;
9461 hpux*) # Its linker distinguishes data from code symbols
9462   if test "$host_cpu" = ia64; then
9463     symcode='[ABCDEGRST]'
9464   fi
9465   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9466   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'"
9467   ;;
9468 linux*)
9469   if test "$host_cpu" = ia64; then
9470     symcode='[ABCDGIRSTW]'
9471     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9472     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'"
9473   fi
9474   ;;
9475 irix* | nonstopux*)
9476   symcode='[BCDEGRST]'
9477   ;;
9478 osf*)
9479   symcode='[BCDEGQRST]'
9480   ;;
9481 solaris*)
9482   symcode='[BDRT]'
9483   ;;
9484 sco3.2v5*)
9485   symcode='[DT]'
9486   ;;
9487 sysv4.2uw2*)
9488   symcode='[DT]'
9489   ;;
9490 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9491   symcode='[ABDT]'
9492   ;;
9493 sysv4)
9494   symcode='[DFNSTU]'
9495   ;;
9496 esac
9497
9498 # Handle CRLF in mingw tool chain
9499 opt_cr=
9500 case $build_os in
9501 mingw*)
9502   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9503   ;;
9504 esac
9505
9506 # If we're using GNU nm, then use its standard symbol codes.
9507 case `$NM -V 2>&1` in
9508 *GNU* | *'with BFD'*)
9509   symcode='[ABCDGIRSTW]' ;;
9510 esac
9511
9512 # Try without a prefix undercore, then with it.
9513 for ac_symprfx in "" "_"; do
9514
9515   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9516   symxfrm="\\1 $ac_symprfx\\2 \\2"
9517
9518   # Write the raw and C identifiers.
9519   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9520
9521   # Check to see that the pipe works correctly.
9522   pipe_works=no
9523
9524   rm -f conftest*
9525   cat > conftest.$ac_ext <<EOF
9526 #ifdef __cplusplus
9527 extern "C" {
9528 #endif
9529 char nm_test_var;
9530 void nm_test_func(){}
9531 #ifdef __cplusplus
9532 }
9533 #endif
9534 int main(){nm_test_var='a';nm_test_func();return(0);}
9535 EOF
9536
9537   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538   (eval $ac_compile) 2>&5
9539   ac_status=$?
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); }; then
9542     # Now try to grab the symbols.
9543     nlist=conftest.nm
9544     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9545   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } && test -s "$nlist"; then
9549       # Try sorting and uniquifying the output.
9550       if sort "$nlist" | uniq > "$nlist"T; then
9551         mv -f "$nlist"T "$nlist"
9552       else
9553         rm -f "$nlist"T
9554       fi
9555
9556       # Make sure that we snagged all the symbols we need.
9557       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9558         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9559           cat <<EOF > conftest.$ac_ext
9560 #ifdef __cplusplus
9561 extern "C" {
9562 #endif
9563
9564 EOF
9565           # Now generate the symbol file.
9566           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9567
9568           cat <<EOF >> conftest.$ac_ext
9569 #if defined (__STDC__) && __STDC__
9570 # define lt_ptr_t void *
9571 #else
9572 # define lt_ptr_t char *
9573 # define const
9574 #endif
9575
9576 /* The mapping between symbol names and symbols. */
9577 const struct {
9578   const char *name;
9579   lt_ptr_t address;
9580 }
9581 lt_preloaded_symbols[] =
9582 {
9583 EOF
9584           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9585           cat <<\EOF >> conftest.$ac_ext
9586   {0, (lt_ptr_t) 0}
9587 };
9588
9589 #ifdef __cplusplus
9590 }
9591 #endif
9592 EOF
9593           # Now try linking the two files.
9594           mv conftest.$ac_objext conftstm.$ac_objext
9595           lt_save_LIBS="$LIBS"
9596           lt_save_CFLAGS="$CFLAGS"
9597           LIBS="conftstm.$ac_objext"
9598           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9599           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600   (eval $ac_link) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9604             pipe_works=yes
9605           fi
9606           LIBS="$lt_save_LIBS"
9607           CFLAGS="$lt_save_CFLAGS"
9608         else
9609           echo "cannot find nm_test_func in $nlist" >&5
9610         fi
9611       else
9612         echo "cannot find nm_test_var in $nlist" >&5
9613       fi
9614     else
9615       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9616     fi
9617   else
9618     echo "$progname: failed program was:" >&5
9619     cat conftest.$ac_ext >&5
9620   fi
9621   rm -f conftest* conftst*
9622
9623   # Do not use the global_symbol_pipe unless it works.
9624   if test "$pipe_works" = yes; then
9625     break
9626   else
9627     lt_cv_sys_global_symbol_pipe=
9628   fi
9629 done
9630
9631 fi
9632
9633 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9634   lt_cv_sys_global_symbol_to_cdecl=
9635 fi
9636 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9637   { echo "$as_me:$LINENO: result: failed" >&5
9638 echo "${ECHO_T}failed" >&6; }
9639 else
9640   { echo "$as_me:$LINENO: result: ok" >&5
9641 echo "${ECHO_T}ok" >&6; }
9642 fi
9643
9644
9645 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9646 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9647 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9651     libltdl_cv_preloaded_symbols=yes
9652   else
9653     libltdl_cv_preloaded_symbols=no
9654   fi
9655
9656 fi
9657 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9658 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9659 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9660
9661 cat >>confdefs.h <<\_ACEOF
9662 #define HAVE_PRELOADED_SYMBOLS 1
9663 _ACEOF
9664
9665 fi
9666
9667 LIBADD_DL=
9668
9669 ac_ext=c
9670 ac_cpp='$CPP $CPPFLAGS'
9671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9674
9675
9676 { echo "$as_me:$LINENO: checking for shl_load" >&5
9677 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9678 if test "${ac_cv_func_shl_load+set}" = set; then
9679   echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681   cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h.  */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h.  */
9687 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9689 #define shl_load innocuous_shl_load
9690
9691 /* System header to define __stub macros and hopefully few prototypes,
9692     which can conflict with char shl_load (); below.
9693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9694     <limits.h> exists even on freestanding compilers.  */
9695
9696 #ifdef __STDC__
9697 # include <limits.h>
9698 #else
9699 # include <assert.h>
9700 #endif
9701
9702 #undef shl_load
9703
9704 /* Override any GCC internal prototype to avoid an error.
9705    Use char because int might match the return type of a GCC
9706    builtin and then its argument prototype would still apply.  */
9707 #ifdef __cplusplus
9708 extern "C"
9709 #endif
9710 char shl_load ();
9711 /* The GNU C library defines this for functions which it implements
9712     to always fail with ENOSYS.  Some functions are actually named
9713     something starting with __ and the normal name is an alias.  */
9714 #if defined __stub_shl_load || defined __stub___shl_load
9715 choke me
9716 #endif
9717
9718 int
9719 main ()
9720 {
9721 return shl_load ();
9722   ;
9723   return 0;
9724 }
9725 _ACEOF
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (ac_try="$ac_link"
9728 case "(($ac_try" in
9729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730   *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733   (eval "$ac_link") 2>conftest.er1
9734   ac_status=$?
9735   grep -v '^ *+' conftest.er1 >conftest.err
9736   rm -f conftest.er1
9737   cat conftest.err >&5
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); } &&
9740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9741   { (case "(($ac_try" in
9742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743   *) ac_try_echo=$ac_try;;
9744 esac
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746   (eval "$ac_try") 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; } &&
9750          { ac_try='test -s conftest$ac_exeext'
9751   { (case "(($ac_try" in
9752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753   *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756   (eval "$ac_try") 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); }; }; then
9760   ac_cv_func_shl_load=yes
9761 else
9762   echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9764
9765         ac_cv_func_shl_load=no
9766 fi
9767
9768 rm -f core conftest.err conftest.$ac_objext \
9769       conftest$ac_exeext conftest.$ac_ext
9770 fi
9771 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9772 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9773 if test $ac_cv_func_shl_load = yes; then
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_SHL_LOAD 1
9777 _ACEOF
9778
9779 else
9780   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9781 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9782 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   ac_check_lib_save_LIBS=$LIBS
9786 LIBS="-ldld  $LIBS"
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793
9794 /* Override any GCC internal prototype to avoid an error.
9795    Use char because int might match the return type of a GCC
9796    builtin and then its argument prototype would still apply.  */
9797 #ifdef __cplusplus
9798 extern "C"
9799 #endif
9800 char shl_load ();
9801 int
9802 main ()
9803 {
9804 return shl_load ();
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9811 case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_link") 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824   { (case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829   (eval "$ac_try") 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; } &&
9833          { ac_try='test -s conftest$ac_exeext'
9834   { (case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_try") 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   ac_cv_lib_dld_shl_load=yes
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848         ac_cv_lib_dld_shl_load=no
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext \
9852       conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS
9854 fi
9855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9856 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9857 if test $ac_cv_lib_dld_shl_load = yes; then
9858
9859 cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_SHL_LOAD 1
9861 _ACEOF
9862
9863         LIBADD_DL="$LIBADD_DL -ldld"
9864 else
9865   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870   ac_check_lib_save_LIBS=$LIBS
9871 LIBS="-ldl  $LIBS"
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878
9879 /* Override any GCC internal prototype to avoid an error.
9880    Use char because int might match the return type of a GCC
9881    builtin and then its argument prototype would still apply.  */
9882 #ifdef __cplusplus
9883 extern "C"
9884 #endif
9885 char dlopen ();
9886 int
9887 main ()
9888 {
9889 return dlopen ();
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (ac_try="$ac_link"
9896 case "(($ac_try" in
9897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898   *) ac_try_echo=$ac_try;;
9899 esac
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901   (eval "$ac_link") 2>conftest.er1
9902   ac_status=$?
9903   grep -v '^ *+' conftest.er1 >conftest.err
9904   rm -f conftest.er1
9905   cat conftest.err >&5
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9909   { (case "(($ac_try" in
9910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911   *) ac_try_echo=$ac_try;;
9912 esac
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914   (eval "$ac_try") 2>&5
9915   ac_status=$?
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); }; } &&
9918          { ac_try='test -s conftest$ac_exeext'
9919   { (case "(($ac_try" in
9920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921   *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924   (eval "$ac_try") 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; }; then
9928   ac_cv_lib_dl_dlopen=yes
9929 else
9930   echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9932
9933         ac_cv_lib_dl_dlopen=no
9934 fi
9935
9936 rm -f core conftest.err conftest.$ac_objext \
9937       conftest$ac_exeext conftest.$ac_ext
9938 LIBS=$ac_check_lib_save_LIBS
9939 fi
9940 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9941 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9942 if test $ac_cv_lib_dl_dlopen = yes; then
9943
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_LIBDL 1
9946 _ACEOF
9947
9948                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9949 else
9950   cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h.  */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h.  */
9956 #if HAVE_DLFCN_H
9957 #  include <dlfcn.h>
9958 #endif
9959
9960 int
9961 main ()
9962 {
9963 dlopen(0, 0);
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_link") 2>conftest.er1
9976   ac_status=$?
9977   grep -v '^ *+' conftest.er1 >conftest.err
9978   rm -f conftest.er1
9979   cat conftest.err >&5
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); } &&
9982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983   { (case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988   (eval "$ac_try") 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; } &&
9992          { ac_try='test -s conftest$ac_exeext'
9993   { (case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_try") 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; }; then
10002
10003 cat >>confdefs.h <<\_ACEOF
10004 #define HAVE_LIBDL 1
10005 _ACEOF
10006  libltdl_cv_func_dlopen="yes"
10007 else
10008   echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10012 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10013 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016   ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-lsvld  $LIBS"
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024
10025 /* Override any GCC internal prototype to avoid an error.
10026    Use char because int might match the return type of a GCC
10027    builtin and then its argument prototype would still apply.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char dlopen ();
10032 int
10033 main ()
10034 {
10035 return dlopen ();
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044   *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047   (eval "$ac_link") 2>conftest.er1
10048   ac_status=$?
10049   grep -v '^ *+' conftest.er1 >conftest.err
10050   rm -f conftest.er1
10051   cat conftest.err >&5
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055   { (case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_try") 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; } &&
10064          { ac_try='test -s conftest$ac_exeext'
10065   { (case "(($ac_try" in
10066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067   *) ac_try_echo=$ac_try;;
10068 esac
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070   (eval "$ac_try") 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; }; then
10074   ac_cv_lib_svld_dlopen=yes
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079         ac_cv_lib_svld_dlopen=no
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext \
10083       conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10085 fi
10086 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10087 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10088 if test $ac_cv_lib_svld_dlopen = yes; then
10089
10090 cat >>confdefs.h <<\_ACEOF
10091 #define HAVE_LIBDL 1
10092 _ACEOF
10093
10094                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10095 else
10096   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10097 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10098 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101   ac_check_lib_save_LIBS=$LIBS
10102 LIBS="-ldld  $LIBS"
10103 cat >conftest.$ac_ext <<_ACEOF
10104 /* confdefs.h.  */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h.  */
10109
10110 /* Override any GCC internal prototype to avoid an error.
10111    Use char because int might match the return type of a GCC
10112    builtin and then its argument prototype would still apply.  */
10113 #ifdef __cplusplus
10114 extern "C"
10115 #endif
10116 char dld_link ();
10117 int
10118 main ()
10119 {
10120 return dld_link ();
10121   ;
10122   return 0;
10123 }
10124 _ACEOF
10125 rm -f conftest.$ac_objext conftest$ac_exeext
10126 if { (ac_try="$ac_link"
10127 case "(($ac_try" in
10128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129   *) ac_try_echo=$ac_try;;
10130 esac
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132   (eval "$ac_link") 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } &&
10139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10140   { (case "(($ac_try" in
10141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142   *) ac_try_echo=$ac_try;;
10143 esac
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145   (eval "$ac_try") 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); }; } &&
10149          { ac_try='test -s conftest$ac_exeext'
10150   { (case "(($ac_try" in
10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152   *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155   (eval "$ac_try") 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); }; }; then
10159   ac_cv_lib_dld_dld_link=yes
10160 else
10161   echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164         ac_cv_lib_dld_dld_link=no
10165 fi
10166
10167 rm -f core conftest.err conftest.$ac_objext \
10168       conftest$ac_exeext conftest.$ac_ext
10169 LIBS=$ac_check_lib_save_LIBS
10170 fi
10171 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10172 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10173 if test $ac_cv_lib_dld_dld_link = yes; then
10174
10175 cat >>confdefs.h <<\_ACEOF
10176 #define HAVE_DLD 1
10177 _ACEOF
10178
10179                 LIBADD_DL="$LIBADD_DL -ldld"
10180 else
10181   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10182 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10183 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10184   echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186   cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h.  */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h.  */
10192 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10194 #define _dyld_func_lookup innocuous__dyld_func_lookup
10195
10196 /* System header to define __stub macros and hopefully few prototypes,
10197     which can conflict with char _dyld_func_lookup (); below.
10198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10199     <limits.h> exists even on freestanding compilers.  */
10200
10201 #ifdef __STDC__
10202 # include <limits.h>
10203 #else
10204 # include <assert.h>
10205 #endif
10206
10207 #undef _dyld_func_lookup
10208
10209 /* Override any GCC internal prototype to avoid an error.
10210    Use char because int might match the return type of a GCC
10211    builtin and then its argument prototype would still apply.  */
10212 #ifdef __cplusplus
10213 extern "C"
10214 #endif
10215 char _dyld_func_lookup ();
10216 /* The GNU C library defines this for functions which it implements
10217     to always fail with ENOSYS.  Some functions are actually named
10218     something starting with __ and the normal name is an alias.  */
10219 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10220 choke me
10221 #endif
10222
10223 int
10224 main ()
10225 {
10226 return _dyld_func_lookup ();
10227   ;
10228   return 0;
10229 }
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (ac_try="$ac_link"
10233 case "(($ac_try" in
10234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235   *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238   (eval "$ac_link") 2>conftest.er1
10239   ac_status=$?
10240   grep -v '^ *+' conftest.er1 >conftest.err
10241   rm -f conftest.er1
10242   cat conftest.err >&5
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); } &&
10245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10246   { (case "(($ac_try" in
10247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248   *) ac_try_echo=$ac_try;;
10249 esac
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251   (eval "$ac_try") 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; } &&
10255          { ac_try='test -s conftest$ac_exeext'
10256   { (case "(($ac_try" in
10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258   *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261   (eval "$ac_try") 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; }; then
10265   ac_cv_func__dyld_func_lookup=yes
10266 else
10267   echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270         ac_cv_func__dyld_func_lookup=no
10271 fi
10272
10273 rm -f core conftest.err conftest.$ac_objext \
10274       conftest$ac_exeext conftest.$ac_ext
10275 fi
10276 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10277 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10278 if test $ac_cv_func__dyld_func_lookup = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_DYLD 1
10282 _ACEOF
10283
10284 fi
10285
10286
10287 fi
10288
10289
10290 fi
10291
10292
10293 fi
10294
10295 rm -f core conftest.err conftest.$ac_objext \
10296       conftest$ac_exeext conftest.$ac_ext
10297
10298 fi
10299
10300
10301 fi
10302
10303
10304 fi
10305
10306
10307 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10308 then
10309   lt_save_LIBS="$LIBS"
10310   LIBS="$LIBS $LIBADD_DL"
10311
10312 for ac_func in dlerror
10313 do
10314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h.  */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h.  */
10326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10328 #define $ac_func innocuous_$ac_func
10329
10330 /* System header to define __stub macros and hopefully few prototypes,
10331     which can conflict with char $ac_func (); below.
10332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10333     <limits.h> exists even on freestanding compilers.  */
10334
10335 #ifdef __STDC__
10336 # include <limits.h>
10337 #else
10338 # include <assert.h>
10339 #endif
10340
10341 #undef $ac_func
10342
10343 /* Override any GCC internal prototype to avoid an error.
10344    Use char because int might match the return type of a GCC
10345    builtin and then its argument prototype would still apply.  */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char $ac_func ();
10350 /* The GNU C library defines this for functions which it implements
10351     to always fail with ENOSYS.  Some functions are actually named
10352     something starting with __ and the normal name is an alias.  */
10353 #if defined __stub_$ac_func || defined __stub___$ac_func
10354 choke me
10355 #endif
10356
10357 int
10358 main ()
10359 {
10360 return $ac_func ();
10361   ;
10362   return 0;
10363 }
10364 _ACEOF
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (ac_try="$ac_link"
10367 case "(($ac_try" in
10368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369   *) ac_try_echo=$ac_try;;
10370 esac
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372   (eval "$ac_link") 2>conftest.er1
10373   ac_status=$?
10374   grep -v '^ *+' conftest.er1 >conftest.err
10375   rm -f conftest.er1
10376   cat conftest.err >&5
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } &&
10379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10380   { (case "(($ac_try" in
10381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382   *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385   (eval "$ac_try") 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); }; } &&
10389          { ac_try='test -s conftest$ac_exeext'
10390   { (case "(($ac_try" in
10391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392   *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395   (eval "$ac_try") 2>&5
10396   ac_status=$?
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); }; }; then
10399   eval "$as_ac_var=yes"
10400 else
10401   echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10403
10404         eval "$as_ac_var=no"
10405 fi
10406
10407 rm -f core conftest.err conftest.$ac_objext \
10408       conftest$ac_exeext conftest.$ac_ext
10409 fi
10410 ac_res=`eval echo '${'$as_ac_var'}'`
10411                { echo "$as_me:$LINENO: result: $ac_res" >&5
10412 echo "${ECHO_T}$ac_res" >&6; }
10413 if test `eval echo '${'$as_ac_var'}'` = yes; then
10414   cat >>confdefs.h <<_ACEOF
10415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10416 _ACEOF
10417
10418 fi
10419 done
10420
10421   LIBS="$lt_save_LIBS"
10422 fi
10423 ac_ext=c
10424 ac_cpp='$CPP $CPPFLAGS'
10425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10428
10429
10430
10431 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10432 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10433 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10434   echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436   ac_cv_sys_symbol_underscore=no
10437   cat > conftest.$ac_ext <<EOF
10438 void nm_test_func(){}
10439 int main(){nm_test_func;return 0;}
10440 EOF
10441   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442   (eval $ac_compile) 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); }; then
10446     # Now try to grab the symbols.
10447     ac_nlist=conftest.nm
10448     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10449   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } && test -s "$ac_nlist"; then
10453       # See whether the symbols have a leading underscore.
10454       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10455         ac_cv_sys_symbol_underscore=yes
10456       else
10457         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10458           :
10459         else
10460           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10461         fi
10462       fi
10463     else
10464       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10465     fi
10466   else
10467     echo "configure: failed program was:" >&5
10468     cat conftest.c >&5
10469   fi
10470   rm -rf conftest*
10471
10472 fi
10473 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10474 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10475
10476
10477 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10478   if test x"$libltdl_cv_func_dlopen" = xyes ||
10479      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10480         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10481 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10482 if test "${libltdl_cv_need_uscore+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485   libltdl_cv_need_uscore=unknown
10486           save_LIBS="$LIBS"
10487           LIBS="$LIBS $LIBADD_DL"
10488           if test "$cross_compiling" = yes; then :
10489   libltdl_cv_need_uscore=cross
10490 else
10491   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10492   lt_status=$lt_dlunknown
10493   cat > conftest.$ac_ext <<EOF
10494 #line 10493 "configure"
10495 #include "confdefs.h"
10496
10497 #if HAVE_DLFCN_H
10498 #include <dlfcn.h>
10499 #endif
10500
10501 #include <stdio.h>
10502
10503 #ifdef RTLD_GLOBAL
10504 #  define LT_DLGLOBAL           RTLD_GLOBAL
10505 #else
10506 #  ifdef DL_GLOBAL
10507 #    define LT_DLGLOBAL         DL_GLOBAL
10508 #  else
10509 #    define LT_DLGLOBAL         0
10510 #  endif
10511 #endif
10512
10513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10514    find out it does not work in some platform. */
10515 #ifndef LT_DLLAZY_OR_NOW
10516 #  ifdef RTLD_LAZY
10517 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10518 #  else
10519 #    ifdef DL_LAZY
10520 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10521 #    else
10522 #      ifdef RTLD_NOW
10523 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10524 #      else
10525 #        ifdef DL_NOW
10526 #          define LT_DLLAZY_OR_NOW      DL_NOW
10527 #        else
10528 #          define LT_DLLAZY_OR_NOW      0
10529 #        endif
10530 #      endif
10531 #    endif
10532 #  endif
10533 #endif
10534
10535 #ifdef __cplusplus
10536 extern "C" void exit (int);
10537 #endif
10538
10539 void fnord() { int i=42;}
10540 int main ()
10541 {
10542   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10543   int status = $lt_dlunknown;
10544
10545   if (self)
10546     {
10547       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10548       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10549       /* dlclose (self); */
10550     }
10551   else
10552     puts (dlerror ());
10553
10554     exit (status);
10555 }
10556 EOF
10557   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558   (eval $ac_link) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10562     (./conftest; exit; ) >&5 2>/dev/null
10563     lt_status=$?
10564     case x$lt_status in
10565       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10566       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10567       x$lt_dlunknown|x*)  ;;
10568     esac
10569   else :
10570     # compilation failed
10571
10572   fi
10573 fi
10574 rm -fr conftest*
10575
10576           LIBS="$save_LIBS"
10577
10578 fi
10579 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10580 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10581   fi
10582 fi
10583
10584 if test x"$libltdl_cv_need_uscore" = xyes; then
10585
10586 cat >>confdefs.h <<\_ACEOF
10587 #define NEED_USCORE 1
10588 _ACEOF
10589
10590 fi
10591
10592
10593 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10594 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10595 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10596   echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598   # PORTME does your system automatically load deplibs for dlopen?
10599   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10600   # For now, we just catch OSes we know something about -- in the
10601   # future, we'll try test this programmatically.
10602   libltdl_cv_sys_dlopen_deplibs=unknown
10603   case "$host_os" in
10604   aix3*|aix4.1.*|aix4.2.*)
10605     # Unknown whether this is true for these versions of AIX, but
10606     # we want this `case' here to explicitly catch those versions.
10607     libltdl_cv_sys_dlopen_deplibs=unknown
10608     ;;
10609   aix[45]*)
10610     libltdl_cv_sys_dlopen_deplibs=yes
10611     ;;
10612   darwin*)
10613     # Assuming the user has installed a libdl from somewhere, this is true
10614     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10615     libltdl_cv_sys_dlopen_deplibs=yes
10616     ;;
10617   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10618     # GNU and its variants, using gnu ld.so (Glibc)
10619     libltdl_cv_sys_dlopen_deplibs=yes
10620     ;;
10621   hpux10*|hpux11*)
10622     libltdl_cv_sys_dlopen_deplibs=yes
10623     ;;
10624   interix*)
10625     libltdl_cv_sys_dlopen_deplibs=yes
10626     ;;
10627   irix[12345]*|irix6.[01]*)
10628     # Catch all versions of IRIX before 6.2, and indicate that we don't
10629     # know how it worked for any of those versions.
10630     libltdl_cv_sys_dlopen_deplibs=unknown
10631     ;;
10632   irix*)
10633     # The case above catches anything before 6.2, and it's known that
10634     # at 6.2 and later dlopen does load deplibs.
10635     libltdl_cv_sys_dlopen_deplibs=yes
10636     ;;
10637   netbsd*)
10638     libltdl_cv_sys_dlopen_deplibs=yes
10639     ;;
10640   openbsd*)
10641     libltdl_cv_sys_dlopen_deplibs=yes
10642     ;;
10643   osf[1234]*)
10644     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10645     # it did *not* use an RPATH in a shared library to find objects the
10646     # library depends on, so we explicitly say `no'.
10647     libltdl_cv_sys_dlopen_deplibs=no
10648     ;;
10649   osf5.0|osf5.0a|osf5.1)
10650     # dlopen *does* load deplibs and with the right loader patch applied
10651     # it even uses RPATH in a shared library to search for shared objects
10652     # that the library depends on, but there's no easy way to know if that
10653     # patch is installed.  Since this is the case, all we can really
10654     # say is unknown -- it depends on the patch being installed.  If
10655     # it is, this changes to `yes'.  Without it, it would be `no'.
10656     libltdl_cv_sys_dlopen_deplibs=unknown
10657     ;;
10658   osf*)
10659     # the two cases above should catch all versions of osf <= 5.1.  Read
10660     # the comments above for what we know about them.
10661     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10662     # is used to find them so we can finally say `yes'.
10663     libltdl_cv_sys_dlopen_deplibs=yes
10664     ;;
10665   solaris*)
10666     libltdl_cv_sys_dlopen_deplibs=yes
10667     ;;
10668   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10669     libltdl_cv_sys_dlopen_deplibs=yes
10670     ;;
10671   esac
10672
10673 fi
10674 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10675 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10676 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10677
10678 cat >>confdefs.h <<\_ACEOF
10679 #define LTDL_DLOPEN_DEPLIBS 1
10680 _ACEOF
10681
10682 fi
10683
10684
10685 for ac_header in argz.h
10686 do
10687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10689   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 fi
10694 ac_res=`eval echo '${'$as_ac_Header'}'`
10695                { echo "$as_me:$LINENO: result: $ac_res" >&5
10696 echo "${ECHO_T}$ac_res" >&6; }
10697 else
10698   # Is the header compilable?
10699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10701 cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707 $ac_includes_default
10708 #include <$ac_header>
10709 _ACEOF
10710 rm -f conftest.$ac_objext
10711 if { (ac_try="$ac_compile"
10712 case "(($ac_try" in
10713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714   *) ac_try_echo=$ac_try;;
10715 esac
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717   (eval "$ac_compile") 2>conftest.er1
10718   ac_status=$?
10719   grep -v '^ *+' conftest.er1 >conftest.err
10720   rm -f conftest.er1
10721   cat conftest.err >&5
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); } &&
10724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10725   { (case "(($ac_try" in
10726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727   *) ac_try_echo=$ac_try;;
10728 esac
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730   (eval "$ac_try") 2>&5
10731   ac_status=$?
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); }; } &&
10734          { ac_try='test -s conftest.$ac_objext'
10735   { (case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740   (eval "$ac_try") 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; }; then
10744   ac_header_compiler=yes
10745 else
10746   echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749         ac_header_compiler=no
10750 fi
10751
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10754 echo "${ECHO_T}$ac_header_compiler" >&6; }
10755
10756 # Is the header present?
10757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h.  */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h.  */
10765 #include <$ac_header>
10766 _ACEOF
10767 if { (ac_try="$ac_cpp conftest.$ac_ext"
10768 case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10774   ac_status=$?
10775   grep -v '^ *+' conftest.er1 >conftest.err
10776   rm -f conftest.er1
10777   cat conftest.err >&5
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } >/dev/null; then
10780   if test -s conftest.err; then
10781     ac_cpp_err=$ac_c_preproc_warn_flag
10782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10783   else
10784     ac_cpp_err=
10785   fi
10786 else
10787   ac_cpp_err=yes
10788 fi
10789 if test -z "$ac_cpp_err"; then
10790   ac_header_preproc=yes
10791 else
10792   echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795   ac_header_preproc=no
10796 fi
10797
10798 rm -f conftest.err conftest.$ac_ext
10799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10800 echo "${ECHO_T}$ac_header_preproc" >&6; }
10801
10802 # So?  What about this header?
10803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10804   yes:no: )
10805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10809     ac_header_preproc=yes
10810     ;;
10811   no:yes:* )
10812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10824     ( cat <<\_ASBOX
10825 ## ------------------------------------ ##
10826 ## Report this to http://llvm.org/bugs/ ##
10827 ## ------------------------------------ ##
10828 _ASBOX
10829      ) | sed "s/^/$as_me: WARNING:     /" >&2
10830     ;;
10831 esac
10832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10835   echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837   eval "$as_ac_Header=\$ac_header_preproc"
10838 fi
10839 ac_res=`eval echo '${'$as_ac_Header'}'`
10840                { echo "$as_me:$LINENO: result: $ac_res" >&5
10841 echo "${ECHO_T}$ac_res" >&6; }
10842
10843 fi
10844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10845   cat >>confdefs.h <<_ACEOF
10846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10847 _ACEOF
10848
10849 fi
10850
10851 done
10852
10853
10854 { echo "$as_me:$LINENO: checking for error_t" >&5
10855 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10856 if test "${ac_cv_type_error_t+set}" = set; then
10857   echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859   cat >conftest.$ac_ext <<_ACEOF
10860 /* confdefs.h.  */
10861 _ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h.  */
10865 #if HAVE_ARGZ_H
10866 #  include <argz.h>
10867 #endif
10868
10869 typedef error_t ac__type_new_;
10870 int
10871 main ()
10872 {
10873 if ((ac__type_new_ *) 0)
10874   return 0;
10875 if (sizeof (ac__type_new_))
10876   return 0;
10877   ;
10878   return 0;
10879 }
10880 _ACEOF
10881 rm -f conftest.$ac_objext
10882 if { (ac_try="$ac_compile"
10883 case "(($ac_try" in
10884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885   *) ac_try_echo=$ac_try;;
10886 esac
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888   (eval "$ac_compile") 2>conftest.er1
10889   ac_status=$?
10890   grep -v '^ *+' conftest.er1 >conftest.err
10891   rm -f conftest.er1
10892   cat conftest.err >&5
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } &&
10895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10896   { (case "(($ac_try" in
10897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898   *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901   (eval "$ac_try") 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; } &&
10905          { ac_try='test -s conftest.$ac_objext'
10906   { (case "(($ac_try" in
10907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908   *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911   (eval "$ac_try") 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; }; then
10915   ac_cv_type_error_t=yes
10916 else
10917   echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920         ac_cv_type_error_t=no
10921 fi
10922
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10924 fi
10925 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10926 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10927 if test $ac_cv_type_error_t = yes; then
10928
10929 cat >>confdefs.h <<_ACEOF
10930 #define HAVE_ERROR_T 1
10931 _ACEOF
10932
10933
10934 else
10935
10936 cat >>confdefs.h <<\_ACEOF
10937 #define error_t int
10938 _ACEOF
10939
10940 fi
10941
10942
10943
10944
10945
10946
10947
10948 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10949 do
10950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10954   echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956   cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10964 #define $ac_func innocuous_$ac_func
10965
10966 /* System header to define __stub macros and hopefully few prototypes,
10967     which can conflict with char $ac_func (); below.
10968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10969     <limits.h> exists even on freestanding compilers.  */
10970
10971 #ifdef __STDC__
10972 # include <limits.h>
10973 #else
10974 # include <assert.h>
10975 #endif
10976
10977 #undef $ac_func
10978
10979 /* Override any GCC internal prototype to avoid an error.
10980    Use char because int might match the return type of a GCC
10981    builtin and then its argument prototype would still apply.  */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char $ac_func ();
10986 /* The GNU C library defines this for functions which it implements
10987     to always fail with ENOSYS.  Some functions are actually named
10988     something starting with __ and the normal name is an alias.  */
10989 #if defined __stub_$ac_func || defined __stub___$ac_func
10990 choke me
10991 #endif
10992
10993 int
10994 main ()
10995 {
10996 return $ac_func ();
10997   ;
10998   return 0;
10999 }
11000 _ACEOF
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (ac_try="$ac_link"
11003 case "(($ac_try" in
11004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005   *) ac_try_echo=$ac_try;;
11006 esac
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008   (eval "$ac_link") 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016   { (case "(($ac_try" in
11017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018   *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021   (eval "$ac_try") 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; } &&
11025          { ac_try='test -s conftest$ac_exeext'
11026   { (case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_try") 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); }; }; then
11035   eval "$as_ac_var=yes"
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040         eval "$as_ac_var=no"
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext \
11044       conftest$ac_exeext conftest.$ac_ext
11045 fi
11046 ac_res=`eval echo '${'$as_ac_var'}'`
11047                { echo "$as_me:$LINENO: result: $ac_res" >&5
11048 echo "${ECHO_T}$ac_res" >&6; }
11049 if test `eval echo '${'$as_ac_var'}'` = yes; then
11050   cat >>confdefs.h <<_ACEOF
11051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11052 _ACEOF
11053
11054 fi
11055 done
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11085                   stdio.h unistd.h
11086 do
11087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11089   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11092   echo $ECHO_N "(cached) $ECHO_C" >&6
11093 fi
11094 ac_res=`eval echo '${'$as_ac_Header'}'`
11095                { echo "$as_me:$LINENO: result: $ac_res" >&5
11096 echo "${ECHO_T}$ac_res" >&6; }
11097 else
11098   # Is the header compilable?
11099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107 $ac_includes_default
11108 #include <$ac_header>
11109 _ACEOF
11110 rm -f conftest.$ac_objext
11111 if { (ac_try="$ac_compile"
11112 case "(($ac_try" in
11113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114   *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117   (eval "$ac_compile") 2>conftest.er1
11118   ac_status=$?
11119   grep -v '^ *+' conftest.er1 >conftest.err
11120   rm -f conftest.er1
11121   cat conftest.err >&5
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } &&
11124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125   { (case "(($ac_try" in
11126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127   *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130   (eval "$ac_try") 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }; } &&
11134          { ac_try='test -s conftest.$ac_objext'
11135   { (case "(($ac_try" in
11136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137   *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140   (eval "$ac_try") 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; }; then
11144   ac_header_compiler=yes
11145 else
11146   echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149         ac_header_compiler=no
11150 fi
11151
11152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11154 echo "${ECHO_T}$ac_header_compiler" >&6; }
11155
11156 # Is the header present?
11157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11159 cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165 #include <$ac_header>
11166 _ACEOF
11167 if { (ac_try="$ac_cpp conftest.$ac_ext"
11168 case "(($ac_try" in
11169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170   *) ac_try_echo=$ac_try;;
11171 esac
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11174   ac_status=$?
11175   grep -v '^ *+' conftest.er1 >conftest.err
11176   rm -f conftest.er1
11177   cat conftest.err >&5
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); } >/dev/null; then
11180   if test -s conftest.err; then
11181     ac_cpp_err=$ac_c_preproc_warn_flag
11182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11183   else
11184     ac_cpp_err=
11185   fi
11186 else
11187   ac_cpp_err=yes
11188 fi
11189 if test -z "$ac_cpp_err"; then
11190   ac_header_preproc=yes
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195   ac_header_preproc=no
11196 fi
11197
11198 rm -f conftest.err conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11200 echo "${ECHO_T}$ac_header_preproc" >&6; }
11201
11202 # So?  What about this header?
11203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11204   yes:no: )
11205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11209     ac_header_preproc=yes
11210     ;;
11211   no:yes:* )
11212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11224     ( cat <<\_ASBOX
11225 ## ------------------------------------ ##
11226 ## Report this to http://llvm.org/bugs/ ##
11227 ## ------------------------------------ ##
11228 _ASBOX
11229      ) | sed "s/^/$as_me: WARNING:     /" >&2
11230     ;;
11231 esac
11232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   eval "$as_ac_Header=\$ac_header_preproc"
11238 fi
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240                { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11242
11243 fi
11244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11245   cat >>confdefs.h <<_ACEOF
11246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11247 _ACEOF
11248
11249 fi
11250
11251 done
11252
11253
11254
11255
11256
11257 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11258 do
11259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11261   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 fi
11266 ac_res=`eval echo '${'$as_ac_Header'}'`
11267                { echo "$as_me:$LINENO: result: $ac_res" >&5
11268 echo "${ECHO_T}$ac_res" >&6; }
11269 else
11270   # Is the header compilable?
11271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h.  */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h.  */
11279 $ac_includes_default
11280 #include <$ac_header>
11281 _ACEOF
11282 rm -f conftest.$ac_objext
11283 if { (ac_try="$ac_compile"
11284 case "(($ac_try" in
11285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286   *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289   (eval "$ac_compile") 2>conftest.er1
11290   ac_status=$?
11291   grep -v '^ *+' conftest.er1 >conftest.err
11292   rm -f conftest.er1
11293   cat conftest.err >&5
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } &&
11296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11297   { (case "(($ac_try" in
11298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299   *) ac_try_echo=$ac_try;;
11300 esac
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302   (eval "$ac_try") 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); }; } &&
11306          { ac_try='test -s conftest.$ac_objext'
11307   { (case "(($ac_try" in
11308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309   *) ac_try_echo=$ac_try;;
11310 esac
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312   (eval "$ac_try") 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); }; }; then
11316   ac_header_compiler=yes
11317 else
11318   echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321         ac_header_compiler=no
11322 fi
11323
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11326 echo "${ECHO_T}$ac_header_compiler" >&6; }
11327
11328 # Is the header present?
11329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337 #include <$ac_header>
11338 _ACEOF
11339 if { (ac_try="$ac_cpp conftest.$ac_ext"
11340 case "(($ac_try" in
11341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342   *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11346   ac_status=$?
11347   grep -v '^ *+' conftest.er1 >conftest.err
11348   rm -f conftest.er1
11349   cat conftest.err >&5
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); } >/dev/null; then
11352   if test -s conftest.err; then
11353     ac_cpp_err=$ac_c_preproc_warn_flag
11354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11355   else
11356     ac_cpp_err=
11357   fi
11358 else
11359   ac_cpp_err=yes
11360 fi
11361 if test -z "$ac_cpp_err"; then
11362   ac_header_preproc=yes
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367   ac_header_preproc=no
11368 fi
11369
11370 rm -f conftest.err conftest.$ac_ext
11371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11372 echo "${ECHO_T}$ac_header_preproc" >&6; }
11373
11374 # So?  What about this header?
11375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11376   yes:no: )
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11381     ac_header_preproc=yes
11382     ;;
11383   no:yes:* )
11384     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11387 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11391 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11394     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11396     ( cat <<\_ASBOX
11397 ## ------------------------------------ ##
11398 ## Report this to http://llvm.org/bugs/ ##
11399 ## ------------------------------------ ##
11400 _ASBOX
11401      ) | sed "s/^/$as_me: WARNING:     /" >&2
11402     ;;
11403 esac
11404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407   echo $ECHO_N "(cached) $ECHO_C" >&6
11408 else
11409   eval "$as_ac_Header=\$ac_header_preproc"
11410 fi
11411 ac_res=`eval echo '${'$as_ac_Header'}'`
11412                { echo "$as_me:$LINENO: result: $ac_res" >&5
11413 echo "${ECHO_T}$ac_res" >&6; }
11414
11415 fi
11416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11417   cat >>confdefs.h <<_ACEOF
11418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11419 _ACEOF
11420
11421 fi
11422
11423 done
11424
11425
11426
11427 for ac_header in string.h strings.h
11428 do
11429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434   echo $ECHO_N "(cached) $ECHO_C" >&6
11435 fi
11436 ac_res=`eval echo '${'$as_ac_Header'}'`
11437                { echo "$as_me:$LINENO: result: $ac_res" >&5
11438 echo "${ECHO_T}$ac_res" >&6; }
11439 else
11440   # Is the header compilable?
11441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11443 cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h.  */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h.  */
11449 $ac_includes_default
11450 #include <$ac_header>
11451 _ACEOF
11452 rm -f conftest.$ac_objext
11453 if { (ac_try="$ac_compile"
11454 case "(($ac_try" in
11455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456   *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459   (eval "$ac_compile") 2>conftest.er1
11460   ac_status=$?
11461   grep -v '^ *+' conftest.er1 >conftest.err
11462   rm -f conftest.er1
11463   cat conftest.err >&5
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); } &&
11466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11467   { (case "(($ac_try" in
11468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469   *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472   (eval "$ac_try") 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; } &&
11476          { ac_try='test -s conftest.$ac_objext'
11477   { (case "(($ac_try" in
11478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479   *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482   (eval "$ac_try") 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); }; }; then
11486   ac_header_compiler=yes
11487 else
11488   echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11490
11491         ac_header_compiler=no
11492 fi
11493
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11496 echo "${ECHO_T}$ac_header_compiler" >&6; }
11497
11498 # Is the header present?
11499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 #include <$ac_header>
11508 _ACEOF
11509 if { (ac_try="$ac_cpp conftest.$ac_ext"
11510 case "(($ac_try" in
11511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512   *) ac_try_echo=$ac_try;;
11513 esac
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11516   ac_status=$?
11517   grep -v '^ *+' conftest.er1 >conftest.err
11518   rm -f conftest.er1
11519   cat conftest.err >&5
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); } >/dev/null; then
11522   if test -s conftest.err; then
11523     ac_cpp_err=$ac_c_preproc_warn_flag
11524     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11525   else
11526     ac_cpp_err=
11527   fi
11528 else
11529   ac_cpp_err=yes
11530 fi
11531 if test -z "$ac_cpp_err"; then
11532   ac_header_preproc=yes
11533 else
11534   echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11536
11537   ac_header_preproc=no
11538 fi
11539
11540 rm -f conftest.err conftest.$ac_ext
11541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11542 echo "${ECHO_T}$ac_header_preproc" >&6; }
11543
11544 # So?  What about this header?
11545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11546   yes:no: )
11547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11551     ac_header_preproc=yes
11552     ;;
11553   no:yes:* )
11554     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11556     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11557 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11560     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11561 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11564     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11566     ( cat <<\_ASBOX
11567 ## ------------------------------------ ##
11568 ## Report this to http://llvm.org/bugs/ ##
11569 ## ------------------------------------ ##
11570 _ASBOX
11571      ) | sed "s/^/$as_me: WARNING:     /" >&2
11572     ;;
11573 esac
11574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   eval "$as_ac_Header=\$ac_header_preproc"
11580 fi
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582                { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11584
11585 fi
11586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11587   cat >>confdefs.h <<_ACEOF
11588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11589 _ACEOF
11590  break
11591 fi
11592
11593 done
11594
11595
11596
11597
11598 for ac_func in strchr index
11599 do
11600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11604   echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606   cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h.  */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h.  */
11612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11614 #define $ac_func innocuous_$ac_func
11615
11616 /* System header to define __stub macros and hopefully few prototypes,
11617     which can conflict with char $ac_func (); below.
11618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619     <limits.h> exists even on freestanding compilers.  */
11620
11621 #ifdef __STDC__
11622 # include <limits.h>
11623 #else
11624 # include <assert.h>
11625 #endif
11626
11627 #undef $ac_func
11628
11629 /* Override any GCC internal prototype to avoid an error.
11630    Use char because int might match the return type of a GCC
11631    builtin and then its argument prototype would still apply.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char $ac_func ();
11636 /* The GNU C library defines this for functions which it implements
11637     to always fail with ENOSYS.  Some functions are actually named
11638     something starting with __ and the normal name is an alias.  */
11639 #if defined __stub_$ac_func || defined __stub___$ac_func
11640 choke me
11641 #endif
11642
11643 int
11644 main ()
11645 {
11646 return $ac_func ();
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (ac_try="$ac_link"
11653 case "(($ac_try" in
11654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655   *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658   (eval "$ac_link") 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } &&
11665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666   { (case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_try") 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); }; } &&
11675          { ac_try='test -s conftest$ac_exeext'
11676   { (case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681   (eval "$ac_try") 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   eval "$as_ac_var=yes"
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690         eval "$as_ac_var=no"
11691 fi
11692
11693 rm -f core conftest.err conftest.$ac_objext \
11694       conftest$ac_exeext conftest.$ac_ext
11695 fi
11696 ac_res=`eval echo '${'$as_ac_var'}'`
11697                { echo "$as_me:$LINENO: result: $ac_res" >&5
11698 echo "${ECHO_T}$ac_res" >&6; }
11699 if test `eval echo '${'$as_ac_var'}'` = yes; then
11700   cat >>confdefs.h <<_ACEOF
11701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11702 _ACEOF
11703  break
11704 fi
11705 done
11706
11707
11708
11709 for ac_func in strrchr rindex
11710 do
11711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11715   echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717   cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11725 #define $ac_func innocuous_$ac_func
11726
11727 /* System header to define __stub macros and hopefully few prototypes,
11728     which can conflict with char $ac_func (); below.
11729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730     <limits.h> exists even on freestanding compilers.  */
11731
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11737
11738 #undef $ac_func
11739
11740 /* Override any GCC internal prototype to avoid an error.
11741    Use char because int might match the return type of a GCC
11742    builtin and then its argument prototype would still apply.  */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 char $ac_func ();
11747 /* The GNU C library defines this for functions which it implements
11748     to always fail with ENOSYS.  Some functions are actually named
11749     something starting with __ and the normal name is an alias.  */
11750 #if defined __stub_$ac_func || defined __stub___$ac_func
11751 choke me
11752 #endif
11753
11754 int
11755 main ()
11756 {
11757 return $ac_func ();
11758   ;
11759   return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766   *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769   (eval "$ac_link") 2>conftest.er1
11770   ac_status=$?
11771   grep -v '^ *+' conftest.er1 >conftest.err
11772   rm -f conftest.er1
11773   cat conftest.err >&5
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); } &&
11776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777   { (case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782   (eval "$ac_try") 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; } &&
11786          { ac_try='test -s conftest$ac_exeext'
11787   { (case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792   (eval "$ac_try") 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   eval "$as_ac_var=yes"
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801         eval "$as_ac_var=no"
11802 fi
11803
11804 rm -f core conftest.err conftest.$ac_objext \
11805       conftest$ac_exeext conftest.$ac_ext
11806 fi
11807 ac_res=`eval echo '${'$as_ac_var'}'`
11808                { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 if test `eval echo '${'$as_ac_var'}'` = yes; then
11811   cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813 _ACEOF
11814  break
11815 fi
11816 done
11817
11818
11819
11820 for ac_func in memcpy bcopy
11821 do
11822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828   cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11836 #define $ac_func innocuous_$ac_func
11837
11838 /* System header to define __stub macros and hopefully few prototypes,
11839     which can conflict with char $ac_func (); below.
11840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841     <limits.h> exists even on freestanding compilers.  */
11842
11843 #ifdef __STDC__
11844 # include <limits.h>
11845 #else
11846 # include <assert.h>
11847 #endif
11848
11849 #undef $ac_func
11850
11851 /* Override any GCC internal prototype to avoid an error.
11852    Use char because int might match the return type of a GCC
11853    builtin and then its argument prototype would still apply.  */
11854 #ifdef __cplusplus
11855 extern "C"
11856 #endif
11857 char $ac_func ();
11858 /* The GNU C library defines this for functions which it implements
11859     to always fail with ENOSYS.  Some functions are actually named
11860     something starting with __ and the normal name is an alias.  */
11861 #if defined __stub_$ac_func || defined __stub___$ac_func
11862 choke me
11863 #endif
11864
11865 int
11866 main ()
11867 {
11868 return $ac_func ();
11869   ;
11870   return 0;
11871 }
11872 _ACEOF
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (ac_try="$ac_link"
11875 case "(($ac_try" in
11876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877   *) ac_try_echo=$ac_try;;
11878 esac
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880   (eval "$ac_link") 2>conftest.er1
11881   ac_status=$?
11882   grep -v '^ *+' conftest.er1 >conftest.err
11883   rm -f conftest.er1
11884   cat conftest.err >&5
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } &&
11887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11888   { (case "(($ac_try" in
11889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890   *) ac_try_echo=$ac_try;;
11891 esac
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893   (eval "$ac_try") 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; } &&
11897          { ac_try='test -s conftest$ac_exeext'
11898   { (case "(($ac_try" in
11899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900   *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903   (eval "$ac_try") 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); }; }; then
11907   eval "$as_ac_var=yes"
11908 else
11909   echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11911
11912         eval "$as_ac_var=no"
11913 fi
11914
11915 rm -f core conftest.err conftest.$ac_objext \
11916       conftest$ac_exeext conftest.$ac_ext
11917 fi
11918 ac_res=`eval echo '${'$as_ac_var'}'`
11919                { echo "$as_me:$LINENO: result: $ac_res" >&5
11920 echo "${ECHO_T}$ac_res" >&6; }
11921 if test `eval echo '${'$as_ac_var'}'` = yes; then
11922   cat >>confdefs.h <<_ACEOF
11923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11924 _ACEOF
11925  break
11926 fi
11927 done
11928
11929
11930
11931 for ac_func in memmove strcmp
11932 do
11933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939   cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h.  */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h.  */
11945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11947 #define $ac_func innocuous_$ac_func
11948
11949 /* System header to define __stub macros and hopefully few prototypes,
11950     which can conflict with char $ac_func (); below.
11951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11952     <limits.h> exists even on freestanding compilers.  */
11953
11954 #ifdef __STDC__
11955 # include <limits.h>
11956 #else
11957 # include <assert.h>
11958 #endif
11959
11960 #undef $ac_func
11961
11962 /* Override any GCC internal prototype to avoid an error.
11963    Use char because int might match the return type of a GCC
11964    builtin and then its argument prototype would still apply.  */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 char $ac_func ();
11969 /* The GNU C library defines this for functions which it implements
11970     to always fail with ENOSYS.  Some functions are actually named
11971     something starting with __ and the normal name is an alias.  */
11972 #if defined __stub_$ac_func || defined __stub___$ac_func
11973 choke me
11974 #endif
11975
11976 int
11977 main ()
11978 {
11979 return $ac_func ();
11980   ;
11981   return 0;
11982 }
11983 _ACEOF
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (ac_try="$ac_link"
11986 case "(($ac_try" in
11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988   *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991   (eval "$ac_link") 2>conftest.er1
11992   ac_status=$?
11993   grep -v '^ *+' conftest.er1 >conftest.err
11994   rm -f conftest.er1
11995   cat conftest.err >&5
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } &&
11998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11999   { (case "(($ac_try" in
12000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001   *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004   (eval "$ac_try") 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; } &&
12008          { ac_try='test -s conftest$ac_exeext'
12009   { (case "(($ac_try" in
12010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011   *) ac_try_echo=$ac_try;;
12012 esac
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014   (eval "$ac_try") 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   eval "$as_ac_var=yes"
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023         eval "$as_ac_var=no"
12024 fi
12025
12026 rm -f core conftest.err conftest.$ac_objext \
12027       conftest$ac_exeext conftest.$ac_ext
12028 fi
12029 ac_res=`eval echo '${'$as_ac_var'}'`
12030                { echo "$as_me:$LINENO: result: $ac_res" >&5
12031 echo "${ECHO_T}$ac_res" >&6; }
12032 if test `eval echo '${'$as_ac_var'}'` = yes; then
12033   cat >>confdefs.h <<_ACEOF
12034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12035 _ACEOF
12036
12037 fi
12038 done
12039
12040
12041
12042
12043 for ac_func in closedir opendir readdir
12044 do
12045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   cat >conftest.$ac_ext <<_ACEOF
12052 /* confdefs.h.  */
12053 _ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h.  */
12057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12059 #define $ac_func innocuous_$ac_func
12060
12061 /* System header to define __stub macros and hopefully few prototypes,
12062     which can conflict with char $ac_func (); below.
12063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064     <limits.h> exists even on freestanding compilers.  */
12065
12066 #ifdef __STDC__
12067 # include <limits.h>
12068 #else
12069 # include <assert.h>
12070 #endif
12071
12072 #undef $ac_func
12073
12074 /* Override any GCC internal prototype to avoid an error.
12075    Use char because int might match the return type of a GCC
12076    builtin and then its argument prototype would still apply.  */
12077 #ifdef __cplusplus
12078 extern "C"
12079 #endif
12080 char $ac_func ();
12081 /* The GNU C library defines this for functions which it implements
12082     to always fail with ENOSYS.  Some functions are actually named
12083     something starting with __ and the normal name is an alias.  */
12084 #if defined __stub_$ac_func || defined __stub___$ac_func
12085 choke me
12086 #endif
12087
12088 int
12089 main ()
12090 {
12091 return $ac_func ();
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (ac_try="$ac_link"
12098 case "(($ac_try" in
12099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100   *) ac_try_echo=$ac_try;;
12101 esac
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103   (eval "$ac_link") 2>conftest.er1
12104   ac_status=$?
12105   grep -v '^ *+' conftest.er1 >conftest.err
12106   rm -f conftest.er1
12107   cat conftest.err >&5
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } &&
12110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12111   { (case "(($ac_try" in
12112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113   *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116   (eval "$ac_try") 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); }; } &&
12120          { ac_try='test -s conftest$ac_exeext'
12121   { (case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_try") 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; }; then
12130   eval "$as_ac_var=yes"
12131 else
12132   echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135         eval "$as_ac_var=no"
12136 fi
12137
12138 rm -f core conftest.err conftest.$ac_objext \
12139       conftest$ac_exeext conftest.$ac_ext
12140 fi
12141 ac_res=`eval echo '${'$as_ac_var'}'`
12142                { echo "$as_me:$LINENO: result: $ac_res" >&5
12143 echo "${ECHO_T}$ac_res" >&6; }
12144 if test `eval echo '${'$as_ac_var'}'` = yes; then
12145   cat >>confdefs.h <<_ACEOF
12146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12147 _ACEOF
12148
12149 fi
12150 done
12151
12152
12153
12154 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12155 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12156
12157 ICC=no
12158 IXX=no
12159 case $CC in
12160   icc*|icpc*)
12161     ICC=yes
12162     IXX=yes
12163     ;;
12164    *)
12165     ;;
12166 esac
12167
12168 if test "$GCC" != "yes" && test "$ICC" != "yes"
12169 then
12170   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12171 echo "$as_me: error: gcc|icc required but not found" >&2;}
12172    { (exit 1); exit 1; }; }
12173 fi
12174
12175 if test "$GXX" != "yes" && test "$IXX" != "yes"
12176 then
12177   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12178 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12179    { (exit 1); exit 1; }; }
12180 fi
12181
12182 if test "$GCC" = "yes"
12183 then
12184   cat >conftest.$ac_ext <<_ACEOF
12185
12186   /* confdefs.h.  */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h.  */
12191
12192     #if !defined(__GNUC__) || __GNUC__ < 3
12193     #error Unsupported GCC version
12194     #endif
12195
12196
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202   *) ac_try_echo=$ac_try;;
12203 esac
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205   (eval "$ac_compile") 2>conftest.er1
12206   ac_status=$?
12207   grep -v '^ *+' conftest.er1 >conftest.err
12208   rm -f conftest.er1
12209   cat conftest.err >&5
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); } &&
12212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12213   { (case "(($ac_try" in
12214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215   *) ac_try_echo=$ac_try;;
12216 esac
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218   (eval "$ac_try") 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); }; } &&
12222          { ac_try='test -s conftest.$ac_objext'
12223   { (case "(($ac_try" in
12224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225   *) ac_try_echo=$ac_try;;
12226 esac
12227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228   (eval "$ac_try") 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); }; }; then
12232   :
12233 else
12234   echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12238 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12239    { (exit 1); exit 1; }; }
12240 fi
12241
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 fi
12244
12245 if test -z "$llvm_cv_gnu_make_command"
12246 then
12247   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12248 echo "$as_me: error: GNU Make required but not found" >&2;}
12249    { (exit 1); exit 1; }; }
12250 fi
12251
12252 { echo "$as_me:$LINENO: result: ok" >&5
12253 echo "${ECHO_T}ok" >&6; }
12254
12255 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12256 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12257 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12258
12259 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12260
12261 NO_NESTED_ANON_TYPES=`$CXX -Werror -Wno-nested-anon-types -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-nested-anon-types`
12262
12263 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12264
12265 if test "$GXX" = "yes"
12266 then
12267   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12268
12269         if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12270   then
12271     NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12272
12273   else
12274                     gxx_version=`$CXX -dumpversion`
12275     gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12276     gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12277     gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12278
12279     if    test "$gxx_version_major" -ge "4" \
12280        && test "$gxx_version_minor" -ge "7"; then
12281             NO_UNINITIALIZED=
12282     else
12283       NO_MAYBE_UNINITIALIZED=
12284       NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12285
12286     fi
12287   fi
12288 else
12289   NO_UNINITIALIZED=
12290   NO_MAYBE_UNINITIALIZED=
12291 fi
12292 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12293 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12294
12295
12296 # Check whether --with-python was given.
12297 if test "${with_python+set}" = set; then
12298   withval=$with_python; PYTHON="$withval"
12299 fi
12300
12301
12302 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12303   { echo "$as_me:$LINENO: checking for python" >&5
12304 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12305   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12306 echo "${ECHO_T}user defined: $with_python" >&6; }
12307 else
12308   if test -n "$PYTHON" ; then
12309     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12310 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12311   fi
12312
12313   # Extract the first word of "python python2 python26", so it can be a program name with args.
12314 set dummy python python2 python26; ac_word=$2
12315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12317 if test "${ac_cv_path_PYTHON+set}" = set; then
12318   echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320   case $PYTHON in
12321   [\\/]* | ?:[\\/]*)
12322   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12323   ;;
12324   *)
12325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12327 do
12328   IFS=$as_save_IFS
12329   test -z "$as_dir" && as_dir=.
12330   for ac_exec_ext in '' $ac_executable_extensions; do
12331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12332     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12334     break 2
12335   fi
12336 done
12337 done
12338 IFS=$as_save_IFS
12339
12340   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12341 echo "${ECHO_T}not found" >&6; }
12342                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12343 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12344    { (exit 1); exit 1; }; }"
12345   ;;
12346 esac
12347 fi
12348 PYTHON=$ac_cv_path_PYTHON
12349 if test -n "$PYTHON"; then
12350   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12351 echo "${ECHO_T}$PYTHON" >&6; }
12352 else
12353   { echo "$as_me:$LINENO: result: no" >&5
12354 echo "${ECHO_T}no" >&6; }
12355 fi
12356
12357
12358 fi
12359
12360 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12361 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12362 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12363 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12364 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12365 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12366 if   test "$ac_python_version_major" -eq "2" \
12367    && test "$ac_python_version_minor" -ge "5" ; then
12368   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12369 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12370 else
12371   { echo "$as_me:$LINENO: result: not found" >&5
12372 echo "${ECHO_T}not found" >&6; }
12373   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12374 See \`config.log' for more details." >&5
12375 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12376 See \`config.log' for more details." >&2;}
12377    { (exit 1); exit 1; }; }
12378 fi
12379
12380
12381
12382 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12383 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12384 if test "${ac_cv_lib_m_sin+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-lm  $LIBS"
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397    Use char because int might match the return type of a GCC
12398    builtin and then its argument prototype would still apply.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char sin ();
12403 int
12404 main ()
12405 {
12406 return sin ();
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (ac_try="$ac_link"
12413 case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_link") 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } &&
12425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12426   { (case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_try") 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest$ac_exeext'
12436   { (case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_try") 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; }; then
12445   ac_cv_lib_m_sin=yes
12446 else
12447   echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450         ac_cv_lib_m_sin=no
12451 fi
12452
12453 rm -f core conftest.err conftest.$ac_objext \
12454       conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12456 fi
12457 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12458 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12459 if test $ac_cv_lib_m_sin = yes; then
12460   cat >>confdefs.h <<_ACEOF
12461 #define HAVE_LIBM 1
12462 _ACEOF
12463
12464   LIBS="-lm $LIBS"
12465
12466 fi
12467
12468 if test "$llvm_cv_os_type" = "MingW" ; then
12469
12470 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12471 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12472 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-limagehlp  $LIBS"
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483
12484
12485 int
12486 main ()
12487 {
12488 return main ();
12489   ;
12490   return 0;
12491 }
12492 _ACEOF
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (ac_try="$ac_link"
12495 case "(($ac_try" in
12496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497   *) ac_try_echo=$ac_try;;
12498 esac
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500   (eval "$ac_link") 2>conftest.er1
12501   ac_status=$?
12502   grep -v '^ *+' conftest.er1 >conftest.err
12503   rm -f conftest.er1
12504   cat conftest.err >&5
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } &&
12507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; } &&
12517          { ac_try='test -s conftest$ac_exeext'
12518   { (case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_try") 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_lib_imagehlp_main=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532         ac_cv_lib_imagehlp_main=no
12533 fi
12534
12535 rm -f core conftest.err conftest.$ac_objext \
12536       conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12538 fi
12539 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12540 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12541 if test $ac_cv_lib_imagehlp_main = yes; then
12542   cat >>confdefs.h <<_ACEOF
12543 #define HAVE_LIBIMAGEHLP 1
12544 _ACEOF
12545
12546   LIBS="-limagehlp $LIBS"
12547
12548 fi
12549
12550
12551 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12552 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12553 if test "${ac_cv_lib_psapi_main+set}" = set; then
12554   echo $ECHO_N "(cached) $ECHO_C" >&6
12555 else
12556   ac_check_lib_save_LIBS=$LIBS
12557 LIBS="-lpsapi  $LIBS"
12558 cat >conftest.$ac_ext <<_ACEOF
12559 /* confdefs.h.  */
12560 _ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h.  */
12564
12565
12566 int
12567 main ()
12568 {
12569 return main ();
12570   ;
12571   return 0;
12572 }
12573 _ACEOF
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (ac_try="$ac_link"
12576 case "(($ac_try" in
12577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578   *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581   (eval "$ac_link") 2>conftest.er1
12582   ac_status=$?
12583   grep -v '^ *+' conftest.er1 >conftest.err
12584   rm -f conftest.er1
12585   cat conftest.err >&5
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); } &&
12588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12589   { (case "(($ac_try" in
12590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591   *) ac_try_echo=$ac_try;;
12592 esac
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594   (eval "$ac_try") 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; } &&
12598          { ac_try='test -s conftest$ac_exeext'
12599   { (case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_try") 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; }; then
12608   ac_cv_lib_psapi_main=yes
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613         ac_cv_lib_psapi_main=no
12614 fi
12615
12616 rm -f core conftest.err conftest.$ac_objext \
12617       conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12619 fi
12620 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12621 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12622 if test $ac_cv_lib_psapi_main = yes; then
12623   cat >>confdefs.h <<_ACEOF
12624 #define HAVE_LIBPSAPI 1
12625 _ACEOF
12626
12627   LIBS="-lpsapi $LIBS"
12628
12629 fi
12630
12631 fi
12632
12633 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12634 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12635 if test "${ac_cv_search_dlopen+set}" = set; then
12636   echo $ECHO_N "(cached) $ECHO_C" >&6
12637 else
12638   ac_func_search_save_LIBS=$LIBS
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h.  */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h.  */
12645
12646 /* Override any GCC internal prototype to avoid an error.
12647    Use char because int might match the return type of a GCC
12648    builtin and then its argument prototype would still apply.  */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 char dlopen ();
12653 int
12654 main ()
12655 {
12656 return dlopen ();
12657   ;
12658   return 0;
12659 }
12660 _ACEOF
12661 for ac_lib in '' dl; do
12662   if test -z "$ac_lib"; then
12663     ac_res="none required"
12664   else
12665     ac_res=-l$ac_lib
12666     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12667   fi
12668   rm -f conftest.$ac_objext conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672   *) ac_try_echo=$ac_try;;
12673 esac
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675   (eval "$ac_link") 2>conftest.er1
12676   ac_status=$?
12677   grep -v '^ *+' conftest.er1 >conftest.err
12678   rm -f conftest.er1
12679   cat conftest.err >&5
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } &&
12682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12683   { (case "(($ac_try" in
12684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685   *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688   (eval "$ac_try") 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; } &&
12692          { ac_try='test -s conftest$ac_exeext'
12693   { (case "(($ac_try" in
12694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695   *) ac_try_echo=$ac_try;;
12696 esac
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698   (eval "$ac_try") 2>&5
12699   ac_status=$?
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); }; }; then
12702   ac_cv_search_dlopen=$ac_res
12703 else
12704   echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707
12708 fi
12709
12710 rm -f core conftest.err conftest.$ac_objext \
12711       conftest$ac_exeext
12712   if test "${ac_cv_search_dlopen+set}" = set; then
12713   break
12714 fi
12715 done
12716 if test "${ac_cv_search_dlopen+set}" = set; then
12717   :
12718 else
12719   ac_cv_search_dlopen=no
12720 fi
12721 rm conftest.$ac_ext
12722 LIBS=$ac_func_search_save_LIBS
12723 fi
12724 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12725 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12726 ac_res=$ac_cv_search_dlopen
12727 if test "$ac_res" != no; then
12728   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12729
12730 cat >>confdefs.h <<\_ACEOF
12731 #define HAVE_DLOPEN 1
12732 _ACEOF
12733
12734 else
12735   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12736 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12737 fi
12738
12739
12740 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12741 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12742 if test "${ac_cv_search_clock_gettime+set}" = set; then
12743   echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745   ac_func_search_save_LIBS=$LIBS
12746 cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h.  */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h.  */
12752
12753 /* Override any GCC internal prototype to avoid an error.
12754    Use char because int might match the return type of a GCC
12755    builtin and then its argument prototype would still apply.  */
12756 #ifdef __cplusplus
12757 extern "C"
12758 #endif
12759 char clock_gettime ();
12760 int
12761 main ()
12762 {
12763 return clock_gettime ();
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 for ac_lib in '' rt; do
12769   if test -z "$ac_lib"; then
12770     ac_res="none required"
12771   else
12772     ac_res=-l$ac_lib
12773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12774   fi
12775   rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779   *) ac_try_echo=$ac_try;;
12780 esac
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782   (eval "$ac_link") 2>conftest.er1
12783   ac_status=$?
12784   grep -v '^ *+' conftest.er1 >conftest.err
12785   rm -f conftest.er1
12786   cat conftest.err >&5
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } &&
12789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12790   { (case "(($ac_try" in
12791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792   *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795   (eval "$ac_try") 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; } &&
12799          { ac_try='test -s conftest$ac_exeext'
12800   { (case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_try") 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; }; then
12809   ac_cv_search_clock_gettime=$ac_res
12810 else
12811   echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814
12815 fi
12816
12817 rm -f core conftest.err conftest.$ac_objext \
12818       conftest$ac_exeext
12819   if test "${ac_cv_search_clock_gettime+set}" = set; then
12820   break
12821 fi
12822 done
12823 if test "${ac_cv_search_clock_gettime+set}" = set; then
12824   :
12825 else
12826   ac_cv_search_clock_gettime=no
12827 fi
12828 rm conftest.$ac_ext
12829 LIBS=$ac_func_search_save_LIBS
12830 fi
12831 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12832 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12833 ac_res=$ac_cv_search_clock_gettime
12834 if test "$ac_res" != no; then
12835   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12836
12837 fi
12838
12839
12840 if test "$llvm_cv_enable_libffi" = "yes" ; then
12841   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12842 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12843 if test "${ac_cv_search_ffi_call+set}" = set; then
12844   echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846   ac_func_search_save_LIBS=$LIBS
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12853
12854 /* Override any GCC internal prototype to avoid an error.
12855    Use char because int might match the return type of a GCC
12856    builtin and then its argument prototype would still apply.  */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 char ffi_call ();
12861 int
12862 main ()
12863 {
12864 return ffi_call ();
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 for ac_lib in '' ffi; do
12870   if test -z "$ac_lib"; then
12871     ac_res="none required"
12872   else
12873     ac_res=-l$ac_lib
12874     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12875   fi
12876   rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (ac_try="$ac_link"
12878 case "(($ac_try" in
12879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880   *) ac_try_echo=$ac_try;;
12881 esac
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883   (eval "$ac_link") 2>conftest.er1
12884   ac_status=$?
12885   grep -v '^ *+' conftest.er1 >conftest.err
12886   rm -f conftest.er1
12887   cat conftest.err >&5
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); } &&
12890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12891   { (case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_try") 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); }; } &&
12900          { ac_try='test -s conftest$ac_exeext'
12901   { (case "(($ac_try" in
12902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903   *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906   (eval "$ac_try") 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   ac_cv_search_ffi_call=$ac_res
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915
12916 fi
12917
12918 rm -f core conftest.err conftest.$ac_objext \
12919       conftest$ac_exeext
12920   if test "${ac_cv_search_ffi_call+set}" = set; then
12921   break
12922 fi
12923 done
12924 if test "${ac_cv_search_ffi_call+set}" = set; then
12925   :
12926 else
12927   ac_cv_search_ffi_call=no
12928 fi
12929 rm conftest.$ac_ext
12930 LIBS=$ac_func_search_save_LIBS
12931 fi
12932 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12933 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12934 ac_res=$ac_cv_search_ffi_call
12935 if test "$ac_res" != no; then
12936   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12937
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_FFI_CALL 1
12940 _ACEOF
12941
12942 else
12943   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12944 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12945    { (exit 1); exit 1; }; }
12946 fi
12947
12948 fi
12949
12950 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12951 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12952 if test "${ac_cv_search_mallinfo+set}" = set; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   ac_func_search_save_LIBS=$LIBS
12956 cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h.  */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h.  */
12962
12963 /* Override any GCC internal prototype to avoid an error.
12964    Use char because int might match the return type of a GCC
12965    builtin and then its argument prototype would still apply.  */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 char mallinfo ();
12970 int
12971 main ()
12972 {
12973 return mallinfo ();
12974   ;
12975   return 0;
12976 }
12977 _ACEOF
12978 for ac_lib in '' malloc; do
12979   if test -z "$ac_lib"; then
12980     ac_res="none required"
12981   else
12982     ac_res=-l$ac_lib
12983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12984   fi
12985   rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_link") 2>conftest.er1
12993   ac_status=$?
12994   grep -v '^ *+' conftest.er1 >conftest.err
12995   rm -f conftest.er1
12996   cat conftest.err >&5
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); } &&
12999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13000   { (case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005   (eval "$ac_try") 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; } &&
13009          { ac_try='test -s conftest$ac_exeext'
13010   { (case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015   (eval "$ac_try") 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; }; then
13019   ac_cv_search_mallinfo=$ac_res
13020 else
13021   echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024
13025 fi
13026
13027 rm -f core conftest.err conftest.$ac_objext \
13028       conftest$ac_exeext
13029   if test "${ac_cv_search_mallinfo+set}" = set; then
13030   break
13031 fi
13032 done
13033 if test "${ac_cv_search_mallinfo+set}" = set; then
13034   :
13035 else
13036   ac_cv_search_mallinfo=no
13037 fi
13038 rm conftest.$ac_ext
13039 LIBS=$ac_func_search_save_LIBS
13040 fi
13041 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13042 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13043 ac_res=$ac_cv_search_mallinfo
13044 if test "$ac_res" != no; then
13045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13046
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_MALLINFO 1
13049 _ACEOF
13050
13051 fi
13052
13053
13054 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13055
13056 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13057 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13058 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13059   echo $ECHO_N "(cached) $ECHO_C" >&6
13060 else
13061   ac_check_lib_save_LIBS=$LIBS
13062 LIBS="-lpthread  $LIBS"
13063 cat >conftest.$ac_ext <<_ACEOF
13064 /* confdefs.h.  */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h.  */
13069
13070 /* Override any GCC internal prototype to avoid an error.
13071    Use char because int might match the return type of a GCC
13072    builtin and then its argument prototype would still apply.  */
13073 #ifdef __cplusplus
13074 extern "C"
13075 #endif
13076 char pthread_mutex_init ();
13077 int
13078 main ()
13079 {
13080 return pthread_mutex_init ();
13081   ;
13082   return 0;
13083 }
13084 _ACEOF
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (ac_try="$ac_link"
13087 case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_link") 2>conftest.er1
13093   ac_status=$?
13094   grep -v '^ *+' conftest.er1 >conftest.err
13095   rm -f conftest.er1
13096   cat conftest.err >&5
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); } &&
13099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13100   { (case "(($ac_try" in
13101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102   *) ac_try_echo=$ac_try;;
13103 esac
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105   (eval "$ac_try") 2>&5
13106   ac_status=$?
13107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; } &&
13109          { ac_try='test -s conftest$ac_exeext'
13110   { (case "(($ac_try" in
13111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112   *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115   (eval "$ac_try") 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   ac_cv_lib_pthread_pthread_mutex_init=yes
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124         ac_cv_lib_pthread_pthread_mutex_init=no
13125 fi
13126
13127 rm -f core conftest.err conftest.$ac_objext \
13128       conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13130 fi
13131 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13132 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13133 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13134   cat >>confdefs.h <<_ACEOF
13135 #define HAVE_LIBPTHREAD 1
13136 _ACEOF
13137
13138   LIBS="-lpthread $LIBS"
13139
13140 fi
13141
13142   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13143 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13144 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147   ac_func_search_save_LIBS=$LIBS
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h.  */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h.  */
13154
13155 /* Override any GCC internal prototype to avoid an error.
13156    Use char because int might match the return type of a GCC
13157    builtin and then its argument prototype would still apply.  */
13158 #ifdef __cplusplus
13159 extern "C"
13160 #endif
13161 char pthread_mutex_lock ();
13162 int
13163 main ()
13164 {
13165 return pthread_mutex_lock ();
13166   ;
13167   return 0;
13168 }
13169 _ACEOF
13170 for ac_lib in '' pthread; do
13171   if test -z "$ac_lib"; then
13172     ac_res="none required"
13173   else
13174     ac_res=-l$ac_lib
13175     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13176   fi
13177   rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_link") 2>conftest.er1
13185   ac_status=$?
13186   grep -v '^ *+' conftest.er1 >conftest.err
13187   rm -f conftest.er1
13188   cat conftest.err >&5
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } &&
13191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13192   { (case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_try") 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; } &&
13201          { ac_try='test -s conftest$ac_exeext'
13202   { (case "(($ac_try" in
13203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204   *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207   (eval "$ac_try") 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; }; then
13211   ac_cv_search_pthread_mutex_lock=$ac_res
13212 else
13213   echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216
13217 fi
13218
13219 rm -f core conftest.err conftest.$ac_objext \
13220       conftest$ac_exeext
13221   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13222   break
13223 fi
13224 done
13225 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13226   :
13227 else
13228   ac_cv_search_pthread_mutex_lock=no
13229 fi
13230 rm conftest.$ac_ext
13231 LIBS=$ac_func_search_save_LIBS
13232 fi
13233 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13234 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13235 ac_res=$ac_cv_search_pthread_mutex_lock
13236 if test "$ac_res" != no; then
13237   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13238
13239 cat >>confdefs.h <<\_ACEOF
13240 #define HAVE_PTHREAD_MUTEX_LOCK 1
13241 _ACEOF
13242
13243 fi
13244
13245   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13246 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13247 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13248   echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250   ac_func_search_save_LIBS=$LIBS
13251 cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h.  */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h.  */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259    Use char because int might match the return type of a GCC
13260    builtin and then its argument prototype would still apply.  */
13261 #ifdef __cplusplus
13262 extern "C"
13263 #endif
13264 char pthread_rwlock_init ();
13265 int
13266 main ()
13267 {
13268 return pthread_rwlock_init ();
13269   ;
13270   return 0;
13271 }
13272 _ACEOF
13273 for ac_lib in '' pthread; do
13274   if test -z "$ac_lib"; then
13275     ac_res="none required"
13276   else
13277     ac_res=-l$ac_lib
13278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13279   fi
13280   rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (ac_try="$ac_link"
13282 case "(($ac_try" in
13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284   *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287   (eval "$ac_link") 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13295   { (case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300   (eval "$ac_try") 2>&5
13301   ac_status=$?
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); }; } &&
13304          { ac_try='test -s conftest$ac_exeext'
13305   { (case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310   (eval "$ac_try") 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   ac_cv_search_pthread_rwlock_init=$ac_res
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319
13320 fi
13321
13322 rm -f core conftest.err conftest.$ac_objext \
13323       conftest$ac_exeext
13324   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13325   break
13326 fi
13327 done
13328 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13329   :
13330 else
13331   ac_cv_search_pthread_rwlock_init=no
13332 fi
13333 rm conftest.$ac_ext
13334 LIBS=$ac_func_search_save_LIBS
13335 fi
13336 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13337 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13338 ac_res=$ac_cv_search_pthread_rwlock_init
13339 if test "$ac_res" != no; then
13340   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13341
13342 cat >>confdefs.h <<\_ACEOF
13343 #define HAVE_PTHREAD_RWLOCK_INIT 1
13344 _ACEOF
13345
13346 fi
13347
13348   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13349 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13350 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353   ac_func_search_save_LIBS=$LIBS
13354 cat >conftest.$ac_ext <<_ACEOF
13355 /* confdefs.h.  */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h.  */
13360
13361 /* Override any GCC internal prototype to avoid an error.
13362    Use char because int might match the return type of a GCC
13363    builtin and then its argument prototype would still apply.  */
13364 #ifdef __cplusplus
13365 extern "C"
13366 #endif
13367 char pthread_getspecific ();
13368 int
13369 main ()
13370 {
13371 return pthread_getspecific ();
13372   ;
13373   return 0;
13374 }
13375 _ACEOF
13376 for ac_lib in '' pthread; do
13377   if test -z "$ac_lib"; then
13378     ac_res="none required"
13379   else
13380     ac_res=-l$ac_lib
13381     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13382   fi
13383   rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390   (eval "$ac_link") 2>conftest.er1
13391   ac_status=$?
13392   grep -v '^ *+' conftest.er1 >conftest.err
13393   rm -f conftest.er1
13394   cat conftest.err >&5
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); } &&
13397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13398   { (case "(($ac_try" in
13399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400   *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403   (eval "$ac_try") 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; } &&
13407          { ac_try='test -s conftest$ac_exeext'
13408   { (case "(($ac_try" in
13409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410   *) ac_try_echo=$ac_try;;
13411 esac
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413   (eval "$ac_try") 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; }; then
13417   ac_cv_search_pthread_getspecific=$ac_res
13418 else
13419   echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422
13423 fi
13424
13425 rm -f core conftest.err conftest.$ac_objext \
13426       conftest$ac_exeext
13427   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13428   break
13429 fi
13430 done
13431 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13432   :
13433 else
13434   ac_cv_search_pthread_getspecific=no
13435 fi
13436 rm conftest.$ac_ext
13437 LIBS=$ac_func_search_save_LIBS
13438 fi
13439 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13440 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13441 ac_res=$ac_cv_search_pthread_getspecific
13442 if test "$ac_res" != no; then
13443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13444
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_PTHREAD_GETSPECIFIC 1
13447 _ACEOF
13448
13449 fi
13450
13451 fi
13452
13453
13454 # Check whether --with-udis86 was given.
13455 if test "${with_udis86+set}" = set; then
13456   withval=$with_udis86;
13457       USE_UDIS86=1
13458
13459       case "$withval" in
13460         /usr/lib|yes) ;;
13461         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13462       esac
13463
13464 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13465 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13466 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13467   echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469   ac_check_lib_save_LIBS=$LIBS
13470 LIBS="-ludis86  $LIBS"
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h.  */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h.  */
13477
13478 /* Override any GCC internal prototype to avoid an error.
13479    Use char because int might match the return type of a GCC
13480    builtin and then its argument prototype would still apply.  */
13481 #ifdef __cplusplus
13482 extern "C"
13483 #endif
13484 char ud_init ();
13485 int
13486 main ()
13487 {
13488 return ud_init ();
13489   ;
13490   return 0;
13491 }
13492 _ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (ac_try="$ac_link"
13495 case "(($ac_try" in
13496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497   *) ac_try_echo=$ac_try;;
13498 esac
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500   (eval "$ac_link") 2>conftest.er1
13501   ac_status=$?
13502   grep -v '^ *+' conftest.er1 >conftest.err
13503   rm -f conftest.er1
13504   cat conftest.err >&5
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } &&
13507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13508   { (case "(($ac_try" in
13509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510   *) ac_try_echo=$ac_try;;
13511 esac
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513   (eval "$ac_try") 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; } &&
13517          { ac_try='test -s conftest$ac_exeext'
13518   { (case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_try") 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; }; then
13527   ac_cv_lib_udis86_ud_init=yes
13528 else
13529   echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532         ac_cv_lib_udis86_ud_init=no
13533 fi
13534
13535 rm -f core conftest.err conftest.$ac_objext \
13536       conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13538 fi
13539 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13540 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13541 if test $ac_cv_lib_udis86_ud_init = yes; then
13542   cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBUDIS86 1
13544 _ACEOF
13545
13546   LIBS="-ludis86 $LIBS"
13547
13548 else
13549
13550         echo "Error! You need to have libudis86 around."
13551         exit -1
13552
13553 fi
13554
13555
13556 else
13557   USE_UDIS86=0
13558
13559 fi
13560
13561
13562 cat >>confdefs.h <<_ACEOF
13563 #define USE_UDIS86 $USE_UDIS86
13564 _ACEOF
13565
13566
13567
13568 # Check whether --with-oprofile was given.
13569 if test "${with_oprofile+set}" = set; then
13570   withval=$with_oprofile;
13571       USE_OPROFILE=1
13572
13573       case "$withval" in
13574         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13575         no) llvm_cv_oppath=
13576             USE_OPROFILE=0
13577  ;;
13578         *) llvm_cv_oppath="${withval}/lib/oprofile"
13579            CPPFLAGS="-I${withval}/include";;
13580       esac
13581       case $llvm_cv_os_type in
13582         Linux)
13583           if test -n "$llvm_cv_oppath" ; then
13584             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13585                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13586 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13587 if test "${ac_cv_search_bfd_init+set}" = set; then
13588   echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590   ac_func_search_save_LIBS=$LIBS
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h.  */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h.  */
13597
13598 /* Override any GCC internal prototype to avoid an error.
13599    Use char because int might match the return type of a GCC
13600    builtin and then its argument prototype would still apply.  */
13601 #ifdef __cplusplus
13602 extern "C"
13603 #endif
13604 char bfd_init ();
13605 int
13606 main ()
13607 {
13608 return bfd_init ();
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 for ac_lib in '' bfd; do
13614   if test -z "$ac_lib"; then
13615     ac_res="none required"
13616   else
13617     ac_res=-l$ac_lib
13618     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13619   fi
13620   rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (ac_try="$ac_link"
13622 case "(($ac_try" in
13623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624   *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627   (eval "$ac_link") 2>conftest.er1
13628   ac_status=$?
13629   grep -v '^ *+' conftest.er1 >conftest.err
13630   rm -f conftest.er1
13631   cat conftest.err >&5
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); } &&
13634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635   { (case "(($ac_try" in
13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637   *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640   (eval "$ac_try") 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; } &&
13644          { ac_try='test -s conftest$ac_exeext'
13645   { (case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_try") 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   ac_cv_search_bfd_init=$ac_res
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659
13660 fi
13661
13662 rm -f core conftest.err conftest.$ac_objext \
13663       conftest$ac_exeext
13664   if test "${ac_cv_search_bfd_init+set}" = set; then
13665   break
13666 fi
13667 done
13668 if test "${ac_cv_search_bfd_init+set}" = set; then
13669   :
13670 else
13671   ac_cv_search_bfd_init=no
13672 fi
13673 rm conftest.$ac_ext
13674 LIBS=$ac_func_search_save_LIBS
13675 fi
13676 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13677 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13678 ac_res=$ac_cv_search_bfd_init
13679 if test "$ac_res" != no; then
13680   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13681
13682 fi
13683
13684             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13685 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13686 if test "${ac_cv_search_op_open_agent+set}" = set; then
13687   echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689   ac_func_search_save_LIBS=$LIBS
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h.  */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h.  */
13696
13697 /* Override any GCC internal prototype to avoid an error.
13698    Use char because int might match the return type of a GCC
13699    builtin and then its argument prototype would still apply.  */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 char op_open_agent ();
13704 int
13705 main ()
13706 {
13707 return op_open_agent ();
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 for ac_lib in '' opagent; do
13713   if test -z "$ac_lib"; then
13714     ac_res="none required"
13715   else
13716     ac_res=-l$ac_lib
13717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13718   fi
13719   rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (ac_try="$ac_link"
13721 case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726   (eval "$ac_link") 2>conftest.er1
13727   ac_status=$?
13728   grep -v '^ *+' conftest.er1 >conftest.err
13729   rm -f conftest.er1
13730   cat conftest.err >&5
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); } &&
13733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13734   { (case "(($ac_try" in
13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736   *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739   (eval "$ac_try") 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; } &&
13743          { ac_try='test -s conftest$ac_exeext'
13744   { (case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_try") 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; }; then
13753   ac_cv_search_op_open_agent=$ac_res
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758
13759 fi
13760
13761 rm -f core conftest.err conftest.$ac_objext \
13762       conftest$ac_exeext
13763   if test "${ac_cv_search_op_open_agent+set}" = set; then
13764   break
13765 fi
13766 done
13767 if test "${ac_cv_search_op_open_agent+set}" = set; then
13768   :
13769 else
13770   ac_cv_search_op_open_agent=no
13771 fi
13772 rm conftest.$ac_ext
13773 LIBS=$ac_func_search_save_LIBS
13774 fi
13775 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13776 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13777 ac_res=$ac_cv_search_op_open_agent
13778 if test "$ac_res" != no; then
13779   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13780
13781 else
13782
13783               echo "Error! You need to have libopagent around."
13784               exit -1
13785
13786 fi
13787
13788             if test "${ac_cv_header_opagent_h+set}" = set; then
13789   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13790 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13791 if test "${ac_cv_header_opagent_h+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 fi
13794 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13795 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13796 else
13797   # Is the header compilable?
13798 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13799 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h.  */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h.  */
13806 $ac_includes_default
13807 #include <opagent.h>
13808 _ACEOF
13809 rm -f conftest.$ac_objext
13810 if { (ac_try="$ac_compile"
13811 case "(($ac_try" in
13812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813   *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816   (eval "$ac_compile") 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13824   { (case "(($ac_try" in
13825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826   *) ac_try_echo=$ac_try;;
13827 esac
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829   (eval "$ac_try") 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; } &&
13833          { ac_try='test -s conftest.$ac_objext'
13834   { (case "(($ac_try" in
13835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836   *) ac_try_echo=$ac_try;;
13837 esac
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839   (eval "$ac_try") 2>&5
13840   ac_status=$?
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); }; }; then
13843   ac_header_compiler=yes
13844 else
13845   echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13847
13848         ac_header_compiler=no
13849 fi
13850
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13853 echo "${ECHO_T}$ac_header_compiler" >&6; }
13854
13855 # Is the header present?
13856 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13857 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13858 cat >conftest.$ac_ext <<_ACEOF
13859 /* confdefs.h.  */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h.  */
13864 #include <opagent.h>
13865 _ACEOF
13866 if { (ac_try="$ac_cpp conftest.$ac_ext"
13867 case "(($ac_try" in
13868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869   *) ac_try_echo=$ac_try;;
13870 esac
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13873   ac_status=$?
13874   grep -v '^ *+' conftest.er1 >conftest.err
13875   rm -f conftest.er1
13876   cat conftest.err >&5
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } >/dev/null; then
13879   if test -s conftest.err; then
13880     ac_cpp_err=$ac_c_preproc_warn_flag
13881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13882   else
13883     ac_cpp_err=
13884   fi
13885 else
13886   ac_cpp_err=yes
13887 fi
13888 if test -z "$ac_cpp_err"; then
13889   ac_header_preproc=yes
13890 else
13891   echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13893
13894   ac_header_preproc=no
13895 fi
13896
13897 rm -f conftest.err conftest.$ac_ext
13898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13899 echo "${ECHO_T}$ac_header_preproc" >&6; }
13900
13901 # So?  What about this header?
13902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13903   yes:no: )
13904     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13905 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13906     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13907 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13908     ac_header_preproc=yes
13909     ;;
13910   no:yes:* )
13911     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13912 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13913     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13914 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13915     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13916 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13917     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13918 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13919     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13920 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13921     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13922 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13923     ( cat <<\_ASBOX
13924 ## ------------------------------------ ##
13925 ## Report this to http://llvm.org/bugs/ ##
13926 ## ------------------------------------ ##
13927 _ASBOX
13928      ) | sed "s/^/$as_me: WARNING:     /" >&2
13929     ;;
13930 esac
13931 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13932 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13933 if test "${ac_cv_header_opagent_h+set}" = set; then
13934   echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936   ac_cv_header_opagent_h=$ac_header_preproc
13937 fi
13938 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13939 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13940
13941 fi
13942 if test $ac_cv_header_opagent_h = yes; then
13943   :
13944 else
13945
13946               echo "Error! You need to have opagent.h around."
13947               exit -1
13948
13949 fi
13950
13951
13952           fi ;;
13953         *)
13954           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13955 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13956    { (exit 1); exit 1; }; } ;;
13957       esac
13958
13959 else
13960
13961       USE_OPROFILE=0
13962
13963
13964 fi
13965
13966
13967 cat >>confdefs.h <<_ACEOF
13968 #define LLVM_USE_OPROFILE $USE_OPROFILE
13969 _ACEOF
13970
13971
13972
13973 # Check whether --with-intel-jitevents was given.
13974 if test "${with_intel_jitevents+set}" = set; then
13975   withval=$with_intel_jitevents;
13976        case "$withval" in
13977           yes) USE_INTEL_JITEVENTS=1
13978 ;;
13979           no)  USE_INTEL_JITEVENTS=0
13980 ;;
13981           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13982 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13983    { (exit 1); exit 1; }; };;
13984        esac
13985
13986       case $llvm_cv_os_type in
13987         Linux|Win32|Cygwin|MingW) ;;
13988         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13989 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13990    { (exit 1); exit 1; }; };;
13991       esac
13992
13993       case "$llvm_cv_target_arch" in
13994         x86|x86_64) ;;
13995         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13996 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13997    { (exit 1); exit 1; }; };;
13998       esac
13999
14000 else
14001
14002       USE_INTEL_JITEVENTS=0
14003
14004
14005 fi
14006
14007
14008 cat >>confdefs.h <<_ACEOF
14009 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14010 _ACEOF
14011
14012
14013 for ac_prog in xml2-config
14014 do
14015   # Extract the first word of "$ac_prog", so it can be a program name with args.
14016 set dummy $ac_prog; ac_word=$2
14017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14019 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022   if test -n "$XML2CONFIG"; then
14023   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14024 else
14025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14026 for as_dir in $PATH
14027 do
14028   IFS=$as_save_IFS
14029   test -z "$as_dir" && as_dir=.
14030   for ac_exec_ext in '' $ac_executable_extensions; do
14031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14032     ac_cv_prog_XML2CONFIG="$ac_prog"
14033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14034     break 2
14035   fi
14036 done
14037 done
14038 IFS=$as_save_IFS
14039
14040 fi
14041 fi
14042 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14043 if test -n "$XML2CONFIG"; then
14044   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14045 echo "${ECHO_T}$XML2CONFIG" >&6; }
14046 else
14047   { echo "$as_me:$LINENO: result: no" >&5
14048 echo "${ECHO_T}no" >&6; }
14049 fi
14050
14051
14052   test -n "$XML2CONFIG" && break
14053 done
14054
14055
14056 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14057 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14058 if test "x$XML2CONFIG" = "x"; then
14059  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14060 echo "${ECHO_T}xml2-config not found" >&6; }
14061 else
14062  LIBXML2_INC=`$XML2CONFIG --cflags`
14063  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14064 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14065  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14066 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14067 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14068   echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070   ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-lxml2  $LIBS"
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h.  */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h.  */
14078
14079 /* Override any GCC internal prototype to avoid an error.
14080    Use char because int might match the return type of a GCC
14081    builtin and then its argument prototype would still apply.  */
14082 #ifdef __cplusplus
14083 extern "C"
14084 #endif
14085 char xmlReadFile ();
14086 int
14087 main ()
14088 {
14089 return xmlReadFile ();
14090   ;
14091   return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098   *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101   (eval "$ac_link") 2>conftest.er1
14102   ac_status=$?
14103   grep -v '^ *+' conftest.er1 >conftest.err
14104   rm -f conftest.er1
14105   cat conftest.err >&5
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); } &&
14108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14109   { (case "(($ac_try" in
14110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111   *) ac_try_echo=$ac_try;;
14112 esac
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114   (eval "$ac_try") 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }; } &&
14118          { ac_try='test -s conftest$ac_exeext'
14119   { (case "(($ac_try" in
14120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121   *) ac_try_echo=$ac_try;;
14122 esac
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124   (eval "$ac_try") 2>&5
14125   ac_status=$?
14126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); }; }; then
14128   ac_cv_lib_xml2_xmlReadFile=yes
14129 else
14130   echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133         ac_cv_lib_xml2_xmlReadFile=no
14134 fi
14135
14136 rm -f core conftest.err conftest.$ac_objext \
14137       conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14139 fi
14140 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14141 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14142 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14143
14144 cat >>confdefs.h <<\_ACEOF
14145 #define CLANG_HAVE_LIBXML 1
14146 _ACEOF
14147
14148                                 LIBXML2_LIBS="-lxml2"
14149 fi
14150
14151 fi
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161 ac_header_dirent=no
14162 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14163   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14164 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14165 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h.  */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h.  */
14175 #include <sys/types.h>
14176 #include <$ac_hdr>
14177
14178 int
14179 main ()
14180 {
14181 if ((DIR *) 0)
14182 return 0;
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (ac_try="$ac_compile"
14189 case "(($ac_try" in
14190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191   *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194   (eval "$ac_compile") 2>conftest.er1
14195   ac_status=$?
14196   grep -v '^ *+' conftest.er1 >conftest.err
14197   rm -f conftest.er1
14198   cat conftest.err >&5
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); } &&
14201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14202   { (case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_try") 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; } &&
14211          { ac_try='test -s conftest.$ac_objext'
14212   { (case "(($ac_try" in
14213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214   *) ac_try_echo=$ac_try;;
14215 esac
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217   (eval "$ac_try") 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   eval "$as_ac_Header=yes"
14222 else
14223   echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226         eval "$as_ac_Header=no"
14227 fi
14228
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14230 fi
14231 ac_res=`eval echo '${'$as_ac_Header'}'`
14232                { echo "$as_me:$LINENO: result: $ac_res" >&5
14233 echo "${ECHO_T}$ac_res" >&6; }
14234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14235   cat >>confdefs.h <<_ACEOF
14236 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14237 _ACEOF
14238
14239 ac_header_dirent=$ac_hdr; break
14240 fi
14241
14242 done
14243 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14244 if test $ac_header_dirent = dirent.h; then
14245   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14247 if test "${ac_cv_search_opendir+set}" = set; then
14248   echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250   ac_func_search_save_LIBS=$LIBS
14251 cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257
14258 /* Override any GCC internal prototype to avoid an error.
14259    Use char because int might match the return type of a GCC
14260    builtin and then its argument prototype would still apply.  */
14261 #ifdef __cplusplus
14262 extern "C"
14263 #endif
14264 char opendir ();
14265 int
14266 main ()
14267 {
14268 return opendir ();
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 for ac_lib in '' dir; do
14274   if test -z "$ac_lib"; then
14275     ac_res="none required"
14276   else
14277     ac_res=-l$ac_lib
14278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14279   fi
14280   rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287   (eval "$ac_link") 2>conftest.er1
14288   ac_status=$?
14289   grep -v '^ *+' conftest.er1 >conftest.err
14290   rm -f conftest.er1
14291   cat conftest.err >&5
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); } &&
14294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14295   { (case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_try") 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); }; } &&
14304          { ac_try='test -s conftest$ac_exeext'
14305   { (case "(($ac_try" in
14306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307   *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310   (eval "$ac_try") 2>&5
14311   ac_status=$?
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); }; }; then
14314   ac_cv_search_opendir=$ac_res
14315 else
14316   echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319
14320 fi
14321
14322 rm -f core conftest.err conftest.$ac_objext \
14323       conftest$ac_exeext
14324   if test "${ac_cv_search_opendir+set}" = set; then
14325   break
14326 fi
14327 done
14328 if test "${ac_cv_search_opendir+set}" = set; then
14329   :
14330 else
14331   ac_cv_search_opendir=no
14332 fi
14333 rm conftest.$ac_ext
14334 LIBS=$ac_func_search_save_LIBS
14335 fi
14336 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14337 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14338 ac_res=$ac_cv_search_opendir
14339 if test "$ac_res" != no; then
14340   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14341
14342 fi
14343
14344 else
14345   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14347 if test "${ac_cv_search_opendir+set}" = set; then
14348   echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350   ac_func_search_save_LIBS=$LIBS
14351 cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357
14358 /* Override any GCC internal prototype to avoid an error.
14359    Use char because int might match the return type of a GCC
14360    builtin and then its argument prototype would still apply.  */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 char opendir ();
14365 int
14366 main ()
14367 {
14368 return opendir ();
14369   ;
14370   return 0;
14371 }
14372 _ACEOF
14373 for ac_lib in '' x; do
14374   if test -z "$ac_lib"; then
14375     ac_res="none required"
14376   else
14377     ac_res=-l$ac_lib
14378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14379   fi
14380   rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (ac_try="$ac_link"
14382 case "(($ac_try" in
14383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384   *) ac_try_echo=$ac_try;;
14385 esac
14386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387   (eval "$ac_link") 2>conftest.er1
14388   ac_status=$?
14389   grep -v '^ *+' conftest.er1 >conftest.err
14390   rm -f conftest.er1
14391   cat conftest.err >&5
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); } &&
14394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14395   { (case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_try") 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; } &&
14404          { ac_try='test -s conftest$ac_exeext'
14405   { (case "(($ac_try" in
14406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407   *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410   (eval "$ac_try") 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; }; then
14414   ac_cv_search_opendir=$ac_res
14415 else
14416   echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419
14420 fi
14421
14422 rm -f core conftest.err conftest.$ac_objext \
14423       conftest$ac_exeext
14424   if test "${ac_cv_search_opendir+set}" = set; then
14425   break
14426 fi
14427 done
14428 if test "${ac_cv_search_opendir+set}" = set; then
14429   :
14430 else
14431   ac_cv_search_opendir=no
14432 fi
14433 rm conftest.$ac_ext
14434 LIBS=$ac_func_search_save_LIBS
14435 fi
14436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14438 ac_res=$ac_cv_search_opendir
14439 if test "$ac_res" != no; then
14440   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14441
14442 fi
14443
14444 fi
14445
14446 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14447 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14448 if test "${ac_cv_header_mmap_anon+set}" = set; then
14449   echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451    ac_ext=c
14452 ac_cpp='$CPP $CPPFLAGS'
14453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14456
14457   cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 #include <sys/mman.h>
14464 #include <unistd.h>
14465 #include <fcntl.h>
14466 int
14467 main ()
14468 {
14469 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14470   ;
14471   return 0;
14472 }
14473 _ACEOF
14474 rm -f conftest.$ac_objext
14475 if { (ac_try="$ac_compile"
14476 case "(($ac_try" in
14477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478   *) ac_try_echo=$ac_try;;
14479 esac
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481   (eval "$ac_compile") 2>conftest.er1
14482   ac_status=$?
14483   grep -v '^ *+' conftest.er1 >conftest.err
14484   rm -f conftest.er1
14485   cat conftest.err >&5
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); } &&
14488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14489   { (case "(($ac_try" in
14490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491   *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494   (eval "$ac_try") 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; } &&
14498          { ac_try='test -s conftest.$ac_objext'
14499   { (case "(($ac_try" in
14500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501   *) ac_try_echo=$ac_try;;
14502 esac
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504   (eval "$ac_try") 2>&5
14505   ac_status=$?
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); }; }; then
14508   ac_cv_header_mmap_anon=yes
14509 else
14510   echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513         ac_cv_header_mmap_anon=no
14514 fi
14515
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517   ac_ext=c
14518 ac_cpp='$CPP $CPPFLAGS'
14519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14522
14523
14524 fi
14525 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14526 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14527 if test "$ac_cv_header_mmap_anon" = yes; then
14528
14529 cat >>confdefs.h <<\_ACEOF
14530 #define HAVE_MMAP_ANONYMOUS 1
14531 _ACEOF
14532
14533 fi
14534
14535 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14536 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14537 if test "${ac_cv_header_stat_broken+set}" = set; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h.  */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h.  */
14546 #include <sys/types.h>
14547 #include <sys/stat.h>
14548
14549 #if defined S_ISBLK && defined S_IFDIR
14550 # if S_ISBLK (S_IFDIR)
14551 You lose.
14552 # endif
14553 #endif
14554
14555 #if defined S_ISBLK && defined S_IFCHR
14556 # if S_ISBLK (S_IFCHR)
14557 You lose.
14558 # endif
14559 #endif
14560
14561 #if defined S_ISLNK && defined S_IFREG
14562 # if S_ISLNK (S_IFREG)
14563 You lose.
14564 # endif
14565 #endif
14566
14567 #if defined S_ISSOCK && defined S_IFREG
14568 # if S_ISSOCK (S_IFREG)
14569 You lose.
14570 # endif
14571 #endif
14572
14573 _ACEOF
14574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14575   $EGREP "You lose" >/dev/null 2>&1; then
14576   ac_cv_header_stat_broken=yes
14577 else
14578   ac_cv_header_stat_broken=no
14579 fi
14580 rm -f conftest*
14581
14582 fi
14583 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14584 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14585 if test $ac_cv_header_stat_broken = yes; then
14586
14587 cat >>confdefs.h <<\_ACEOF
14588 #define STAT_MACROS_BROKEN 1
14589 _ACEOF
14590
14591 fi
14592
14593 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14594 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14595 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14596   echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598   cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h.  */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h.  */
14604 #include <sys/types.h>
14605 #include <sys/wait.h>
14606 #ifndef WEXITSTATUS
14607 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14608 #endif
14609 #ifndef WIFEXITED
14610 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14611 #endif
14612
14613 int
14614 main ()
14615 {
14616   int s;
14617   wait (&s);
14618   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630   (eval "$ac_compile") 2>conftest.er1
14631   ac_status=$?
14632   grep -v '^ *+' conftest.er1 >conftest.err
14633   rm -f conftest.er1
14634   cat conftest.err >&5
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } &&
14637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638   { (case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_try") 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; } &&
14647          { ac_try='test -s conftest.$ac_objext'
14648   { (case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653   (eval "$ac_try") 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); }; }; then
14657   ac_cv_header_sys_wait_h=yes
14658 else
14659   echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662         ac_cv_header_sys_wait_h=no
14663 fi
14664
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 fi
14667 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14668 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14669 if test $ac_cv_header_sys_wait_h = yes; then
14670
14671 cat >>confdefs.h <<\_ACEOF
14672 #define HAVE_SYS_WAIT_H 1
14673 _ACEOF
14674
14675 fi
14676
14677 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14679 if test "${ac_cv_header_time+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   cat >conftest.$ac_ext <<_ACEOF
14683 /* confdefs.h.  */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h.  */
14688 #include <sys/types.h>
14689 #include <sys/time.h>
14690 #include <time.h>
14691
14692 int
14693 main ()
14694 {
14695 if ((struct tm *) 0)
14696 return 0;
14697   ;
14698   return 0;
14699 }
14700 _ACEOF
14701 rm -f conftest.$ac_objext
14702 if { (ac_try="$ac_compile"
14703 case "(($ac_try" in
14704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705   *) ac_try_echo=$ac_try;;
14706 esac
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708   (eval "$ac_compile") 2>conftest.er1
14709   ac_status=$?
14710   grep -v '^ *+' conftest.er1 >conftest.err
14711   rm -f conftest.er1
14712   cat conftest.err >&5
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); } &&
14715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14716   { (case "(($ac_try" in
14717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718   *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721   (eval "$ac_try") 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; } &&
14725          { ac_try='test -s conftest.$ac_objext'
14726   { (case "(($ac_try" in
14727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728   *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731   (eval "$ac_try") 2>&5
14732   ac_status=$?
14733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734   (exit $ac_status); }; }; then
14735   ac_cv_header_time=yes
14736 else
14737   echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14739
14740         ac_cv_header_time=no
14741 fi
14742
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744 fi
14745 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14746 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14747 if test $ac_cv_header_time = yes; then
14748
14749 cat >>confdefs.h <<\_ACEOF
14750 #define TIME_WITH_SYS_TIME 1
14751 _ACEOF
14752
14753 fi
14754
14755
14756
14757
14758
14759
14760
14761
14762 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14763 do
14764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769   echo $ECHO_N "(cached) $ECHO_C" >&6
14770 fi
14771 ac_res=`eval echo '${'$as_ac_Header'}'`
14772                { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14774 else
14775   # Is the header compilable?
14776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h.  */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h.  */
14784 $ac_includes_default
14785 #include <$ac_header>
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_compile") 2>conftest.er1
14795   ac_status=$?
14796   grep -v '^ *+' conftest.er1 >conftest.err
14797   rm -f conftest.er1
14798   cat conftest.err >&5
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } &&
14801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802   { (case "(($ac_try" in
14803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804   *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807   (eval "$ac_try") 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; } &&
14811          { ac_try='test -s conftest.$ac_objext'
14812   { (case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_try") 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; }; then
14821   ac_header_compiler=yes
14822 else
14823   echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826         ac_header_compiler=no
14827 fi
14828
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 echo "${ECHO_T}$ac_header_compiler" >&6; }
14832
14833 # Is the header present?
14834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h.  */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h.  */
14842 #include <$ac_header>
14843 _ACEOF
14844 if { (ac_try="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847   *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14851   ac_status=$?
14852   grep -v '^ *+' conftest.er1 >conftest.err
14853   rm -f conftest.er1
14854   cat conftest.err >&5
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); } >/dev/null; then
14857   if test -s conftest.err; then
14858     ac_cpp_err=$ac_c_preproc_warn_flag
14859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14860   else
14861     ac_cpp_err=
14862   fi
14863 else
14864   ac_cpp_err=yes
14865 fi
14866 if test -z "$ac_cpp_err"; then
14867   ac_header_preproc=yes
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872   ac_header_preproc=no
14873 fi
14874
14875 rm -f conftest.err conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6; }
14878
14879 # So?  What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14881   yes:no: )
14882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14886     ac_header_preproc=yes
14887     ;;
14888   no:yes:* )
14889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14901     ( cat <<\_ASBOX
14902 ## ------------------------------------ ##
14903 ## Report this to http://llvm.org/bugs/ ##
14904 ## ------------------------------------ ##
14905 _ASBOX
14906      ) | sed "s/^/$as_me: WARNING:     /" >&2
14907     ;;
14908 esac
14909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912   echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914   eval "$as_ac_Header=\$ac_header_preproc"
14915 fi
14916 ac_res=`eval echo '${'$as_ac_Header'}'`
14917                { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14919
14920 fi
14921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14922   cat >>confdefs.h <<_ACEOF
14923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14924 _ACEOF
14925
14926 fi
14927
14928 done
14929
14930
14931
14932
14933
14934
14935
14936 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14937 do
14938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 fi
14945 ac_res=`eval echo '${'$as_ac_Header'}'`
14946                { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14948 else
14949   # Is the header compilable?
14950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 $ac_includes_default
14959 #include <$ac_header>
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_compile") 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } &&
14975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14976   { (case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981   (eval "$ac_try") 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; } &&
14985          { ac_try='test -s conftest.$ac_objext'
14986   { (case "(($ac_try" in
14987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988   *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991   (eval "$ac_try") 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; }; then
14995   ac_header_compiler=yes
14996 else
14997   echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
14999
15000         ac_header_compiler=no
15001 fi
15002
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005 echo "${ECHO_T}$ac_header_compiler" >&6; }
15006
15007 # Is the header present?
15008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h.  */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h.  */
15016 #include <$ac_header>
15017 _ACEOF
15018 if { (ac_try="$ac_cpp conftest.$ac_ext"
15019 case "(($ac_try" in
15020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021   *) ac_try_echo=$ac_try;;
15022 esac
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15025   ac_status=$?
15026   grep -v '^ *+' conftest.er1 >conftest.err
15027   rm -f conftest.er1
15028   cat conftest.err >&5
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } >/dev/null; then
15031   if test -s conftest.err; then
15032     ac_cpp_err=$ac_c_preproc_warn_flag
15033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15034   else
15035     ac_cpp_err=
15036   fi
15037 else
15038   ac_cpp_err=yes
15039 fi
15040 if test -z "$ac_cpp_err"; then
15041   ac_header_preproc=yes
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15045
15046   ac_header_preproc=no
15047 fi
15048
15049 rm -f conftest.err conftest.$ac_ext
15050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15051 echo "${ECHO_T}$ac_header_preproc" >&6; }
15052
15053 # So?  What about this header?
15054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15055   yes:no: )
15056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15060     ac_header_preproc=yes
15061     ;;
15062   no:yes:* )
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15075     ( cat <<\_ASBOX
15076 ## ------------------------------------ ##
15077 ## Report this to http://llvm.org/bugs/ ##
15078 ## ------------------------------------ ##
15079 _ASBOX
15080      ) | sed "s/^/$as_me: WARNING:     /" >&2
15081     ;;
15082 esac
15083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15086   echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088   eval "$as_ac_Header=\$ac_header_preproc"
15089 fi
15090 ac_res=`eval echo '${'$as_ac_Header'}'`
15091                { echo "$as_me:$LINENO: result: $ac_res" >&5
15092 echo "${ECHO_T}$ac_res" >&6; }
15093
15094 fi
15095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15096   cat >>confdefs.h <<_ACEOF
15097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15098 _ACEOF
15099
15100 fi
15101
15102 done
15103
15104
15105
15106 for ac_header in utime.h windows.h
15107 do
15108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15113   echo $ECHO_N "(cached) $ECHO_C" >&6
15114 fi
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116                { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15118 else
15119   # Is the header compilable?
15120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h.  */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h.  */
15128 $ac_includes_default
15129 #include <$ac_header>
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138   (eval "$ac_compile") 2>conftest.er1
15139   ac_status=$?
15140   grep -v '^ *+' conftest.er1 >conftest.err
15141   rm -f conftest.er1
15142   cat conftest.err >&5
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); } &&
15145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15146   { (case "(($ac_try" in
15147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148   *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151   (eval "$ac_try") 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; } &&
15155          { ac_try='test -s conftest.$ac_objext'
15156   { (case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_try") 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; }; then
15165   ac_header_compiler=yes
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170         ac_header_compiler=no
15171 fi
15172
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15175 echo "${ECHO_T}$ac_header_compiler" >&6; }
15176
15177 # Is the header present?
15178 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15180 cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h.  */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h.  */
15186 #include <$ac_header>
15187 _ACEOF
15188 if { (ac_try="$ac_cpp conftest.$ac_ext"
15189 case "(($ac_try" in
15190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191   *) ac_try_echo=$ac_try;;
15192 esac
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15195   ac_status=$?
15196   grep -v '^ *+' conftest.er1 >conftest.err
15197   rm -f conftest.er1
15198   cat conftest.err >&5
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } >/dev/null; then
15201   if test -s conftest.err; then
15202     ac_cpp_err=$ac_c_preproc_warn_flag
15203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15204   else
15205     ac_cpp_err=
15206   fi
15207 else
15208   ac_cpp_err=yes
15209 fi
15210 if test -z "$ac_cpp_err"; then
15211   ac_header_preproc=yes
15212 else
15213   echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15215
15216   ac_header_preproc=no
15217 fi
15218
15219 rm -f conftest.err conftest.$ac_ext
15220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15221 echo "${ECHO_T}$ac_header_preproc" >&6; }
15222
15223 # So?  What about this header?
15224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15225   yes:no: )
15226     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15230     ac_header_preproc=yes
15231     ;;
15232   no:yes:* )
15233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15235     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15236 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15239     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15240 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15245     ( cat <<\_ASBOX
15246 ## ------------------------------------ ##
15247 ## Report this to http://llvm.org/bugs/ ##
15248 ## ------------------------------------ ##
15249 _ASBOX
15250      ) | sed "s/^/$as_me: WARNING:     /" >&2
15251     ;;
15252 esac
15253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256   echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258   eval "$as_ac_Header=\$ac_header_preproc"
15259 fi
15260 ac_res=`eval echo '${'$as_ac_Header'}'`
15261                { echo "$as_me:$LINENO: result: $ac_res" >&5
15262 echo "${ECHO_T}$ac_res" >&6; }
15263
15264 fi
15265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15266   cat >>confdefs.h <<_ACEOF
15267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15268 _ACEOF
15269
15270 fi
15271
15272 done
15273
15274
15275
15276
15277
15278
15279 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15280 do
15281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15283   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 fi
15288 ac_res=`eval echo '${'$as_ac_Header'}'`
15289                { echo "$as_me:$LINENO: result: $ac_res" >&5
15290 echo "${ECHO_T}$ac_res" >&6; }
15291 else
15292   # Is the header compilable?
15293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h.  */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h.  */
15301 $ac_includes_default
15302 #include <$ac_header>
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_compile") 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } &&
15318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15319   { (case "(($ac_try" in
15320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321   *) ac_try_echo=$ac_try;;
15322 esac
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324   (eval "$ac_try") 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; } &&
15328          { ac_try='test -s conftest.$ac_objext'
15329   { (case "(($ac_try" in
15330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331   *) ac_try_echo=$ac_try;;
15332 esac
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334   (eval "$ac_try") 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; }; then
15338   ac_header_compiler=yes
15339 else
15340   echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343         ac_header_compiler=no
15344 fi
15345
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15348 echo "${ECHO_T}$ac_header_compiler" >&6; }
15349
15350 # Is the header present?
15351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15353 cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h.  */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h.  */
15359 #include <$ac_header>
15360 _ACEOF
15361 if { (ac_try="$ac_cpp conftest.$ac_ext"
15362 case "(($ac_try" in
15363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364   *) ac_try_echo=$ac_try;;
15365 esac
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15368   ac_status=$?
15369   grep -v '^ *+' conftest.er1 >conftest.err
15370   rm -f conftest.er1
15371   cat conftest.err >&5
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } >/dev/null; then
15374   if test -s conftest.err; then
15375     ac_cpp_err=$ac_c_preproc_warn_flag
15376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15377   else
15378     ac_cpp_err=
15379   fi
15380 else
15381   ac_cpp_err=yes
15382 fi
15383 if test -z "$ac_cpp_err"; then
15384   ac_header_preproc=yes
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389   ac_header_preproc=no
15390 fi
15391
15392 rm -f conftest.err conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15394 echo "${ECHO_T}$ac_header_preproc" >&6; }
15395
15396 # So?  What about this header?
15397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15398   yes:no: )
15399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15403     ac_header_preproc=yes
15404     ;;
15405   no:yes:* )
15406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15418     ( cat <<\_ASBOX
15419 ## ------------------------------------ ##
15420 ## Report this to http://llvm.org/bugs/ ##
15421 ## ------------------------------------ ##
15422 _ASBOX
15423      ) | sed "s/^/$as_me: WARNING:     /" >&2
15424     ;;
15425 esac
15426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429   echo $ECHO_N "(cached) $ECHO_C" >&6
15430 else
15431   eval "$as_ac_Header=\$ac_header_preproc"
15432 fi
15433 ac_res=`eval echo '${'$as_ac_Header'}'`
15434                { echo "$as_me:$LINENO: result: $ac_res" >&5
15435 echo "${ECHO_T}$ac_res" >&6; }
15436
15437 fi
15438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15439   cat >>confdefs.h <<_ACEOF
15440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15441 _ACEOF
15442
15443 fi
15444
15445 done
15446
15447
15448
15449
15450
15451 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15452 do
15453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 fi
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461                { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15463 else
15464   # Is the header compilable?
15465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15468 /* confdefs.h.  */
15469 _ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h.  */
15473 $ac_includes_default
15474 #include <$ac_header>
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480   *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483   (eval "$ac_compile") 2>conftest.er1
15484   ac_status=$?
15485   grep -v '^ *+' conftest.er1 >conftest.err
15486   rm -f conftest.er1
15487   cat conftest.err >&5
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); } &&
15490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15491   { (case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_try") 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; } &&
15500          { ac_try='test -s conftest.$ac_objext'
15501   { (case "(($ac_try" in
15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503   *) ac_try_echo=$ac_try;;
15504 esac
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506   (eval "$ac_try") 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); }; }; then
15510   ac_header_compiler=yes
15511 else
15512   echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15514
15515         ac_header_compiler=no
15516 fi
15517
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15520 echo "${ECHO_T}$ac_header_compiler" >&6; }
15521
15522 # Is the header present?
15523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 #include <$ac_header>
15532 _ACEOF
15533 if { (ac_try="$ac_cpp conftest.$ac_ext"
15534 case "(($ac_try" in
15535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536   *) ac_try_echo=$ac_try;;
15537 esac
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15540   ac_status=$?
15541   grep -v '^ *+' conftest.er1 >conftest.err
15542   rm -f conftest.er1
15543   cat conftest.err >&5
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); } >/dev/null; then
15546   if test -s conftest.err; then
15547     ac_cpp_err=$ac_c_preproc_warn_flag
15548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15549   else
15550     ac_cpp_err=
15551   fi
15552 else
15553   ac_cpp_err=yes
15554 fi
15555 if test -z "$ac_cpp_err"; then
15556   ac_header_preproc=yes
15557 else
15558   echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15560
15561   ac_header_preproc=no
15562 fi
15563
15564 rm -f conftest.err conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15566 echo "${ECHO_T}$ac_header_preproc" >&6; }
15567
15568 # So?  What about this header?
15569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15570   yes:no: )
15571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15575     ac_header_preproc=yes
15576     ;;
15577   no:yes:* )
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15590     ( cat <<\_ASBOX
15591 ## ------------------------------------ ##
15592 ## Report this to http://llvm.org/bugs/ ##
15593 ## ------------------------------------ ##
15594 _ASBOX
15595      ) | sed "s/^/$as_me: WARNING:     /" >&2
15596     ;;
15597 esac
15598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601   echo $ECHO_N "(cached) $ECHO_C" >&6
15602 else
15603   eval "$as_ac_Header=\$ac_header_preproc"
15604 fi
15605 ac_res=`eval echo '${'$as_ac_Header'}'`
15606                { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608
15609 fi
15610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15611   cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15613 _ACEOF
15614
15615 fi
15616
15617 done
15618
15619
15620 for ac_header in valgrind/valgrind.h
15621 do
15622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15627   echo $ECHO_N "(cached) $ECHO_C" >&6
15628 fi
15629 ac_res=`eval echo '${'$as_ac_Header'}'`
15630                { echo "$as_me:$LINENO: result: $ac_res" >&5
15631 echo "${ECHO_T}$ac_res" >&6; }
15632 else
15633   # Is the header compilable?
15634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642 $ac_includes_default
15643 #include <$ac_header>
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649   *) ac_try_echo=$ac_try;;
15650 esac
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652   (eval "$ac_compile") 2>conftest.er1
15653   ac_status=$?
15654   grep -v '^ *+' conftest.er1 >conftest.err
15655   rm -f conftest.er1
15656   cat conftest.err >&5
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } &&
15659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660   { (case "(($ac_try" in
15661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662   *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665   (eval "$ac_try") 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; } &&
15669          { ac_try='test -s conftest.$ac_objext'
15670   { (case "(($ac_try" in
15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672   *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675   (eval "$ac_try") 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   ac_header_compiler=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684         ac_header_compiler=no
15685 fi
15686
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15689 echo "${ECHO_T}$ac_header_compiler" >&6; }
15690
15691 # Is the header present?
15692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15694 cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h.  */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h.  */
15700 #include <$ac_header>
15701 _ACEOF
15702 if { (ac_try="$ac_cpp conftest.$ac_ext"
15703 case "(($ac_try" in
15704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705   *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15709   ac_status=$?
15710   grep -v '^ *+' conftest.er1 >conftest.err
15711   rm -f conftest.er1
15712   cat conftest.err >&5
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } >/dev/null; then
15715   if test -s conftest.err; then
15716     ac_cpp_err=$ac_c_preproc_warn_flag
15717     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15718   else
15719     ac_cpp_err=
15720   fi
15721 else
15722   ac_cpp_err=yes
15723 fi
15724 if test -z "$ac_cpp_err"; then
15725   ac_header_preproc=yes
15726 else
15727   echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730   ac_header_preproc=no
15731 fi
15732
15733 rm -f conftest.err conftest.$ac_ext
15734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15735 echo "${ECHO_T}$ac_header_preproc" >&6; }
15736
15737 # So?  What about this header?
15738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15739   yes:no: )
15740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15744     ac_header_preproc=yes
15745     ;;
15746   no:yes:* )
15747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15759     ( cat <<\_ASBOX
15760 ## ------------------------------------ ##
15761 ## Report this to http://llvm.org/bugs/ ##
15762 ## ------------------------------------ ##
15763 _ASBOX
15764      ) | sed "s/^/$as_me: WARNING:     /" >&2
15765     ;;
15766 esac
15767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772   eval "$as_ac_Header=\$ac_header_preproc"
15773 fi
15774 ac_res=`eval echo '${'$as_ac_Header'}'`
15775                { echo "$as_me:$LINENO: result: $ac_res" >&5
15776 echo "${ECHO_T}$ac_res" >&6; }
15777
15778 fi
15779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15780   cat >>confdefs.h <<_ACEOF
15781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15782 _ACEOF
15783
15784 fi
15785
15786 done
15787
15788
15789 for ac_header in fenv.h
15790 do
15791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15796   echo $ECHO_N "(cached) $ECHO_C" >&6
15797 fi
15798 ac_res=`eval echo '${'$as_ac_Header'}'`
15799                { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15801 else
15802   # Is the header compilable?
15803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811 $ac_includes_default
15812 #include <$ac_header>
15813 _ACEOF
15814 rm -f conftest.$ac_objext
15815 if { (ac_try="$ac_compile"
15816 case "(($ac_try" in
15817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818   *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821   (eval "$ac_compile") 2>conftest.er1
15822   ac_status=$?
15823   grep -v '^ *+' conftest.er1 >conftest.err
15824   rm -f conftest.er1
15825   cat conftest.err >&5
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } &&
15828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15829   { (case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_try") 2>&5
15835   ac_status=$?
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); }; } &&
15838          { ac_try='test -s conftest.$ac_objext'
15839   { (case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_try") 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; }; then
15848   ac_header_compiler=yes
15849 else
15850   echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853         ac_header_compiler=no
15854 fi
15855
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15858 echo "${ECHO_T}$ac_header_compiler" >&6; }
15859
15860 # Is the header present?
15861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15863 cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h.  */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h.  */
15869 #include <$ac_header>
15870 _ACEOF
15871 if { (ac_try="$ac_cpp conftest.$ac_ext"
15872 case "(($ac_try" in
15873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874   *) ac_try_echo=$ac_try;;
15875 esac
15876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15878   ac_status=$?
15879   grep -v '^ *+' conftest.er1 >conftest.err
15880   rm -f conftest.er1
15881   cat conftest.err >&5
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); } >/dev/null; then
15884   if test -s conftest.err; then
15885     ac_cpp_err=$ac_c_preproc_warn_flag
15886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15887   else
15888     ac_cpp_err=
15889   fi
15890 else
15891   ac_cpp_err=yes
15892 fi
15893 if test -z "$ac_cpp_err"; then
15894   ac_header_preproc=yes
15895 else
15896   echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15898
15899   ac_header_preproc=no
15900 fi
15901
15902 rm -f conftest.err conftest.$ac_ext
15903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15904 echo "${ECHO_T}$ac_header_preproc" >&6; }
15905
15906 # So?  What about this header?
15907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15908   yes:no: )
15909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15913     ac_header_preproc=yes
15914     ;;
15915   no:yes:* )
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15928     ( cat <<\_ASBOX
15929 ## ------------------------------------ ##
15930 ## Report this to http://llvm.org/bugs/ ##
15931 ## ------------------------------------ ##
15932 _ASBOX
15933      ) | sed "s/^/$as_me: WARNING:     /" >&2
15934     ;;
15935 esac
15936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15939   echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941   eval "$as_ac_Header=\$ac_header_preproc"
15942 fi
15943 ac_res=`eval echo '${'$as_ac_Header'}'`
15944                { echo "$as_me:$LINENO: result: $ac_res" >&5
15945 echo "${ECHO_T}$ac_res" >&6; }
15946
15947 fi
15948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15949   cat >>confdefs.h <<_ACEOF
15950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15951 _ACEOF
15952
15953 fi
15954
15955 done
15956
15957 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15958
15959 for ac_header in pthread.h
15960 do
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 fi
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969                { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15971 else
15972   # Is the header compilable?
15973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981 $ac_includes_default
15982 #include <$ac_header>
15983 _ACEOF
15984 rm -f conftest.$ac_objext
15985 if { (ac_try="$ac_compile"
15986 case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991   (eval "$ac_compile") 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15999   { (case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004   (eval "$ac_try") 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); }; } &&
16008          { ac_try='test -s conftest.$ac_objext'
16009   { (case "(($ac_try" in
16010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011   *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014   (eval "$ac_try") 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018   ac_header_compiler=yes
16019 else
16020   echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023         ac_header_compiler=no
16024 fi
16025
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028 echo "${ECHO_T}$ac_header_compiler" >&6; }
16029
16030 # Is the header present?
16031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h.  */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h.  */
16039 #include <$ac_header>
16040 _ACEOF
16041 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
16054   if test -s conftest.err; then
16055     ac_cpp_err=$ac_c_preproc_warn_flag
16056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16057   else
16058     ac_cpp_err=
16059   fi
16060 else
16061   ac_cpp_err=yes
16062 fi
16063 if test -z "$ac_cpp_err"; then
16064   ac_header_preproc=yes
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069   ac_header_preproc=no
16070 fi
16071
16072 rm -f conftest.err conftest.$ac_ext
16073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16074 echo "${ECHO_T}$ac_header_preproc" >&6; }
16075
16076 # So?  What about this header?
16077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16078   yes:no: )
16079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16083     ac_header_preproc=yes
16084     ;;
16085   no:yes:* )
16086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16098     ( cat <<\_ASBOX
16099 ## ------------------------------------ ##
16100 ## Report this to http://llvm.org/bugs/ ##
16101 ## ------------------------------------ ##
16102 _ASBOX
16103      ) | sed "s/^/$as_me: WARNING:     /" >&2
16104     ;;
16105 esac
16106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16109   echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111   eval "$as_ac_Header=\$ac_header_preproc"
16112 fi
16113 ac_res=`eval echo '${'$as_ac_Header'}'`
16114                { echo "$as_me:$LINENO: result: $ac_res" >&5
16115 echo "${ECHO_T}$ac_res" >&6; }
16116
16117 fi
16118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16119   cat >>confdefs.h <<_ACEOF
16120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16121 _ACEOF
16122  HAVE_PTHREAD=1
16123
16124 else
16125   HAVE_PTHREAD=0
16126
16127 fi
16128
16129 done
16130
16131 else
16132   HAVE_PTHREAD=0
16133
16134 fi
16135
16136 if test "$llvm_cv_enable_libffi" = "yes" ; then
16137
16138
16139 for ac_header in ffi.h ffi/ffi.h
16140 do
16141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146   echo $ECHO_N "(cached) $ECHO_C" >&6
16147 fi
16148 ac_res=`eval echo '${'$as_ac_Header'}'`
16149                { echo "$as_me:$LINENO: result: $ac_res" >&5
16150 echo "${ECHO_T}$ac_res" >&6; }
16151 else
16152   # Is the header compilable?
16153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161 $ac_includes_default
16162 #include <$ac_header>
16163 _ACEOF
16164 rm -f conftest.$ac_objext
16165 if { (ac_try="$ac_compile"
16166 case "(($ac_try" in
16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168   *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171   (eval "$ac_compile") 2>conftest.er1
16172   ac_status=$?
16173   grep -v '^ *+' conftest.er1 >conftest.err
16174   rm -f conftest.er1
16175   cat conftest.err >&5
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } &&
16178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179   { (case "(($ac_try" in
16180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181   *) ac_try_echo=$ac_try;;
16182 esac
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184   (eval "$ac_try") 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; } &&
16188          { ac_try='test -s conftest.$ac_objext'
16189   { (case "(($ac_try" in
16190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191   *) ac_try_echo=$ac_try;;
16192 esac
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194   (eval "$ac_try") 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); }; }; then
16198   ac_header_compiler=yes
16199 else
16200   echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16202
16203         ac_header_compiler=no
16204 fi
16205
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16208 echo "${ECHO_T}$ac_header_compiler" >&6; }
16209
16210 # Is the header present?
16211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h.  */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h.  */
16219 #include <$ac_header>
16220 _ACEOF
16221 if { (ac_try="$ac_cpp conftest.$ac_ext"
16222 case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16228   ac_status=$?
16229   grep -v '^ *+' conftest.er1 >conftest.err
16230   rm -f conftest.er1
16231   cat conftest.err >&5
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); } >/dev/null; then
16234   if test -s conftest.err; then
16235     ac_cpp_err=$ac_c_preproc_warn_flag
16236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16237   else
16238     ac_cpp_err=
16239   fi
16240 else
16241   ac_cpp_err=yes
16242 fi
16243 if test -z "$ac_cpp_err"; then
16244   ac_header_preproc=yes
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249   ac_header_preproc=no
16250 fi
16251
16252 rm -f conftest.err conftest.$ac_ext
16253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6; }
16255
16256 # So?  What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16258   yes:no: )
16259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263     ac_header_preproc=yes
16264     ;;
16265   no:yes:* )
16266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16278     ( cat <<\_ASBOX
16279 ## ------------------------------------ ##
16280 ## Report this to http://llvm.org/bugs/ ##
16281 ## ------------------------------------ ##
16282 _ASBOX
16283      ) | sed "s/^/$as_me: WARNING:     /" >&2
16284     ;;
16285 esac
16286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16289   echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291   eval "$as_ac_Header=\$ac_header_preproc"
16292 fi
16293 ac_res=`eval echo '${'$as_ac_Header'}'`
16294                { echo "$as_me:$LINENO: result: $ac_res" >&5
16295 echo "${ECHO_T}$ac_res" >&6; }
16296
16297 fi
16298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16299   cat >>confdefs.h <<_ACEOF
16300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16301 _ACEOF
16302
16303 fi
16304
16305 done
16306
16307 fi
16308
16309
16310 for ac_header in CrashReporterClient.h
16311 do
16312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 fi
16319 ac_res=`eval echo '${'$as_ac_Header'}'`
16320                { echo "$as_me:$LINENO: result: $ac_res" >&5
16321 echo "${ECHO_T}$ac_res" >&6; }
16322 else
16323   # Is the header compilable?
16324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16326 cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h.  */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h.  */
16332 $ac_includes_default
16333 #include <$ac_header>
16334 _ACEOF
16335 rm -f conftest.$ac_objext
16336 if { (ac_try="$ac_compile"
16337 case "(($ac_try" in
16338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339   *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342   (eval "$ac_compile") 2>conftest.er1
16343   ac_status=$?
16344   grep -v '^ *+' conftest.er1 >conftest.err
16345   rm -f conftest.er1
16346   cat conftest.err >&5
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } &&
16349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350   { (case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_try") 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; } &&
16359          { ac_try='test -s conftest.$ac_objext'
16360   { (case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_try") 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; }; then
16369   ac_header_compiler=yes
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374         ac_header_compiler=no
16375 fi
16376
16377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16379 echo "${ECHO_T}$ac_header_compiler" >&6; }
16380
16381 # Is the header present?
16382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16384 cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390 #include <$ac_header>
16391 _ACEOF
16392 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
16399   ac_status=$?
16400   grep -v '^ *+' conftest.er1 >conftest.err
16401   rm -f conftest.er1
16402   cat conftest.err >&5
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } >/dev/null; then
16405   if test -s conftest.err; then
16406     ac_cpp_err=$ac_c_preproc_warn_flag
16407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16408   else
16409     ac_cpp_err=
16410   fi
16411 else
16412   ac_cpp_err=yes
16413 fi
16414 if test -z "$ac_cpp_err"; then
16415   ac_header_preproc=yes
16416 else
16417   echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420   ac_header_preproc=no
16421 fi
16422
16423 rm -f conftest.err conftest.$ac_ext
16424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16425 echo "${ECHO_T}$ac_header_preproc" >&6; }
16426
16427 # So?  What about this header?
16428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16429   yes:no: )
16430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16434     ac_header_preproc=yes
16435     ;;
16436   no:yes:* )
16437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16449     ( cat <<\_ASBOX
16450 ## ------------------------------------ ##
16451 ## Report this to http://llvm.org/bugs/ ##
16452 ## ------------------------------------ ##
16453 _ASBOX
16454      ) | sed "s/^/$as_me: WARNING:     /" >&2
16455     ;;
16456 esac
16457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16460   echo $ECHO_N "(cached) $ECHO_C" >&6
16461 else
16462   eval "$as_ac_Header=\$ac_header_preproc"
16463 fi
16464 ac_res=`eval echo '${'$as_ac_Header'}'`
16465                { echo "$as_me:$LINENO: result: $ac_res" >&5
16466 echo "${ECHO_T}$ac_res" >&6; }
16467
16468 fi
16469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16470   cat >>confdefs.h <<_ACEOF
16471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16472 _ACEOF
16473
16474 fi
16475
16476 done
16477
16478
16479 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16480 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16481 cat >conftest.$ac_ext <<_ACEOF
16482
16483   /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488
16489     extern const char *__crashreporter_info__;
16490     int main() {
16491       __crashreporter_info__ = "test";
16492       return 0;
16493     }
16494
16495
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_link") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } &&
16511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512   { (case "(($ac_try" in
16513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514   *) ac_try_echo=$ac_try;;
16515 esac
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517   (eval "$ac_try") 2>&5
16518   ac_status=$?
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); }; } &&
16521          { ac_try='test -s conftest$ac_exeext'
16522   { (case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_try") 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531
16532   { echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6; }
16534
16535 cat >>confdefs.h <<\_ACEOF
16536 #define HAVE_CRASHREPORTER_INFO 1
16537 _ACEOF
16538
16539
16540 else
16541   echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16543
16544
16545   { echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6; }
16547
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_CRASHREPORTER_INFO 0
16550 _ACEOF
16551
16552
16553 fi
16554
16555 rm -f core conftest.err conftest.$ac_objext \
16556       conftest$ac_exeext conftest.$ac_ext
16557
16558
16559
16560   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16561 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16562 if test "${ac_cv_huge_val_sanity+set}" = set; then
16563   echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565
16566     ac_ext=cpp
16567 ac_cpp='$CXXCPP $CPPFLAGS'
16568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16571
16572     ac_save_CXXFLAGS=$CXXFLAGS
16573     CXXFLAGS="$CXXFLAGS -pedantic"
16574     if test "$cross_compiling" = yes; then
16575   ac_cv_huge_val_sanity=yes
16576 else
16577   cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h.  */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h.  */
16583 #include <math.h>
16584 int
16585 main ()
16586 {
16587 double x = HUGE_VAL; return x != x;
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_link") 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16603   { (case "(($ac_try" in
16604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605   *) ac_try_echo=$ac_try;;
16606 esac
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608   (eval "$ac_try") 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; }; then
16612   ac_cv_huge_val_sanity=yes
16613 else
16614   echo "$as_me: program exited with status $ac_status" >&5
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 ( exit $ac_status )
16619 ac_cv_huge_val_sanity=no
16620 fi
16621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16622 fi
16623
16624
16625     CXXFLAGS=$ac_save_CXXFLAGS
16626     ac_ext=c
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16631
16632
16633 fi
16634 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16635 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16636   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16637
16638
16639 { echo "$as_me:$LINENO: checking for pid_t" >&5
16640 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16641 if test "${ac_cv_type_pid_t+set}" = set; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644   cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650 $ac_includes_default
16651 typedef pid_t ac__type_new_;
16652 int
16653 main ()
16654 {
16655 if ((ac__type_new_ *) 0)
16656   return 0;
16657 if (sizeof (ac__type_new_))
16658   return 0;
16659   ;
16660   return 0;
16661 }
16662 _ACEOF
16663 rm -f conftest.$ac_objext
16664 if { (ac_try="$ac_compile"
16665 case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_compile") 2>conftest.er1
16671   ac_status=$?
16672   grep -v '^ *+' conftest.er1 >conftest.err
16673   rm -f conftest.er1
16674   cat conftest.err >&5
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); } &&
16677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16678   { (case "(($ac_try" in
16679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680   *) ac_try_echo=$ac_try;;
16681 esac
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683   (eval "$ac_try") 2>&5
16684   ac_status=$?
16685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686   (exit $ac_status); }; } &&
16687          { ac_try='test -s conftest.$ac_objext'
16688   { (case "(($ac_try" in
16689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690   *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693   (eval "$ac_try") 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697   ac_cv_type_pid_t=yes
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702         ac_cv_type_pid_t=no
16703 fi
16704
16705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16706 fi
16707 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16708 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16709 if test $ac_cv_type_pid_t = yes; then
16710   :
16711 else
16712
16713 cat >>confdefs.h <<_ACEOF
16714 #define pid_t int
16715 _ACEOF
16716
16717 fi
16718
16719 { echo "$as_me:$LINENO: checking for size_t" >&5
16720 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16721 if test "${ac_cv_type_size_t+set}" = set; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724   cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730 $ac_includes_default
16731 typedef size_t ac__type_new_;
16732 int
16733 main ()
16734 {
16735 if ((ac__type_new_ *) 0)
16736   return 0;
16737 if (sizeof (ac__type_new_))
16738   return 0;
16739   ;
16740   return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16751   ac_status=$?
16752   grep -v '^ *+' conftest.er1 >conftest.err
16753   rm -f conftest.er1
16754   cat conftest.err >&5
16755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756   (exit $ac_status); } &&
16757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758   { (case "(($ac_try" in
16759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760   *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763   (eval "$ac_try") 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); }; } &&
16767          { ac_try='test -s conftest.$ac_objext'
16768   { (case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773   (eval "$ac_try") 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); }; }; then
16777   ac_cv_type_size_t=yes
16778 else
16779   echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16781
16782         ac_cv_type_size_t=no
16783 fi
16784
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786 fi
16787 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16788 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16789 if test $ac_cv_type_size_t = yes; then
16790   :
16791 else
16792
16793 cat >>confdefs.h <<_ACEOF
16794 #define size_t unsigned int
16795 _ACEOF
16796
16797 fi
16798
16799
16800 cat >>confdefs.h <<_ACEOF
16801 #define RETSIGTYPE void
16802 _ACEOF
16803
16804 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16805 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16806 if test "${ac_cv_struct_tm+set}" = set; then
16807   echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809   cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815 #include <sys/types.h>
16816 #include <time.h>
16817
16818 int
16819 main ()
16820 {
16821 struct tm *tp; tp->tm_sec;
16822   ;
16823   return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_compile") 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } &&
16840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841   { (case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_try") 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; } &&
16850          { ac_try='test -s conftest.$ac_objext'
16851   { (case "(($ac_try" in
16852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853   *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_try") 2>&5
16857   ac_status=$?
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); }; }; then
16860   ac_cv_struct_tm=time.h
16861 else
16862   echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865         ac_cv_struct_tm=sys/time.h
16866 fi
16867
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 fi
16870 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16871 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16872 if test $ac_cv_struct_tm = sys/time.h; then
16873
16874 cat >>confdefs.h <<\_ACEOF
16875 #define TM_IN_SYS_TIME 1
16876 _ACEOF
16877
16878 fi
16879
16880 { echo "$as_me:$LINENO: checking for int64_t" >&5
16881 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16882 if test "${ac_cv_type_int64_t+set}" = set; then
16883   echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885   cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891 $ac_includes_default
16892 typedef int64_t ac__type_new_;
16893 int
16894 main ()
16895 {
16896 if ((ac__type_new_ *) 0)
16897   return 0;
16898 if (sizeof (ac__type_new_))
16899   return 0;
16900   ;
16901   return 0;
16902 }
16903 _ACEOF
16904 rm -f conftest.$ac_objext
16905 if { (ac_try="$ac_compile"
16906 case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_compile") 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } &&
16918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919   { (case "(($ac_try" in
16920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921   *) ac_try_echo=$ac_try;;
16922 esac
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924   (eval "$ac_try") 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; } &&
16928          { ac_try='test -s conftest.$ac_objext'
16929   { (case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_try") 2>&5
16935   ac_status=$?
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); }; }; then
16938   ac_cv_type_int64_t=yes
16939 else
16940   echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16942
16943         ac_cv_type_int64_t=no
16944 fi
16945
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947 fi
16948 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16949 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16950 if test $ac_cv_type_int64_t = yes; then
16951
16952 cat >>confdefs.h <<_ACEOF
16953 #define HAVE_INT64_T 1
16954 _ACEOF
16955
16956
16957 else
16958   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16959 echo "$as_me: error: Type int64_t required but not found" >&2;}
16960    { (exit 1); exit 1; }; }
16961 fi
16962
16963 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16964 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16965 if test "${ac_cv_type_uint64_t+set}" = set; then
16966   echo $ECHO_N "(cached) $ECHO_C" >&6
16967 else
16968   cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974 $ac_includes_default
16975 typedef uint64_t ac__type_new_;
16976 int
16977 main ()
16978 {
16979 if ((ac__type_new_ *) 0)
16980   return 0;
16981 if (sizeof (ac__type_new_))
16982   return 0;
16983   ;
16984   return 0;
16985 }
16986 _ACEOF
16987 rm -f conftest.$ac_objext
16988 if { (ac_try="$ac_compile"
16989 case "(($ac_try" in
16990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991   *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994   (eval "$ac_compile") 2>conftest.er1
16995   ac_status=$?
16996   grep -v '^ *+' conftest.er1 >conftest.err
16997   rm -f conftest.er1
16998   cat conftest.err >&5
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); } &&
17001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17002   { (case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007   (eval "$ac_try") 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; } &&
17011          { ac_try='test -s conftest.$ac_objext'
17012   { (case "(($ac_try" in
17013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014   *) ac_try_echo=$ac_try;;
17015 esac
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017   (eval "$ac_try") 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021   ac_cv_type_uint64_t=yes
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026         ac_cv_type_uint64_t=no
17027 fi
17028
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 fi
17031 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17032 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17033 if test $ac_cv_type_uint64_t = yes; then
17034
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_UINT64_T 1
17037 _ACEOF
17038
17039
17040 else
17041   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17042 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17043 if test "${ac_cv_type_u_int64_t+set}" = set; then
17044   echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046   cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052 $ac_includes_default
17053 typedef u_int64_t ac__type_new_;
17054 int
17055 main ()
17056 {
17057 if ((ac__type_new_ *) 0)
17058   return 0;
17059 if (sizeof (ac__type_new_))
17060   return 0;
17061   ;
17062   return 0;
17063 }
17064 _ACEOF
17065 rm -f conftest.$ac_objext
17066 if { (ac_try="$ac_compile"
17067 case "(($ac_try" in
17068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069   *) ac_try_echo=$ac_try;;
17070 esac
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072   (eval "$ac_compile") 2>conftest.er1
17073   ac_status=$?
17074   grep -v '^ *+' conftest.er1 >conftest.err
17075   rm -f conftest.er1
17076   cat conftest.err >&5
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); } &&
17079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17086   ac_status=$?
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); }; } &&
17089          { ac_try='test -s conftest.$ac_objext'
17090   { (case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095   (eval "$ac_try") 2>&5
17096   ac_status=$?
17097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); }; }; then
17099   ac_cv_type_u_int64_t=yes
17100 else
17101   echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17103
17104         ac_cv_type_u_int64_t=no
17105 fi
17106
17107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17108 fi
17109 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17110 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17111 if test $ac_cv_type_u_int64_t = yes; then
17112
17113 cat >>confdefs.h <<_ACEOF
17114 #define HAVE_U_INT64_T 1
17115 _ACEOF
17116
17117
17118 else
17119   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17120 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17121    { (exit 1); exit 1; }; }
17122 fi
17123
17124 fi
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17136 do
17137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17141   echo $ECHO_N "(cached) $ECHO_C" >&6
17142 else
17143   cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h.  */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h.  */
17149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17151 #define $ac_func innocuous_$ac_func
17152
17153 /* System header to define __stub macros and hopefully few prototypes,
17154     which can conflict with char $ac_func (); below.
17155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17156     <limits.h> exists even on freestanding compilers.  */
17157
17158 #ifdef __STDC__
17159 # include <limits.h>
17160 #else
17161 # include <assert.h>
17162 #endif
17163
17164 #undef $ac_func
17165
17166 /* Override any GCC internal prototype to avoid an error.
17167    Use char because int might match the return type of a GCC
17168    builtin and then its argument prototype would still apply.  */
17169 #ifdef __cplusplus
17170 extern "C"
17171 #endif
17172 char $ac_func ();
17173 /* The GNU C library defines this for functions which it implements
17174     to always fail with ENOSYS.  Some functions are actually named
17175     something starting with __ and the normal name is an alias.  */
17176 #if defined __stub_$ac_func || defined __stub___$ac_func
17177 choke me
17178 #endif
17179
17180 int
17181 main ()
17182 {
17183 return $ac_func ();
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (ac_try="$ac_link"
17190 case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195   (eval "$ac_link") 2>conftest.er1
17196   ac_status=$?
17197   grep -v '^ *+' conftest.er1 >conftest.err
17198   rm -f conftest.er1
17199   cat conftest.err >&5
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } &&
17202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17203   { (case "(($ac_try" in
17204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205   *) ac_try_echo=$ac_try;;
17206 esac
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208   (eval "$ac_try") 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; } &&
17212          { ac_try='test -s conftest$ac_exeext'
17213   { (case "(($ac_try" in
17214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215   *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218   (eval "$ac_try") 2>&5
17219   ac_status=$?
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); }; }; then
17222   eval "$as_ac_var=yes"
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227         eval "$as_ac_var=no"
17228 fi
17229
17230 rm -f core conftest.err conftest.$ac_objext \
17231       conftest$ac_exeext conftest.$ac_ext
17232 fi
17233 ac_res=`eval echo '${'$as_ac_var'}'`
17234                { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237   cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17239 _ACEOF
17240
17241 fi
17242 done
17243
17244
17245
17246
17247
17248 for ac_func in powf fmodf strtof round
17249 do
17250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17254   echo $ECHO_N "(cached) $ECHO_C" >&6
17255 else
17256   cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17264 #define $ac_func innocuous_$ac_func
17265
17266 /* System header to define __stub macros and hopefully few prototypes,
17267     which can conflict with char $ac_func (); below.
17268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17269     <limits.h> exists even on freestanding compilers.  */
17270
17271 #ifdef __STDC__
17272 # include <limits.h>
17273 #else
17274 # include <assert.h>
17275 #endif
17276
17277 #undef $ac_func
17278
17279 /* Override any GCC internal prototype to avoid an error.
17280    Use char because int might match the return type of a GCC
17281    builtin and then its argument prototype would still apply.  */
17282 #ifdef __cplusplus
17283 extern "C"
17284 #endif
17285 char $ac_func ();
17286 /* The GNU C library defines this for functions which it implements
17287     to always fail with ENOSYS.  Some functions are actually named
17288     something starting with __ and the normal name is an alias.  */
17289 #if defined __stub_$ac_func || defined __stub___$ac_func
17290 choke me
17291 #endif
17292
17293 int
17294 main ()
17295 {
17296 return $ac_func ();
17297   ;
17298   return 0;
17299 }
17300 _ACEOF
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305   *) ac_try_echo=$ac_try;;
17306 esac
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308   (eval "$ac_link") 2>conftest.er1
17309   ac_status=$?
17310   grep -v '^ *+' conftest.er1 >conftest.err
17311   rm -f conftest.er1
17312   cat conftest.err >&5
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); } &&
17315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17316   { (case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_try") 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); }; } &&
17325          { ac_try='test -s conftest$ac_exeext'
17326   { (case "(($ac_try" in
17327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328   *) ac_try_echo=$ac_try;;
17329 esac
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331   (eval "$ac_try") 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; }; then
17335   eval "$as_ac_var=yes"
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340         eval "$as_ac_var=no"
17341 fi
17342
17343 rm -f core conftest.err conftest.$ac_objext \
17344       conftest$ac_exeext conftest.$ac_ext
17345 fi
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347                { echo "$as_me:$LINENO: result: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350   cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17352 _ACEOF
17353
17354 fi
17355 done
17356
17357
17358
17359
17360
17361
17362 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17363 do
17364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370   cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h.  */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h.  */
17376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17378 #define $ac_func innocuous_$ac_func
17379
17380 /* System header to define __stub macros and hopefully few prototypes,
17381     which can conflict with char $ac_func (); below.
17382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383     <limits.h> exists even on freestanding compilers.  */
17384
17385 #ifdef __STDC__
17386 # include <limits.h>
17387 #else
17388 # include <assert.h>
17389 #endif
17390
17391 #undef $ac_func
17392
17393 /* Override any GCC internal prototype to avoid an error.
17394    Use char because int might match the return type of a GCC
17395    builtin and then its argument prototype would still apply.  */
17396 #ifdef __cplusplus
17397 extern "C"
17398 #endif
17399 char $ac_func ();
17400 /* The GNU C library defines this for functions which it implements
17401     to always fail with ENOSYS.  Some functions are actually named
17402     something starting with __ and the normal name is an alias.  */
17403 #if defined __stub_$ac_func || defined __stub___$ac_func
17404 choke me
17405 #endif
17406
17407 int
17408 main ()
17409 {
17410 return $ac_func ();
17411   ;
17412   return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_link") 2>conftest.er1
17423   ac_status=$?
17424   grep -v '^ *+' conftest.er1 >conftest.err
17425   rm -f conftest.er1
17426   cat conftest.err >&5
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } &&
17429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17430   { (case "(($ac_try" in
17431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432   *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435   (eval "$ac_try") 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; } &&
17439          { ac_try='test -s conftest$ac_exeext'
17440   { (case "(($ac_try" in
17441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442   *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445   (eval "$ac_try") 2>&5
17446   ac_status=$?
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); }; }; then
17449   eval "$as_ac_var=yes"
17450 else
17451   echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17453
17454         eval "$as_ac_var=no"
17455 fi
17456
17457 rm -f core conftest.err conftest.$ac_objext \
17458       conftest$ac_exeext conftest.$ac_ext
17459 fi
17460 ac_res=`eval echo '${'$as_ac_var'}'`
17461                { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 if test `eval echo '${'$as_ac_var'}'` = yes; then
17464   cat >>confdefs.h <<_ACEOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466 _ACEOF
17467
17468 fi
17469 done
17470
17471
17472
17473
17474 for ac_func in isatty mkdtemp mkstemp
17475 do
17476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17480   echo $ECHO_N "(cached) $ECHO_C" >&6
17481 else
17482   cat >conftest.$ac_ext <<_ACEOF
17483 /* confdefs.h.  */
17484 _ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h.  */
17488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17490 #define $ac_func innocuous_$ac_func
17491
17492 /* System header to define __stub macros and hopefully few prototypes,
17493     which can conflict with char $ac_func (); below.
17494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17495     <limits.h> exists even on freestanding compilers.  */
17496
17497 #ifdef __STDC__
17498 # include <limits.h>
17499 #else
17500 # include <assert.h>
17501 #endif
17502
17503 #undef $ac_func
17504
17505 /* Override any GCC internal prototype to avoid an error.
17506    Use char because int might match the return type of a GCC
17507    builtin and then its argument prototype would still apply.  */
17508 #ifdef __cplusplus
17509 extern "C"
17510 #endif
17511 char $ac_func ();
17512 /* The GNU C library defines this for functions which it implements
17513     to always fail with ENOSYS.  Some functions are actually named
17514     something starting with __ and the normal name is an alias.  */
17515 #if defined __stub_$ac_func || defined __stub___$ac_func
17516 choke me
17517 #endif
17518
17519 int
17520 main ()
17521 {
17522 return $ac_func ();
17523   ;
17524   return 0;
17525 }
17526 _ACEOF
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (ac_try="$ac_link"
17529 case "(($ac_try" in
17530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531   *) ac_try_echo=$ac_try;;
17532 esac
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534   (eval "$ac_link") 2>conftest.er1
17535   ac_status=$?
17536   grep -v '^ *+' conftest.er1 >conftest.err
17537   rm -f conftest.er1
17538   cat conftest.err >&5
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } &&
17541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542   { (case "(($ac_try" in
17543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544   *) ac_try_echo=$ac_try;;
17545 esac
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547   (eval "$ac_try") 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; } &&
17551          { ac_try='test -s conftest$ac_exeext'
17552   { (case "(($ac_try" in
17553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554   *) ac_try_echo=$ac_try;;
17555 esac
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557   (eval "$ac_try") 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); }; }; then
17561   eval "$as_ac_var=yes"
17562 else
17563   echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17565
17566         eval "$as_ac_var=no"
17567 fi
17568
17569 rm -f core conftest.err conftest.$ac_objext \
17570       conftest$ac_exeext conftest.$ac_ext
17571 fi
17572 ac_res=`eval echo '${'$as_ac_var'}'`
17573                { echo "$as_me:$LINENO: result: $ac_res" >&5
17574 echo "${ECHO_T}$ac_res" >&6; }
17575 if test `eval echo '${'$as_ac_var'}'` = yes; then
17576   cat >>confdefs.h <<_ACEOF
17577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17578 _ACEOF
17579
17580 fi
17581 done
17582
17583
17584
17585
17586
17587
17588
17589
17590 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17591 do
17592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598   cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h.  */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h.  */
17604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17606 #define $ac_func innocuous_$ac_func
17607
17608 /* System header to define __stub macros and hopefully few prototypes,
17609     which can conflict with char $ac_func (); below.
17610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611     <limits.h> exists even on freestanding compilers.  */
17612
17613 #ifdef __STDC__
17614 # include <limits.h>
17615 #else
17616 # include <assert.h>
17617 #endif
17618
17619 #undef $ac_func
17620
17621 /* Override any GCC internal prototype to avoid an error.
17622    Use char because int might match the return type of a GCC
17623    builtin and then its argument prototype would still apply.  */
17624 #ifdef __cplusplus
17625 extern "C"
17626 #endif
17627 char $ac_func ();
17628 /* The GNU C library defines this for functions which it implements
17629     to always fail with ENOSYS.  Some functions are actually named
17630     something starting with __ and the normal name is an alias.  */
17631 #if defined __stub_$ac_func || defined __stub___$ac_func
17632 choke me
17633 #endif
17634
17635 int
17636 main ()
17637 {
17638 return $ac_func ();
17639   ;
17640   return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (ac_try="$ac_link"
17645 case "(($ac_try" in
17646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647   *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650   (eval "$ac_link") 2>conftest.er1
17651   ac_status=$?
17652   grep -v '^ *+' conftest.er1 >conftest.err
17653   rm -f conftest.er1
17654   cat conftest.err >&5
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); } &&
17657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658   { (case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663   (eval "$ac_try") 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); }; } &&
17667          { ac_try='test -s conftest$ac_exeext'
17668   { (case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_try") 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }; }; then
17677   eval "$as_ac_var=yes"
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682         eval "$as_ac_var=no"
17683 fi
17684
17685 rm -f core conftest.err conftest.$ac_objext \
17686       conftest$ac_exeext conftest.$ac_ext
17687 fi
17688 ac_res=`eval echo '${'$as_ac_var'}'`
17689                { echo "$as_me:$LINENO: result: $ac_res" >&5
17690 echo "${ECHO_T}$ac_res" >&6; }
17691 if test `eval echo '${'$as_ac_var'}'` = yes; then
17692   cat >>confdefs.h <<_ACEOF
17693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17694 _ACEOF
17695
17696 fi
17697 done
17698
17699
17700
17701
17702
17703 for ac_func in strerror strerror_r setenv arc4random
17704 do
17705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17709   echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711   cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h.  */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h.  */
17717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17719 #define $ac_func innocuous_$ac_func
17720
17721 /* System header to define __stub macros and hopefully few prototypes,
17722     which can conflict with char $ac_func (); below.
17723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17724     <limits.h> exists even on freestanding compilers.  */
17725
17726 #ifdef __STDC__
17727 # include <limits.h>
17728 #else
17729 # include <assert.h>
17730 #endif
17731
17732 #undef $ac_func
17733
17734 /* Override any GCC internal prototype to avoid an error.
17735    Use char because int might match the return type of a GCC
17736    builtin and then its argument prototype would still apply.  */
17737 #ifdef __cplusplus
17738 extern "C"
17739 #endif
17740 char $ac_func ();
17741 /* The GNU C library defines this for functions which it implements
17742     to always fail with ENOSYS.  Some functions are actually named
17743     something starting with __ and the normal name is an alias.  */
17744 #if defined __stub_$ac_func || defined __stub___$ac_func
17745 choke me
17746 #endif
17747
17748 int
17749 main ()
17750 {
17751 return $ac_func ();
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext conftest$ac_exeext
17757 if { (ac_try="$ac_link"
17758 case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_link") 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } &&
17770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17771   { (case "(($ac_try" in
17772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773   *) ac_try_echo=$ac_try;;
17774 esac
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776   (eval "$ac_try") 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; } &&
17780          { ac_try='test -s conftest$ac_exeext'
17781   { (case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786   (eval "$ac_try") 2>&5
17787   ac_status=$?
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); }; }; then
17790   eval "$as_ac_var=yes"
17791 else
17792   echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17794
17795         eval "$as_ac_var=no"
17796 fi
17797
17798 rm -f core conftest.err conftest.$ac_objext \
17799       conftest$ac_exeext conftest.$ac_ext
17800 fi
17801 ac_res=`eval echo '${'$as_ac_var'}'`
17802                { echo "$as_me:$LINENO: result: $ac_res" >&5
17803 echo "${ECHO_T}$ac_res" >&6; }
17804 if test `eval echo '${'$as_ac_var'}'` = yes; then
17805   cat >>confdefs.h <<_ACEOF
17806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17807 _ACEOF
17808
17809 fi
17810 done
17811
17812
17813
17814
17815
17816 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17817 do
17818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17822   echo $ECHO_N "(cached) $ECHO_C" >&6
17823 else
17824   cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h.  */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h.  */
17830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17832 #define $ac_func innocuous_$ac_func
17833
17834 /* System header to define __stub macros and hopefully few prototypes,
17835     which can conflict with char $ac_func (); below.
17836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17837     <limits.h> exists even on freestanding compilers.  */
17838
17839 #ifdef __STDC__
17840 # include <limits.h>
17841 #else
17842 # include <assert.h>
17843 #endif
17844
17845 #undef $ac_func
17846
17847 /* Override any GCC internal prototype to avoid an error.
17848    Use char because int might match the return type of a GCC
17849    builtin and then its argument prototype would still apply.  */
17850 #ifdef __cplusplus
17851 extern "C"
17852 #endif
17853 char $ac_func ();
17854 /* The GNU C library defines this for functions which it implements
17855     to always fail with ENOSYS.  Some functions are actually named
17856     something starting with __ and the normal name is an alias.  */
17857 #if defined __stub_$ac_func || defined __stub___$ac_func
17858 choke me
17859 #endif
17860
17861 int
17862 main ()
17863 {
17864 return $ac_func ();
17865   ;
17866   return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest.$ac_objext conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873   *) ac_try_echo=$ac_try;;
17874 esac
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876   (eval "$ac_link") 2>conftest.er1
17877   ac_status=$?
17878   grep -v '^ *+' conftest.er1 >conftest.err
17879   rm -f conftest.er1
17880   cat conftest.err >&5
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); } &&
17883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17884   { (case "(($ac_try" in
17885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886   *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889   (eval "$ac_try") 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; } &&
17893          { ac_try='test -s conftest$ac_exeext'
17894   { (case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_try") 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; }; then
17903   eval "$as_ac_var=yes"
17904 else
17905   echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908         eval "$as_ac_var=no"
17909 fi
17910
17911 rm -f core conftest.err conftest.$ac_objext \
17912       conftest$ac_exeext conftest.$ac_ext
17913 fi
17914 ac_res=`eval echo '${'$as_ac_var'}'`
17915                { echo "$as_me:$LINENO: result: $ac_res" >&5
17916 echo "${ECHO_T}$ac_res" >&6; }
17917 if test `eval echo '${'$as_ac_var'}'` = yes; then
17918   cat >>confdefs.h <<_ACEOF
17919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17920 _ACEOF
17921
17922 fi
17923 done
17924
17925
17926
17927
17928
17929
17930 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17931 do
17932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17936   echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938   cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h.  */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h.  */
17944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17946 #define $ac_func innocuous_$ac_func
17947
17948 /* System header to define __stub macros and hopefully few prototypes,
17949     which can conflict with char $ac_func (); below.
17950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17951     <limits.h> exists even on freestanding compilers.  */
17952
17953 #ifdef __STDC__
17954 # include <limits.h>
17955 #else
17956 # include <assert.h>
17957 #endif
17958
17959 #undef $ac_func
17960
17961 /* Override any GCC internal prototype to avoid an error.
17962    Use char because int might match the return type of a GCC
17963    builtin and then its argument prototype would still apply.  */
17964 #ifdef __cplusplus
17965 extern "C"
17966 #endif
17967 char $ac_func ();
17968 /* The GNU C library defines this for functions which it implements
17969     to always fail with ENOSYS.  Some functions are actually named
17970     something starting with __ and the normal name is an alias.  */
17971 #if defined __stub_$ac_func || defined __stub___$ac_func
17972 choke me
17973 #endif
17974
17975 int
17976 main ()
17977 {
17978 return $ac_func ();
17979   ;
17980   return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_link") 2>conftest.er1
17991   ac_status=$?
17992   grep -v '^ *+' conftest.er1 >conftest.err
17993   rm -f conftest.er1
17994   cat conftest.err >&5
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); } &&
17997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17998   { (case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_try") 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; } &&
18007          { ac_try='test -s conftest$ac_exeext'
18008   { (case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_try") 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; }; then
18017   eval "$as_ac_var=yes"
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022         eval "$as_ac_var=no"
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext \
18026       conftest$ac_exeext conftest.$ac_ext
18027 fi
18028 ac_res=`eval echo '${'$as_ac_var'}'`
18029                { echo "$as_me:$LINENO: result: $ac_res" >&5
18030 echo "${ECHO_T}$ac_res" >&6; }
18031 if test `eval echo '${'$as_ac_var'}'` = yes; then
18032   cat >>confdefs.h <<_ACEOF
18033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18034 _ACEOF
18035
18036 fi
18037 done
18038
18039 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18040 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18041 if test "${llvm_cv_c_printf_a+set}" = set; then
18042   echo $ECHO_N "(cached) $ECHO_C" >&6
18043 else
18044   ac_ext=c
18045 ac_cpp='$CPP $CPPFLAGS'
18046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18049
18050  if test "$cross_compiling" = yes; then
18051   llvmac_cv_c_printf_a=no
18052 else
18053   cat >conftest.$ac_ext <<_ACEOF
18054
18055   /* confdefs.h.  */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h.  */
18060
18061 #include <stdio.h>
18062 #include <stdlib.h>
18063
18064 int
18065 main ()
18066 {
18067
18068 volatile double A, B;
18069 char Buffer[100];
18070 A = 1;
18071 A /= 10.0;
18072 sprintf(Buffer, "%a", A);
18073 B = atof(Buffer);
18074 if (A != B)
18075   return (1);
18076 if (A != 0x1.999999999999ap-4)
18077   return (1);
18078 return (0);
18079   ;
18080   return 0;
18081 }
18082 _ACEOF
18083 rm -f conftest$ac_exeext
18084 if { (ac_try="$ac_link"
18085 case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_link") 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18094   { (case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_try") 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }; }; then
18103   llvm_cv_c_printf_a=yes
18104 else
18105   echo "$as_me: program exited with status $ac_status" >&5
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109 ( exit $ac_status )
18110 llvmac_cv_c_printf_a=no
18111 fi
18112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18113 fi
18114
18115
18116  ac_ext=c
18117 ac_cpp='$CPP $CPPFLAGS'
18118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18121
18122 fi
18123 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18124 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18125  if test "$llvm_cv_c_printf_a" = "yes"; then
18126
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_PRINTF_A 1
18129 _ACEOF
18130
18131  fi
18132
18133
18134
18135   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18136 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18137 if test "${ac_cv_func_rand48+set}" = set; then
18138   echo $ECHO_N "(cached) $ECHO_C" >&6
18139 else
18140
18141     ac_ext=cpp
18142 ac_cpp='$CXXCPP $CPPFLAGS'
18143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18146
18147     cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h.  */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h.  */
18153 #include <stdlib.h>
18154 int
18155 main ()
18156 {
18157 srand48(0);lrand48();drand48();
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_compile") 2>conftest.er1
18170   ac_status=$?
18171   grep -v '^ *+' conftest.er1 >conftest.err
18172   rm -f conftest.er1
18173   cat conftest.err >&5
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } &&
18176          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18177   { (case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182   (eval "$ac_try") 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); }; } &&
18186          { ac_try='test -s conftest.$ac_objext'
18187   { (case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192   (eval "$ac_try") 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; }; then
18196   ac_cv_func_rand48=yes
18197 else
18198   echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201         ac_cv_func_rand48=no
18202 fi
18203
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18205     ac_ext=c
18206 ac_cpp='$CPP $CPPFLAGS'
18207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18210
18211
18212 fi
18213 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18214 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18215
18216 if test "$ac_cv_func_rand48" = "yes" ; then
18217
18218 cat >>confdefs.h <<\_ACEOF
18219 #define HAVE_RAND48 1
18220 _ACEOF
18221
18222 fi
18223
18224
18225 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18226 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18227 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18228   echo $ECHO_N "(cached) $ECHO_C" >&6
18229 else
18230   cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236 $ac_includes_default
18237 int
18238 main ()
18239 {
18240 #ifndef strerror_s
18241   char *p = (char *) strerror_s;
18242   return !p;
18243 #endif
18244
18245   ;
18246   return 0;
18247 }
18248 _ACEOF
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253   *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256   (eval "$ac_compile") 2>conftest.er1
18257   ac_status=$?
18258   grep -v '^ *+' conftest.er1 >conftest.err
18259   rm -f conftest.er1
18260   cat conftest.err >&5
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); } &&
18263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18264   { (case "(($ac_try" in
18265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266   *) ac_try_echo=$ac_try;;
18267 esac
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269   (eval "$ac_try") 2>&5
18270   ac_status=$?
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); }; } &&
18273          { ac_try='test -s conftest.$ac_objext'
18274   { (case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_try") 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; }; then
18283   ac_cv_have_decl_strerror_s=yes
18284 else
18285   echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288         ac_cv_have_decl_strerror_s=no
18289 fi
18290
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 fi
18293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18294 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18295 if test $ac_cv_have_decl_strerror_s = yes; then
18296
18297 cat >>confdefs.h <<_ACEOF
18298 #define HAVE_DECL_STRERROR_S 1
18299 _ACEOF
18300
18301
18302 else
18303   cat >>confdefs.h <<_ACEOF
18304 #define HAVE_DECL_STRERROR_S 0
18305 _ACEOF
18306
18307
18308 fi
18309
18310
18311
18312 if test "$llvm_cv_os_type" = "MingW" ; then
18313   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18314 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18315 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18316   echo $ECHO_N "(cached) $ECHO_C" >&6
18317 else
18318   ac_check_lib_save_LIBS=$LIBS
18319 LIBS="-lgcc  $LIBS"
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h.  */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h.  */
18326
18327 /* Override any GCC internal prototype to avoid an error.
18328    Use char because int might match the return type of a GCC
18329    builtin and then its argument prototype would still apply.  */
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 char _alloca ();
18334 int
18335 main ()
18336 {
18337 return _alloca ();
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18350   ac_status=$?
18351   grep -v '^ *+' conftest.er1 >conftest.err
18352   rm -f conftest.er1
18353   cat conftest.err >&5
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); } &&
18356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357   { (case "(($ac_try" in
18358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359   *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362   (eval "$ac_try") 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; } &&
18366          { ac_try='test -s conftest$ac_exeext'
18367   { (case "(($ac_try" in
18368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369   *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372   (eval "$ac_try") 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   ac_cv_lib_gcc__alloca=yes
18377 else
18378   echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381         ac_cv_lib_gcc__alloca=no
18382 fi
18383
18384 rm -f core conftest.err conftest.$ac_objext \
18385       conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18387 fi
18388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18389 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18390 if test $ac_cv_lib_gcc__alloca = yes; then
18391
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE__ALLOCA 1
18394 _ACEOF
18395
18396 fi
18397
18398   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18399 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-lgcc  $LIBS"
18405 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412 /* Override any GCC internal prototype to avoid an error.
18413    Use char because int might match the return type of a GCC
18414    builtin and then its argument prototype would still apply.  */
18415 #ifdef __cplusplus
18416 extern "C"
18417 #endif
18418 char __alloca ();
18419 int
18420 main ()
18421 {
18422 return __alloca ();
18423   ;
18424   return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431   *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434   (eval "$ac_link") 2>conftest.er1
18435   ac_status=$?
18436   grep -v '^ *+' conftest.er1 >conftest.err
18437   rm -f conftest.er1
18438   cat conftest.err >&5
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } &&
18441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442   { (case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_try") 2>&5
18448   ac_status=$?
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); }; } &&
18451          { ac_try='test -s conftest$ac_exeext'
18452   { (case "(($ac_try" in
18453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454   *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457   (eval "$ac_try") 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; }; then
18461   ac_cv_lib_gcc___alloca=yes
18462 else
18463   echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466         ac_cv_lib_gcc___alloca=no
18467 fi
18468
18469 rm -f core conftest.err conftest.$ac_objext \
18470       conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18472 fi
18473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18474 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18475 if test $ac_cv_lib_gcc___alloca = yes; then
18476
18477 cat >>confdefs.h <<\_ACEOF
18478 #define HAVE___ALLOCA 1
18479 _ACEOF
18480
18481 fi
18482
18483   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18484 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18485 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18486   echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488   ac_check_lib_save_LIBS=$LIBS
18489 LIBS="-lgcc  $LIBS"
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h.  */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h.  */
18496
18497 /* Override any GCC internal prototype to avoid an error.
18498    Use char because int might match the return type of a GCC
18499    builtin and then its argument prototype would still apply.  */
18500 #ifdef __cplusplus
18501 extern "C"
18502 #endif
18503 char __chkstk ();
18504 int
18505 main ()
18506 {
18507 return __chkstk ();
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_link") 2>conftest.er1
18520   ac_status=$?
18521   grep -v '^ *+' conftest.er1 >conftest.err
18522   rm -f conftest.er1
18523   cat conftest.err >&5
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); } &&
18526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527   { (case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_try") 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); }; } &&
18536          { ac_try='test -s conftest$ac_exeext'
18537   { (case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_try") 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; }; then
18546   ac_cv_lib_gcc___chkstk=yes
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         ac_cv_lib_gcc___chkstk=no
18552 fi
18553
18554 rm -f core conftest.err conftest.$ac_objext \
18555       conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18557 fi
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18559 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18560 if test $ac_cv_lib_gcc___chkstk = yes; then
18561
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE___CHKSTK 1
18564 _ACEOF
18565
18566 fi
18567
18568   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18569 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18570 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18571   echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573   ac_check_lib_save_LIBS=$LIBS
18574 LIBS="-lgcc  $LIBS"
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h.  */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h.  */
18581
18582 /* Override any GCC internal prototype to avoid an error.
18583    Use char because int might match the return type of a GCC
18584    builtin and then its argument prototype would still apply.  */
18585 #ifdef __cplusplus
18586 extern "C"
18587 #endif
18588 char ___chkstk ();
18589 int
18590 main ()
18591 {
18592 return ___chkstk ();
18593   ;
18594   return 0;
18595 }
18596 _ACEOF
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604   (eval "$ac_link") 2>conftest.er1
18605   ac_status=$?
18606   grep -v '^ *+' conftest.er1 >conftest.err
18607   rm -f conftest.er1
18608   cat conftest.err >&5
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); } &&
18611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612   { (case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_try") 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); }; } &&
18621          { ac_try='test -s conftest$ac_exeext'
18622   { (case "(($ac_try" in
18623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624   *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627   (eval "$ac_try") 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; }; then
18631   ac_cv_lib_gcc____chkstk=yes
18632 else
18633   echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636         ac_cv_lib_gcc____chkstk=no
18637 fi
18638
18639 rm -f core conftest.err conftest.$ac_objext \
18640       conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18642 fi
18643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18644 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18645 if test $ac_cv_lib_gcc____chkstk = yes; then
18646
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE____CHKSTK 1
18649 _ACEOF
18650
18651 fi
18652
18653
18654   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18655 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18656 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18657   echo $ECHO_N "(cached) $ECHO_C" >&6
18658 else
18659   ac_check_lib_save_LIBS=$LIBS
18660 LIBS="-lgcc  $LIBS"
18661 cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h.  */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h.  */
18667
18668 /* Override any GCC internal prototype to avoid an error.
18669    Use char because int might match the return type of a GCC
18670    builtin and then its argument prototype would still apply.  */
18671 #ifdef __cplusplus
18672 extern "C"
18673 #endif
18674 char __ashldi3 ();
18675 int
18676 main ()
18677 {
18678 return __ashldi3 ();
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (ac_try="$ac_link"
18685 case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690   (eval "$ac_link") 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698   { (case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_try") 2>&5
18704   ac_status=$?
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; } &&
18707          { ac_try='test -s conftest$ac_exeext'
18708   { (case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_try") 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; }; then
18717   ac_cv_lib_gcc___ashldi3=yes
18718 else
18719   echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18721
18722         ac_cv_lib_gcc___ashldi3=no
18723 fi
18724
18725 rm -f core conftest.err conftest.$ac_objext \
18726       conftest$ac_exeext conftest.$ac_ext
18727 LIBS=$ac_check_lib_save_LIBS
18728 fi
18729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18730 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18731 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18732
18733 cat >>confdefs.h <<\_ACEOF
18734 #define HAVE___ASHLDI3 1
18735 _ACEOF
18736
18737 fi
18738
18739   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18740 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18741 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18742   echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744   ac_check_lib_save_LIBS=$LIBS
18745 LIBS="-lgcc  $LIBS"
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752
18753 /* Override any GCC internal prototype to avoid an error.
18754    Use char because int might match the return type of a GCC
18755    builtin and then its argument prototype would still apply.  */
18756 #ifdef __cplusplus
18757 extern "C"
18758 #endif
18759 char __ashrdi3 ();
18760 int
18761 main ()
18762 {
18763 return __ashrdi3 ();
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772   *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775   (eval "$ac_link") 2>conftest.er1
18776   ac_status=$?
18777   grep -v '^ *+' conftest.er1 >conftest.err
18778   rm -f conftest.er1
18779   cat conftest.err >&5
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); } &&
18782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783   { (case "(($ac_try" in
18784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785   *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788   (eval "$ac_try") 2>&5
18789   ac_status=$?
18790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791   (exit $ac_status); }; } &&
18792          { ac_try='test -s conftest$ac_exeext'
18793   { (case "(($ac_try" in
18794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795   *) ac_try_echo=$ac_try;;
18796 esac
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798   (eval "$ac_try") 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; }; then
18802   ac_cv_lib_gcc___ashrdi3=yes
18803 else
18804   echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18806
18807         ac_cv_lib_gcc___ashrdi3=no
18808 fi
18809
18810 rm -f core conftest.err conftest.$ac_objext \
18811       conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18813 fi
18814 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18815 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18816 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18817
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE___ASHRDI3 1
18820 _ACEOF
18821
18822 fi
18823
18824   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18825 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18826 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18827   echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829   ac_check_lib_save_LIBS=$LIBS
18830 LIBS="-lgcc  $LIBS"
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837
18838 /* Override any GCC internal prototype to avoid an error.
18839    Use char because int might match the return type of a GCC
18840    builtin and then its argument prototype would still apply.  */
18841 #ifdef __cplusplus
18842 extern "C"
18843 #endif
18844 char __divdi3 ();
18845 int
18846 main ()
18847 {
18848 return __divdi3 ();
18849   ;
18850   return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (ac_try="$ac_link"
18855 case "(($ac_try" in
18856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857   *) ac_try_echo=$ac_try;;
18858 esac
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860   (eval "$ac_link") 2>conftest.er1
18861   ac_status=$?
18862   grep -v '^ *+' conftest.er1 >conftest.err
18863   rm -f conftest.er1
18864   cat conftest.err >&5
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); } &&
18867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868   { (case "(($ac_try" in
18869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870   *) ac_try_echo=$ac_try;;
18871 esac
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873   (eval "$ac_try") 2>&5
18874   ac_status=$?
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); }; } &&
18877          { ac_try='test -s conftest$ac_exeext'
18878   { (case "(($ac_try" in
18879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880   *) ac_try_echo=$ac_try;;
18881 esac
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883   (eval "$ac_try") 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }; }; then
18887   ac_cv_lib_gcc___divdi3=yes
18888 else
18889   echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18891
18892         ac_cv_lib_gcc___divdi3=no
18893 fi
18894
18895 rm -f core conftest.err conftest.$ac_objext \
18896       conftest$ac_exeext conftest.$ac_ext
18897 LIBS=$ac_check_lib_save_LIBS
18898 fi
18899 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18900 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18901 if test $ac_cv_lib_gcc___divdi3 = yes; then
18902
18903 cat >>confdefs.h <<\_ACEOF
18904 #define HAVE___DIVDI3 1
18905 _ACEOF
18906
18907 fi
18908
18909   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18910 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18911 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 else
18914   ac_check_lib_save_LIBS=$LIBS
18915 LIBS="-lgcc  $LIBS"
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h.  */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h.  */
18922
18923 /* Override any GCC internal prototype to avoid an error.
18924    Use char because int might match the return type of a GCC
18925    builtin and then its argument prototype would still apply.  */
18926 #ifdef __cplusplus
18927 extern "C"
18928 #endif
18929 char __fixdfdi ();
18930 int
18931 main ()
18932 {
18933 return __fixdfdi ();
18934   ;
18935   return 0;
18936 }
18937 _ACEOF
18938 rm -f conftest.$ac_objext conftest$ac_exeext
18939 if { (ac_try="$ac_link"
18940 case "(($ac_try" in
18941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942   *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945   (eval "$ac_link") 2>conftest.er1
18946   ac_status=$?
18947   grep -v '^ *+' conftest.er1 >conftest.err
18948   rm -f conftest.er1
18949   cat conftest.err >&5
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } &&
18952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18953   { (case "(($ac_try" in
18954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955   *) ac_try_echo=$ac_try;;
18956 esac
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958   (eval "$ac_try") 2>&5
18959   ac_status=$?
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); }; } &&
18962          { ac_try='test -s conftest$ac_exeext'
18963   { (case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_try") 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; }; then
18972   ac_cv_lib_gcc___fixdfdi=yes
18973 else
18974   echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18976
18977         ac_cv_lib_gcc___fixdfdi=no
18978 fi
18979
18980 rm -f core conftest.err conftest.$ac_objext \
18981       conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18983 fi
18984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18985 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18986 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18987
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE___FIXDFDI 1
18990 _ACEOF
18991
18992 fi
18993
18994   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18995 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18996 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18997   echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999   ac_check_lib_save_LIBS=$LIBS
19000 LIBS="-lgcc  $LIBS"
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h.  */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h.  */
19007
19008 /* Override any GCC internal prototype to avoid an error.
19009    Use char because int might match the return type of a GCC
19010    builtin and then its argument prototype would still apply.  */
19011 #ifdef __cplusplus
19012 extern "C"
19013 #endif
19014 char __fixsfdi ();
19015 int
19016 main ()
19017 {
19018 return __fixsfdi ();
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027   *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030   (eval "$ac_link") 2>conftest.er1
19031   ac_status=$?
19032   grep -v '^ *+' conftest.er1 >conftest.err
19033   rm -f conftest.er1
19034   cat conftest.err >&5
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); } &&
19037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038   { (case "(($ac_try" in
19039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040   *) ac_try_echo=$ac_try;;
19041 esac
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043   (eval "$ac_try") 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; } &&
19047          { ac_try='test -s conftest$ac_exeext'
19048   { (case "(($ac_try" in
19049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050   *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053   (eval "$ac_try") 2>&5
19054   ac_status=$?
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); }; }; then
19057   ac_cv_lib_gcc___fixsfdi=yes
19058 else
19059   echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19061
19062         ac_cv_lib_gcc___fixsfdi=no
19063 fi
19064
19065 rm -f core conftest.err conftest.$ac_objext \
19066       conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19068 fi
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19070 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19071 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19072
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE___FIXSFDI 1
19075 _ACEOF
19076
19077 fi
19078
19079   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19080 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19081 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   ac_check_lib_save_LIBS=$LIBS
19085 LIBS="-lgcc  $LIBS"
19086 cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092
19093 /* Override any GCC internal prototype to avoid an error.
19094    Use char because int might match the return type of a GCC
19095    builtin and then its argument prototype would still apply.  */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 char __floatdidf ();
19100 int
19101 main ()
19102 {
19103 return __floatdidf ();
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (ac_try="$ac_link"
19110 case "(($ac_try" in
19111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112   *) ac_try_echo=$ac_try;;
19113 esac
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115   (eval "$ac_link") 2>conftest.er1
19116   ac_status=$?
19117   grep -v '^ *+' conftest.er1 >conftest.err
19118   rm -f conftest.er1
19119   cat conftest.err >&5
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); } &&
19122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123   { (case "(($ac_try" in
19124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125   *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128   (eval "$ac_try") 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; } &&
19132          { ac_try='test -s conftest$ac_exeext'
19133   { (case "(($ac_try" in
19134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135   *) ac_try_echo=$ac_try;;
19136 esac
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138   (eval "$ac_try") 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; }; then
19142   ac_cv_lib_gcc___floatdidf=yes
19143 else
19144   echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147         ac_cv_lib_gcc___floatdidf=no
19148 fi
19149
19150 rm -f core conftest.err conftest.$ac_objext \
19151       conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19153 fi
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19155 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19156 if test $ac_cv_lib_gcc___floatdidf = yes; then
19157
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE___FLOATDIDF 1
19160 _ACEOF
19161
19162 fi
19163
19164   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19165 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169   ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-lgcc  $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h.  */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h.  */
19177
19178 /* Override any GCC internal prototype to avoid an error.
19179    Use char because int might match the return type of a GCC
19180    builtin and then its argument prototype would still apply.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char __lshrdi3 ();
19185 int
19186 main ()
19187 {
19188 return __lshrdi3 ();
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_link") 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } &&
19207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208   { (case "(($ac_try" in
19209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210   *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213   (eval "$ac_try") 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; } &&
19217          { ac_try='test -s conftest$ac_exeext'
19218   { (case "(($ac_try" in
19219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220   *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223   (eval "$ac_try") 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }; }; then
19227   ac_cv_lib_gcc___lshrdi3=yes
19228 else
19229   echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232         ac_cv_lib_gcc___lshrdi3=no
19233 fi
19234
19235 rm -f core conftest.err conftest.$ac_objext \
19236       conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19238 fi
19239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19240 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19241 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19242
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE___LSHRDI3 1
19245 _ACEOF
19246
19247 fi
19248
19249   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19250 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19251 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19252   echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254   ac_check_lib_save_LIBS=$LIBS
19255 LIBS="-lgcc  $LIBS"
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262
19263 /* Override any GCC internal prototype to avoid an error.
19264    Use char because int might match the return type of a GCC
19265    builtin and then its argument prototype would still apply.  */
19266 #ifdef __cplusplus
19267 extern "C"
19268 #endif
19269 char __moddi3 ();
19270 int
19271 main ()
19272 {
19273 return __moddi3 ();
19274   ;
19275   return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_link") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } &&
19292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; } &&
19302          { ac_try='test -s conftest$ac_exeext'
19303   { (case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_try") 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_lib_gcc___moddi3=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317         ac_cv_lib_gcc___moddi3=no
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext \
19321       conftest$ac_exeext conftest.$ac_ext
19322 LIBS=$ac_check_lib_save_LIBS
19323 fi
19324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19325 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19326 if test $ac_cv_lib_gcc___moddi3 = yes; then
19327
19328 cat >>confdefs.h <<\_ACEOF
19329 #define HAVE___MODDI3 1
19330 _ACEOF
19331
19332 fi
19333
19334   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19335 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19336 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19337   echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339   ac_check_lib_save_LIBS=$LIBS
19340 LIBS="-lgcc  $LIBS"
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347
19348 /* Override any GCC internal prototype to avoid an error.
19349    Use char because int might match the return type of a GCC
19350    builtin and then its argument prototype would still apply.  */
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 char __udivdi3 ();
19355 int
19356 main ()
19357 {
19358 return __udivdi3 ();
19359   ;
19360   return 0;
19361 }
19362 _ACEOF
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (ac_try="$ac_link"
19365 case "(($ac_try" in
19366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367   *) ac_try_echo=$ac_try;;
19368 esac
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370   (eval "$ac_link") 2>conftest.er1
19371   ac_status=$?
19372   grep -v '^ *+' conftest.er1 >conftest.err
19373   rm -f conftest.er1
19374   cat conftest.err >&5
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); } &&
19377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19378   { (case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_try") 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; } &&
19387          { ac_try='test -s conftest$ac_exeext'
19388   { (case "(($ac_try" in
19389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390   *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393   (eval "$ac_try") 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; }; then
19397   ac_cv_lib_gcc___udivdi3=yes
19398 else
19399   echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402         ac_cv_lib_gcc___udivdi3=no
19403 fi
19404
19405 rm -f core conftest.err conftest.$ac_objext \
19406       conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19408 fi
19409 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19410 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19411 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19412
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE___UDIVDI3 1
19415 _ACEOF
19416
19417 fi
19418
19419   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19420 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19421 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   ac_check_lib_save_LIBS=$LIBS
19425 LIBS="-lgcc  $LIBS"
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432
19433 /* Override any GCC internal prototype to avoid an error.
19434    Use char because int might match the return type of a GCC
19435    builtin and then its argument prototype would still apply.  */
19436 #ifdef __cplusplus
19437 extern "C"
19438 #endif
19439 char __umoddi3 ();
19440 int
19441 main ()
19442 {
19443 return __umoddi3 ();
19444   ;
19445   return 0;
19446 }
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452   *) ac_try_echo=$ac_try;;
19453 esac
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455   (eval "$ac_link") 2>conftest.er1
19456   ac_status=$?
19457   grep -v '^ *+' conftest.er1 >conftest.err
19458   rm -f conftest.er1
19459   cat conftest.err >&5
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); } &&
19462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19463   { (case "(($ac_try" in
19464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465   *) ac_try_echo=$ac_try;;
19466 esac
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468   (eval "$ac_try") 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; } &&
19472          { ac_try='test -s conftest$ac_exeext'
19473   { (case "(($ac_try" in
19474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475   *) ac_try_echo=$ac_try;;
19476 esac
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478   (eval "$ac_try") 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; }; then
19482   ac_cv_lib_gcc___umoddi3=yes
19483 else
19484   echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487         ac_cv_lib_gcc___umoddi3=no
19488 fi
19489
19490 rm -f core conftest.err conftest.$ac_objext \
19491       conftest$ac_exeext conftest.$ac_ext
19492 LIBS=$ac_check_lib_save_LIBS
19493 fi
19494 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19495 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19496 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19497
19498 cat >>confdefs.h <<\_ACEOF
19499 #define HAVE___UMODDI3 1
19500 _ACEOF
19501
19502 fi
19503
19504
19505   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19506 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19507 if test "${ac_cv_lib_gcc___main+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   ac_check_lib_save_LIBS=$LIBS
19511 LIBS="-lgcc  $LIBS"
19512 cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518
19519 /* Override any GCC internal prototype to avoid an error.
19520    Use char because int might match the return type of a GCC
19521    builtin and then its argument prototype would still apply.  */
19522 #ifdef __cplusplus
19523 extern "C"
19524 #endif
19525 char __main ();
19526 int
19527 main ()
19528 {
19529 return __main ();
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (ac_try="$ac_link"
19536 case "(($ac_try" in
19537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538   *) ac_try_echo=$ac_try;;
19539 esac
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541   (eval "$ac_link") 2>conftest.er1
19542   ac_status=$?
19543   grep -v '^ *+' conftest.er1 >conftest.err
19544   rm -f conftest.er1
19545   cat conftest.err >&5
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); } &&
19548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19549   { (case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554   (eval "$ac_try") 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; } &&
19558          { ac_try='test -s conftest$ac_exeext'
19559   { (case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564   (eval "$ac_try") 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; }; then
19568   ac_cv_lib_gcc___main=yes
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573         ac_cv_lib_gcc___main=no
19574 fi
19575
19576 rm -f core conftest.err conftest.$ac_objext \
19577       conftest$ac_exeext conftest.$ac_ext
19578 LIBS=$ac_check_lib_save_LIBS
19579 fi
19580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19581 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19582 if test $ac_cv_lib_gcc___main = yes; then
19583
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE___MAIN 1
19586 _ACEOF
19587
19588 fi
19589
19590   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19591 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19592 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19593   echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595   ac_check_lib_save_LIBS=$LIBS
19596 LIBS="-lgcc  $LIBS"
19597 cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h.  */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h.  */
19603
19604 /* Override any GCC internal prototype to avoid an error.
19605    Use char because int might match the return type of a GCC
19606    builtin and then its argument prototype would still apply.  */
19607 #ifdef __cplusplus
19608 extern "C"
19609 #endif
19610 char __cmpdi2 ();
19611 int
19612 main ()
19613 {
19614 return __cmpdi2 ();
19615   ;
19616   return 0;
19617 }
19618 _ACEOF
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626   (eval "$ac_link") 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19634   { (case "(($ac_try" in
19635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636   *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639   (eval "$ac_try") 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; } &&
19643          { ac_try='test -s conftest$ac_exeext'
19644   { (case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_try") 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); }; }; then
19653   ac_cv_lib_gcc___cmpdi2=yes
19654 else
19655   echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658         ac_cv_lib_gcc___cmpdi2=no
19659 fi
19660
19661 rm -f core conftest.err conftest.$ac_objext \
19662       conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19664 fi
19665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19666 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19667 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19668
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE___CMPDI2 1
19671 _ACEOF
19672
19673 fi
19674
19675 fi
19676
19677 if test "$llvm_cv_os_type" = "MingW" ; then
19678   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19679 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19680   cat >conftest.$ac_ext <<_ACEOF
19681
19682   /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687
19688     #include <windows.h>
19689     #include <imagehlp.h>
19690     extern void foo(PENUMLOADED_MODULES_CALLBACK);
19691     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19692
19693
19694 _ACEOF
19695 rm -f conftest.$ac_objext
19696 if { (ac_try="$ac_compile"
19697 case "(($ac_try" in
19698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699   *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702   (eval "$ac_compile") 2>conftest.er1
19703   ac_status=$?
19704   grep -v '^ *+' conftest.er1 >conftest.err
19705   rm -f conftest.er1
19706   cat conftest.err >&5
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); } &&
19709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19710   { (case "(($ac_try" in
19711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712   *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715   (eval "$ac_try") 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; } &&
19719          { ac_try='test -s conftest.$ac_objext'
19720   { (case "(($ac_try" in
19721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722   *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725   (eval "$ac_try") 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; }; then
19729
19730   { echo "$as_me:$LINENO: result: yes" >&5
19731 echo "${ECHO_T}yes" >&6; }
19732   llvm_cv_win32_elmcb_pcstr="PCSTR"
19733
19734 else
19735   echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738
19739   { echo "$as_me:$LINENO: result: no" >&5
19740 echo "${ECHO_T}no" >&6; }
19741   llvm_cv_win32_elmcb_pcstr="PSTR"
19742
19743 fi
19744
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19746
19747 cat >>confdefs.h <<_ACEOF
19748 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19749 _ACEOF
19750
19751 fi
19752
19753
19754
19755   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19756 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19757 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760
19761     ac_ext=cpp
19762 ac_cpp='$CXXCPP $CPPFLAGS'
19763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19766
19767     cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773 #include <math.h>
19774 int
19775 main ()
19776 {
19777 float f; isnan(f);
19778   ;
19779   return 0;
19780 }
19781 _ACEOF
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789   (eval "$ac_compile") 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797   { (case "(($ac_try" in
19798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799   *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802   (eval "$ac_try") 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; } &&
19806          { ac_try='test -s conftest.$ac_objext'
19807   { (case "(($ac_try" in
19808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809   *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812   (eval "$ac_try") 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; }; then
19816   ac_cv_func_isnan_in_math_h=yes
19817 else
19818   echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821         ac_cv_func_isnan_in_math_h=no
19822 fi
19823
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825     ac_ext=c
19826 ac_cpp='$CPP $CPPFLAGS'
19827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19830
19831
19832 fi
19833 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19834 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19835
19836
19837 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19838
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_ISNAN_IN_MATH_H 1
19841 _ACEOF
19842
19843 fi
19844
19845
19846   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19847 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19848 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851
19852     ac_ext=cpp
19853 ac_cpp='$CXXCPP $CPPFLAGS'
19854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19857
19858     cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h.  */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h.  */
19864 #include <cmath>
19865 int
19866 main ()
19867 {
19868 float f; isnan(f);
19869   ;
19870   return 0;
19871 }
19872 _ACEOF
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877   *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880   (eval "$ac_compile") 2>conftest.er1
19881   ac_status=$?
19882   grep -v '^ *+' conftest.er1 >conftest.err
19883   rm -f conftest.er1
19884   cat conftest.err >&5
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); } &&
19887          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19888   { (case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_try") 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); }; } &&
19897          { ac_try='test -s conftest.$ac_objext'
19898   { (case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_try") 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907   ac_cv_func_isnan_in_cmath=yes
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912         ac_cv_func_isnan_in_cmath=no
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916     ac_ext=c
19917 ac_cpp='$CPP $CPPFLAGS'
19918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19921
19922
19923 fi
19924 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19925 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19926
19927 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19928
19929 cat >>confdefs.h <<\_ACEOF
19930 #define HAVE_ISNAN_IN_CMATH 1
19931 _ACEOF
19932
19933 fi
19934
19935
19936   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19937 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19938 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19939   echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941
19942     ac_ext=cpp
19943 ac_cpp='$CXXCPP $CPPFLAGS'
19944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19947
19948     cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 #include <cmath>
19955 int
19956 main ()
19957 {
19958 float f; std::isnan(f);
19959   ;
19960   return 0;
19961 }
19962 _ACEOF
19963 rm -f conftest.$ac_objext
19964 if { (ac_try="$ac_compile"
19965 case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_compile") 2>conftest.er1
19971   ac_status=$?
19972   grep -v '^ *+' conftest.er1 >conftest.err
19973   rm -f conftest.er1
19974   cat conftest.err >&5
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); } &&
19977          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19978   { (case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_try") 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; } &&
19987          { ac_try='test -s conftest.$ac_objext'
19988   { (case "(($ac_try" in
19989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990   *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993   (eval "$ac_try") 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; }; then
19997   ac_cv_func_std_isnan_in_cmath=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002         ac_cv_func_std_isnan_in_cmath=no
20003 fi
20004
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006     ac_ext=c
20007 ac_cpp='$CPP $CPPFLAGS'
20008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20011
20012
20013 fi
20014 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20015 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20016
20017 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20018
20019 cat >>confdefs.h <<\_ACEOF
20020 #define HAVE_STD_ISNAN_IN_CMATH 1
20021 _ACEOF
20022
20023 fi
20024
20025
20026
20027
20028   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20029 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20030 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033
20034     ac_ext=cpp
20035 ac_cpp='$CXXCPP $CPPFLAGS'
20036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20039
20040     cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046 #include <math.h>
20047 int
20048 main ()
20049 {
20050 float f; isinf(f);
20051   ;
20052   return 0;
20053 }
20054 _ACEOF
20055 rm -f conftest.$ac_objext
20056 if { (ac_try="$ac_compile"
20057 case "(($ac_try" in
20058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059   *) ac_try_echo=$ac_try;;
20060 esac
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062   (eval "$ac_compile") 2>conftest.er1
20063   ac_status=$?
20064   grep -v '^ *+' conftest.er1 >conftest.err
20065   rm -f conftest.er1
20066   cat conftest.err >&5
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); } &&
20069          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20070   { (case "(($ac_try" in
20071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072   *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075   (eval "$ac_try") 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); }; } &&
20079          { ac_try='test -s conftest.$ac_objext'
20080   { (case "(($ac_try" in
20081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082   *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085   (eval "$ac_try") 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); }; }; then
20089   ac_cv_func_isinf_in_math_h=yes
20090 else
20091   echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20093
20094         ac_cv_func_isinf_in_math_h=no
20095 fi
20096
20097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20098     ac_ext=c
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20103
20104
20105 fi
20106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20107 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20108
20109 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20110
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_ISINF_IN_MATH_H 1
20113 _ACEOF
20114
20115 fi
20116
20117
20118   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20119 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20120 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123
20124     ac_ext=cpp
20125 ac_cpp='$CXXCPP $CPPFLAGS'
20126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20129
20130     cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 #include <cmath>
20137 int
20138 main ()
20139 {
20140 float f; isinf(f);
20141   ;
20142   return 0;
20143 }
20144 _ACEOF
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152   (eval "$ac_compile") 2>conftest.er1
20153   ac_status=$?
20154   grep -v '^ *+' conftest.er1 >conftest.err
20155   rm -f conftest.er1
20156   cat conftest.err >&5
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); } &&
20159          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20160   { (case "(($ac_try" in
20161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162   *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165   (eval "$ac_try") 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); }; } &&
20169          { ac_try='test -s conftest.$ac_objext'
20170   { (case "(($ac_try" in
20171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172   *) ac_try_echo=$ac_try;;
20173 esac
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175   (eval "$ac_try") 2>&5
20176   ac_status=$?
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); }; }; then
20179   ac_cv_func_isinf_in_cmath=yes
20180 else
20181   echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184         ac_cv_func_isinf_in_cmath=no
20185 fi
20186
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20188     ac_ext=c
20189 ac_cpp='$CPP $CPPFLAGS'
20190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20193
20194
20195 fi
20196 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20197 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20198
20199 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20200
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_ISINF_IN_CMATH 1
20203 _ACEOF
20204
20205 fi
20206
20207
20208   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20209 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20210 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213
20214     ac_ext=cpp
20215 ac_cpp='$CXXCPP $CPPFLAGS'
20216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20219
20220     cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h.  */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h.  */
20226 #include <cmath>
20227 int
20228 main ()
20229 {
20230 float f; std::isinf(f);
20231   ;
20232   return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_compile") 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } &&
20249          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20250   { (case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255   (eval "$ac_try") 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); }; } &&
20259          { ac_try='test -s conftest.$ac_objext'
20260   { (case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265   (eval "$ac_try") 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }; then
20269   ac_cv_func_std_isinf_in_cmath=yes
20270 else
20271   echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274         ac_cv_func_std_isinf_in_cmath=no
20275 fi
20276
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278     ac_ext=c
20279 ac_cpp='$CPP $CPPFLAGS'
20280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20283
20284
20285 fi
20286 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20287 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20288
20289 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20290
20291 cat >>confdefs.h <<\_ACEOF
20292 #define HAVE_STD_ISINF_IN_CMATH 1
20293 _ACEOF
20294
20295 fi
20296
20297
20298   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20299 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20300 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303
20304     ac_ext=cpp
20305 ac_cpp='$CXXCPP $CPPFLAGS'
20306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20309
20310     cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316 #include <ieeefp.h>
20317 int
20318 main ()
20319 {
20320 float f; finite(f);
20321   ;
20322   return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest.$ac_objext
20326 if { (ac_try="$ac_compile"
20327 case "(($ac_try" in
20328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329   *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332   (eval "$ac_compile") 2>conftest.er1
20333   ac_status=$?
20334   grep -v '^ *+' conftest.er1 >conftest.err
20335   rm -f conftest.er1
20336   cat conftest.err >&5
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } &&
20339          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20340   { (case "(($ac_try" in
20341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342   *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345   (eval "$ac_try") 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; } &&
20349          { ac_try='test -s conftest.$ac_objext'
20350   { (case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_try") 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359   ac_cv_func_finite_in_ieeefp_h=yes
20360 else
20361   echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20363
20364         ac_cv_func_finite_in_ieeefp_h=no
20365 fi
20366
20367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368     ac_ext=c
20369 ac_cpp='$CPP $CPPFLAGS'
20370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20373
20374
20375 fi
20376 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20377 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20378
20379 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20380
20381 cat >>confdefs.h <<\_ACEOF
20382 #define HAVE_FINITE_IN_IEEEFP_H 1
20383 _ACEOF
20384
20385 fi
20386
20387
20388
20389 if test "$llvm_cv_platform_type" = "Unix" ; then
20390
20391
20392 for ac_header in stdlib.h unistd.h
20393 do
20394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20396   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399   echo $ECHO_N "(cached) $ECHO_C" >&6
20400 fi
20401 ac_res=`eval echo '${'$as_ac_Header'}'`
20402                { echo "$as_me:$LINENO: result: $ac_res" >&5
20403 echo "${ECHO_T}$ac_res" >&6; }
20404 else
20405   # Is the header compilable?
20406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20408 cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414 $ac_includes_default
20415 #include <$ac_header>
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421   *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424   (eval "$ac_compile") 2>conftest.er1
20425   ac_status=$?
20426   grep -v '^ *+' conftest.er1 >conftest.err
20427   rm -f conftest.er1
20428   cat conftest.err >&5
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } &&
20431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20432   { (case "(($ac_try" in
20433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434   *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437   (eval "$ac_try") 2>&5
20438   ac_status=$?
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); }; } &&
20441          { ac_try='test -s conftest.$ac_objext'
20442   { (case "(($ac_try" in
20443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444   *) ac_try_echo=$ac_try;;
20445 esac
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447   (eval "$ac_try") 2>&5
20448   ac_status=$?
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); }; }; then
20451   ac_header_compiler=yes
20452 else
20453   echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20455
20456         ac_header_compiler=no
20457 fi
20458
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20461 echo "${ECHO_T}$ac_header_compiler" >&6; }
20462
20463 # Is the header present?
20464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h.  */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h.  */
20472 #include <$ac_header>
20473 _ACEOF
20474 if { (ac_try="$ac_cpp conftest.$ac_ext"
20475 case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } >/dev/null; then
20487   if test -s conftest.err; then
20488     ac_cpp_err=$ac_c_preproc_warn_flag
20489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20490   else
20491     ac_cpp_err=
20492   fi
20493 else
20494   ac_cpp_err=yes
20495 fi
20496 if test -z "$ac_cpp_err"; then
20497   ac_header_preproc=yes
20498 else
20499   echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502   ac_header_preproc=no
20503 fi
20504
20505 rm -f conftest.err conftest.$ac_ext
20506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20507 echo "${ECHO_T}$ac_header_preproc" >&6; }
20508
20509 # So?  What about this header?
20510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20511   yes:no: )
20512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20516     ac_header_preproc=yes
20517     ;;
20518   no:yes:* )
20519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20531     ( cat <<\_ASBOX
20532 ## ------------------------------------ ##
20533 ## Report this to http://llvm.org/bugs/ ##
20534 ## ------------------------------------ ##
20535 _ASBOX
20536      ) | sed "s/^/$as_me: WARNING:     /" >&2
20537     ;;
20538 esac
20539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20542   echo $ECHO_N "(cached) $ECHO_C" >&6
20543 else
20544   eval "$as_ac_Header=\$ac_header_preproc"
20545 fi
20546 ac_res=`eval echo '${'$as_ac_Header'}'`
20547                { echo "$as_me:$LINENO: result: $ac_res" >&5
20548 echo "${ECHO_T}$ac_res" >&6; }
20549
20550 fi
20551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20552   cat >>confdefs.h <<_ACEOF
20553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20554 _ACEOF
20555
20556 fi
20557
20558 done
20559
20560
20561 for ac_func in getpagesize
20562 do
20563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569   cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20577 #define $ac_func innocuous_$ac_func
20578
20579 /* System header to define __stub macros and hopefully few prototypes,
20580     which can conflict with char $ac_func (); below.
20581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582     <limits.h> exists even on freestanding compilers.  */
20583
20584 #ifdef __STDC__
20585 # include <limits.h>
20586 #else
20587 # include <assert.h>
20588 #endif
20589
20590 #undef $ac_func
20591
20592 /* Override any GCC internal prototype to avoid an error.
20593    Use char because int might match the return type of a GCC
20594    builtin and then its argument prototype would still apply.  */
20595 #ifdef __cplusplus
20596 extern "C"
20597 #endif
20598 char $ac_func ();
20599 /* The GNU C library defines this for functions which it implements
20600     to always fail with ENOSYS.  Some functions are actually named
20601     something starting with __ and the normal name is an alias.  */
20602 #if defined __stub_$ac_func || defined __stub___$ac_func
20603 choke me
20604 #endif
20605
20606 int
20607 main ()
20608 {
20609 return $ac_func ();
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (ac_try="$ac_link"
20616 case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_link") 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } &&
20628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20629   { (case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_try") 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); }; } &&
20638          { ac_try='test -s conftest$ac_exeext'
20639   { (case "(($ac_try" in
20640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641   *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644   (eval "$ac_try") 2>&5
20645   ac_status=$?
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); }; }; then
20648   eval "$as_ac_var=yes"
20649 else
20650   echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653         eval "$as_ac_var=no"
20654 fi
20655
20656 rm -f core conftest.err conftest.$ac_objext \
20657       conftest$ac_exeext conftest.$ac_ext
20658 fi
20659 ac_res=`eval echo '${'$as_ac_var'}'`
20660                { echo "$as_me:$LINENO: result: $ac_res" >&5
20661 echo "${ECHO_T}$ac_res" >&6; }
20662 if test `eval echo '${'$as_ac_var'}'` = yes; then
20663   cat >>confdefs.h <<_ACEOF
20664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20665 _ACEOF
20666
20667 fi
20668 done
20669
20670 { echo "$as_me:$LINENO: checking for working mmap" >&5
20671 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20672 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 else
20675   if test "$cross_compiling" = yes; then
20676   ac_cv_func_mmap_fixed_mapped=no
20677 else
20678   cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 $ac_includes_default
20685 /* malloc might have been renamed as rpl_malloc. */
20686 #undef malloc
20687
20688 /* Thanks to Mike Haertel and Jim Avera for this test.
20689    Here is a matrix of mmap possibilities:
20690         mmap private not fixed
20691         mmap private fixed at somewhere currently unmapped
20692         mmap private fixed at somewhere already mapped
20693         mmap shared not fixed
20694         mmap shared fixed at somewhere currently unmapped
20695         mmap shared fixed at somewhere already mapped
20696    For private mappings, we should verify that changes cannot be read()
20697    back from the file, nor mmap's back from the file at a different
20698    address.  (There have been systems where private was not correctly
20699    implemented like the infamous i386 svr4.0, and systems where the
20700    VM page cache was not coherent with the file system buffer cache
20701    like early versions of FreeBSD and possibly contemporary NetBSD.)
20702    For shared mappings, we should conversely verify that changes get
20703    propagated back to all the places they're supposed to be.
20704
20705    Grep wants private fixed already mapped.
20706    The main things grep needs to know about mmap are:
20707    * does it exist and is it safe to write into the mmap'd area
20708    * how to use it (BSD variants)  */
20709
20710 #include <fcntl.h>
20711 #include <sys/mman.h>
20712
20713 #if !STDC_HEADERS && !HAVE_STDLIB_H
20714 char *malloc ();
20715 #endif
20716
20717 /* This mess was copied from the GNU getpagesize.h.  */
20718 #if !HAVE_GETPAGESIZE
20719 /* Assume that all systems that can run configure have sys/param.h.  */
20720 # if !HAVE_SYS_PARAM_H
20721 #  define HAVE_SYS_PARAM_H 1
20722 # endif
20723
20724 # ifdef _SC_PAGESIZE
20725 #  define getpagesize() sysconf(_SC_PAGESIZE)
20726 # else /* no _SC_PAGESIZE */
20727 #  if HAVE_SYS_PARAM_H
20728 #   include <sys/param.h>
20729 #   ifdef EXEC_PAGESIZE
20730 #    define getpagesize() EXEC_PAGESIZE
20731 #   else /* no EXEC_PAGESIZE */
20732 #    ifdef NBPG
20733 #     define getpagesize() NBPG * CLSIZE
20734 #     ifndef CLSIZE
20735 #      define CLSIZE 1
20736 #     endif /* no CLSIZE */
20737 #    else /* no NBPG */
20738 #     ifdef NBPC
20739 #      define getpagesize() NBPC
20740 #     else /* no NBPC */
20741 #      ifdef PAGESIZE
20742 #       define getpagesize() PAGESIZE
20743 #      endif /* PAGESIZE */
20744 #     endif /* no NBPC */
20745 #    endif /* no NBPG */
20746 #   endif /* no EXEC_PAGESIZE */
20747 #  else /* no HAVE_SYS_PARAM_H */
20748 #   define getpagesize() 8192   /* punt totally */
20749 #  endif /* no HAVE_SYS_PARAM_H */
20750 # endif /* no _SC_PAGESIZE */
20751
20752 #endif /* no HAVE_GETPAGESIZE */
20753
20754 int
20755 main ()
20756 {
20757   char *data, *data2, *data3;
20758   int i, pagesize;
20759   int fd;
20760
20761   pagesize = getpagesize ();
20762
20763   /* First, make a file with some known garbage in it. */
20764   data = (char *) malloc (pagesize);
20765   if (!data)
20766     return 1;
20767   for (i = 0; i < pagesize; ++i)
20768     *(data + i) = rand ();
20769   umask (0);
20770   fd = creat ("conftest.mmap", 0600);
20771   if (fd < 0)
20772     return 1;
20773   if (write (fd, data, pagesize) != pagesize)
20774     return 1;
20775   close (fd);
20776
20777   /* Next, try to mmap the file at a fixed address which already has
20778      something else allocated at it.  If we can, also make sure that
20779      we see the same garbage.  */
20780   fd = open ("conftest.mmap", O_RDWR);
20781   if (fd < 0)
20782     return 1;
20783   data2 = (char *) malloc (2 * pagesize);
20784   if (!data2)
20785     return 1;
20786   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20787   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20788                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20789     return 1;
20790   for (i = 0; i < pagesize; ++i)
20791     if (*(data + i) != *(data2 + i))
20792       return 1;
20793
20794   /* Finally, make sure that changes to the mapped area do not
20795      percolate back to the file as seen by read().  (This is a bug on
20796      some variants of i386 svr4.0.)  */
20797   for (i = 0; i < pagesize; ++i)
20798     *(data2 + i) = *(data2 + i) + 1;
20799   data3 = (char *) malloc (pagesize);
20800   if (!data3)
20801     return 1;
20802   if (read (fd, data3, pagesize) != pagesize)
20803     return 1;
20804   for (i = 0; i < pagesize; ++i)
20805     if (*(data + i) != *(data3 + i))
20806       return 1;
20807   close (fd);
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest$ac_exeext
20812 if { (ac_try="$ac_link"
20813 case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818   (eval "$ac_link") 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20822   { (case "(($ac_try" in
20823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824   *) ac_try_echo=$ac_try;;
20825 esac
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827   (eval "$ac_try") 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); }; }; then
20831   ac_cv_func_mmap_fixed_mapped=yes
20832 else
20833   echo "$as_me: program exited with status $ac_status" >&5
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 ( exit $ac_status )
20838 ac_cv_func_mmap_fixed_mapped=no
20839 fi
20840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20841 fi
20842
20843
20844 fi
20845 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20846 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20847 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20848
20849 cat >>confdefs.h <<\_ACEOF
20850 #define HAVE_MMAP 1
20851 _ACEOF
20852
20853 fi
20854 rm -f conftest.mmap
20855
20856   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20857 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20858 if test "${ac_cv_func_mmap_file+set}" = set; then
20859   echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861    ac_ext=c
20862 ac_cpp='$CPP $CPPFLAGS'
20863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20866
20867   if test "$cross_compiling" = yes; then
20868   ac_cv_func_mmap_file=no
20869 else
20870   cat >conftest.$ac_ext <<_ACEOF
20871
20872     /* confdefs.h.  */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h.  */
20877
20878 #include <sys/types.h>
20879 #include <sys/mman.h>
20880 #include <fcntl.h>
20881
20882 int
20883 main ()
20884 {
20885
20886   int fd;
20887   fd = creat ("foo",0777);
20888   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20889   unlink ("foo");
20890   return (fd != (int) MAP_FAILED);
20891   ;
20892   return 0;
20893 }
20894 _ACEOF
20895 rm -f conftest$ac_exeext
20896 if { (ac_try="$ac_link"
20897 case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_link") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20906   { (case "(($ac_try" in
20907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908   *) ac_try_echo=$ac_try;;
20909 esac
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911   (eval "$ac_try") 2>&5
20912   ac_status=$?
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); }; }; then
20915   ac_cv_func_mmap_file=yes
20916 else
20917   echo "$as_me: program exited with status $ac_status" >&5
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921 ( exit $ac_status )
20922 ac_cv_func_mmap_file=no
20923 fi
20924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20925 fi
20926
20927
20928   ac_ext=c
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20933
20934
20935 fi
20936 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20937 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20938 if test "$ac_cv_func_mmap_file" = yes; then
20939
20940 cat >>confdefs.h <<\_ACEOF
20941 #define HAVE_MMAP_FILE
20942 _ACEOF
20943
20944    MMAP_FILE=yes
20945
20946 fi
20947
20948   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20949 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20950 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20951   echo $ECHO_N "(cached) $ECHO_C" >&6
20952 else
20953   if test "$llvm_cv_os_type" = "Interix" ; then
20954    ac_cv_need_dev_zero_for_mmap=yes
20955  else
20956    ac_cv_need_dev_zero_for_mmap=no
20957  fi
20958
20959 fi
20960 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20961 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20962 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20963
20964 cat >>confdefs.h <<\_ACEOF
20965 #define NEED_DEV_ZERO_FOR_MMAP 1
20966 _ACEOF
20967
20968 fi
20969
20970   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20971   then
20972     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20973 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20974   fi
20975   if test "$ac_cv_func_mmap_file" = "no"
20976   then
20977     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20978 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20979   fi
20980 fi
20981
20982 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20983 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20984 ac_ext=cpp
20985 ac_cpp='$CXXCPP $CPPFLAGS'
20986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20989
20990 cat >conftest.$ac_ext <<_ACEOF
20991
20992   /* confdefs.h.  */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h.  */
20997
20998     int main() {
20999       volatile unsigned long val = 1;
21000       __sync_synchronize();
21001       __sync_val_compare_and_swap(&val, 1, 0);
21002       __sync_add_and_fetch(&val, 1);
21003       __sync_sub_and_fetch(&val, 1);
21004       return 0;
21005     }
21006
21007
21008 _ACEOF
21009 rm -f conftest.$ac_objext conftest$ac_exeext
21010 if { (ac_try="$ac_link"
21011 case "(($ac_try" in
21012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013   *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016   (eval "$ac_link") 2>conftest.er1
21017   ac_status=$?
21018   grep -v '^ *+' conftest.er1 >conftest.err
21019   rm -f conftest.er1
21020   cat conftest.err >&5
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21024   { (case "(($ac_try" in
21025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026   *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029   (eval "$ac_try") 2>&5
21030   ac_status=$?
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); }; } &&
21033          { ac_try='test -s conftest$ac_exeext'
21034   { (case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_try") 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; }; then
21043
21044   { echo "$as_me:$LINENO: result: yes" >&5
21045 echo "${ECHO_T}yes" >&6; }
21046
21047 cat >>confdefs.h <<\_ACEOF
21048 #define LLVM_HAS_ATOMICS 1
21049 _ACEOF
21050
21051
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056
21057   { echo "$as_me:$LINENO: result: no" >&5
21058 echo "${ECHO_T}no" >&6; }
21059
21060 cat >>confdefs.h <<\_ACEOF
21061 #define LLVM_HAS_ATOMICS 0
21062 _ACEOF
21063
21064   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21065 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21066
21067 fi
21068
21069 rm -f core conftest.err conftest.$ac_objext \
21070       conftest$ac_exeext conftest.$ac_ext
21071 ac_ext=c
21072 ac_cpp='$CPP $CPPFLAGS'
21073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21076
21077
21078
21079 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21080   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21081 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21082 if test "${llvm_cv_linux_mixed+set}" = set; then
21083   echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21085    ac_ext=c
21086 ac_cpp='$CPP $CPPFLAGS'
21087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21090
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #ifndef __x86_64__
21098        error: Not x86-64 even if uname says so!
21099       #endif
21100
21101 int
21102 main ()
21103 {
21104
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_compile") 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } &&
21123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21124   { (case "(($ac_try" in
21125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126   *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129   (eval "$ac_try") 2>&5
21130   ac_status=$?
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); }; } &&
21133          { ac_try='test -s conftest.$ac_objext'
21134   { (case "(($ac_try" in
21135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136   *) ac_try_echo=$ac_try;;
21137 esac
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139   (eval "$ac_try") 2>&5
21140   ac_status=$?
21141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142   (exit $ac_status); }; }; then
21143   llvm_cv_linux_mixed=no
21144 else
21145   echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148         llvm_cv_linux_mixed=yes
21149 fi
21150
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152   ac_ext=c
21153 ac_cpp='$CPP $CPPFLAGS'
21154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21157
21158
21159 fi
21160 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21161 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21162
21163   if test "$llvm_cv_linux_mixed" = "yes"; then
21164     llvm_cv_target_arch="x86"
21165     ARCH="x86"
21166   fi
21167 fi
21168
21169
21170 for ac_func in __dso_handle
21171 do
21172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21176   echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178   cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21186 #define $ac_func innocuous_$ac_func
21187
21188 /* System header to define __stub macros and hopefully few prototypes,
21189     which can conflict with char $ac_func (); below.
21190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21191     <limits.h> exists even on freestanding compilers.  */
21192
21193 #ifdef __STDC__
21194 # include <limits.h>
21195 #else
21196 # include <assert.h>
21197 #endif
21198
21199 #undef $ac_func
21200
21201 /* Override any GCC internal prototype to avoid an error.
21202    Use char because int might match the return type of a GCC
21203    builtin and then its argument prototype would still apply.  */
21204 #ifdef __cplusplus
21205 extern "C"
21206 #endif
21207 char $ac_func ();
21208 /* The GNU C library defines this for functions which it implements
21209     to always fail with ENOSYS.  Some functions are actually named
21210     something starting with __ and the normal name is an alias.  */
21211 #if defined __stub_$ac_func || defined __stub___$ac_func
21212 choke me
21213 #endif
21214
21215 int
21216 main ()
21217 {
21218 return $ac_func ();
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (ac_try="$ac_link"
21225 case "(($ac_try" in
21226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227   *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230   (eval "$ac_link") 2>conftest.er1
21231   ac_status=$?
21232   grep -v '^ *+' conftest.er1 >conftest.err
21233   rm -f conftest.er1
21234   cat conftest.err >&5
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } &&
21237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21238   { (case "(($ac_try" in
21239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240   *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243   (eval "$ac_try") 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); }; } &&
21247          { ac_try='test -s conftest$ac_exeext'
21248   { (case "(($ac_try" in
21249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250   *) ac_try_echo=$ac_try;;
21251 esac
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253   (eval "$ac_try") 2>&5
21254   ac_status=$?
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); }; }; then
21257   eval "$as_ac_var=yes"
21258 else
21259   echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262         eval "$as_ac_var=no"
21263 fi
21264
21265 rm -f core conftest.err conftest.$ac_objext \
21266       conftest$ac_exeext conftest.$ac_ext
21267 fi
21268 ac_res=`eval echo '${'$as_ac_var'}'`
21269                { echo "$as_me:$LINENO: result: $ac_res" >&5
21270 echo "${ECHO_T}$ac_res" >&6; }
21271 if test `eval echo '${'$as_ac_var'}'` = yes; then
21272   cat >>confdefs.h <<_ACEOF
21273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21274 _ACEOF
21275
21276 fi
21277 done
21278
21279
21280 SHLIBEXT=$libltdl_cv_shlibext
21281
21282
21283 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21284
21285
21286 if test "${prefix}" = "NONE" ; then
21287   prefix="/usr/local"
21288 fi
21289 eval LLVM_PREFIX="${prefix}";
21290 eval LLVM_BINDIR="${prefix}/bin";
21291 eval LLVM_LIBDIR="${prefix}/lib";
21292 eval LLVM_DATADIR="${prefix}/share/llvm";
21293 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21294 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21295 eval LLVM_INCLUDEDIR="${prefix}/include";
21296 eval LLVM_INFODIR="${prefix}/info";
21297 eval LLVM_MANDIR="${prefix}/man";
21298 LLVM_CONFIGTIME=`date`
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21311   LLVM_CONFIGTIME="(timestamp not enabled)"
21312 fi
21313
21314
21315 cat >>confdefs.h <<_ACEOF
21316 #define LLVM_PREFIX "$LLVM_PREFIX"
21317 _ACEOF
21318
21319
21320 cat >>confdefs.h <<_ACEOF
21321 #define LLVM_BINDIR "$LLVM_BINDIR"
21322 _ACEOF
21323
21324
21325 cat >>confdefs.h <<_ACEOF
21326 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21327 _ACEOF
21328
21329
21330 cat >>confdefs.h <<_ACEOF
21331 #define LLVM_DATADIR "$LLVM_DATADIR"
21332 _ACEOF
21333
21334
21335 cat >>confdefs.h <<_ACEOF
21336 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21337 _ACEOF
21338
21339
21340 cat >>confdefs.h <<_ACEOF
21341 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21342 _ACEOF
21343
21344
21345 cat >>confdefs.h <<_ACEOF
21346 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21347 _ACEOF
21348
21349
21350 cat >>confdefs.h <<_ACEOF
21351 #define LLVM_INFODIR "$LLVM_INFODIR"
21352 _ACEOF
21353
21354
21355 cat >>confdefs.h <<_ACEOF
21356 #define LLVM_MANDIR "$LLVM_MANDIR"
21357 _ACEOF
21358
21359
21360 cat >>confdefs.h <<_ACEOF
21361 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21362 _ACEOF
21363
21364
21365 cat >>confdefs.h <<_ACEOF
21366 #define LLVM_HOSTTRIPLE "$host"
21367 _ACEOF
21368
21369
21370 cat >>confdefs.h <<_ACEOF
21371 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21372 _ACEOF
21373
21374
21375 if test "$BINDINGS_TO_BUILD" = auto ; then
21376   BINDINGS_TO_BUILD=""
21377   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21378     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21379   fi
21380 fi
21381 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21382
21383
21384 ALL_BINDINGS=ocaml
21385
21386
21387 binding_prereqs_failed=0
21388 for a_binding in $BINDINGS_TO_BUILD ; do
21389   case "$a_binding" in
21390   ocaml)
21391     if test "x$OCAMLC" = x ; then
21392       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21393 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21394       binding_prereqs_failed=1
21395     fi
21396     if test "x$OCAMLDEP" = x ; then
21397       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21398 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21399       binding_prereqs_failed=1
21400     fi
21401     if test "x$OCAMLOPT" = x ; then
21402       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21403 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21404           fi
21405     if test "x$with_ocaml_libdir" != xauto ; then
21406       OCAML_LIBDIR=$with_ocaml_libdir
21407
21408     else
21409       ocaml_stdlib="`"$OCAMLC" -where`"
21410       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21411       then
21412         # ocaml stdlib is beneath our prefix; use stdlib
21413         OCAML_LIBDIR=$ocaml_stdlib
21414
21415       else
21416         # ocaml stdlib is outside our prefix; use libdir/ocaml
21417         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21418
21419       fi
21420     fi
21421     ;;
21422   esac
21423 done
21424 if test "$binding_prereqs_failed" = 1 ; then
21425   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21426 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21427    { (exit 1); exit 1; }; }
21428 fi
21429
21430 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21431 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21432 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21433   echo $ECHO_N "(cached) $ECHO_C" >&6
21434 else
21435    ac_ext=cpp
21436 ac_cpp='$CXXCPP $CPPFLAGS'
21437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21440
21441   oldcxxflags="$CXXFLAGS"
21442   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21443   cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21450 int
21451 main ()
21452 {
21453 X<int>().f();
21454   ;
21455   return 0;
21456 }
21457 _ACEOF
21458 rm -f conftest.$ac_objext
21459 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21466   ac_status=$?
21467   grep -v '^ *+' conftest.er1 >conftest.err
21468   rm -f conftest.er1
21469   cat conftest.err >&5
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); } &&
21472          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21473   { (case "(($ac_try" in
21474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475   *) ac_try_echo=$ac_try;;
21476 esac
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478   (eval "$ac_try") 2>&5
21479   ac_status=$?
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); }; } &&
21482          { ac_try='test -s conftest.$ac_objext'
21483   { (case "(($ac_try" in
21484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485   *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488   (eval "$ac_try") 2>&5
21489   ac_status=$?
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); }; }; then
21492   llvm_cv_cxx_visibility_inlines_hidden=yes
21493 else
21494   echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21496
21497         llvm_cv_cxx_visibility_inlines_hidden=no
21498 fi
21499
21500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21501   CXXFLAGS="$oldcxxflags"
21502   ac_ext=c
21503 ac_cpp='$CPP $CPPFLAGS'
21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21507
21508
21509 fi
21510 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21511 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21512 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21513   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21514
21515 else
21516   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21517
21518 fi
21519
21520
21521 if test "$llvm_cv_link_use_r" = "yes" ; then
21522   RPATH="-Wl,-R"
21523 else
21524   RPATH="-Wl,-rpath"
21525 fi
21526
21527
21528 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21529   RDYNAMIC="-Wl,-export-dynamic"
21530 else
21531   RDYNAMIC=""
21532 fi
21533
21534
21535
21536 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21537
21538
21539
21540
21541
21542
21543 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21544
21545 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21546
21547 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21548
21549 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21550
21551 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21552
21553
21554 ac_config_files="$ac_config_files Makefile.config"
21555
21556
21557 ac_config_files="$ac_config_files llvm.spec"
21558
21559
21560 ac_config_files="$ac_config_files docs/doxygen.cfg"
21561
21562
21563 if test "${clang_src_root}" = ""; then
21564   clang_src_root="$srcdir/tools/clang"
21565 fi
21566 if test -f ${clang_src_root}/README.txt; then
21567     configh="include/clang/Config/config.h"
21568   doxy="docs/doxygen.cfg"
21569   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21570
21571   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21572
21573 fi
21574
21575 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21576
21577
21578 test "x$program_prefix" = "xNONE" && program_prefix=""
21579
21580
21581
21582 ac_config_commands="$ac_config_commands setup"
21583
21584 ac_config_commands="$ac_config_commands Makefile"
21585
21586
21587 ac_config_commands="$ac_config_commands Makefile.common"
21588
21589
21590 ac_config_commands="$ac_config_commands examples/Makefile"
21591
21592
21593 ac_config_commands="$ac_config_commands lib/Makefile"
21594
21595
21596 ac_config_commands="$ac_config_commands runtime/Makefile"
21597
21598
21599 ac_config_commands="$ac_config_commands test/Makefile"
21600
21601
21602 ac_config_commands="$ac_config_commands test/Makefile.tests"
21603
21604
21605 ac_config_commands="$ac_config_commands unittests/Makefile"
21606
21607
21608 ac_config_commands="$ac_config_commands tools/Makefile"
21609
21610
21611 ac_config_commands="$ac_config_commands utils/Makefile"
21612
21613
21614 ac_config_commands="$ac_config_commands projects/Makefile"
21615
21616
21617 ac_config_commands="$ac_config_commands bindings/Makefile"
21618
21619
21620 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21621
21622
21623
21624 cat >confcache <<\_ACEOF
21625 # This file is a shell script that caches the results of configure
21626 # tests run on this system so they can be shared between configure
21627 # scripts and configure runs, see configure's option --config-cache.
21628 # It is not useful on other systems.  If it contains results you don't
21629 # want to keep, you may remove or edit it.
21630 #
21631 # config.status only pays attention to the cache file if you give it
21632 # the --recheck option to rerun configure.
21633 #
21634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21636 # following values.
21637
21638 _ACEOF
21639
21640 # The following way of writing the cache mishandles newlines in values,
21641 # but we know of no workaround that is simple, portable, and efficient.
21642 # So, we kill variables containing newlines.
21643 # Ultrix sh set writes to stderr and can't be redirected directly,
21644 # and sets the high bit in the cache file unless we assign to the vars.
21645 (
21646   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21647     eval ac_val=\$$ac_var
21648     case $ac_val in #(
21649     *${as_nl}*)
21650       case $ac_var in #(
21651       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21652 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21653       esac
21654       case $ac_var in #(
21655       _ | IFS | as_nl) ;; #(
21656       *) $as_unset $ac_var ;;
21657       esac ;;
21658     esac
21659   done
21660
21661   (set) 2>&1 |
21662     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21663     *${as_nl}ac_space=\ *)
21664       # `set' does not quote correctly, so add quotes (double-quote
21665       # substitution turns \\\\ into \\, and sed turns \\ into \).
21666       sed -n \
21667         "s/'/'\\\\''/g;
21668           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21669       ;; #(
21670     *)
21671       # `set' quotes correctly as required by POSIX, so do not add quotes.
21672       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21673       ;;
21674     esac |
21675     sort
21676 ) |
21677   sed '
21678      /^ac_cv_env_/b end
21679      t clear
21680      :clear
21681      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21682      t end
21683      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21684      :end' >>confcache
21685 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21686   if test -w "$cache_file"; then
21687     test "x$cache_file" != "x/dev/null" &&
21688       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21689 echo "$as_me: updating cache $cache_file" >&6;}
21690     cat confcache >$cache_file
21691   else
21692     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21693 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21694   fi
21695 fi
21696 rm -f confcache
21697
21698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21699 # Let make expand exec_prefix.
21700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21701
21702 DEFS=-DHAVE_CONFIG_H
21703
21704 ac_libobjs=
21705 ac_ltlibobjs=
21706 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21707   # 1. Remove the extension, and $U if already installed.
21708   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21709   ac_i=`echo "$ac_i" | sed "$ac_script"`
21710   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21711   #    will be set to the directory where LIBOBJS objects are built.
21712   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21713   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21714 done
21715 LIBOBJS=$ac_libobjs
21716
21717 LTLIBOBJS=$ac_ltlibobjs
21718
21719
21720 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21721   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21722 Usually this means the macro was only invoked conditionally." >&5
21723 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21724 Usually this means the macro was only invoked conditionally." >&2;}
21725    { (exit 1); exit 1; }; }
21726 fi
21727 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21728   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21729 Usually this means the macro was only invoked conditionally." >&5
21730 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21731 Usually this means the macro was only invoked conditionally." >&2;}
21732    { (exit 1); exit 1; }; }
21733 fi
21734
21735 : ${CONFIG_STATUS=./config.status}
21736 ac_clean_files_save=$ac_clean_files
21737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21738 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21739 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21740 cat >$CONFIG_STATUS <<_ACEOF
21741 #! $SHELL
21742 # Generated by $as_me.
21743 # Run this file to recreate the current configuration.
21744 # Compiler output produced by configure, useful for debugging
21745 # configure, is in config.log if it exists.
21746
21747 debug=false
21748 ac_cs_recheck=false
21749 ac_cs_silent=false
21750 SHELL=\${CONFIG_SHELL-$SHELL}
21751 _ACEOF
21752
21753 cat >>$CONFIG_STATUS <<\_ACEOF
21754 ## --------------------- ##
21755 ## M4sh Initialization.  ##
21756 ## --------------------- ##
21757
21758 # Be Bourne compatible
21759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21760   emulate sh
21761   NULLCMD=:
21762   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21763   # is contrary to our usage.  Disable this feature.
21764   alias -g '${1+"$@"}'='"$@"'
21765   setopt NO_GLOB_SUBST
21766 else
21767   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21768 fi
21769 BIN_SH=xpg4; export BIN_SH # for Tru64
21770 DUALCASE=1; export DUALCASE # for MKS sh
21771
21772
21773 # PATH needs CR
21774 # Avoid depending upon Character Ranges.
21775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21778 as_cr_digits='0123456789'
21779 as_cr_alnum=$as_cr_Letters$as_cr_digits
21780
21781 # The user is always right.
21782 if test "${PATH_SEPARATOR+set}" != set; then
21783   echo "#! /bin/sh" >conf$$.sh
21784   echo  "exit 0"   >>conf$$.sh
21785   chmod +x conf$$.sh
21786   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21787     PATH_SEPARATOR=';'
21788   else
21789     PATH_SEPARATOR=:
21790   fi
21791   rm -f conf$$.sh
21792 fi
21793
21794 # Support unset when possible.
21795 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21796   as_unset=unset
21797 else
21798   as_unset=false
21799 fi
21800
21801
21802 # IFS
21803 # We need space, tab and new line, in precisely that order.  Quoting is
21804 # there to prevent editors from complaining about space-tab.
21805 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21806 # splitting by setting IFS to empty value.)
21807 as_nl='
21808 '
21809 IFS=" ""        $as_nl"
21810
21811 # Find who we are.  Look in the path if we contain no directory separator.
21812 case $0 in
21813   *[\\/]* ) as_myself=$0 ;;
21814   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21815 for as_dir in $PATH
21816 do
21817   IFS=$as_save_IFS
21818   test -z "$as_dir" && as_dir=.
21819   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21820 done
21821 IFS=$as_save_IFS
21822
21823      ;;
21824 esac
21825 # We did not find ourselves, most probably we were run as `sh COMMAND'
21826 # in which case we are not to be found in the path.
21827 if test "x$as_myself" = x; then
21828   as_myself=$0
21829 fi
21830 if test ! -f "$as_myself"; then
21831   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21832   { (exit 1); exit 1; }
21833 fi
21834
21835 # Work around bugs in pre-3.0 UWIN ksh.
21836 for as_var in ENV MAIL MAILPATH
21837 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21838 done
21839 PS1='$ '
21840 PS2='> '
21841 PS4='+ '
21842
21843 # NLS nuisances.
21844 for as_var in \
21845   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21846   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21847   LC_TELEPHONE LC_TIME
21848 do
21849   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21850     eval $as_var=C; export $as_var
21851   else
21852     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21853   fi
21854 done
21855
21856 # Required to use basename.
21857 if expr a : '\(a\)' >/dev/null 2>&1 &&
21858    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21859   as_expr=expr
21860 else
21861   as_expr=false
21862 fi
21863
21864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21865   as_basename=basename
21866 else
21867   as_basename=false
21868 fi
21869
21870
21871 # Name of the executable.
21872 as_me=`$as_basename -- "$0" ||
21873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21874          X"$0" : 'X\(//\)$' \| \
21875          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21876 echo X/"$0" |
21877     sed '/^.*\/\([^/][^/]*\)\/*$/{
21878             s//\1/
21879             q
21880           }
21881           /^X\/\(\/\/\)$/{
21882             s//\1/
21883             q
21884           }
21885           /^X\/\(\/\).*/{
21886             s//\1/
21887             q
21888           }
21889           s/.*/./; q'`
21890
21891 # CDPATH.
21892 $as_unset CDPATH
21893
21894
21895
21896   as_lineno_1=$LINENO
21897   as_lineno_2=$LINENO
21898   test "x$as_lineno_1" != "x$as_lineno_2" &&
21899   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21900
21901   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21902   # uniformly replaced by the line number.  The first 'sed' inserts a
21903   # line-number line after each line using $LINENO; the second 'sed'
21904   # does the real work.  The second script uses 'N' to pair each
21905   # line-number line with the line containing $LINENO, and appends
21906   # trailing '-' during substitution so that $LINENO is not a special
21907   # case at line end.
21908   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21909   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21910   # E. McMahon (1931-1989) for sed's syntax.  :-)
21911   sed -n '
21912     p
21913     /[$]LINENO/=
21914   ' <$as_myself |
21915     sed '
21916       s/[$]LINENO.*/&-/
21917       t lineno
21918       b
21919       :lineno
21920       N
21921       :loop
21922       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21923       t loop
21924       s/-\n.*//
21925     ' >$as_me.lineno &&
21926   chmod +x "$as_me.lineno" ||
21927     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21928    { (exit 1); exit 1; }; }
21929
21930   # Don't try to exec as it changes $[0], causing all sort of problems
21931   # (the dirname of $[0] is not the place where we might find the
21932   # original and so on.  Autoconf is especially sensitive to this).
21933   . "./$as_me.lineno"
21934   # Exit status is that of the last command.
21935   exit
21936 }
21937
21938
21939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21940   as_dirname=dirname
21941 else
21942   as_dirname=false
21943 fi
21944
21945 ECHO_C= ECHO_N= ECHO_T=
21946 case `echo -n x` in
21947 -n*)
21948   case `echo 'x\c'` in
21949   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21950   *)   ECHO_C='\c';;
21951   esac;;
21952 *)
21953   ECHO_N='-n';;
21954 esac
21955
21956 if expr a : '\(a\)' >/dev/null 2>&1 &&
21957    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21958   as_expr=expr
21959 else
21960   as_expr=false
21961 fi
21962
21963 rm -f conf$$ conf$$.exe conf$$.file
21964 if test -d conf$$.dir; then
21965   rm -f conf$$.dir/conf$$.file
21966 else
21967   rm -f conf$$.dir
21968   mkdir conf$$.dir
21969 fi
21970 echo >conf$$.file
21971 if ln -s conf$$.file conf$$ 2>/dev/null; then
21972   as_ln_s='ln -s'
21973   # ... but there are two gotchas:
21974   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21975   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21976   # In both cases, we have to default to `cp -p'.
21977   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21978     as_ln_s='cp -p'
21979 elif ln conf$$.file conf$$ 2>/dev/null; then
21980   as_ln_s=ln
21981 else
21982   as_ln_s='cp -p'
21983 fi
21984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21985 rmdir conf$$.dir 2>/dev/null
21986
21987 if mkdir -p . 2>/dev/null; then
21988   as_mkdir_p=:
21989 else
21990   test -d ./-p && rmdir ./-p
21991   as_mkdir_p=false
21992 fi
21993
21994 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21995 # systems may use methods other than mode bits to determine executability.
21996 cat >conf$$.file <<_ASEOF
21997 #! /bin/sh
21998 exit 0
21999 _ASEOF
22000 chmod +x conf$$.file
22001 if test -x conf$$.file >/dev/null 2>&1; then
22002   as_executable_p="test -x"
22003 else
22004   as_executable_p=:
22005 fi
22006 rm -f conf$$.file
22007
22008 # Sed expression to map a string onto a valid CPP name.
22009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22010
22011 # Sed expression to map a string onto a valid variable name.
22012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22013
22014
22015 exec 6>&1
22016
22017 # Save the log message, to keep $[0] and so on meaningful, and to
22018 # report actual input values of CONFIG_FILES etc. instead of their
22019 # values after options handling.
22020 ac_log="
22021 This file was extended by LLVM $as_me 3.3svn, which was
22022 generated by GNU Autoconf 2.60.  Invocation command line was
22023
22024   CONFIG_FILES    = $CONFIG_FILES
22025   CONFIG_HEADERS  = $CONFIG_HEADERS
22026   CONFIG_LINKS    = $CONFIG_LINKS
22027   CONFIG_COMMANDS = $CONFIG_COMMANDS
22028   $ $0 $@
22029
22030 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22031 "
22032
22033 _ACEOF
22034
22035 cat >>$CONFIG_STATUS <<_ACEOF
22036 # Files that config.status was made for.
22037 config_files="$ac_config_files"
22038 config_headers="$ac_config_headers"
22039 config_commands="$ac_config_commands"
22040
22041 _ACEOF
22042
22043 cat >>$CONFIG_STATUS <<\_ACEOF
22044 ac_cs_usage="\
22045 \`$as_me' instantiates files from templates according to the
22046 current configuration.
22047
22048 Usage: $0 [OPTIONS] [FILE]...
22049
22050   -h, --help       print this help, then exit
22051   -V, --version    print version number, then exit
22052   -q, --quiet      do not print progress messages
22053   -d, --debug      don't remove temporary files
22054       --recheck    update $as_me by reconfiguring in the same conditions
22055   --file=FILE[:TEMPLATE]
22056                    instantiate the configuration file FILE
22057   --header=FILE[:TEMPLATE]
22058                    instantiate the configuration header FILE
22059
22060 Configuration files:
22061 $config_files
22062
22063 Configuration headers:
22064 $config_headers
22065
22066 Configuration commands:
22067 $config_commands
22068
22069 Report bugs to <bug-autoconf@gnu.org>."
22070
22071 _ACEOF
22072 cat >>$CONFIG_STATUS <<_ACEOF
22073 ac_cs_version="\\
22074 LLVM config.status 3.3svn
22075 configured by $0, generated by GNU Autoconf 2.60,
22076   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22077
22078 Copyright (C) 2006 Free Software Foundation, Inc.
22079 This config.status script is free software; the Free Software Foundation
22080 gives unlimited permission to copy, distribute and modify it."
22081
22082 ac_pwd='$ac_pwd'
22083 srcdir='$srcdir'
22084 INSTALL='$INSTALL'
22085 _ACEOF
22086
22087 cat >>$CONFIG_STATUS <<\_ACEOF
22088 # If no file are specified by the user, then we need to provide default
22089 # value.  By we need to know if files were specified by the user.
22090 ac_need_defaults=:
22091 while test $# != 0
22092 do
22093   case $1 in
22094   --*=*)
22095     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22096     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22097     ac_shift=:
22098     ;;
22099   *)
22100     ac_option=$1
22101     ac_optarg=$2
22102     ac_shift=shift
22103     ;;
22104   esac
22105
22106   case $ac_option in
22107   # Handling of the options.
22108   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22109     ac_cs_recheck=: ;;
22110   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22111     echo "$ac_cs_version"; exit ;;
22112   --debug | --debu | --deb | --de | --d | -d )
22113     debug=: ;;
22114   --file | --fil | --fi | --f )
22115     $ac_shift
22116     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22117     ac_need_defaults=false;;
22118   --header | --heade | --head | --hea )
22119     $ac_shift
22120     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22121     ac_need_defaults=false;;
22122   --he | --h)
22123     # Conflict between --help and --header
22124     { echo "$as_me: error: ambiguous option: $1
22125 Try \`$0 --help' for more information." >&2
22126    { (exit 1); exit 1; }; };;
22127   --help | --hel | -h )
22128     echo "$ac_cs_usage"; exit ;;
22129   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22130   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22131     ac_cs_silent=: ;;
22132
22133   # This is an error.
22134   -*) { echo "$as_me: error: unrecognized option: $1
22135 Try \`$0 --help' for more information." >&2
22136    { (exit 1); exit 1; }; } ;;
22137
22138   *) ac_config_targets="$ac_config_targets $1"
22139      ac_need_defaults=false ;;
22140
22141   esac
22142   shift
22143 done
22144
22145 ac_configure_extra_args=
22146
22147 if $ac_cs_silent; then
22148   exec 6>/dev/null
22149   ac_configure_extra_args="$ac_configure_extra_args --silent"
22150 fi
22151
22152 _ACEOF
22153 cat >>$CONFIG_STATUS <<_ACEOF
22154 if \$ac_cs_recheck; then
22155   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22156   CONFIG_SHELL=$SHELL
22157   export CONFIG_SHELL
22158   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22159 fi
22160
22161 _ACEOF
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22163 exec 5>>config.log
22164 {
22165   echo
22166   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22167 ## Running $as_me. ##
22168 _ASBOX
22169   echo "$ac_log"
22170 } >&5
22171
22172 _ACEOF
22173 cat >>$CONFIG_STATUS <<_ACEOF
22174 #
22175 # INIT-COMMANDS
22176 #
22177 llvm_src="${srcdir}"
22178
22179 _ACEOF
22180
22181 cat >>$CONFIG_STATUS <<\_ACEOF
22182
22183 # Handling of arguments.
22184 for ac_config_target in $ac_config_targets
22185 do
22186   case $ac_config_target in
22187     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22188     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22189     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22190     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22191     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22192     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22193     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22194     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22195     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22196     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22197     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22198     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22199     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22200     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22201     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22202     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22203     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22204     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22205     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22206     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22207     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22208     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22209     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22210     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22211     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22212     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22213     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22214
22215   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22216 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22217    { (exit 1); exit 1; }; };;
22218   esac
22219 done
22220
22221
22222 # If the user did not use the arguments to specify the items to instantiate,
22223 # then the envvar interface is used.  Set only those that are not.
22224 # We use the long form for the default assignment because of an extremely
22225 # bizarre bug on SunOS 4.1.3.
22226 if $ac_need_defaults; then
22227   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22228   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22229   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22230 fi
22231
22232 # Have a temporary directory for convenience.  Make it in the build tree
22233 # simply because there is no reason against having it here, and in addition,
22234 # creating and moving files from /tmp can sometimes cause problems.
22235 # Hook for its removal unless debugging.
22236 # Note that there is a small window in which the directory will not be cleaned:
22237 # after its creation but before its name has been assigned to `$tmp'.
22238 $debug ||
22239 {
22240   tmp=
22241   trap 'exit_status=$?
22242   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22243 ' 0
22244   trap '{ (exit 1); exit 1; }' 1 2 13 15
22245 }
22246 # Create a (secure) tmp directory for tmp files.
22247
22248 {
22249   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22250   test -n "$tmp" && test -d "$tmp"
22251 }  ||
22252 {
22253   tmp=./conf$$-$RANDOM
22254   (umask 077 && mkdir "$tmp")
22255 } ||
22256 {
22257    echo "$me: cannot create a temporary directory in ." >&2
22258    { (exit 1); exit 1; }
22259 }
22260
22261 #
22262 # Set up the sed scripts for CONFIG_FILES section.
22263 #
22264
22265 # No need to generate the scripts if there are no CONFIG_FILES.
22266 # This happens for instance when ./config.status config.h
22267 if test -n "$CONFIG_FILES"; then
22268
22269 _ACEOF
22270
22271
22272
22273 ac_delim='%!_!# '
22274 for ac_last_try in false false false false false :; do
22275   cat >conf$$subs.sed <<_ACEOF
22276 SHELL!$SHELL$ac_delim
22277 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22278 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22279 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22280 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22281 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22282 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22283 exec_prefix!$exec_prefix$ac_delim
22284 prefix!$prefix$ac_delim
22285 program_transform_name!$program_transform_name$ac_delim
22286 bindir!$bindir$ac_delim
22287 sbindir!$sbindir$ac_delim
22288 libexecdir!$libexecdir$ac_delim
22289 datarootdir!$datarootdir$ac_delim
22290 datadir!$datadir$ac_delim
22291 sysconfdir!$sysconfdir$ac_delim
22292 sharedstatedir!$sharedstatedir$ac_delim
22293 localstatedir!$localstatedir$ac_delim
22294 includedir!$includedir$ac_delim
22295 oldincludedir!$oldincludedir$ac_delim
22296 docdir!$docdir$ac_delim
22297 infodir!$infodir$ac_delim
22298 htmldir!$htmldir$ac_delim
22299 dvidir!$dvidir$ac_delim
22300 pdfdir!$pdfdir$ac_delim
22301 psdir!$psdir$ac_delim
22302 libdir!$libdir$ac_delim
22303 localedir!$localedir$ac_delim
22304 mandir!$mandir$ac_delim
22305 DEFS!$DEFS$ac_delim
22306 ECHO_C!$ECHO_C$ac_delim
22307 ECHO_N!$ECHO_N$ac_delim
22308 ECHO_T!$ECHO_T$ac_delim
22309 LIBS!$LIBS$ac_delim
22310 build_alias!$build_alias$ac_delim
22311 host_alias!$host_alias$ac_delim
22312 target_alias!$target_alias$ac_delim
22313 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22314 CC!$CC$ac_delim
22315 CFLAGS!$CFLAGS$ac_delim
22316 LDFLAGS!$LDFLAGS$ac_delim
22317 CPPFLAGS!$CPPFLAGS$ac_delim
22318 ac_ct_CC!$ac_ct_CC$ac_delim
22319 EXEEXT!$EXEEXT$ac_delim
22320 OBJEXT!$OBJEXT$ac_delim
22321 CXX!$CXX$ac_delim
22322 CXXFLAGS!$CXXFLAGS$ac_delim
22323 ac_ct_CXX!$ac_ct_CXX$ac_delim
22324 CPP!$CPP$ac_delim
22325 subdirs!$subdirs$ac_delim
22326 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22327 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22328 build!$build$ac_delim
22329 build_cpu!$build_cpu$ac_delim
22330 build_vendor!$build_vendor$ac_delim
22331 build_os!$build_os$ac_delim
22332 host!$host$ac_delim
22333 host_cpu!$host_cpu$ac_delim
22334 host_vendor!$host_vendor$ac_delim
22335 host_os!$host_os$ac_delim
22336 target!$target$ac_delim
22337 target_cpu!$target_cpu$ac_delim
22338 target_vendor!$target_vendor$ac_delim
22339 target_os!$target_os$ac_delim
22340 OS!$OS$ac_delim
22341 HOST_OS!$HOST_OS$ac_delim
22342 TARGET_OS!$TARGET_OS$ac_delim
22343 LINKALL!$LINKALL$ac_delim
22344 NOLINKALL!$NOLINKALL$ac_delim
22345 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22346 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22347 ARCH!$ARCH$ac_delim
22348 HOST_ARCH!$HOST_ARCH$ac_delim
22349 ENDIAN!$ENDIAN$ac_delim
22350 GREP!$GREP$ac_delim
22351 EGREP!$EGREP$ac_delim
22352 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22353 BUILD_CC!$BUILD_CC$ac_delim
22354 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22355 BUILD_CXX!$BUILD_CXX$ac_delim
22356 CVSBUILD!$CVSBUILD$ac_delim
22357 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22358 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22359 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22360 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22361 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22362 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22363 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22364 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22365 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22366 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22367 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22368 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22369 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22370 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22371 JIT!$JIT$ac_delim
22372 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22373 _ACEOF
22374
22375   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22376     break
22377   elif $ac_last_try; then
22378     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22380    { (exit 1); exit 1; }; }
22381   else
22382     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22383   fi
22384 done
22385
22386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22387 if test -n "$ac_eof"; then
22388   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22389   ac_eof=`expr $ac_eof + 1`
22390 fi
22391
22392 cat >>$CONFIG_STATUS <<_ACEOF
22393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22395 _ACEOF
22396 sed '
22397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22398 s/^/s,@/; s/!/@,|#_!!_#|/
22399 :n
22400 t n
22401 s/'"$ac_delim"'$/,g/; t
22402 s/$/\\/; p
22403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22404 ' >>$CONFIG_STATUS <conf$$subs.sed
22405 rm -f conf$$subs.sed
22406 cat >>$CONFIG_STATUS <<_ACEOF
22407 CEOF$ac_eof
22408 _ACEOF
22409
22410
22411 ac_delim='%!_!# '
22412 for ac_last_try in false false false false false :; do
22413   cat >conf$$subs.sed <<_ACEOF
22414 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22415 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22416 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22417 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22418 ENABLE_PIC!$ENABLE_PIC$ac_delim
22419 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22420 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22421 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22422 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22423 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22424 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22425 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22426 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22427 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22428 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22429 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22430 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22431 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22432 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22433 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22434 NM!$NM$ac_delim
22435 ifGNUmake!$ifGNUmake$ac_delim
22436 LN_S!$LN_S$ac_delim
22437 CMP!$CMP$ac_delim
22438 CP!$CP$ac_delim
22439 DATE!$DATE$ac_delim
22440 FIND!$FIND$ac_delim
22441 MKDIR!$MKDIR$ac_delim
22442 MV!$MV$ac_delim
22443 RANLIB!$RANLIB$ac_delim
22444 AR!$AR$ac_delim
22445 RM!$RM$ac_delim
22446 SED!$SED$ac_delim
22447 TAR!$TAR$ac_delim
22448 BINPWD!$BINPWD$ac_delim
22449 GRAPHVIZ!$GRAPHVIZ$ac_delim
22450 DOT!$DOT$ac_delim
22451 FDP!$FDP$ac_delim
22452 NEATO!$NEATO$ac_delim
22453 TWOPI!$TWOPI$ac_delim
22454 CIRCO!$CIRCO$ac_delim
22455 GV!$GV$ac_delim
22456 DOTTY!$DOTTY$ac_delim
22457 XDOT_PY!$XDOT_PY$ac_delim
22458 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22459 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22460 INSTALL_DATA!$INSTALL_DATA$ac_delim
22461 BZIP2!$BZIP2$ac_delim
22462 CAT!$CAT$ac_delim
22463 DOXYGEN!$DOXYGEN$ac_delim
22464 GROFF!$GROFF$ac_delim
22465 GZIPBIN!$GZIPBIN$ac_delim
22466 PDFROFF!$PDFROFF$ac_delim
22467 ZIP!$ZIP$ac_delim
22468 OCAMLC!$OCAMLC$ac_delim
22469 OCAMLOPT!$OCAMLOPT$ac_delim
22470 OCAMLDEP!$OCAMLDEP$ac_delim
22471 OCAMLDOC!$OCAMLDOC$ac_delim
22472 GAS!$GAS$ac_delim
22473 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22474 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22475 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22476 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22477 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22478 LIBADD_DL!$LIBADD_DL$ac_delim
22479 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22480 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22481 NO_NESTED_ANON_TYPES!$NO_NESTED_ANON_TYPES$ac_delim
22482 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22483 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22484 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22485 PYTHON!$PYTHON$ac_delim
22486 USE_UDIS86!$USE_UDIS86$ac_delim
22487 USE_OPROFILE!$USE_OPROFILE$ac_delim
22488 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22489 XML2CONFIG!$XML2CONFIG$ac_delim
22490 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22491 LIBXML2_INC!$LIBXML2_INC$ac_delim
22492 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22493 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22494 MMAP_FILE!$MMAP_FILE$ac_delim
22495 SHLIBEXT!$SHLIBEXT$ac_delim
22496 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22497 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22498 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22499 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22500 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22501 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22502 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22503 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22504 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22505 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22506 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22507 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22508 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22509 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22510 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22511 _ACEOF
22512
22513   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22514     break
22515   elif $ac_last_try; then
22516     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22517 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22518    { (exit 1); exit 1; }; }
22519   else
22520     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22521   fi
22522 done
22523
22524 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22525 if test -n "$ac_eof"; then
22526   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22527   ac_eof=`expr $ac_eof + 1`
22528 fi
22529
22530 cat >>$CONFIG_STATUS <<_ACEOF
22531 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22533 _ACEOF
22534 sed '
22535 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22536 s/^/s,@/; s/!/@,|#_!!_#|/
22537 :n
22538 t n
22539 s/'"$ac_delim"'$/,g/; t
22540 s/$/\\/; p
22541 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22542 ' >>$CONFIG_STATUS <conf$$subs.sed
22543 rm -f conf$$subs.sed
22544 cat >>$CONFIG_STATUS <<_ACEOF
22545 CEOF$ac_eof
22546 _ACEOF
22547
22548
22549 ac_delim='%!_!# '
22550 for ac_last_try in false false false false false :; do
22551   cat >conf$$subs.sed <<_ACEOF
22552 RPATH!$RPATH$ac_delim
22553 RDYNAMIC!$RDYNAMIC$ac_delim
22554 program_prefix!$program_prefix$ac_delim
22555 LIBOBJS!$LIBOBJS$ac_delim
22556 LTLIBOBJS!$LTLIBOBJS$ac_delim
22557 _ACEOF
22558
22559   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
22560     break
22561   elif $ac_last_try; then
22562     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22563 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22564    { (exit 1); exit 1; }; }
22565   else
22566     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22567   fi
22568 done
22569
22570 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22571 if test -n "$ac_eof"; then
22572   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22573   ac_eof=`expr $ac_eof + 1`
22574 fi
22575
22576 cat >>$CONFIG_STATUS <<_ACEOF
22577 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22579 _ACEOF
22580 sed '
22581 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22582 s/^/s,@/; s/!/@,|#_!!_#|/
22583 :n
22584 t n
22585 s/'"$ac_delim"'$/,g/; t
22586 s/$/\\/; p
22587 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22588 ' >>$CONFIG_STATUS <conf$$subs.sed
22589 rm -f conf$$subs.sed
22590 cat >>$CONFIG_STATUS <<_ACEOF
22591 :end
22592 s/|#_!!_#|//g
22593 CEOF$ac_eof
22594 _ACEOF
22595
22596
22597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22599 # trailing colons and then remove the whole line if VPATH becomes empty
22600 # (actually we leave an empty line to preserve line numbers).
22601 if test "x$srcdir" = x.; then
22602   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22603 s/:*\$(srcdir):*/:/
22604 s/:*\${srcdir}:*/:/
22605 s/:*@srcdir@:*/:/
22606 s/^\([^=]*=[     ]*\):*/\1/
22607 s/:*$//
22608 s/^[^=]*=[       ]*$//
22609 }'
22610 fi
22611
22612 cat >>$CONFIG_STATUS <<\_ACEOF
22613 fi # test -n "$CONFIG_FILES"
22614
22615
22616 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22617 do
22618   case $ac_tag in
22619   :[FHLC]) ac_mode=$ac_tag; continue;;
22620   esac
22621   case $ac_mode$ac_tag in
22622   :[FHL]*:*);;
22623   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22624 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22625    { (exit 1); exit 1; }; };;
22626   :[FH]-) ac_tag=-:-;;
22627   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22628   esac
22629   ac_save_IFS=$IFS
22630   IFS=:
22631   set x $ac_tag
22632   IFS=$ac_save_IFS
22633   shift
22634   ac_file=$1
22635   shift
22636
22637   case $ac_mode in
22638   :L) ac_source=$1;;
22639   :[FH])
22640     ac_file_inputs=
22641     for ac_f
22642     do
22643       case $ac_f in
22644       -) ac_f="$tmp/stdin";;
22645       *) # Look for the file first in the build tree, then in the source tree
22646          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22647          # because $ac_f cannot contain `:'.
22648          test -f "$ac_f" ||
22649            case $ac_f in
22650            [\\/$]*) false;;
22651            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22652            esac ||
22653            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22654 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22655    { (exit 1); exit 1; }; };;
22656       esac
22657       ac_file_inputs="$ac_file_inputs $ac_f"
22658     done
22659
22660     # Let's still pretend it is `configure' which instantiates (i.e., don't
22661     # use $as_me), people would be surprised to read:
22662     #    /* config.h.  Generated by config.status.  */
22663     configure_input="Generated from "`IFS=:
22664           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22665     if test x"$ac_file" != x-; then
22666       configure_input="$ac_file.  $configure_input"
22667       { echo "$as_me:$LINENO: creating $ac_file" >&5
22668 echo "$as_me: creating $ac_file" >&6;}
22669     fi
22670
22671     case $ac_tag in
22672     *:-:* | *:-) cat >"$tmp/stdin";;
22673     esac
22674     ;;
22675   esac
22676
22677   ac_dir=`$as_dirname -- "$ac_file" ||
22678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22679          X"$ac_file" : 'X\(//\)[^/]' \| \
22680          X"$ac_file" : 'X\(//\)$' \| \
22681          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22682 echo X"$ac_file" |
22683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22684             s//\1/
22685             q
22686           }
22687           /^X\(\/\/\)[^/].*/{
22688             s//\1/
22689             q
22690           }
22691           /^X\(\/\/\)$/{
22692             s//\1/
22693             q
22694           }
22695           /^X\(\/\).*/{
22696             s//\1/
22697             q
22698           }
22699           s/.*/./; q'`
22700   { as_dir="$ac_dir"
22701   case $as_dir in #(
22702   -*) as_dir=./$as_dir;;
22703   esac
22704   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22705     as_dirs=
22706     while :; do
22707       case $as_dir in #(
22708       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22709       *) as_qdir=$as_dir;;
22710       esac
22711       as_dirs="'$as_qdir' $as_dirs"
22712       as_dir=`$as_dirname -- "$as_dir" ||
22713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22714          X"$as_dir" : 'X\(//\)[^/]' \| \
22715          X"$as_dir" : 'X\(//\)$' \| \
22716          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22717 echo X"$as_dir" |
22718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22719             s//\1/
22720             q
22721           }
22722           /^X\(\/\/\)[^/].*/{
22723             s//\1/
22724             q
22725           }
22726           /^X\(\/\/\)$/{
22727             s//\1/
22728             q
22729           }
22730           /^X\(\/\).*/{
22731             s//\1/
22732             q
22733           }
22734           s/.*/./; q'`
22735       test -d "$as_dir" && break
22736     done
22737     test -z "$as_dirs" || eval "mkdir $as_dirs"
22738   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22739 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22740    { (exit 1); exit 1; }; }; }
22741   ac_builddir=.
22742
22743 case "$ac_dir" in
22744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22745 *)
22746   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22747   # A ".." for each directory in $ac_dir_suffix.
22748   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22749   case $ac_top_builddir_sub in
22750   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22751   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22752   esac ;;
22753 esac
22754 ac_abs_top_builddir=$ac_pwd
22755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22756 # for backward compatibility:
22757 ac_top_builddir=$ac_top_build_prefix
22758
22759 case $srcdir in
22760   .)  # We are building in place.
22761     ac_srcdir=.
22762     ac_top_srcdir=$ac_top_builddir_sub
22763     ac_abs_top_srcdir=$ac_pwd ;;
22764   [\\/]* | ?:[\\/]* )  # Absolute name.
22765     ac_srcdir=$srcdir$ac_dir_suffix;
22766     ac_top_srcdir=$srcdir
22767     ac_abs_top_srcdir=$srcdir ;;
22768   *) # Relative name.
22769     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22770     ac_top_srcdir=$ac_top_build_prefix$srcdir
22771     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22772 esac
22773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22774
22775
22776   case $ac_mode in
22777   :F)
22778   #
22779   # CONFIG_FILE
22780   #
22781
22782   case $INSTALL in
22783   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22784   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22785   esac
22786 _ACEOF
22787
22788 cat >>$CONFIG_STATUS <<\_ACEOF
22789 # If the template does not know about datarootdir, expand it.
22790 # FIXME: This hack should be removed a few years after 2.60.
22791 ac_datarootdir_hack=; ac_datarootdir_seen=
22792
22793 case `sed -n '/datarootdir/ {
22794   p
22795   q
22796 }
22797 /@datadir@/p
22798 /@docdir@/p
22799 /@infodir@/p
22800 /@localedir@/p
22801 /@mandir@/p
22802 ' $ac_file_inputs` in
22803 *datarootdir*) ac_datarootdir_seen=yes;;
22804 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22805   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22806 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22807 _ACEOF
22808 cat >>$CONFIG_STATUS <<_ACEOF
22809   ac_datarootdir_hack='
22810   s&@datadir@&$datadir&g
22811   s&@docdir@&$docdir&g
22812   s&@infodir@&$infodir&g
22813   s&@localedir@&$localedir&g
22814   s&@mandir@&$mandir&g
22815     s&\\\${datarootdir}&$datarootdir&g' ;;
22816 esac
22817 _ACEOF
22818
22819 # Neutralize VPATH when `$srcdir' = `.'.
22820 # Shell code in configure.ac might set extrasub.
22821 # FIXME: do we really want to maintain this feature?
22822 cat >>$CONFIG_STATUS <<_ACEOF
22823   sed "$ac_vpsub
22824 $extrasub
22825 _ACEOF
22826 cat >>$CONFIG_STATUS <<\_ACEOF
22827 :t
22828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22829 s&@configure_input@&$configure_input&;t t
22830 s&@top_builddir@&$ac_top_builddir_sub&;t t
22831 s&@srcdir@&$ac_srcdir&;t t
22832 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22833 s&@top_srcdir@&$ac_top_srcdir&;t t
22834 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22835 s&@builddir@&$ac_builddir&;t t
22836 s&@abs_builddir@&$ac_abs_builddir&;t t
22837 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22838 s&@INSTALL@&$ac_INSTALL&;t t
22839 $ac_datarootdir_hack
22840 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22841
22842 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22843   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22844   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22845   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22846 which seems to be undefined.  Please make sure it is defined." >&5
22847 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22848 which seems to be undefined.  Please make sure it is defined." >&2;}
22849
22850   rm -f "$tmp/stdin"
22851   case $ac_file in
22852   -) cat "$tmp/out"; rm -f "$tmp/out";;
22853   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22854   esac
22855  ;;
22856   :H)
22857   #
22858   # CONFIG_HEADER
22859   #
22860 _ACEOF
22861
22862 # Transform confdefs.h into a sed script `conftest.defines', that
22863 # substitutes the proper values into config.h.in to produce config.h.
22864 rm -f conftest.defines conftest.tail
22865 # First, append a space to every undef/define line, to ease matching.
22866 echo 's/$/ /' >conftest.defines
22867 # Then, protect against being on the right side of a sed subst, or in
22868 # an unquoted here document, in config.status.  If some macros were
22869 # called several times there might be several #defines for the same
22870 # symbol, which is useless.  But do not sort them, since the last
22871 # AC_DEFINE must be honored.
22872 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22873 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22874 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22875 # PARAMS is the parameter list in the macro definition--in most cases, it's
22876 # just an empty string.
22877 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22878 ac_dB='\\)[      (].*,\\1define\\2'
22879 ac_dC=' '
22880 ac_dD=' ,'
22881
22882 uniq confdefs.h |
22883   sed -n '
22884         t rset
22885         :rset
22886         s/^[     ]*#[    ]*define[       ][      ]*//
22887         t ok
22888         d
22889         :ok
22890         s/[\\&,]/\\&/g
22891         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22892         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22893   ' >>conftest.defines
22894
22895 # Remove the space that was appended to ease matching.
22896 # Then replace #undef with comments.  This is necessary, for
22897 # example, in the case of _POSIX_SOURCE, which is predefined and required
22898 # on some systems where configure will not decide to define it.
22899 # (The regexp can be short, since the line contains either #define or #undef.)
22900 echo 's/ $//
22901 s,^[     #]*u.*,/* & */,' >>conftest.defines
22902
22903 # Break up conftest.defines:
22904 ac_max_sed_lines=50
22905
22906 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22907 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22908 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22909 # et cetera.
22910 ac_in='$ac_file_inputs'
22911 ac_out='"$tmp/out1"'
22912 ac_nxt='"$tmp/out2"'
22913
22914 while :
22915 do
22916   # Write a here document:
22917     cat >>$CONFIG_STATUS <<_ACEOF
22918     # First, check the format of the line:
22919     cat >"\$tmp/defines.sed" <<\\CEOF
22920 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22921 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22922 b
22923 :def
22924 _ACEOF
22925   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22926   echo 'CEOF
22927     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22928   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22929   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22930   grep . conftest.tail >/dev/null || break
22931   rm -f conftest.defines
22932   mv conftest.tail conftest.defines
22933 done
22934 rm -f conftest.defines conftest.tail
22935
22936 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22937 cat >>$CONFIG_STATUS <<\_ACEOF
22938   if test x"$ac_file" != x-; then
22939     echo "/* $configure_input  */" >"$tmp/config.h"
22940     cat "$ac_result" >>"$tmp/config.h"
22941     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22942       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22943 echo "$as_me: $ac_file is unchanged" >&6;}
22944     else
22945       rm -f $ac_file
22946       mv "$tmp/config.h" $ac_file
22947     fi
22948   else
22949     echo "/* $configure_input  */"
22950     cat "$ac_result"
22951   fi
22952   rm -f "$tmp/out12"
22953  ;;
22954
22955   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22956 echo "$as_me: executing $ac_file commands" >&6;}
22957  ;;
22958   esac
22959
22960
22961   case $ac_file$ac_mode in
22962     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22963    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22964     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22965    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22966     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22967    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22968     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22969    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22970     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22971    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22972     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22973    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22974     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22975    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22976     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22977    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22978     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22979    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22980     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22981    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22982     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22983    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22984     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22985    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22986     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22987    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22988
22989   esac
22990 done # for ac_tag
22991
22992
22993 { (exit 0); exit 0; }
22994 _ACEOF
22995 chmod +x $CONFIG_STATUS
22996 ac_clean_files=$ac_clean_files_save
22997
22998
22999 # configure is writing to config.log, and then calls config.status.
23000 # config.status does its own redirection, appending to config.log.
23001 # Unfortunately, on DOS this fails, as config.log is still kept open
23002 # by configure, so config.status won't be able to write to it; its
23003 # output is simply discarded.  So we exec the FD to /dev/null,
23004 # effectively closing config.log, so it can be properly (re)opened and
23005 # appended to by config.status.  When coming back to configure, we
23006 # need to make the FD available again.
23007 if test "$no_create" != yes; then
23008   ac_cs_success=:
23009   ac_config_status_args=
23010   test "$silent" = yes &&
23011     ac_config_status_args="$ac_config_status_args --quiet"
23012   exec 5>/dev/null
23013   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23014   exec 5>>config.log
23015   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23016   # would make configure fail if this is the last instruction.
23017   $ac_cs_success || { (exit 1); exit 1; }
23018 fi
23019
23020 #
23021 # CONFIG_SUBDIRS section.
23022 #
23023 if test "$no_recursion" != yes; then
23024
23025   # Remove --cache-file and --srcdir arguments so they do not pile up.
23026   ac_sub_configure_args=
23027   ac_prev=
23028   eval "set x $ac_configure_args"
23029   shift
23030   for ac_arg
23031   do
23032     if test -n "$ac_prev"; then
23033       ac_prev=
23034       continue
23035     fi
23036     case $ac_arg in
23037     -cache-file | --cache-file | --cache-fil | --cache-fi \
23038     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23039       ac_prev=cache_file ;;
23040     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23041     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23042     | --c=*)
23043       ;;
23044     --config-cache | -C)
23045       ;;
23046     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23047       ac_prev=srcdir ;;
23048     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23049       ;;
23050     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23051       ac_prev=prefix ;;
23052     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23053       ;;
23054     *)
23055       case $ac_arg in
23056       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23057       esac
23058       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23059     esac
23060   done
23061
23062   # Always prepend --prefix to ensure using the same prefix
23063   # in subdir configurations.
23064   ac_arg="--prefix=$prefix"
23065   case $ac_arg in
23066   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23067   esac
23068   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23069
23070   ac_popdir=`pwd`
23071   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23072
23073     # Do not complain, so a configure script can configure whichever
23074     # parts of a large source tree are present.
23075     test -d "$srcdir/$ac_dir" || continue
23076
23077     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23078     echo "$as_me:$LINENO: $ac_msg" >&5
23079     echo "$ac_msg" >&6
23080     { as_dir="$ac_dir"
23081   case $as_dir in #(
23082   -*) as_dir=./$as_dir;;
23083   esac
23084   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23085     as_dirs=
23086     while :; do
23087       case $as_dir in #(
23088       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23089       *) as_qdir=$as_dir;;
23090       esac
23091       as_dirs="'$as_qdir' $as_dirs"
23092       as_dir=`$as_dirname -- "$as_dir" ||
23093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23094          X"$as_dir" : 'X\(//\)[^/]' \| \
23095          X"$as_dir" : 'X\(//\)$' \| \
23096          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23097 echo X"$as_dir" |
23098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23099             s//\1/
23100             q
23101           }
23102           /^X\(\/\/\)[^/].*/{
23103             s//\1/
23104             q
23105           }
23106           /^X\(\/\/\)$/{
23107             s//\1/
23108             q
23109           }
23110           /^X\(\/\).*/{
23111             s//\1/
23112             q
23113           }
23114           s/.*/./; q'`
23115       test -d "$as_dir" && break
23116     done
23117     test -z "$as_dirs" || eval "mkdir $as_dirs"
23118   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23119 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23120    { (exit 1); exit 1; }; }; }
23121     ac_builddir=.
23122
23123 case "$ac_dir" in
23124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23125 *)
23126   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23127   # A ".." for each directory in $ac_dir_suffix.
23128   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23129   case $ac_top_builddir_sub in
23130   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23131   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23132   esac ;;
23133 esac
23134 ac_abs_top_builddir=$ac_pwd
23135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23136 # for backward compatibility:
23137 ac_top_builddir=$ac_top_build_prefix
23138
23139 case $srcdir in
23140   .)  # We are building in place.
23141     ac_srcdir=.
23142     ac_top_srcdir=$ac_top_builddir_sub
23143     ac_abs_top_srcdir=$ac_pwd ;;
23144   [\\/]* | ?:[\\/]* )  # Absolute name.
23145     ac_srcdir=$srcdir$ac_dir_suffix;
23146     ac_top_srcdir=$srcdir
23147     ac_abs_top_srcdir=$srcdir ;;
23148   *) # Relative name.
23149     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23150     ac_top_srcdir=$ac_top_build_prefix$srcdir
23151     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23152 esac
23153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23154
23155
23156     cd "$ac_dir"
23157
23158     # Check for guested configure; otherwise get Cygnus style configure.
23159     if test -f "$ac_srcdir/configure.gnu"; then
23160       ac_sub_configure=$ac_srcdir/configure.gnu
23161     elif test -f "$ac_srcdir/configure"; then
23162       ac_sub_configure=$ac_srcdir/configure
23163     elif test -f "$ac_srcdir/configure.in"; then
23164       # This should be Cygnus configure.
23165       ac_sub_configure=$ac_aux_dir/configure
23166     else
23167       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23168 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23169       ac_sub_configure=
23170     fi
23171
23172     # The recursion is here.
23173     if test -n "$ac_sub_configure"; then
23174       # Make the cache file name correct relative to the subdirectory.
23175       case $cache_file in
23176       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23177       *) # Relative name.
23178         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23179       esac
23180
23181       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23182 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23183       # The eval makes quoting arguments work.
23184       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23185            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23186         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23187 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23188    { (exit 1); exit 1; }; }
23189     fi
23190
23191     cd "$ac_popdir"
23192   done
23193 fi
23194