Regenerate configure to hopefully fix buildbot breakage. Oh how I love autoconf.
[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         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5611         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5612         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5613         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5614         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5615         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5616         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5617         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5618         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5619         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5620         host) case "$llvm_cv_target_arch" in
5621             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5622             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5623             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5624             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5625             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5626             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5627             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5628             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5629             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5630             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5631             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5632             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5633 echo "$as_me: error: Can not set target to build" >&2;}
5634    { (exit 1); exit 1; }; } ;;
5635           esac ;;
5636         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5637 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5638    { (exit 1); exit 1; }; } ;;
5639       esac
5640   done
5641   ;;
5642 esac
5643
5644 # Check whether --enable-experimental-targets was given.
5645 if test "${enable_experimental_targets+set}" = set; then
5646   enableval=$enable_experimental_targets;
5647 else
5648   enableval=disable
5649 fi
5650
5651
5652 if test ${enableval} != "disable"
5653 then
5654   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5655 fi
5656
5657 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5658
5659
5660 for a_target in $TARGETS_TO_BUILD; do
5661   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5662
5663 cat >>confdefs.h <<_ACEOF
5664 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5665 _ACEOF
5666
5667     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5668     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5669     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5670     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5671     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5672       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5673     fi
5674     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5675       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5676     fi
5677
5678 cat >>confdefs.h <<_ACEOF
5679 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5680 _ACEOF
5681
5682
5683 cat >>confdefs.h <<_ACEOF
5684 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5685 _ACEOF
5686
5687
5688 cat >>confdefs.h <<_ACEOF
5689 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5690 _ACEOF
5691
5692
5693 cat >>confdefs.h <<_ACEOF
5694 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5695 _ACEOF
5696
5697     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5698
5699 cat >>confdefs.h <<_ACEOF
5700 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5701 _ACEOF
5702
5703     fi
5704     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5705
5706 cat >>confdefs.h <<_ACEOF
5707 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5708 _ACEOF
5709
5710     fi
5711   fi
5712 done
5713
5714 LLVM_ENUM_TARGETS=""
5715 LLVM_ENUM_ASM_PRINTERS=""
5716 LLVM_ENUM_ASM_PARSERS=""
5717 LLVM_ENUM_DISASSEMBLERS=""
5718 for target_to_build in $TARGETS_TO_BUILD; do
5719   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5720   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5721     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5722   fi
5723   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5724     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5725   fi
5726   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5727     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5728   fi
5729 done
5730
5731
5732
5733
5734
5735
5736 # Check whether --with-optimize-option was given.
5737 if test "${with_optimize_option+set}" = set; then
5738   withval=$with_optimize_option;
5739 else
5740   withval=default
5741 fi
5742
5743 { echo "$as_me:$LINENO: checking optimization flags" >&5
5744 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5745 case "$withval" in
5746   default)
5747     case "$llvm_cv_os_type" in
5748     FreeBSD) optimize_option=-O2 ;;
5749     MingW) optimize_option=-O2 ;;
5750     *)     optimize_option=-O3 ;;
5751     esac ;;
5752   *) optimize_option="$withval" ;;
5753 esac
5754 OPTIMIZE_OPTION=$optimize_option
5755
5756 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5757 echo "${ECHO_T}$optimize_option" >&6; }
5758
5759
5760 # Check whether --with-extra-options was given.
5761 if test "${with_extra_options+set}" = set; then
5762   withval=$with_extra_options;
5763 else
5764   withval=default
5765 fi
5766
5767 case "$withval" in
5768   default) EXTRA_OPTIONS= ;;
5769   *) EXTRA_OPTIONS=$withval ;;
5770 esac
5771 EXTRA_OPTIONS=$EXTRA_OPTIONS
5772
5773
5774
5775 # Check whether --with-extra-ld-options was given.
5776 if test "${with_extra_ld_options+set}" = set; then
5777   withval=$with_extra_ld_options;
5778 else
5779   withval=default
5780 fi
5781
5782 case "$withval" in
5783   default) EXTRA_LD_OPTIONS= ;;
5784   *) EXTRA_LD_OPTIONS=$withval ;;
5785 esac
5786 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5787
5788
5789 # Check whether --enable-bindings was given.
5790 if test "${enable_bindings+set}" = set; then
5791   enableval=$enable_bindings;
5792 else
5793   enableval=default
5794 fi
5795
5796 BINDINGS_TO_BUILD=""
5797 case "$enableval" in
5798   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5799   all ) BINDINGS_TO_BUILD="ocaml" ;;
5800   none | no) BINDINGS_TO_BUILD="" ;;
5801   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5802       case "$a_binding" in
5803         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5804         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5805 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5806    { (exit 1); exit 1; }; } ;;
5807       esac
5808   done
5809   ;;
5810 esac
5811
5812
5813 # Check whether --with-ocaml-libdir was given.
5814 if test "${with_ocaml_libdir+set}" = set; then
5815   withval=$with_ocaml_libdir;
5816 else
5817   withval=auto
5818 fi
5819
5820 case "$withval" in
5821   auto) with_ocaml_libdir="$withval" ;;
5822   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5823   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5824 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5825    { (exit 1); exit 1; }; } ;;
5826 esac
5827
5828
5829 # Check whether --with-clang-srcdir was given.
5830 if test "${with_clang_srcdir+set}" = set; then
5831   withval=$with_clang_srcdir;
5832 else
5833   withval="-"
5834 fi
5835
5836 case "$withval" in
5837   -) clang_src_root="" ;;
5838   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5839   *) clang_src_root="$ac_pwd/$withval" ;;
5840 esac
5841 CLANG_SRC_ROOT=$clang_src_root
5842
5843
5844
5845 # Check whether --with-clang-resource-dir was given.
5846 if test "${with_clang_resource_dir+set}" = set; then
5847   withval=$with_clang_resource_dir;
5848 else
5849   withval=""
5850 fi
5851
5852
5853 cat >>confdefs.h <<_ACEOF
5854 #define CLANG_RESOURCE_DIR "$withval"
5855 _ACEOF
5856
5857
5858
5859 # Check whether --with-c-include-dirs was given.
5860 if test "${with_c_include_dirs+set}" = set; then
5861   withval=$with_c_include_dirs;
5862 else
5863   withval=""
5864 fi
5865
5866
5867 cat >>confdefs.h <<_ACEOF
5868 #define C_INCLUDE_DIRS "$withval"
5869 _ACEOF
5870
5871
5872 # Clang normally uses the system c++ headers and libraries. With this option,
5873 # clang will use the ones provided by a gcc installation instead. This option should
5874 # be passed the same value that was used with --prefix when configuring gcc.
5875
5876 # Check whether --with-gcc-toolchain was given.
5877 if test "${with_gcc_toolchain+set}" = set; then
5878   withval=$with_gcc_toolchain;
5879 else
5880   withval=""
5881 fi
5882
5883
5884 cat >>confdefs.h <<_ACEOF
5885 #define GCC_INSTALL_PREFIX "$withval"
5886 _ACEOF
5887
5888
5889
5890 # Check whether --with-default-sysroot was given.
5891 if test "${with_default_sysroot+set}" = set; then
5892   withval=$with_default_sysroot;
5893 else
5894   withval=""
5895 fi
5896
5897
5898 cat >>confdefs.h <<_ACEOF
5899 #define DEFAULT_SYSROOT "$withval"
5900 _ACEOF
5901
5902
5903
5904 # Check whether --with-binutils-include was given.
5905 if test "${with_binutils_include+set}" = set; then
5906   withval=$with_binutils_include;
5907 else
5908   withval=default
5909 fi
5910
5911 case "$withval" in
5912   default) WITH_BINUTILS_INCDIR=default ;;
5913   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5914   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5915 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5916    { (exit 1); exit 1; }; } ;;
5917 esac
5918 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5919   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5920
5921   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5922      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5923      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5924 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5925    { (exit 1); exit 1; }; };
5926   fi
5927 fi
5928
5929
5930 # Check whether --with-bug-report-url was given.
5931 if test "${with_bug_report_url+set}" = set; then
5932   withval=$with_bug_report_url;
5933 else
5934   withval="http://llvm.org/bugs/"
5935 fi
5936
5937
5938 cat >>confdefs.h <<_ACEOF
5939 #define BUG_REPORT_URL "$withval"
5940 _ACEOF
5941
5942
5943 # Check whether --enable-libffi was given.
5944 if test "${enable_libffi+set}" = set; then
5945   enableval=$enable_libffi; case "$enableval" in
5946     yes) llvm_cv_enable_libffi="yes" ;;
5947     no)  llvm_cv_enable_libffi="no"  ;;
5948     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5949 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5950    { (exit 1); exit 1; }; } ;;
5951   esac
5952 else
5953   llvm_cv_enable_libffi=no
5954 fi
5955
5956
5957
5958 # Check whether --with-internal-prefix was given.
5959 if test "${with_internal_prefix+set}" = set; then
5960   withval=$with_internal_prefix;
5961 else
5962   withval=""
5963 fi
5964
5965 INTERNAL_PREFIX=$withval
5966
5967
5968
5969 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5970 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5971 if test "${lt_cv_path_NM+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   if test -n "$NM"; then
5975   # Let the user override the test.
5976   lt_cv_path_NM="$NM"
5977 else
5978   lt_nm_to_check="${ac_tool_prefix}nm"
5979   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5980     lt_nm_to_check="$lt_nm_to_check nm"
5981   fi
5982   for lt_tmp_nm in $lt_nm_to_check; do
5983     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5984     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5985       IFS="$lt_save_ifs"
5986       test -z "$ac_dir" && ac_dir=.
5987       tmp_nm="$ac_dir/$lt_tmp_nm"
5988       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5989         # Check to see if the nm accepts a BSD-compat flag.
5990         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5991         #   nm: unknown option "B" ignored
5992         # Tru64's nm complains that /dev/null is an invalid object file
5993         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5994         */dev/null* | *'Invalid file or object type'*)
5995           lt_cv_path_NM="$tmp_nm -B"
5996           break
5997           ;;
5998         *)
5999           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6000           */dev/null*)
6001             lt_cv_path_NM="$tmp_nm -p"
6002             break
6003             ;;
6004           *)
6005             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6006             continue # so that we can try to find one that supports BSD flags
6007             ;;
6008           esac
6009           ;;
6010         esac
6011       fi
6012     done
6013     IFS="$lt_save_ifs"
6014   done
6015   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6016 fi
6017 fi
6018 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6019 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6020 NM="$lt_cv_path_NM"
6021
6022
6023
6024 { echo "$as_me:$LINENO: checking for GNU make" >&5
6025 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6026 if test "${llvm_cv_gnu_make_command+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   llvm_cv_gnu_make_command=''
6030  for a in "$MAKE" make gmake gnumake ; do
6031   if test -z "$a" ; then continue ; fi ;
6032   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6033   then
6034    llvm_cv_gnu_make_command=$a ;
6035    break;
6036   fi
6037  done
6038 fi
6039 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6040 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6041  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6042    ifGNUmake='' ;
6043  else
6044    ifGNUmake='#' ;
6045    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6046 echo "${ECHO_T}\"Not found\"" >&6; };
6047  fi
6048
6049
6050 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6052 LN_S=$as_ln_s
6053 if test "$LN_S" = "ln -s"; then
6054   { echo "$as_me:$LINENO: result: yes" >&5
6055 echo "${ECHO_T}yes" >&6; }
6056 else
6057   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6058 echo "${ECHO_T}no, using $LN_S" >&6; }
6059 fi
6060
6061 # Extract the first word of "cmp", so it can be a program name with args.
6062 set dummy cmp; ac_word=$2
6063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6065 if test "${ac_cv_path_CMP+set}" = set; then
6066   echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068   case $CMP in
6069   [\\/]* | ?:[\\/]*)
6070   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6071   ;;
6072   *)
6073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076   IFS=$as_save_IFS
6077   test -z "$as_dir" && as_dir=.
6078   for ac_exec_ext in '' $ac_executable_extensions; do
6079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6080     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082     break 2
6083   fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6089   ;;
6090 esac
6091 fi
6092 CMP=$ac_cv_path_CMP
6093 if test -n "$CMP"; then
6094   { echo "$as_me:$LINENO: result: $CMP" >&5
6095 echo "${ECHO_T}$CMP" >&6; }
6096 else
6097   { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6099 fi
6100
6101
6102 # Extract the first word of "cp", so it can be a program name with args.
6103 set dummy cp; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_path_CP+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   case $CP in
6110   [\\/]* | ?:[\\/]*)
6111   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6112   ;;
6113   *)
6114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119   for ac_exec_ext in '' $ac_executable_extensions; do
6120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6121     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6130   ;;
6131 esac
6132 fi
6133 CP=$ac_cv_path_CP
6134 if test -n "$CP"; then
6135   { echo "$as_me:$LINENO: result: $CP" >&5
6136 echo "${ECHO_T}$CP" >&6; }
6137 else
6138   { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6140 fi
6141
6142
6143 # Extract the first word of "date", so it can be a program name with args.
6144 set dummy date; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_path_DATE+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   case $DATE in
6151   [\\/]* | ?:[\\/]*)
6152   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6153   ;;
6154   *)
6155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6171   ;;
6172 esac
6173 fi
6174 DATE=$ac_cv_path_DATE
6175 if test -n "$DATE"; then
6176   { echo "$as_me:$LINENO: result: $DATE" >&5
6177 echo "${ECHO_T}$DATE" >&6; }
6178 else
6179   { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181 fi
6182
6183
6184 # Extract the first word of "find", so it can be a program name with args.
6185 set dummy find; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_FIND+set}" = set; then
6189   echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191   case $FIND in
6192   [\\/]* | ?:[\\/]*)
6193   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6194   ;;
6195   *)
6196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201   for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208 done
6209 IFS=$as_save_IFS
6210
6211   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6212   ;;
6213 esac
6214 fi
6215 FIND=$ac_cv_path_FIND
6216 if test -n "$FIND"; then
6217   { echo "$as_me:$LINENO: result: $FIND" >&5
6218 echo "${ECHO_T}$FIND" >&6; }
6219 else
6220   { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222 fi
6223
6224
6225 # Extract the first word of "grep", so it can be a program name with args.
6226 set dummy grep; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_path_GREP+set}" = set; then
6230   echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232   case $GREP in
6233   [\\/]* | ?:[\\/]*)
6234   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6235   ;;
6236   *)
6237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242   for ac_exec_ext in '' $ac_executable_extensions; do
6243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6253   ;;
6254 esac
6255 fi
6256 GREP=$ac_cv_path_GREP
6257 if test -n "$GREP"; then
6258   { echo "$as_me:$LINENO: result: $GREP" >&5
6259 echo "${ECHO_T}$GREP" >&6; }
6260 else
6261   { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6263 fi
6264
6265
6266 # Extract the first word of "mkdir", so it can be a program name with args.
6267 set dummy mkdir; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_MKDIR+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   case $MKDIR in
6274   [\\/]* | ?:[\\/]*)
6275   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6276   ;;
6277   *)
6278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281   IFS=$as_save_IFS
6282   test -z "$as_dir" && as_dir=.
6283   for ac_exec_ext in '' $ac_executable_extensions; do
6284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287     break 2
6288   fi
6289 done
6290 done
6291 IFS=$as_save_IFS
6292
6293   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6294   ;;
6295 esac
6296 fi
6297 MKDIR=$ac_cv_path_MKDIR
6298 if test -n "$MKDIR"; then
6299   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6300 echo "${ECHO_T}$MKDIR" >&6; }
6301 else
6302   { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304 fi
6305
6306
6307 # Extract the first word of "mv", so it can be a program name with args.
6308 set dummy mv; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_MV+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   case $MV in
6315   [\\/]* | ?:[\\/]*)
6316   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6317   ;;
6318   *)
6319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324   for ac_exec_ext in '' $ac_executable_extensions; do
6325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6335   ;;
6336 esac
6337 fi
6338 MV=$ac_cv_path_MV
6339 if test -n "$MV"; then
6340   { echo "$as_me:$LINENO: result: $MV" >&5
6341 echo "${ECHO_T}$MV" >&6; }
6342 else
6343   { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6345 fi
6346
6347
6348 if test -n "$ac_tool_prefix"; then
6349   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_prog_RANLIB+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   if test -n "$RANLIB"; then
6357   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364   for ac_exec_ext in '' $ac_executable_extensions; do
6365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 RANLIB=$ac_cv_prog_RANLIB
6377 if test -n "$RANLIB"; then
6378   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6379 echo "${ECHO_T}$RANLIB" >&6; }
6380 else
6381   { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6383 fi
6384
6385
6386 fi
6387 if test -z "$ac_cv_prog_RANLIB"; then
6388   ac_ct_RANLIB=$RANLIB
6389   # Extract the first word of "ranlib", so it can be a program name with args.
6390 set dummy ranlib; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   if test -n "$ac_ct_RANLIB"; then
6397   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404   for ac_exec_ext in '' $ac_executable_extensions; do
6405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406     ac_cv_prog_ac_ct_RANLIB="ranlib"
6407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411 done
6412 IFS=$as_save_IFS
6413
6414 fi
6415 fi
6416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6417 if test -n "$ac_ct_RANLIB"; then
6418   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6419 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6420 else
6421   { echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6; }
6423 fi
6424
6425   if test "x$ac_ct_RANLIB" = x; then
6426     RANLIB=":"
6427   else
6428     case $cross_compiling:$ac_tool_warned in
6429 yes:)
6430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6431 whose name does not start with the host triplet.  If you think this
6432 configuration is useful to you, please write to autoconf@gnu.org." >&5
6433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet.  If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6436 ac_tool_warned=yes ;;
6437 esac
6438     RANLIB=$ac_ct_RANLIB
6439   fi
6440 else
6441   RANLIB="$ac_cv_prog_RANLIB"
6442 fi
6443
6444 if test -n "$ac_tool_prefix"; then
6445   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}ar; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_prog_AR+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   if test -n "$AR"; then
6453   ac_cv_prog_AR="$AR" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460   for ac_exec_ext in '' $ac_executable_extensions; do
6461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6462     ac_cv_prog_AR="${ac_tool_prefix}ar"
6463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 AR=$ac_cv_prog_AR
6473 if test -n "$AR"; then
6474   { echo "$as_me:$LINENO: result: $AR" >&5
6475 echo "${ECHO_T}$AR" >&6; }
6476 else
6477   { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6479 fi
6480
6481
6482 fi
6483 if test -z "$ac_cv_prog_AR"; then
6484   ac_ct_AR=$AR
6485   # Extract the first word of "ar", so it can be a program name with args.
6486 set dummy ar; ac_word=$2
6487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492   if test -n "$ac_ct_AR"; then
6493   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500   for ac_exec_ext in '' $ac_executable_extensions; do
6501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6502     ac_cv_prog_ac_ct_AR="ar"
6503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6513 if test -n "$ac_ct_AR"; then
6514   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6515 echo "${ECHO_T}$ac_ct_AR" >&6; }
6516 else
6517   { echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6; }
6519 fi
6520
6521   if test "x$ac_ct_AR" = x; then
6522     AR="false"
6523   else
6524     case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6527 whose name does not start with the host triplet.  If you think this
6528 configuration is useful to you, please write to autoconf@gnu.org." >&5
6529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6530 whose name does not start with the host triplet.  If you think this
6531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534     AR=$ac_ct_AR
6535   fi
6536 else
6537   AR="$ac_cv_prog_AR"
6538 fi
6539
6540 # Extract the first word of "rm", so it can be a program name with args.
6541 set dummy rm; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_path_RM+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   case $RM in
6548   [\\/]* | ?:[\\/]*)
6549   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6550   ;;
6551   *)
6552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557   for ac_exec_ext in '' $ac_executable_extensions; do
6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6568   ;;
6569 esac
6570 fi
6571 RM=$ac_cv_path_RM
6572 if test -n "$RM"; then
6573   { echo "$as_me:$LINENO: result: $RM" >&5
6574 echo "${ECHO_T}$RM" >&6; }
6575 else
6576   { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6578 fi
6579
6580
6581 # Extract the first word of "sed", so it can be a program name with args.
6582 set dummy sed; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_SED+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   case $SED in
6589   [\\/]* | ?:[\\/]*)
6590   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6591   ;;
6592   *)
6593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6609   ;;
6610 esac
6611 fi
6612 SED=$ac_cv_path_SED
6613 if test -n "$SED"; then
6614   { echo "$as_me:$LINENO: result: $SED" >&5
6615 echo "${ECHO_T}$SED" >&6; }
6616 else
6617   { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6619 fi
6620
6621
6622 # Extract the first word of "tar", so it can be a program name with args.
6623 set dummy tar; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_TAR+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   case $TAR in
6630   [\\/]* | ?:[\\/]*)
6631   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6632   ;;
6633   *)
6634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6650   ;;
6651 esac
6652 fi
6653 TAR=$ac_cv_path_TAR
6654 if test -n "$TAR"; then
6655   { echo "$as_me:$LINENO: result: $TAR" >&5
6656 echo "${ECHO_T}$TAR" >&6; }
6657 else
6658   { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6660 fi
6661
6662
6663 # Extract the first word of "pwd", so it can be a program name with args.
6664 set dummy pwd; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_BINPWD+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   case $BINPWD in
6671   [\\/]* | ?:[\\/]*)
6672   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6673   ;;
6674   *)
6675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680   for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6691   ;;
6692 esac
6693 fi
6694 BINPWD=$ac_cv_path_BINPWD
6695 if test -n "$BINPWD"; then
6696   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6697 echo "${ECHO_T}$BINPWD" >&6; }
6698 else
6699   { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6701 fi
6702
6703
6704
6705 # Extract the first word of "Graphviz", so it can be a program name with args.
6706 set dummy Graphviz; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   case $GRAPHVIZ in
6713   [\\/]* | ?:[\\/]*)
6714   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6715   ;;
6716   *)
6717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722   for ac_exec_ext in '' $ac_executable_extensions; do
6723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726     break 2
6727   fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6733   ;;
6734 esac
6735 fi
6736 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6737 if test -n "$GRAPHVIZ"; then
6738   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6739 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6740 else
6741   { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6743 fi
6744
6745
6746 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6747
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_GRAPHVIZ 1
6750 _ACEOF
6751
6752     if test "$llvm_cv_os_type" = "MingW" ; then
6753     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6754   fi
6755
6756 cat >>confdefs.h <<_ACEOF
6757 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6758 _ACEOF
6759
6760 fi
6761 # Extract the first word of "dot", so it can be a program name with args.
6762 set dummy dot; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_path_DOT+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   case $DOT in
6769   [\\/]* | ?:[\\/]*)
6770   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6771   ;;
6772   *)
6773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778   for ac_exec_ext in '' $ac_executable_extensions; do
6779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6780     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6789   ;;
6790 esac
6791 fi
6792 DOT=$ac_cv_path_DOT
6793 if test -n "$DOT"; then
6794   { echo "$as_me:$LINENO: result: $DOT" >&5
6795 echo "${ECHO_T}$DOT" >&6; }
6796 else
6797   { echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6; }
6799 fi
6800
6801
6802 if test "$DOT" != "echo dot" ; then
6803
6804 cat >>confdefs.h <<\_ACEOF
6805 #define HAVE_DOT 1
6806 _ACEOF
6807
6808     if test "$llvm_cv_os_type" = "MingW" ; then
6809     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6810   fi
6811
6812 cat >>confdefs.h <<_ACEOF
6813 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6814 _ACEOF
6815
6816 fi
6817 # Extract the first word of "fdp", so it can be a program name with args.
6818 set dummy fdp; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_FDP+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   case $FDP in
6825   [\\/]* | ?:[\\/]*)
6826   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6827   ;;
6828   *)
6829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834   for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6845   ;;
6846 esac
6847 fi
6848 FDP=$ac_cv_path_FDP
6849 if test -n "$FDP"; then
6850   { echo "$as_me:$LINENO: result: $FDP" >&5
6851 echo "${ECHO_T}$FDP" >&6; }
6852 else
6853   { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6855 fi
6856
6857
6858 if test "$FDP" != "echo fdp" ; then
6859
6860 cat >>confdefs.h <<\_ACEOF
6861 #define HAVE_FDP 1
6862 _ACEOF
6863
6864     if test "$llvm_cv_os_type" = "MingW" ; then
6865     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6866   fi
6867
6868 cat >>confdefs.h <<_ACEOF
6869 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6870 _ACEOF
6871
6872 fi
6873 # Extract the first word of "neato", so it can be a program name with args.
6874 set dummy neato; ac_word=$2
6875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877 if test "${ac_cv_path_NEATO+set}" = set; then
6878   echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880   case $NEATO in
6881   [\\/]* | ?:[\\/]*)
6882   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6883   ;;
6884   *)
6885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888   IFS=$as_save_IFS
6889   test -z "$as_dir" && as_dir=.
6890   for ac_exec_ext in '' $ac_executable_extensions; do
6891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6892     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894     break 2
6895   fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6901   ;;
6902 esac
6903 fi
6904 NEATO=$ac_cv_path_NEATO
6905 if test -n "$NEATO"; then
6906   { echo "$as_me:$LINENO: result: $NEATO" >&5
6907 echo "${ECHO_T}$NEATO" >&6; }
6908 else
6909   { echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6; }
6911 fi
6912
6913
6914 if test "$NEATO" != "echo neato" ; then
6915
6916 cat >>confdefs.h <<\_ACEOF
6917 #define HAVE_NEATO 1
6918 _ACEOF
6919
6920     if test "$llvm_cv_os_type" = "MingW" ; then
6921     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6922   fi
6923
6924 cat >>confdefs.h <<_ACEOF
6925 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6926 _ACEOF
6927
6928 fi
6929 # Extract the first word of "twopi", so it can be a program name with args.
6930 set dummy twopi; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_TWOPI+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   case $TWOPI in
6937   [\\/]* | ?:[\\/]*)
6938   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6939   ;;
6940   *)
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946   for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6957   ;;
6958 esac
6959 fi
6960 TWOPI=$ac_cv_path_TWOPI
6961 if test -n "$TWOPI"; then
6962   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6963 echo "${ECHO_T}$TWOPI" >&6; }
6964 else
6965   { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6967 fi
6968
6969
6970 if test "$TWOPI" != "echo twopi" ; then
6971
6972 cat >>confdefs.h <<\_ACEOF
6973 #define HAVE_TWOPI 1
6974 _ACEOF
6975
6976     if test "$llvm_cv_os_type" = "MingW" ; then
6977     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6978   fi
6979
6980 cat >>confdefs.h <<_ACEOF
6981 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6982 _ACEOF
6983
6984 fi
6985 # Extract the first word of "circo", so it can be a program name with args.
6986 set dummy circo; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_path_CIRCO+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   case $CIRCO in
6993   [\\/]* | ?:[\\/]*)
6994   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6995   ;;
6996   *)
6997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000   IFS=$as_save_IFS
7001   test -z "$as_dir" && as_dir=.
7002   for ac_exec_ext in '' $ac_executable_extensions; do
7003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7004     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006     break 2
7007   fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7013   ;;
7014 esac
7015 fi
7016 CIRCO=$ac_cv_path_CIRCO
7017 if test -n "$CIRCO"; then
7018   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7019 echo "${ECHO_T}$CIRCO" >&6; }
7020 else
7021   { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7023 fi
7024
7025
7026 if test "$CIRCO" != "echo circo" ; then
7027
7028 cat >>confdefs.h <<\_ACEOF
7029 #define HAVE_CIRCO 1
7030 _ACEOF
7031
7032     if test "$llvm_cv_os_type" = "MingW" ; then
7033     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7034   fi
7035
7036 cat >>confdefs.h <<_ACEOF
7037 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7038 _ACEOF
7039
7040 fi
7041 for ac_prog in gv gsview32
7042 do
7043   # Extract the first word of "$ac_prog", so it can be a program name with args.
7044 set dummy $ac_prog; ac_word=$2
7045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047 if test "${ac_cv_path_GV+set}" = set; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   case $GV in
7051   [\\/]* | ?:[\\/]*)
7052   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7053   ;;
7054   *)
7055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060   for ac_exec_ext in '' $ac_executable_extensions; do
7061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070   ;;
7071 esac
7072 fi
7073 GV=$ac_cv_path_GV
7074 if test -n "$GV"; then
7075   { echo "$as_me:$LINENO: result: $GV" >&5
7076 echo "${ECHO_T}$GV" >&6; }
7077 else
7078   { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7080 fi
7081
7082
7083   test -n "$GV" && break
7084 done
7085 test -n "$GV" || GV="echo gv"
7086
7087 if test "$GV" != "echo gv" ; then
7088
7089 cat >>confdefs.h <<\_ACEOF
7090 #define HAVE_GV 1
7091 _ACEOF
7092
7093     if test "$llvm_cv_os_type" = "MingW" ; then
7094     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7095   fi
7096
7097 cat >>confdefs.h <<_ACEOF
7098 #define LLVM_PATH_GV "$GV${EXEEXT}"
7099 _ACEOF
7100
7101 fi
7102 # Extract the first word of "dotty", so it can be a program name with args.
7103 set dummy dotty; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_DOTTY+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   case $DOTTY in
7110   [\\/]* | ?:[\\/]*)
7111   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7112   ;;
7113   *)
7114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117   IFS=$as_save_IFS
7118   test -z "$as_dir" && as_dir=.
7119   for ac_exec_ext in '' $ac_executable_extensions; do
7120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123     break 2
7124   fi
7125 done
7126 done
7127 IFS=$as_save_IFS
7128
7129   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7130   ;;
7131 esac
7132 fi
7133 DOTTY=$ac_cv_path_DOTTY
7134 if test -n "$DOTTY"; then
7135   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7136 echo "${ECHO_T}$DOTTY" >&6; }
7137 else
7138   { echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6; }
7140 fi
7141
7142
7143 if test "$DOTTY" != "echo dotty" ; then
7144
7145 cat >>confdefs.h <<\_ACEOF
7146 #define HAVE_DOTTY 1
7147 _ACEOF
7148
7149     if test "$llvm_cv_os_type" = "MingW" ; then
7150     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7151   fi
7152
7153 cat >>confdefs.h <<_ACEOF
7154 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7155 _ACEOF
7156
7157 fi
7158 # Extract the first word of "xdot.py", so it can be a program name with args.
7159 set dummy xdot.py; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165   case $XDOT_PY in
7166   [\\/]* | ?:[\\/]*)
7167   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7168   ;;
7169   *)
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175   for ac_exec_ext in '' $ac_executable_extensions; do
7176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7186   ;;
7187 esac
7188 fi
7189 XDOT_PY=$ac_cv_path_XDOT_PY
7190 if test -n "$XDOT_PY"; then
7191   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7192 echo "${ECHO_T}$XDOT_PY" >&6; }
7193 else
7194   { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7196 fi
7197
7198
7199 if test "$XDOT_PY" != "echo xdot.py" ; then
7200
7201 cat >>confdefs.h <<\_ACEOF
7202 #define HAVE_XDOT_PY 1
7203 _ACEOF
7204
7205     if test "$llvm_cv_os_type" = "MingW" ; then
7206     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7207   fi
7208
7209 cat >>confdefs.h <<_ACEOF
7210 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7211 _ACEOF
7212
7213 fi
7214
7215 # Find a good install program.  We prefer a C program (faster),
7216 # so one script is as good as another.  But avoid the broken or
7217 # incompatible versions:
7218 # SysV /etc/install, /usr/sbin/install
7219 # SunOS /usr/etc/install
7220 # IRIX /sbin/install
7221 # AIX /bin/install
7222 # AmigaOS /C/install, which installs bootblocks on floppy discs
7223 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7224 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7225 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7226 # OS/2's system install, which has a completely different semantic
7227 # ./install, which can be erroneously created by make from ./install.sh.
7228 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7229 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7230 if test -z "$INSTALL"; then
7231 if test "${ac_cv_path_install+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   # Account for people who put trailing slashes in PATH elements.
7240 case $as_dir/ in
7241   ./ | .// | /cC/* | \
7242   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7243   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7244   /usr/ucb/* ) ;;
7245   *)
7246     # OSF1 and SCO ODT 3.0 have their own names for install.
7247     # Don't use installbsd from OSF since it installs stuff as root
7248     # by default.
7249     for ac_prog in ginstall scoinst install; do
7250       for ac_exec_ext in '' $ac_executable_extensions; do
7251         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7252           if test $ac_prog = install &&
7253             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7254             # AIX install.  It has an incompatible calling convention.
7255             :
7256           elif test $ac_prog = install &&
7257             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7258             # program-specific install script used by HP pwplus--don't use.
7259             :
7260           else
7261             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7262             break 3
7263           fi
7264         fi
7265       done
7266     done
7267     ;;
7268 esac
7269 done
7270 IFS=$as_save_IFS
7271
7272
7273 fi
7274   if test "${ac_cv_path_install+set}" = set; then
7275     INSTALL=$ac_cv_path_install
7276   else
7277     # As a last resort, use the slow shell script.  Don't cache a
7278     # value for INSTALL within a source directory, because that will
7279     # break other packages using the cache if that directory is
7280     # removed, or if the value is a relative name.
7281     INSTALL=$ac_install_sh
7282   fi
7283 fi
7284 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7285 echo "${ECHO_T}$INSTALL" >&6; }
7286
7287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7288 # It thinks the first close brace ends the variable substitution.
7289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7290
7291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7292
7293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7294
7295 case "$INSTALL" in
7296  [\\/$]* | ?:[\\/]* ) ;;
7297  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7298 esac
7299
7300 # Extract the first word of "bzip2", so it can be a program name with args.
7301 set dummy bzip2; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_BZIP2+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   case $BZIP2 in
7308   [\\/]* | ?:[\\/]*)
7309   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7310   ;;
7311   *)
7312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327   ;;
7328 esac
7329 fi
7330 BZIP2=$ac_cv_path_BZIP2
7331 if test -n "$BZIP2"; then
7332   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7333 echo "${ECHO_T}$BZIP2" >&6; }
7334 else
7335   { echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6; }
7337 fi
7338
7339
7340 # Extract the first word of "cat", so it can be a program name with args.
7341 set dummy cat; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_path_CAT+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347   case $CAT in
7348   [\\/]* | ?:[\\/]*)
7349   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7350   ;;
7351   *)
7352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357   for ac_exec_ext in '' $ac_executable_extensions; do
7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367   ;;
7368 esac
7369 fi
7370 CAT=$ac_cv_path_CAT
7371 if test -n "$CAT"; then
7372   { echo "$as_me:$LINENO: result: $CAT" >&5
7373 echo "${ECHO_T}$CAT" >&6; }
7374 else
7375   { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7377 fi
7378
7379
7380 # Extract the first word of "doxygen", so it can be a program name with args.
7381 set dummy doxygen; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   case $DOXYGEN in
7388   [\\/]* | ?:[\\/]*)
7389   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7390   ;;
7391   *)
7392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397   for ac_exec_ext in '' $ac_executable_extensions; do
7398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7399     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404 done
7405 IFS=$as_save_IFS
7406
7407   ;;
7408 esac
7409 fi
7410 DOXYGEN=$ac_cv_path_DOXYGEN
7411 if test -n "$DOXYGEN"; then
7412   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7413 echo "${ECHO_T}$DOXYGEN" >&6; }
7414 else
7415   { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7417 fi
7418
7419
7420 # Extract the first word of "groff", so it can be a program name with args.
7421 set dummy groff; ac_word=$2
7422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7424 if test "${ac_cv_path_GROFF+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   case $GROFF in
7428   [\\/]* | ?:[\\/]*)
7429   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7430   ;;
7431   *)
7432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435   IFS=$as_save_IFS
7436   test -z "$as_dir" && as_dir=.
7437   for ac_exec_ext in '' $ac_executable_extensions; do
7438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7439     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441     break 2
7442   fi
7443 done
7444 done
7445 IFS=$as_save_IFS
7446
7447   ;;
7448 esac
7449 fi
7450 GROFF=$ac_cv_path_GROFF
7451 if test -n "$GROFF"; then
7452   { echo "$as_me:$LINENO: result: $GROFF" >&5
7453 echo "${ECHO_T}$GROFF" >&6; }
7454 else
7455   { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7457 fi
7458
7459
7460 # Extract the first word of "gzip", so it can be a program name with args.
7461 set dummy gzip; ac_word=$2
7462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7464 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7465   echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467   case $GZIPBIN in
7468   [\\/]* | ?:[\\/]*)
7469   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7470   ;;
7471   *)
7472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477   for ac_exec_ext in '' $ac_executable_extensions; do
7478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7479     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484 done
7485 IFS=$as_save_IFS
7486
7487   ;;
7488 esac
7489 fi
7490 GZIPBIN=$ac_cv_path_GZIPBIN
7491 if test -n "$GZIPBIN"; then
7492   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7493 echo "${ECHO_T}$GZIPBIN" >&6; }
7494 else
7495   { echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6; }
7497 fi
7498
7499
7500 # Extract the first word of "pdfroff", so it can be a program name with args.
7501 set dummy pdfroff; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_path_PDFROFF+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   case $PDFROFF in
7508   [\\/]* | ?:[\\/]*)
7509   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7510   ;;
7511   *)
7512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515   IFS=$as_save_IFS
7516   test -z "$as_dir" && as_dir=.
7517   for ac_exec_ext in '' $ac_executable_extensions; do
7518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521     break 2
7522   fi
7523 done
7524 done
7525 IFS=$as_save_IFS
7526
7527   ;;
7528 esac
7529 fi
7530 PDFROFF=$ac_cv_path_PDFROFF
7531 if test -n "$PDFROFF"; then
7532   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7533 echo "${ECHO_T}$PDFROFF" >&6; }
7534 else
7535   { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7537 fi
7538
7539
7540 # Extract the first word of "zip", so it can be a program name with args.
7541 set dummy zip; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_ZIP+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   case $ZIP in
7548   [\\/]* | ?:[\\/]*)
7549   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7550   ;;
7551   *)
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567   ;;
7568 esac
7569 fi
7570 ZIP=$ac_cv_path_ZIP
7571 if test -n "$ZIP"; then
7572   { echo "$as_me:$LINENO: result: $ZIP" >&5
7573 echo "${ECHO_T}$ZIP" >&6; }
7574 else
7575   { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7577 fi
7578
7579
7580 for ac_prog in ocamlc
7581 do
7582   # Extract the first word of "$ac_prog", so it can be a program name with args.
7583 set dummy $ac_prog; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_OCAMLC+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   case $OCAMLC in
7590   [\\/]* | ?:[\\/]*)
7591   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7592   ;;
7593   *)
7594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599   for ac_exec_ext in '' $ac_executable_extensions; do
7600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609   ;;
7610 esac
7611 fi
7612 OCAMLC=$ac_cv_path_OCAMLC
7613 if test -n "$OCAMLC"; then
7614   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7615 echo "${ECHO_T}$OCAMLC" >&6; }
7616 else
7617   { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7619 fi
7620
7621
7622   test -n "$OCAMLC" && break
7623 done
7624
7625 for ac_prog in ocamlopt
7626 do
7627   # Extract the first word of "$ac_prog", so it can be a program name with args.
7628 set dummy $ac_prog; ac_word=$2
7629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   case $OCAMLOPT in
7635   [\\/]* | ?:[\\/]*)
7636   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7637   ;;
7638   *)
7639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644   for ac_exec_ext in '' $ac_executable_extensions; do
7645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654   ;;
7655 esac
7656 fi
7657 OCAMLOPT=$ac_cv_path_OCAMLOPT
7658 if test -n "$OCAMLOPT"; then
7659   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7660 echo "${ECHO_T}$OCAMLOPT" >&6; }
7661 else
7662   { echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6; }
7664 fi
7665
7666
7667   test -n "$OCAMLOPT" && break
7668 done
7669
7670 for ac_prog in ocamldep
7671 do
7672   # Extract the first word of "$ac_prog", so it can be a program name with args.
7673 set dummy $ac_prog; ac_word=$2
7674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7676 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679   case $OCAMLDEP in
7680   [\\/]* | ?:[\\/]*)
7681   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7682   ;;
7683   *)
7684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687   IFS=$as_save_IFS
7688   test -z "$as_dir" && as_dir=.
7689   for ac_exec_ext in '' $ac_executable_extensions; do
7690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7691     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693     break 2
7694   fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699   ;;
7700 esac
7701 fi
7702 OCAMLDEP=$ac_cv_path_OCAMLDEP
7703 if test -n "$OCAMLDEP"; then
7704   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7705 echo "${ECHO_T}$OCAMLDEP" >&6; }
7706 else
7707   { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7709 fi
7710
7711
7712   test -n "$OCAMLDEP" && break
7713 done
7714
7715 for ac_prog in ocamldoc
7716 do
7717   # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7722   echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724   case $OCAMLDOC in
7725   [\\/]* | ?:[\\/]*)
7726   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7727   ;;
7728   *)
7729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734   for ac_exec_ext in '' $ac_executable_extensions; do
7735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741 done
7742 IFS=$as_save_IFS
7743
7744   ;;
7745 esac
7746 fi
7747 OCAMLDOC=$ac_cv_path_OCAMLDOC
7748 if test -n "$OCAMLDOC"; then
7749   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7750 echo "${ECHO_T}$OCAMLDOC" >&6; }
7751 else
7752   { echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6; }
7754 fi
7755
7756
7757   test -n "$OCAMLDOC" && break
7758 done
7759
7760 for ac_prog in gas as
7761 do
7762   # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_path_GAS+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769   case $GAS in
7770   [\\/]* | ?:[\\/]*)
7771   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7772   ;;
7773   *)
7774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777   IFS=$as_save_IFS
7778   test -z "$as_dir" && as_dir=.
7779   for ac_exec_ext in '' $ac_executable_extensions; do
7780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7781     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783     break 2
7784   fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789   ;;
7790 esac
7791 fi
7792 GAS=$ac_cv_path_GAS
7793 if test -n "$GAS"; then
7794   { echo "$as_me:$LINENO: result: $GAS" >&5
7795 echo "${ECHO_T}$GAS" >&6; }
7796 else
7797   { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7799 fi
7800
7801
7802   test -n "$GAS" && break
7803 done
7804
7805
7806 { echo "$as_me:$LINENO: checking for linker version" >&5
7807 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7808 if test "${llvm_cv_link_version+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811
7812    version_string="$(ld -v 2>&1 | head -1)"
7813
7814    # Check for ld64.
7815    if (echo "$version_string" | grep -q "ld64"); then
7816      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7817    else
7818      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7819    fi
7820
7821 fi
7822 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7823 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7824
7825 cat >>confdefs.h <<_ACEOF
7826 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7827 _ACEOF
7828
7829
7830
7831 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7832 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7833 if test "${llvm_cv_link_use_r+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836    ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842   oldcflags="$CFLAGS"
7843   CFLAGS="$CFLAGS -Wl,-R."
7844   cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h.  */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h.  */
7850
7851 int
7852 main ()
7853 {
7854
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7861 case "(($ac_try" in
7862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863   *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866   (eval "$ac_link") 2>conftest.er1
7867   ac_status=$?
7868   grep -v '^ *+' conftest.er1 >conftest.err
7869   rm -f conftest.er1
7870   cat conftest.err >&5
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); } &&
7873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874   { (case "(($ac_try" in
7875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876   *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879   (eval "$ac_try") 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); }; } &&
7883          { ac_try='test -s conftest$ac_exeext'
7884   { (case "(($ac_try" in
7885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886   *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889   (eval "$ac_try") 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; }; then
7893   llvm_cv_link_use_r=yes
7894 else
7895   echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898         llvm_cv_link_use_r=no
7899 fi
7900
7901 rm -f core conftest.err conftest.$ac_objext \
7902       conftest$ac_exeext conftest.$ac_ext
7903   CFLAGS="$oldcflags"
7904   ac_ext=c
7905 ac_cpp='$CPP $CPPFLAGS'
7906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7909
7910
7911 fi
7912 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7913 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7914 if test "$llvm_cv_link_use_r" = yes ; then
7915
7916 cat >>confdefs.h <<\_ACEOF
7917 #define HAVE_LINK_R 1
7918 _ACEOF
7919
7920   fi
7921
7922
7923 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7924 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7925 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928    ac_ext=c
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934   oldcflags="$CFLAGS"
7935   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7936   cat >conftest.$ac_ext <<_ACEOF
7937 /* confdefs.h.  */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h.  */
7942
7943 int
7944 main ()
7945 {
7946
7947   ;
7948   return 0;
7949 }
7950 _ACEOF
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (ac_try="$ac_link"
7953 case "(($ac_try" in
7954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955   *) ac_try_echo=$ac_try;;
7956 esac
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958   (eval "$ac_link") 2>conftest.er1
7959   ac_status=$?
7960   grep -v '^ *+' conftest.er1 >conftest.err
7961   rm -f conftest.er1
7962   cat conftest.err >&5
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); } &&
7965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7966   { (case "(($ac_try" in
7967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968   *) ac_try_echo=$ac_try;;
7969 esac
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971   (eval "$ac_try") 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; } &&
7975          { ac_try='test -s conftest$ac_exeext'
7976   { (case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_try") 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   llvm_cv_link_use_export_dynamic=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990         llvm_cv_link_use_export_dynamic=no
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext \
7994       conftest$ac_exeext conftest.$ac_ext
7995   CFLAGS="$oldcflags"
7996   ac_ext=c
7997 ac_cpp='$CPP $CPPFLAGS'
7998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8001
8002
8003 fi
8004 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8005 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8006 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8007
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_LINK_EXPORT_DYNAMIC 1
8010 _ACEOF
8011
8012   fi
8013
8014
8015 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8016 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8017 if test "${llvm_cv_link_use_version_script+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020    ac_ext=c
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025
8026   oldcflags="$CFLAGS"
8027
8028   # The following code is from the autoconf manual,
8029   # "11.13: Limitations of Usual Tools".
8030   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8031   # Use mktemp if possible; otherwise fall back on mkdir,
8032   # with $RANDOM to make collisions less likely.
8033   : ${TMPDIR=/tmp}
8034   {
8035     tmp=`
8036       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8037     ` &&
8038     test -n "$tmp" && test -d "$tmp"
8039   } || {
8040     tmp=$TMPDIR/foo$$-$RANDOM
8041     (umask 077 && mkdir "$tmp")
8042   } || exit $?
8043
8044   echo "{" > "$tmp/export.map"
8045   echo "  global: main;" >> "$tmp/export.map"
8046   echo "  local: *;" >> "$tmp/export.map"
8047   echo "};" >> "$tmp/export.map"
8048
8049   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8050   cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056
8057 int
8058 main ()
8059 {
8060
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (ac_try="$ac_link"
8067 case "(($ac_try" in
8068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069   *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072   (eval "$ac_link") 2>conftest.er1
8073   ac_status=$?
8074   grep -v '^ *+' conftest.er1 >conftest.err
8075   rm -f conftest.er1
8076   cat conftest.err >&5
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } &&
8079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8080   { (case "(($ac_try" in
8081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082   *) ac_try_echo=$ac_try;;
8083 esac
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085   (eval "$ac_try") 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; } &&
8089          { ac_try='test -s conftest$ac_exeext'
8090   { (case "(($ac_try" in
8091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092   *) ac_try_echo=$ac_try;;
8093 esac
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095   (eval "$ac_try") 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; }; then
8099   llvm_cv_link_use_version_script=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104         llvm_cv_link_use_version_script=no
8105 fi
8106
8107 rm -f core conftest.err conftest.$ac_objext \
8108       conftest$ac_exeext conftest.$ac_ext
8109   rm "$tmp/export.map"
8110   rmdir "$tmp"
8111   CFLAGS="$oldcflags"
8112   ac_ext=c
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8117
8118
8119 fi
8120 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8121 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8122 if test "$llvm_cv_link_use_version_script" = yes ; then
8123   HAVE_LINK_VERSION_SCRIPT=1
8124
8125   fi
8126
8127
8128
8129
8130 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8131 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8132 if test "${ac_cv_c_const+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h.  */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h.  */
8141
8142 int
8143 main ()
8144 {
8145 /* FIXME: Include the comments suggested by Paul. */
8146 #ifndef __cplusplus
8147   /* Ultrix mips cc rejects this.  */
8148   typedef int charset[2];
8149   const charset x;
8150   /* SunOS 4.1.1 cc rejects this.  */
8151   char const *const *ccp;
8152   char **p;
8153   /* NEC SVR4.0.2 mips cc rejects this.  */
8154   struct point {int x, y;};
8155   static struct point const zero = {0,0};
8156   /* AIX XL C 1.02.0.0 rejects this.
8157      It does not let you subtract one const X* pointer from another in
8158      an arm of an if-expression whose if-part is not a constant
8159      expression */
8160   const char *g = "string";
8161   ccp = &g + (g ? g-g : 0);
8162   /* HPUX 7.0 cc rejects these. */
8163   ++ccp;
8164   p = (char**) ccp;
8165   ccp = (char const *const *) p;
8166   { /* SCO 3.2v4 cc rejects this.  */
8167     char *t;
8168     char const *s = 0 ? (char *) 0 : (char const *) 0;
8169
8170     *t++ = 0;
8171     if (s) return 0;
8172   }
8173   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8174     int x[] = {25, 17};
8175     const int *foo = &x[0];
8176     ++foo;
8177   }
8178   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8179     typedef const int *iptr;
8180     iptr p = 0;
8181     ++p;
8182   }
8183   { /* AIX XL C 1.02.0.0 rejects this saying
8184        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8185     struct s { int j; const int *ap[3]; };
8186     struct s *b; b->j = 5;
8187   }
8188   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8189     const int foo = 10;
8190     if (!foo) return 0;
8191   }
8192   return !x[0] && !zero.x;
8193 #endif
8194
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext
8200 if { (ac_try="$ac_compile"
8201 case "(($ac_try" in
8202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203   *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206   (eval "$ac_compile") 2>conftest.er1
8207   ac_status=$?
8208   grep -v '^ *+' conftest.er1 >conftest.err
8209   rm -f conftest.er1
8210   cat conftest.err >&5
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); } &&
8213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214   { (case "(($ac_try" in
8215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216   *) ac_try_echo=$ac_try;;
8217 esac
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219   (eval "$ac_try") 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; } &&
8223          { ac_try='test -s conftest.$ac_objext'
8224   { (case "(($ac_try" in
8225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226   *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229   (eval "$ac_try") 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; }; then
8233   ac_cv_c_const=yes
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238         ac_cv_c_const=no
8239 fi
8240
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 fi
8243 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8244 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8245 if test $ac_cv_c_const = no; then
8246
8247 cat >>confdefs.h <<\_ACEOF
8248 #define const
8249 _ACEOF
8250
8251 fi
8252
8253
8254
8255
8256
8257
8258 ac_header_dirent=no
8259 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8260   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8261 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8262 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272 #include <sys/types.h>
8273 #include <$ac_hdr>
8274
8275 int
8276 main ()
8277 {
8278 if ((DIR *) 0)
8279 return 0;
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8286 case "(($ac_try" in
8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288   *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291   (eval "$ac_compile") 2>conftest.er1
8292   ac_status=$?
8293   grep -v '^ *+' conftest.er1 >conftest.err
8294   rm -f conftest.er1
8295   cat conftest.err >&5
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299   { (case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_try") 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; } &&
8308          { ac_try='test -s conftest.$ac_objext'
8309   { (case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_try") 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   eval "$as_ac_Header=yes"
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323         eval "$as_ac_Header=no"
8324 fi
8325
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329                { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332   cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8334 _ACEOF
8335
8336 ac_header_dirent=$ac_hdr; break
8337 fi
8338
8339 done
8340 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8341 if test $ac_header_dirent = dirent.h; then
8342   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8344 if test "${ac_cv_search_opendir+set}" = set; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347   ac_func_search_save_LIBS=$LIBS
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h.  */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h.  */
8354
8355 /* Override any GCC internal prototype to avoid an error.
8356    Use char because int might match the return type of a GCC
8357    builtin and then its argument prototype would still apply.  */
8358 #ifdef __cplusplus
8359 extern "C"
8360 #endif
8361 char opendir ();
8362 int
8363 main ()
8364 {
8365 return opendir ();
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 for ac_lib in '' dir; do
8371   if test -z "$ac_lib"; then
8372     ac_res="none required"
8373   else
8374     ac_res=-l$ac_lib
8375     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8376   fi
8377   rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8379 case "(($ac_try" in
8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381   *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384   (eval "$ac_link") 2>conftest.er1
8385   ac_status=$?
8386   grep -v '^ *+' conftest.er1 >conftest.err
8387   rm -f conftest.er1
8388   cat conftest.err >&5
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } &&
8391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392   { (case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_try") 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; } &&
8401          { ac_try='test -s conftest$ac_exeext'
8402   { (case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_try") 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_search_opendir=$ac_res
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext \
8420       conftest$ac_exeext
8421   if test "${ac_cv_search_opendir+set}" = set; then
8422   break
8423 fi
8424 done
8425 if test "${ac_cv_search_opendir+set}" = set; then
8426   :
8427 else
8428   ac_cv_search_opendir=no
8429 fi
8430 rm conftest.$ac_ext
8431 LIBS=$ac_func_search_save_LIBS
8432 fi
8433 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8434 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8435 ac_res=$ac_cv_search_opendir
8436 if test "$ac_res" != no; then
8437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8438
8439 fi
8440
8441 else
8442   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8443 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8444 if test "${ac_cv_search_opendir+set}" = set; then
8445   echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447   ac_func_search_save_LIBS=$LIBS
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454
8455 /* Override any GCC internal prototype to avoid an error.
8456    Use char because int might match the return type of a GCC
8457    builtin and then its argument prototype would still apply.  */
8458 #ifdef __cplusplus
8459 extern "C"
8460 #endif
8461 char opendir ();
8462 int
8463 main ()
8464 {
8465 return opendir ();
8466   ;
8467   return 0;
8468 }
8469 _ACEOF
8470 for ac_lib in '' x; do
8471   if test -z "$ac_lib"; then
8472     ac_res="none required"
8473   else
8474     ac_res=-l$ac_lib
8475     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8476   fi
8477   rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8479 case "(($ac_try" in
8480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481   *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484   (eval "$ac_link") 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492   { (case "(($ac_try" in
8493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494   *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497   (eval "$ac_try") 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; } &&
8501          { ac_try='test -s conftest$ac_exeext'
8502   { (case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_try") 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; }; then
8511   ac_cv_search_opendir=$ac_res
8512 else
8513   echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516
8517 fi
8518
8519 rm -f core conftest.err conftest.$ac_objext \
8520       conftest$ac_exeext
8521   if test "${ac_cv_search_opendir+set}" = set; then
8522   break
8523 fi
8524 done
8525 if test "${ac_cv_search_opendir+set}" = set; then
8526   :
8527 else
8528   ac_cv_search_opendir=no
8529 fi
8530 rm conftest.$ac_ext
8531 LIBS=$ac_func_search_save_LIBS
8532 fi
8533 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8534 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8535 ac_res=$ac_cv_search_opendir
8536 if test "$ac_res" != no; then
8537   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8538
8539 fi
8540
8541 fi
8542
8543
8544 for ac_header in dlfcn.h
8545 do
8546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8548   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551   echo $ECHO_N "(cached) $ECHO_C" >&6
8552 fi
8553 ac_res=`eval echo '${'$as_ac_Header'}'`
8554                { echo "$as_me:$LINENO: result: $ac_res" >&5
8555 echo "${ECHO_T}$ac_res" >&6; }
8556 else
8557   # Is the header compilable?
8558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8560 cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h.  */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h.  */
8566 $ac_includes_default
8567 #include <$ac_header>
8568 _ACEOF
8569 rm -f conftest.$ac_objext
8570 if { (ac_try="$ac_compile"
8571 case "(($ac_try" in
8572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573   *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576   (eval "$ac_compile") 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } &&
8583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8584   { (case "(($ac_try" in
8585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586   *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589   (eval "$ac_try") 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; } &&
8593          { ac_try='test -s conftest.$ac_objext'
8594   { (case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599   (eval "$ac_try") 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; }; then
8603   ac_header_compiler=yes
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608         ac_header_compiler=no
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8613 echo "${ECHO_T}$ac_header_compiler" >&6; }
8614
8615 # Is the header present?
8616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8618 cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h.  */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h.  */
8624 #include <$ac_header>
8625 _ACEOF
8626 if { (ac_try="$ac_cpp conftest.$ac_ext"
8627 case "(($ac_try" in
8628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629   *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } >/dev/null; then
8639   if test -s conftest.err; then
8640     ac_cpp_err=$ac_c_preproc_warn_flag
8641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8642   else
8643     ac_cpp_err=
8644   fi
8645 else
8646   ac_cpp_err=yes
8647 fi
8648 if test -z "$ac_cpp_err"; then
8649   ac_header_preproc=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654   ac_header_preproc=no
8655 fi
8656
8657 rm -f conftest.err conftest.$ac_ext
8658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8659 echo "${ECHO_T}$ac_header_preproc" >&6; }
8660
8661 # So?  What about this header?
8662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8663   yes:no: )
8664     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8668     ac_header_preproc=yes
8669     ;;
8670   no:yes:* )
8671     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8673     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8674 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8675     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8677     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8678 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8681     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8683     ( cat <<\_ASBOX
8684 ## ------------------------------------ ##
8685 ## Report this to http://llvm.org/bugs/ ##
8686 ## ------------------------------------ ##
8687 _ASBOX
8688      ) | sed "s/^/$as_me: WARNING:     /" >&2
8689     ;;
8690 esac
8691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8694   echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696   eval "$as_ac_Header=\$ac_header_preproc"
8697 fi
8698 ac_res=`eval echo '${'$as_ac_Header'}'`
8699                { echo "$as_me:$LINENO: result: $ac_res" >&5
8700 echo "${ECHO_T}$ac_res" >&6; }
8701
8702 fi
8703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8704   cat >>confdefs.h <<_ACEOF
8705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8706 _ACEOF
8707
8708 fi
8709
8710 done
8711
8712 # Check whether --enable-ltdl-install was given.
8713 if test "${enable_ltdl_install+set}" = set; then
8714   enableval=$enable_ltdl_install;
8715 fi
8716
8717
8718  if test x"${enable_ltdl_install-no}" != xno; then
8719   INSTALL_LTDL_TRUE=
8720   INSTALL_LTDL_FALSE='#'
8721 else
8722   INSTALL_LTDL_TRUE='#'
8723   INSTALL_LTDL_FALSE=
8724 fi
8725
8726  if test x"${enable_ltdl_convenience-no}" != xno; then
8727   CONVENIENCE_LTDL_TRUE=
8728   CONVENIENCE_LTDL_FALSE='#'
8729 else
8730   CONVENIENCE_LTDL_TRUE='#'
8731   CONVENIENCE_LTDL_FALSE=
8732 fi
8733
8734
8735 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8736 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8737 library_names_spec=
8738 libname_spec='lib$name'
8739 soname_spec=
8740 shrext_cmds=".so"
8741 postinstall_cmds=
8742 postuninstall_cmds=
8743 finish_cmds=
8744 finish_eval=
8745 shlibpath_var=
8746 shlibpath_overrides_runpath=unknown
8747 version_type=none
8748 dynamic_linker="$host_os ld.so"
8749 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8750 if test "$GCC" = yes; then
8751   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8752   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8753     # if the path contains ";" then we assume it to be the separator
8754     # otherwise default to the standard path separator (i.e. ":") - it is
8755     # assumed that no part of a normal pathname contains ";" but that should
8756     # okay in the real world where ";" in dirpaths is itself problematic.
8757     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8758   else
8759     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8760   fi
8761 else
8762   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8763 fi
8764 need_lib_prefix=unknown
8765 hardcode_into_libs=no
8766
8767 # when you set need_version to no, make sure it does not cause -set_version
8768 # flags to be left without arguments
8769 need_version=unknown
8770
8771 case $host_os in
8772 aix3*)
8773   version_type=linux
8774   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8775   shlibpath_var=LIBPATH
8776
8777   # AIX 3 has no versioning support, so we append a major version to the name.
8778   soname_spec='${libname}${release}${shared_ext}$major'
8779   ;;
8780
8781 aix4* | aix5*)
8782   version_type=linux
8783   need_lib_prefix=no
8784   need_version=no
8785   hardcode_into_libs=yes
8786   if test "$host_cpu" = ia64; then
8787     # AIX 5 supports IA64
8788     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8789     shlibpath_var=LD_LIBRARY_PATH
8790   else
8791     # With GCC up to 2.95.x, collect2 would create an import file
8792     # for dependence libraries.  The import file would start with
8793     # the line `#! .'.  This would cause the generated library to
8794     # depend on `.', always an invalid library.  This was fixed in
8795     # development snapshots of GCC prior to 3.0.
8796     case $host_os in
8797       aix4 | aix4.[01] | aix4.[01].*)
8798       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8799            echo ' yes '
8800            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8801         :
8802       else
8803         can_build_shared=no
8804       fi
8805       ;;
8806     esac
8807     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8808     # soname into executable. Probably we can add versioning support to
8809     # collect2, so additional links can be useful in future.
8810     if test "$aix_use_runtimelinking" = yes; then
8811       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8812       # instead of lib<name>.a to let people know that these are not
8813       # typical AIX shared libraries.
8814       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815     else
8816       # We preserve .a as extension for shared libraries through AIX4.2
8817       # and later when we are not doing run time linking.
8818       library_names_spec='${libname}${release}.a $libname.a'
8819       soname_spec='${libname}${release}${shared_ext}$major'
8820     fi
8821     shlibpath_var=LIBPATH
8822   fi
8823   ;;
8824
8825 amigaos*)
8826   library_names_spec='$libname.ixlibrary $libname.a'
8827   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8828   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'
8829   ;;
8830
8831 beos*)
8832   library_names_spec='${libname}${shared_ext}'
8833   dynamic_linker="$host_os ld.so"
8834   shlibpath_var=LIBRARY_PATH
8835   ;;
8836
8837 bsdi[45]*)
8838   version_type=linux
8839   need_version=no
8840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841   soname_spec='${libname}${release}${shared_ext}$major'
8842   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8843   shlibpath_var=LD_LIBRARY_PATH
8844   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8845   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8846   # the default ld.so.conf also contains /usr/contrib/lib and
8847   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8848   # libtool to hard-code these into programs
8849   ;;
8850
8851 cygwin* | mingw* | pw32*)
8852   version_type=windows
8853   shrext_cmds=".dll"
8854   need_version=no
8855   need_lib_prefix=no
8856
8857   case $GCC,$host_os in
8858   yes,cygwin* | yes,mingw* | yes,pw32*)
8859     library_names_spec='$libname.dll.a'
8860     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8861     postinstall_cmds='base_file=`basename \${file}`~
8862       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8863       dldir=$destdir/`dirname \$dlpath`~
8864       test -d \$dldir || mkdir -p \$dldir~
8865       $install_prog $dir/$dlname \$dldir/$dlname~
8866       chmod a+x \$dldir/$dlname'
8867     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8868       dlpath=$dir/\$dldll~
8869        $rm \$dlpath'
8870     shlibpath_overrides_runpath=yes
8871
8872     case $host_os in
8873     cygwin*)
8874       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8875       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8877       ;;
8878     mingw*)
8879       # MinGW DLLs use traditional 'lib' prefix
8880       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8882       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8883         # It is most probably a Windows format PATH printed by
8884         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8885         # path with ; separators, and with drive letters. We can handle the
8886         # drive letters (cygwin fileutils understands them), so leave them,
8887         # especially as we might pass files found there to a mingw objdump,
8888         # which wouldn't understand a cygwinified path. Ahh.
8889         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8890       else
8891         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8892       fi
8893       ;;
8894     pw32*)
8895       # pw32 DLLs use 'pw' prefix rather than 'lib'
8896       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897       ;;
8898     esac
8899     ;;
8900
8901   *)
8902     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8903     ;;
8904   esac
8905   dynamic_linker='Win32 ld.exe'
8906   # FIXME: first we should search . and the directory the executable is in
8907   shlibpath_var=PATH
8908   ;;
8909
8910 darwin* | rhapsody*)
8911   dynamic_linker="$host_os dyld"
8912   version_type=darwin
8913   need_lib_prefix=no
8914   need_version=no
8915   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8916   soname_spec='${libname}${release}${major}$shared_ext'
8917   shlibpath_overrides_runpath=yes
8918   shlibpath_var=DYLD_LIBRARY_PATH
8919   shrext_cmds='.dylib'
8920   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8921   if test "$GCC" = yes; then
8922     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"`
8923   else
8924     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8925   fi
8926   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8927   ;;
8928
8929 dgux*)
8930   version_type=linux
8931   need_lib_prefix=no
8932   need_version=no
8933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8934   soname_spec='${libname}${release}${shared_ext}$major'
8935   shlibpath_var=LD_LIBRARY_PATH
8936   ;;
8937
8938 freebsd1.*)
8939   dynamic_linker=no
8940   ;;
8941
8942 kfreebsd*-gnu)
8943   version_type=linux
8944   need_lib_prefix=no
8945   need_version=no
8946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8947   soname_spec='${libname}${release}${shared_ext}$major'
8948   shlibpath_var=LD_LIBRARY_PATH
8949   shlibpath_overrides_runpath=no
8950   hardcode_into_libs=yes
8951   dynamic_linker='GNU ld.so'
8952   ;;
8953
8954 freebsd* | dragonfly*)
8955   # DragonFly does not have aout.  When/if they implement a new
8956   # versioning mechanism, adjust this.
8957   if test -x /usr/bin/objformat; then
8958     objformat=`/usr/bin/objformat`
8959   else
8960     case $host_os in
8961     freebsd[123].*) objformat=aout ;;
8962     *) objformat=elf ;;
8963     esac
8964   fi
8965   version_type=freebsd-$objformat
8966   case $version_type in
8967     freebsd-elf*)
8968       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8969       need_version=no
8970       need_lib_prefix=no
8971       ;;
8972     freebsd-*)
8973       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8974       need_version=yes
8975       ;;
8976   esac
8977   shlibpath_var=LD_LIBRARY_PATH
8978   case $host_os in
8979   freebsd2.*)
8980     shlibpath_overrides_runpath=yes
8981     ;;
8982   freebsd3.[01]* | freebsdelf3.[01]*)
8983     shlibpath_overrides_runpath=yes
8984     hardcode_into_libs=yes
8985     ;;
8986   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8987   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8988     shlibpath_overrides_runpath=no
8989     hardcode_into_libs=yes
8990     ;;
8991   freebsd*) # from 4.6 on
8992     shlibpath_overrides_runpath=yes
8993     hardcode_into_libs=yes
8994     ;;
8995   esac
8996   ;;
8997
8998 gnu*)
8999   version_type=linux
9000   need_lib_prefix=no
9001   need_version=no
9002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   shlibpath_var=LD_LIBRARY_PATH
9005   hardcode_into_libs=yes
9006   ;;
9007
9008 hpux9* | hpux10* | hpux11*)
9009   # Give a soname corresponding to the major version so that dld.sl refuses to
9010   # link against other versions.
9011   version_type=sunos
9012   need_lib_prefix=no
9013   need_version=no
9014   case $host_cpu in
9015   ia64*)
9016     shrext_cmds='.so'
9017     hardcode_into_libs=yes
9018     dynamic_linker="$host_os dld.so"
9019     shlibpath_var=LD_LIBRARY_PATH
9020     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022     soname_spec='${libname}${release}${shared_ext}$major'
9023     if test "X$HPUX_IA64_MODE" = X32; then
9024       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9025     else
9026       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9027     fi
9028     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9029     ;;
9030    hppa*64*)
9031      shrext_cmds='.sl'
9032      hardcode_into_libs=yes
9033      dynamic_linker="$host_os dld.sl"
9034      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9035      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9036      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037      soname_spec='${libname}${release}${shared_ext}$major'
9038      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9039      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9040      ;;
9041    *)
9042     shrext_cmds='.sl'
9043     dynamic_linker="$host_os dld.sl"
9044     shlibpath_var=SHLIB_PATH
9045     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047     soname_spec='${libname}${release}${shared_ext}$major'
9048     ;;
9049   esac
9050   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9051   postinstall_cmds='chmod 555 $lib'
9052   ;;
9053
9054 interix3*)
9055   version_type=linux
9056   need_lib_prefix=no
9057   need_version=no
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9061   shlibpath_var=LD_LIBRARY_PATH
9062   shlibpath_overrides_runpath=no
9063   hardcode_into_libs=yes
9064   ;;
9065
9066 irix5* | irix6* | nonstopux*)
9067   case $host_os in
9068     nonstopux*) version_type=nonstopux ;;
9069     *)
9070         if test "$lt_cv_prog_gnu_ld" = yes; then
9071                 version_type=linux
9072         else
9073                 version_type=irix
9074         fi ;;
9075   esac
9076   need_lib_prefix=no
9077   need_version=no
9078   soname_spec='${libname}${release}${shared_ext}$major'
9079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9080   case $host_os in
9081   irix5* | nonstopux*)
9082     libsuff= shlibsuff=
9083     ;;
9084   *)
9085     case $LD in # libtool.m4 will add one of these switches to LD
9086     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9087       libsuff= shlibsuff= libmagic=32-bit;;
9088     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9089       libsuff=32 shlibsuff=N32 libmagic=N32;;
9090     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9091       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9092     *) libsuff= shlibsuff= libmagic=never-match;;
9093     esac
9094     ;;
9095   esac
9096   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9097   shlibpath_overrides_runpath=no
9098   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9099   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9100   hardcode_into_libs=yes
9101   ;;
9102
9103 # No shared lib support for Linux oldld, aout, or coff.
9104 linux*oldld* | linux*aout* | linux*coff*)
9105   dynamic_linker=no
9106   ;;
9107
9108 # This must be Linux ELF.
9109 linux*)
9110   version_type=linux
9111   need_lib_prefix=no
9112   need_version=no
9113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9116   shlibpath_var=LD_LIBRARY_PATH
9117   shlibpath_overrides_runpath=no
9118   # This implies no fast_install, which is unacceptable.
9119   # Some rework will be needed to allow for fast_install
9120   # before this can be enabled.
9121   hardcode_into_libs=yes
9122
9123   # Append ld.so.conf contents to the search path
9124   if test -f /etc/ld.so.conf; then
9125     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' ' '`
9126     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9127   fi
9128
9129   # We used to test for /lib/ld.so.1 and disable shared libraries on
9130   # powerpc, because MkLinux only supported shared libraries with the
9131   # GNU dynamic linker.  Since this was broken with cross compilers,
9132   # most powerpc-linux boxes support dynamic linking these days and
9133   # people can always --disable-shared, the test was removed, and we
9134   # assume the GNU/Linux dynamic linker is in use.
9135   dynamic_linker='GNU/Linux ld.so'
9136   ;;
9137
9138 knetbsd*-gnu)
9139   version_type=linux
9140   need_lib_prefix=no
9141   need_version=no
9142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9143   soname_spec='${libname}${release}${shared_ext}$major'
9144   shlibpath_var=LD_LIBRARY_PATH
9145   shlibpath_overrides_runpath=no
9146   hardcode_into_libs=yes
9147   dynamic_linker='GNU ld.so'
9148   ;;
9149
9150 netbsd*)
9151   version_type=sunos
9152   need_lib_prefix=no
9153   need_version=no
9154   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9157     dynamic_linker='NetBSD (a.out) ld.so'
9158   else
9159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9160     soname_spec='${libname}${release}${shared_ext}$major'
9161     dynamic_linker='NetBSD ld.elf_so'
9162   fi
9163   shlibpath_var=LD_LIBRARY_PATH
9164   shlibpath_overrides_runpath=yes
9165   hardcode_into_libs=yes
9166   ;;
9167
9168 newsos6)
9169   version_type=linux
9170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171   shlibpath_var=LD_LIBRARY_PATH
9172   shlibpath_overrides_runpath=yes
9173   ;;
9174
9175 nto-qnx*)
9176   version_type=linux
9177   need_lib_prefix=no
9178   need_version=no
9179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180   soname_spec='${libname}${release}${shared_ext}$major'
9181   shlibpath_var=LD_LIBRARY_PATH
9182   shlibpath_overrides_runpath=yes
9183   ;;
9184
9185 openbsd* | bitrig*)
9186   version_type=sunos
9187   sys_lib_dlsearch_path_spec="/usr/lib"
9188   need_lib_prefix=no
9189   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9190   case $host_os in
9191     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9192     *)                         need_version=no  ;;
9193   esac
9194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9195   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9196   shlibpath_var=LD_LIBRARY_PATH
9197   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9198     case $host_os in
9199       openbsd2.[89] | openbsd2.[89].*)
9200         shlibpath_overrides_runpath=no
9201         ;;
9202       *)
9203         shlibpath_overrides_runpath=yes
9204         ;;
9205       esac
9206   else
9207     shlibpath_overrides_runpath=yes
9208   fi
9209   ;;
9210
9211 os2*)
9212   libname_spec='$name'
9213   shrext_cmds=".dll"
9214   need_lib_prefix=no
9215   library_names_spec='$libname${shared_ext} $libname.a'
9216   dynamic_linker='OS/2 ld.exe'
9217   shlibpath_var=LIBPATH
9218   ;;
9219
9220 osf3* | osf4* | osf5*)
9221   version_type=osf
9222   need_lib_prefix=no
9223   need_version=no
9224   soname_spec='${libname}${release}${shared_ext}$major'
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226   shlibpath_var=LD_LIBRARY_PATH
9227   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9228   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9229   ;;
9230
9231 solaris*)
9232   version_type=linux
9233   need_lib_prefix=no
9234   need_version=no
9235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236   soname_spec='${libname}${release}${shared_ext}$major'
9237   shlibpath_var=LD_LIBRARY_PATH
9238   shlibpath_overrides_runpath=yes
9239   hardcode_into_libs=yes
9240   # ldd complains unless libraries are executable
9241   postinstall_cmds='chmod +x $lib'
9242   ;;
9243
9244 sunos4*)
9245   version_type=sunos
9246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9247   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9248   shlibpath_var=LD_LIBRARY_PATH
9249   shlibpath_overrides_runpath=yes
9250   if test "$with_gnu_ld" = yes; then
9251     need_lib_prefix=no
9252   fi
9253   need_version=yes
9254   ;;
9255
9256 sysv4 | sysv4.3*)
9257   version_type=linux
9258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259   soname_spec='${libname}${release}${shared_ext}$major'
9260   shlibpath_var=LD_LIBRARY_PATH
9261   case $host_vendor in
9262     sni)
9263       shlibpath_overrides_runpath=no
9264       need_lib_prefix=no
9265       export_dynamic_flag_spec='${wl}-Blargedynsym'
9266       runpath_var=LD_RUN_PATH
9267       ;;
9268     siemens)
9269       need_lib_prefix=no
9270       ;;
9271     motorola)
9272       need_lib_prefix=no
9273       need_version=no
9274       shlibpath_overrides_runpath=no
9275       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9276       ;;
9277   esac
9278   ;;
9279
9280 sysv4*MP*)
9281   if test -d /usr/nec ;then
9282     version_type=linux
9283     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9284     soname_spec='$libname${shared_ext}.$major'
9285     shlibpath_var=LD_LIBRARY_PATH
9286   fi
9287   ;;
9288
9289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9290   version_type=freebsd-elf
9291   need_lib_prefix=no
9292   need_version=no
9293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9294   soname_spec='${libname}${release}${shared_ext}$major'
9295   shlibpath_var=LD_LIBRARY_PATH
9296   hardcode_into_libs=yes
9297   if test "$with_gnu_ld" = yes; then
9298     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9299     shlibpath_overrides_runpath=no
9300   else
9301     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9302     shlibpath_overrides_runpath=yes
9303     case $host_os in
9304       sco3.2v5*)
9305         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9306         ;;
9307     esac
9308   fi
9309   sys_lib_dlsearch_path_spec='/usr/lib'
9310   ;;
9311
9312 uts4*)
9313   version_type=linux
9314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315   soname_spec='${libname}${release}${shared_ext}$major'
9316   shlibpath_var=LD_LIBRARY_PATH
9317   ;;
9318
9319 *)
9320   dynamic_linker=no
9321   ;;
9322 esac
9323 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9324 echo "${ECHO_T}$dynamic_linker" >&6; }
9325 test "$dynamic_linker" = no && can_build_shared=no
9326
9327 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9328 if test "$GCC" = yes; then
9329   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9330 fi
9331
9332
9333 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9334 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9335 if test "${libltdl_cv_shlibext+set}" = set; then
9336   echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338
9339 module=yes
9340 eval libltdl_cv_shlibext=$shrext_cmds
9341
9342 fi
9343 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9344 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9345 if test -n "$libltdl_cv_shlibext"; then
9346
9347 cat >>confdefs.h <<_ACEOF
9348 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9349 _ACEOF
9350
9351 fi
9352
9353
9354 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9355 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9356 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9357   echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359   libltdl_cv_shlibpath_var="$shlibpath_var"
9360 fi
9361 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9362 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9363 if test -n "$libltdl_cv_shlibpath_var"; then
9364
9365 cat >>confdefs.h <<_ACEOF
9366 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9367 _ACEOF
9368
9369 fi
9370
9371
9372 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9373 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9374 if test "${libltdl_cv_sys_search_path+set}" = set; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9378 fi
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9380 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9381 if test -n "$libltdl_cv_sys_search_path"; then
9382   sys_search_path=
9383   for dir in $libltdl_cv_sys_search_path; do
9384     if test -z "$sys_search_path"; then
9385       sys_search_path="$dir"
9386     else
9387       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9388     fi
9389   done
9390
9391 cat >>confdefs.h <<_ACEOF
9392 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9393 _ACEOF
9394
9395 fi
9396
9397 { echo "$as_me:$LINENO: checking for objdir" >&5
9398 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9399 if test "${libltdl_cv_objdir+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   libltdl_cv_objdir="$objdir"
9403   if test -n "$objdir"; then
9404     :
9405   else
9406     rm -f .libs 2>/dev/null
9407     mkdir .libs 2>/dev/null
9408     if test -d .libs; then
9409       libltdl_cv_objdir=.libs
9410     else
9411       # MS-DOS does not allow filenames that begin with a dot.
9412       libltdl_cv_objdir=_libs
9413     fi
9414   rmdir .libs 2>/dev/null
9415   fi
9416
9417 fi
9418 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9419 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9420
9421 cat >>confdefs.h <<_ACEOF
9422 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9423 _ACEOF
9424
9425
9426
9427
9428
9429
9430 # Check for command to grab the raw symbol name followed by C symbol from nm.
9431 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9432 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9433 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9434   echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436
9437 # These are sane defaults that work on at least a few old systems.
9438 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9439
9440 # Character class describing NM global symbol codes.
9441 symcode='[BCDEGRST]'
9442
9443 # Regexp to match symbols that can be accessed directly from C.
9444 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9445
9446 # Transform an extracted symbol line into a proper C declaration
9447 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9448
9449 # Transform an extracted symbol line into symbol name and symbol address
9450 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'"
9451
9452 # Define system-specific variables.
9453 case $host_os in
9454 aix*)
9455   symcode='[BCDT]'
9456   ;;
9457 cygwin* | mingw* | pw32*)
9458   symcode='[ABCDGISTW]'
9459   ;;
9460 hpux*) # Its linker distinguishes data from code symbols
9461   if test "$host_cpu" = ia64; then
9462     symcode='[ABCDEGRST]'
9463   fi
9464   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9465   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'"
9466   ;;
9467 linux*)
9468   if test "$host_cpu" = ia64; then
9469     symcode='[ABCDGIRSTW]'
9470     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9471     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'"
9472   fi
9473   ;;
9474 irix* | nonstopux*)
9475   symcode='[BCDEGRST]'
9476   ;;
9477 osf*)
9478   symcode='[BCDEGQRST]'
9479   ;;
9480 solaris*)
9481   symcode='[BDRT]'
9482   ;;
9483 sco3.2v5*)
9484   symcode='[DT]'
9485   ;;
9486 sysv4.2uw2*)
9487   symcode='[DT]'
9488   ;;
9489 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9490   symcode='[ABDT]'
9491   ;;
9492 sysv4)
9493   symcode='[DFNSTU]'
9494   ;;
9495 esac
9496
9497 # Handle CRLF in mingw tool chain
9498 opt_cr=
9499 case $build_os in
9500 mingw*)
9501   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9502   ;;
9503 esac
9504
9505 # If we're using GNU nm, then use its standard symbol codes.
9506 case `$NM -V 2>&1` in
9507 *GNU* | *'with BFD'*)
9508   symcode='[ABCDGIRSTW]' ;;
9509 esac
9510
9511 # Try without a prefix undercore, then with it.
9512 for ac_symprfx in "" "_"; do
9513
9514   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9515   symxfrm="\\1 $ac_symprfx\\2 \\2"
9516
9517   # Write the raw and C identifiers.
9518   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9519
9520   # Check to see that the pipe works correctly.
9521   pipe_works=no
9522
9523   rm -f conftest*
9524   cat > conftest.$ac_ext <<EOF
9525 #ifdef __cplusplus
9526 extern "C" {
9527 #endif
9528 char nm_test_var;
9529 void nm_test_func(){}
9530 #ifdef __cplusplus
9531 }
9532 #endif
9533 int main(){nm_test_var='a';nm_test_func();return(0);}
9534 EOF
9535
9536   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9537   (eval $ac_compile) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; then
9541     # Now try to grab the symbols.
9542     nlist=conftest.nm
9543     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9544   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9545   ac_status=$?
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); } && test -s "$nlist"; then
9548       # Try sorting and uniquifying the output.
9549       if sort "$nlist" | uniq > "$nlist"T; then
9550         mv -f "$nlist"T "$nlist"
9551       else
9552         rm -f "$nlist"T
9553       fi
9554
9555       # Make sure that we snagged all the symbols we need.
9556       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9557         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9558           cat <<EOF > conftest.$ac_ext
9559 #ifdef __cplusplus
9560 extern "C" {
9561 #endif
9562
9563 EOF
9564           # Now generate the symbol file.
9565           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9566
9567           cat <<EOF >> conftest.$ac_ext
9568 #if defined (__STDC__) && __STDC__
9569 # define lt_ptr_t void *
9570 #else
9571 # define lt_ptr_t char *
9572 # define const
9573 #endif
9574
9575 /* The mapping between symbol names and symbols. */
9576 const struct {
9577   const char *name;
9578   lt_ptr_t address;
9579 }
9580 lt_preloaded_symbols[] =
9581 {
9582 EOF
9583           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9584           cat <<\EOF >> conftest.$ac_ext
9585   {0, (lt_ptr_t) 0}
9586 };
9587
9588 #ifdef __cplusplus
9589 }
9590 #endif
9591 EOF
9592           # Now try linking the two files.
9593           mv conftest.$ac_objext conftstm.$ac_objext
9594           lt_save_LIBS="$LIBS"
9595           lt_save_CFLAGS="$CFLAGS"
9596           LIBS="conftstm.$ac_objext"
9597           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9598           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599   (eval $ac_link) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9603             pipe_works=yes
9604           fi
9605           LIBS="$lt_save_LIBS"
9606           CFLAGS="$lt_save_CFLAGS"
9607         else
9608           echo "cannot find nm_test_func in $nlist" >&5
9609         fi
9610       else
9611         echo "cannot find nm_test_var in $nlist" >&5
9612       fi
9613     else
9614       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9615     fi
9616   else
9617     echo "$progname: failed program was:" >&5
9618     cat conftest.$ac_ext >&5
9619   fi
9620   rm -f conftest* conftst*
9621
9622   # Do not use the global_symbol_pipe unless it works.
9623   if test "$pipe_works" = yes; then
9624     break
9625   else
9626     lt_cv_sys_global_symbol_pipe=
9627   fi
9628 done
9629
9630 fi
9631
9632 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9633   lt_cv_sys_global_symbol_to_cdecl=
9634 fi
9635 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9636   { echo "$as_me:$LINENO: result: failed" >&5
9637 echo "${ECHO_T}failed" >&6; }
9638 else
9639   { echo "$as_me:$LINENO: result: ok" >&5
9640 echo "${ECHO_T}ok" >&6; }
9641 fi
9642
9643
9644 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9645 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9646 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9650     libltdl_cv_preloaded_symbols=yes
9651   else
9652     libltdl_cv_preloaded_symbols=no
9653   fi
9654
9655 fi
9656 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9657 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9658 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9659
9660 cat >>confdefs.h <<\_ACEOF
9661 #define HAVE_PRELOADED_SYMBOLS 1
9662 _ACEOF
9663
9664 fi
9665
9666 LIBADD_DL=
9667
9668 ac_ext=c
9669 ac_cpp='$CPP $CPPFLAGS'
9670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9673
9674
9675 { echo "$as_me:$LINENO: checking for shl_load" >&5
9676 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9677 if test "${ac_cv_func_shl_load+set}" = set; then
9678   echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680   cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9688 #define shl_load innocuous_shl_load
9689
9690 /* System header to define __stub macros and hopefully few prototypes,
9691     which can conflict with char shl_load (); below.
9692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693     <limits.h> exists even on freestanding compilers.  */
9694
9695 #ifdef __STDC__
9696 # include <limits.h>
9697 #else
9698 # include <assert.h>
9699 #endif
9700
9701 #undef shl_load
9702
9703 /* Override any GCC internal prototype to avoid an error.
9704    Use char because int might match the return type of a GCC
9705    builtin and then its argument prototype would still apply.  */
9706 #ifdef __cplusplus
9707 extern "C"
9708 #endif
9709 char shl_load ();
9710 /* The GNU C library defines this for functions which it implements
9711     to always fail with ENOSYS.  Some functions are actually named
9712     something starting with __ and the normal name is an alias.  */
9713 #if defined __stub_shl_load || defined __stub___shl_load
9714 choke me
9715 #endif
9716
9717 int
9718 main ()
9719 {
9720 return shl_load ();
9721   ;
9722   return 0;
9723 }
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (ac_try="$ac_link"
9727 case "(($ac_try" in
9728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729   *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732   (eval "$ac_link") 2>conftest.er1
9733   ac_status=$?
9734   grep -v '^ *+' conftest.er1 >conftest.err
9735   rm -f conftest.er1
9736   cat conftest.err >&5
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); } &&
9739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9740   { (case "(($ac_try" in
9741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742   *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745   (eval "$ac_try") 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); }; } &&
9749          { ac_try='test -s conftest$ac_exeext'
9750   { (case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_try") 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; }; then
9759   ac_cv_func_shl_load=yes
9760 else
9761   echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764         ac_cv_func_shl_load=no
9765 fi
9766
9767 rm -f core conftest.err conftest.$ac_objext \
9768       conftest$ac_exeext conftest.$ac_ext
9769 fi
9770 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9771 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9772 if test $ac_cv_func_shl_load = yes; then
9773
9774 cat >>confdefs.h <<\_ACEOF
9775 #define HAVE_SHL_LOAD 1
9776 _ACEOF
9777
9778 else
9779   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9780 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9781 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784   ac_check_lib_save_LIBS=$LIBS
9785 LIBS="-ldld  $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792
9793 /* Override any GCC internal prototype to avoid an error.
9794    Use char because int might match the return type of a GCC
9795    builtin and then its argument prototype would still apply.  */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char shl_load ();
9800 int
9801 main ()
9802 {
9803 return shl_load ();
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812   *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815   (eval "$ac_link") 2>conftest.er1
9816   ac_status=$?
9817   grep -v '^ *+' conftest.er1 >conftest.err
9818   rm -f conftest.er1
9819   cat conftest.err >&5
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } &&
9822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9823   { (case "(($ac_try" in
9824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825   *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828   (eval "$ac_try") 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; } &&
9832          { ac_try='test -s conftest$ac_exeext'
9833   { (case "(($ac_try" in
9834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835   *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838   (eval "$ac_try") 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; }; then
9842   ac_cv_lib_dld_shl_load=yes
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847         ac_cv_lib_dld_shl_load=no
9848 fi
9849
9850 rm -f core conftest.err conftest.$ac_objext \
9851       conftest$ac_exeext conftest.$ac_ext
9852 LIBS=$ac_check_lib_save_LIBS
9853 fi
9854 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9855 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9856 if test $ac_cv_lib_dld_shl_load = yes; then
9857
9858 cat >>confdefs.h <<\_ACEOF
9859 #define HAVE_SHL_LOAD 1
9860 _ACEOF
9861
9862         LIBADD_DL="$LIBADD_DL -ldld"
9863 else
9864   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869   ac_check_lib_save_LIBS=$LIBS
9870 LIBS="-ldl  $LIBS"
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877
9878 /* Override any GCC internal prototype to avoid an error.
9879    Use char because int might match the return type of a GCC
9880    builtin and then its argument prototype would still apply.  */
9881 #ifdef __cplusplus
9882 extern "C"
9883 #endif
9884 char dlopen ();
9885 int
9886 main ()
9887 {
9888 return dlopen ();
9889   ;
9890   return 0;
9891 }
9892 _ACEOF
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (ac_try="$ac_link"
9895 case "(($ac_try" in
9896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897   *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900   (eval "$ac_link") 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } &&
9907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9908   { (case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_try") 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; } &&
9917          { ac_try='test -s conftest$ac_exeext'
9918   { (case "(($ac_try" in
9919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920   *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923   (eval "$ac_try") 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_lib_dl_dlopen=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932         ac_cv_lib_dl_dlopen=no
9933 fi
9934
9935 rm -f core conftest.err conftest.$ac_objext \
9936       conftest$ac_exeext conftest.$ac_ext
9937 LIBS=$ac_check_lib_save_LIBS
9938 fi
9939 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9941 if test $ac_cv_lib_dl_dlopen = yes; then
9942
9943 cat >>confdefs.h <<\_ACEOF
9944 #define HAVE_LIBDL 1
9945 _ACEOF
9946
9947                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9948 else
9949   cat >conftest.$ac_ext <<_ACEOF
9950 /* confdefs.h.  */
9951 _ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h.  */
9955 #if HAVE_DLFCN_H
9956 #  include <dlfcn.h>
9957 #endif
9958
9959 int
9960 main ()
9961 {
9962 dlopen(0, 0);
9963   ;
9964   return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9969 case "(($ac_try" in
9970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971   *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974   (eval "$ac_link") 2>conftest.er1
9975   ac_status=$?
9976   grep -v '^ *+' conftest.er1 >conftest.err
9977   rm -f conftest.er1
9978   cat conftest.err >&5
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } &&
9981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9982   { (case "(($ac_try" in
9983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984   *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987   (eval "$ac_try") 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; } &&
9991          { ac_try='test -s conftest$ac_exeext'
9992   { (case "(($ac_try" in
9993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994   *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997   (eval "$ac_try") 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001
10002 cat >>confdefs.h <<\_ACEOF
10003 #define HAVE_LIBDL 1
10004 _ACEOF
10005  libltdl_cv_func_dlopen="yes"
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10011 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10012 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   ac_check_lib_save_LIBS=$LIBS
10016 LIBS="-lsvld  $LIBS"
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h.  */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h.  */
10023
10024 /* Override any GCC internal prototype to avoid an error.
10025    Use char because int might match the return type of a GCC
10026    builtin and then its argument prototype would still apply.  */
10027 #ifdef __cplusplus
10028 extern "C"
10029 #endif
10030 char dlopen ();
10031 int
10032 main ()
10033 {
10034 return dlopen ();
10035   ;
10036   return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043   *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046   (eval "$ac_link") 2>conftest.er1
10047   ac_status=$?
10048   grep -v '^ *+' conftest.er1 >conftest.err
10049   rm -f conftest.er1
10050   cat conftest.err >&5
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); } &&
10053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054   { (case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_try") 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; } &&
10063          { ac_try='test -s conftest$ac_exeext'
10064   { (case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_try") 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   ac_cv_lib_svld_dlopen=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078         ac_cv_lib_svld_dlopen=no
10079 fi
10080
10081 rm -f core conftest.err conftest.$ac_objext \
10082       conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10084 fi
10085 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10087 if test $ac_cv_lib_svld_dlopen = yes; then
10088
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_LIBDL 1
10091 _ACEOF
10092
10093                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10094 else
10095   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10096 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10097 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10098   echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100   ac_check_lib_save_LIBS=$LIBS
10101 LIBS="-ldld  $LIBS"
10102 cat >conftest.$ac_ext <<_ACEOF
10103 /* confdefs.h.  */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h.  */
10108
10109 /* Override any GCC internal prototype to avoid an error.
10110    Use char because int might match the return type of a GCC
10111    builtin and then its argument prototype would still apply.  */
10112 #ifdef __cplusplus
10113 extern "C"
10114 #endif
10115 char dld_link ();
10116 int
10117 main ()
10118 {
10119 return dld_link ();
10120   ;
10121   return 0;
10122 }
10123 _ACEOF
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128   *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131   (eval "$ac_link") 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139   { (case "(($ac_try" in
10140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141   *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144   (eval "$ac_try") 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; } &&
10148          { ac_try='test -s conftest$ac_exeext'
10149   { (case "(($ac_try" in
10150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151   *) ac_try_echo=$ac_try;;
10152 esac
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154   (eval "$ac_try") 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; }; then
10158   ac_cv_lib_dld_dld_link=yes
10159 else
10160   echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163         ac_cv_lib_dld_dld_link=no
10164 fi
10165
10166 rm -f core conftest.err conftest.$ac_objext \
10167       conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10169 fi
10170 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10171 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10172 if test $ac_cv_lib_dld_dld_link = yes; then
10173
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_DLD 1
10176 _ACEOF
10177
10178                 LIBADD_DL="$LIBADD_DL -ldld"
10179 else
10180   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10181 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10182 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10183   echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185   cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h.  */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h.  */
10191 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10193 #define _dyld_func_lookup innocuous__dyld_func_lookup
10194
10195 /* System header to define __stub macros and hopefully few prototypes,
10196     which can conflict with char _dyld_func_lookup (); below.
10197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10198     <limits.h> exists even on freestanding compilers.  */
10199
10200 #ifdef __STDC__
10201 # include <limits.h>
10202 #else
10203 # include <assert.h>
10204 #endif
10205
10206 #undef _dyld_func_lookup
10207
10208 /* Override any GCC internal prototype to avoid an error.
10209    Use char because int might match the return type of a GCC
10210    builtin and then its argument prototype would still apply.  */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 char _dyld_func_lookup ();
10215 /* The GNU C library defines this for functions which it implements
10216     to always fail with ENOSYS.  Some functions are actually named
10217     something starting with __ and the normal name is an alias.  */
10218 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10219 choke me
10220 #endif
10221
10222 int
10223 main ()
10224 {
10225 return _dyld_func_lookup ();
10226   ;
10227   return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234   *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237   (eval "$ac_link") 2>conftest.er1
10238   ac_status=$?
10239   grep -v '^ *+' conftest.er1 >conftest.err
10240   rm -f conftest.er1
10241   cat conftest.err >&5
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); } &&
10244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245   { (case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_try") 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; } &&
10254          { ac_try='test -s conftest$ac_exeext'
10255   { (case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_try") 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   ac_cv_func__dyld_func_lookup=yes
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269         ac_cv_func__dyld_func_lookup=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext \
10273       conftest$ac_exeext conftest.$ac_ext
10274 fi
10275 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10276 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10277 if test $ac_cv_func__dyld_func_lookup = yes; then
10278
10279 cat >>confdefs.h <<\_ACEOF
10280 #define HAVE_DYLD 1
10281 _ACEOF
10282
10283 fi
10284
10285
10286 fi
10287
10288
10289 fi
10290
10291
10292 fi
10293
10294 rm -f core conftest.err conftest.$ac_objext \
10295       conftest$ac_exeext conftest.$ac_ext
10296
10297 fi
10298
10299
10300 fi
10301
10302
10303 fi
10304
10305
10306 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10307 then
10308   lt_save_LIBS="$LIBS"
10309   LIBS="$LIBS $LIBADD_DL"
10310
10311 for ac_func in dlerror
10312 do
10313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h.  */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h.  */
10325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10327 #define $ac_func innocuous_$ac_func
10328
10329 /* System header to define __stub macros and hopefully few prototypes,
10330     which can conflict with char $ac_func (); below.
10331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10332     <limits.h> exists even on freestanding compilers.  */
10333
10334 #ifdef __STDC__
10335 # include <limits.h>
10336 #else
10337 # include <assert.h>
10338 #endif
10339
10340 #undef $ac_func
10341
10342 /* Override any GCC internal prototype to avoid an error.
10343    Use char because int might match the return type of a GCC
10344    builtin and then its argument prototype would still apply.  */
10345 #ifdef __cplusplus
10346 extern "C"
10347 #endif
10348 char $ac_func ();
10349 /* The GNU C library defines this for functions which it implements
10350     to always fail with ENOSYS.  Some functions are actually named
10351     something starting with __ and the normal name is an alias.  */
10352 #if defined __stub_$ac_func || defined __stub___$ac_func
10353 choke me
10354 #endif
10355
10356 int
10357 main ()
10358 {
10359 return $ac_func ();
10360   ;
10361   return 0;
10362 }
10363 _ACEOF
10364 rm -f conftest.$ac_objext conftest$ac_exeext
10365 if { (ac_try="$ac_link"
10366 case "(($ac_try" in
10367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368   *) ac_try_echo=$ac_try;;
10369 esac
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371   (eval "$ac_link") 2>conftest.er1
10372   ac_status=$?
10373   grep -v '^ *+' conftest.er1 >conftest.err
10374   rm -f conftest.er1
10375   cat conftest.err >&5
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); } &&
10378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10379   { (case "(($ac_try" in
10380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381   *) ac_try_echo=$ac_try;;
10382 esac
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384   (eval "$ac_try") 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; } &&
10388          { ac_try='test -s conftest$ac_exeext'
10389   { (case "(($ac_try" in
10390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391   *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394   (eval "$ac_try") 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; }; then
10398   eval "$as_ac_var=yes"
10399 else
10400   echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403         eval "$as_ac_var=no"
10404 fi
10405
10406 rm -f core conftest.err conftest.$ac_objext \
10407       conftest$ac_exeext conftest.$ac_ext
10408 fi
10409 ac_res=`eval echo '${'$as_ac_var'}'`
10410                { echo "$as_me:$LINENO: result: $ac_res" >&5
10411 echo "${ECHO_T}$ac_res" >&6; }
10412 if test `eval echo '${'$as_ac_var'}'` = yes; then
10413   cat >>confdefs.h <<_ACEOF
10414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10415 _ACEOF
10416
10417 fi
10418 done
10419
10420   LIBS="$lt_save_LIBS"
10421 fi
10422 ac_ext=c
10423 ac_cpp='$CPP $CPPFLAGS'
10424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10427
10428
10429
10430 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10431 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10432 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10433   echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435   ac_cv_sys_symbol_underscore=no
10436   cat > conftest.$ac_ext <<EOF
10437 void nm_test_func(){}
10438 int main(){nm_test_func;return 0;}
10439 EOF
10440   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441   (eval $ac_compile) 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); }; then
10445     # Now try to grab the symbols.
10446     ac_nlist=conftest.nm
10447     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10448   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } && test -s "$ac_nlist"; then
10452       # See whether the symbols have a leading underscore.
10453       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10454         ac_cv_sys_symbol_underscore=yes
10455       else
10456         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10457           :
10458         else
10459           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10460         fi
10461       fi
10462     else
10463       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10464     fi
10465   else
10466     echo "configure: failed program was:" >&5
10467     cat conftest.c >&5
10468   fi
10469   rm -rf conftest*
10470
10471 fi
10472 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10473 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10474
10475
10476 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10477   if test x"$libltdl_cv_func_dlopen" = xyes ||
10478      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10479         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10480 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10481 if test "${libltdl_cv_need_uscore+set}" = set; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484   libltdl_cv_need_uscore=unknown
10485           save_LIBS="$LIBS"
10486           LIBS="$LIBS $LIBADD_DL"
10487           if test "$cross_compiling" = yes; then :
10488   libltdl_cv_need_uscore=cross
10489 else
10490   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10491   lt_status=$lt_dlunknown
10492   cat > conftest.$ac_ext <<EOF
10493 #line 10493 "configure"
10494 #include "confdefs.h"
10495
10496 #if HAVE_DLFCN_H
10497 #include <dlfcn.h>
10498 #endif
10499
10500 #include <stdio.h>
10501
10502 #ifdef RTLD_GLOBAL
10503 #  define LT_DLGLOBAL           RTLD_GLOBAL
10504 #else
10505 #  ifdef DL_GLOBAL
10506 #    define LT_DLGLOBAL         DL_GLOBAL
10507 #  else
10508 #    define LT_DLGLOBAL         0
10509 #  endif
10510 #endif
10511
10512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10513    find out it does not work in some platform. */
10514 #ifndef LT_DLLAZY_OR_NOW
10515 #  ifdef RTLD_LAZY
10516 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10517 #  else
10518 #    ifdef DL_LAZY
10519 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10520 #    else
10521 #      ifdef RTLD_NOW
10522 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10523 #      else
10524 #        ifdef DL_NOW
10525 #          define LT_DLLAZY_OR_NOW      DL_NOW
10526 #        else
10527 #          define LT_DLLAZY_OR_NOW      0
10528 #        endif
10529 #      endif
10530 #    endif
10531 #  endif
10532 #endif
10533
10534 #ifdef __cplusplus
10535 extern "C" void exit (int);
10536 #endif
10537
10538 void fnord() { int i=42;}
10539 int main ()
10540 {
10541   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10542   int status = $lt_dlunknown;
10543
10544   if (self)
10545     {
10546       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10547       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10548       /* dlclose (self); */
10549     }
10550   else
10551     puts (dlerror ());
10552
10553     exit (status);
10554 }
10555 EOF
10556   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557   (eval $ac_link) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10561     (./conftest; exit; ) >&5 2>/dev/null
10562     lt_status=$?
10563     case x$lt_status in
10564       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10565       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10566       x$lt_dlunknown|x*)  ;;
10567     esac
10568   else :
10569     # compilation failed
10570
10571   fi
10572 fi
10573 rm -fr conftest*
10574
10575           LIBS="$save_LIBS"
10576
10577 fi
10578 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10579 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10580   fi
10581 fi
10582
10583 if test x"$libltdl_cv_need_uscore" = xyes; then
10584
10585 cat >>confdefs.h <<\_ACEOF
10586 #define NEED_USCORE 1
10587 _ACEOF
10588
10589 fi
10590
10591
10592 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10593 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10594 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10595   echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597   # PORTME does your system automatically load deplibs for dlopen?
10598   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10599   # For now, we just catch OSes we know something about -- in the
10600   # future, we'll try test this programmatically.
10601   libltdl_cv_sys_dlopen_deplibs=unknown
10602   case "$host_os" in
10603   aix3*|aix4.1.*|aix4.2.*)
10604     # Unknown whether this is true for these versions of AIX, but
10605     # we want this `case' here to explicitly catch those versions.
10606     libltdl_cv_sys_dlopen_deplibs=unknown
10607     ;;
10608   aix[45]*)
10609     libltdl_cv_sys_dlopen_deplibs=yes
10610     ;;
10611   darwin*)
10612     # Assuming the user has installed a libdl from somewhere, this is true
10613     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10614     libltdl_cv_sys_dlopen_deplibs=yes
10615     ;;
10616   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10617     # GNU and its variants, using gnu ld.so (Glibc)
10618     libltdl_cv_sys_dlopen_deplibs=yes
10619     ;;
10620   hpux10*|hpux11*)
10621     libltdl_cv_sys_dlopen_deplibs=yes
10622     ;;
10623   interix*)
10624     libltdl_cv_sys_dlopen_deplibs=yes
10625     ;;
10626   irix[12345]*|irix6.[01]*)
10627     # Catch all versions of IRIX before 6.2, and indicate that we don't
10628     # know how it worked for any of those versions.
10629     libltdl_cv_sys_dlopen_deplibs=unknown
10630     ;;
10631   irix*)
10632     # The case above catches anything before 6.2, and it's known that
10633     # at 6.2 and later dlopen does load deplibs.
10634     libltdl_cv_sys_dlopen_deplibs=yes
10635     ;;
10636   netbsd*)
10637     libltdl_cv_sys_dlopen_deplibs=yes
10638     ;;
10639   openbsd*)
10640     libltdl_cv_sys_dlopen_deplibs=yes
10641     ;;
10642   osf[1234]*)
10643     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10644     # it did *not* use an RPATH in a shared library to find objects the
10645     # library depends on, so we explicitly say `no'.
10646     libltdl_cv_sys_dlopen_deplibs=no
10647     ;;
10648   osf5.0|osf5.0a|osf5.1)
10649     # dlopen *does* load deplibs and with the right loader patch applied
10650     # it even uses RPATH in a shared library to search for shared objects
10651     # that the library depends on, but there's no easy way to know if that
10652     # patch is installed.  Since this is the case, all we can really
10653     # say is unknown -- it depends on the patch being installed.  If
10654     # it is, this changes to `yes'.  Without it, it would be `no'.
10655     libltdl_cv_sys_dlopen_deplibs=unknown
10656     ;;
10657   osf*)
10658     # the two cases above should catch all versions of osf <= 5.1.  Read
10659     # the comments above for what we know about them.
10660     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10661     # is used to find them so we can finally say `yes'.
10662     libltdl_cv_sys_dlopen_deplibs=yes
10663     ;;
10664   solaris*)
10665     libltdl_cv_sys_dlopen_deplibs=yes
10666     ;;
10667   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10668     libltdl_cv_sys_dlopen_deplibs=yes
10669     ;;
10670   esac
10671
10672 fi
10673 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10674 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10675 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10676
10677 cat >>confdefs.h <<\_ACEOF
10678 #define LTDL_DLOPEN_DEPLIBS 1
10679 _ACEOF
10680
10681 fi
10682
10683
10684 for ac_header in argz.h
10685 do
10686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 fi
10693 ac_res=`eval echo '${'$as_ac_Header'}'`
10694                { echo "$as_me:$LINENO: result: $ac_res" >&5
10695 echo "${ECHO_T}$ac_res" >&6; }
10696 else
10697   # Is the header compilable?
10698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h.  */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h.  */
10706 $ac_includes_default
10707 #include <$ac_header>
10708 _ACEOF
10709 rm -f conftest.$ac_objext
10710 if { (ac_try="$ac_compile"
10711 case "(($ac_try" in
10712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713   *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716   (eval "$ac_compile") 2>conftest.er1
10717   ac_status=$?
10718   grep -v '^ *+' conftest.er1 >conftest.err
10719   rm -f conftest.er1
10720   cat conftest.err >&5
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); } &&
10723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10724   { (case "(($ac_try" in
10725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726   *) ac_try_echo=$ac_try;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729   (eval "$ac_try") 2>&5
10730   ac_status=$?
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); }; } &&
10733          { ac_try='test -s conftest.$ac_objext'
10734   { (case "(($ac_try" in
10735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736   *) ac_try_echo=$ac_try;;
10737 esac
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739   (eval "$ac_try") 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); }; }; then
10743   ac_header_compiler=yes
10744 else
10745   echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10747
10748         ac_header_compiler=no
10749 fi
10750
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10753 echo "${ECHO_T}$ac_header_compiler" >&6; }
10754
10755 # Is the header present?
10756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h.  */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h.  */
10764 #include <$ac_header>
10765 _ACEOF
10766 if { (ac_try="$ac_cpp conftest.$ac_ext"
10767 case "(($ac_try" in
10768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769   *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10773   ac_status=$?
10774   grep -v '^ *+' conftest.er1 >conftest.err
10775   rm -f conftest.er1
10776   cat conftest.err >&5
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); } >/dev/null; then
10779   if test -s conftest.err; then
10780     ac_cpp_err=$ac_c_preproc_warn_flag
10781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10782   else
10783     ac_cpp_err=
10784   fi
10785 else
10786   ac_cpp_err=yes
10787 fi
10788 if test -z "$ac_cpp_err"; then
10789   ac_header_preproc=yes
10790 else
10791   echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10793
10794   ac_header_preproc=no
10795 fi
10796
10797 rm -f conftest.err conftest.$ac_ext
10798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10799 echo "${ECHO_T}$ac_header_preproc" >&6; }
10800
10801 # So?  What about this header?
10802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10803   yes:no: )
10804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10808     ac_header_preproc=yes
10809     ;;
10810   no:yes:* )
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10823     ( cat <<\_ASBOX
10824 ## ------------------------------------ ##
10825 ## Report this to http://llvm.org/bugs/ ##
10826 ## ------------------------------------ ##
10827 _ASBOX
10828      ) | sed "s/^/$as_me: WARNING:     /" >&2
10829     ;;
10830 esac
10831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10834   echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836   eval "$as_ac_Header=\$ac_header_preproc"
10837 fi
10838 ac_res=`eval echo '${'$as_ac_Header'}'`
10839                { echo "$as_me:$LINENO: result: $ac_res" >&5
10840 echo "${ECHO_T}$ac_res" >&6; }
10841
10842 fi
10843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10844   cat >>confdefs.h <<_ACEOF
10845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10846 _ACEOF
10847
10848 fi
10849
10850 done
10851
10852
10853 { echo "$as_me:$LINENO: checking for error_t" >&5
10854 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10855 if test "${ac_cv_type_error_t+set}" = set; then
10856   echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858   cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864 #if HAVE_ARGZ_H
10865 #  include <argz.h>
10866 #endif
10867
10868 typedef error_t ac__type_new_;
10869 int
10870 main ()
10871 {
10872 if ((ac__type_new_ *) 0)
10873   return 0;
10874 if (sizeof (ac__type_new_))
10875   return 0;
10876   ;
10877   return 0;
10878 }
10879 _ACEOF
10880 rm -f conftest.$ac_objext
10881 if { (ac_try="$ac_compile"
10882 case "(($ac_try" in
10883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884   *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887   (eval "$ac_compile") 2>conftest.er1
10888   ac_status=$?
10889   grep -v '^ *+' conftest.er1 >conftest.err
10890   rm -f conftest.er1
10891   cat conftest.err >&5
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); } &&
10894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10895   { (case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_try") 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; } &&
10904          { ac_try='test -s conftest.$ac_objext'
10905   { (case "(($ac_try" in
10906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907   *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910   (eval "$ac_try") 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); }; }; then
10914   ac_cv_type_error_t=yes
10915 else
10916   echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10918
10919         ac_cv_type_error_t=no
10920 fi
10921
10922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923 fi
10924 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10925 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10926 if test $ac_cv_type_error_t = yes; then
10927
10928 cat >>confdefs.h <<_ACEOF
10929 #define HAVE_ERROR_T 1
10930 _ACEOF
10931
10932
10933 else
10934
10935 cat >>confdefs.h <<\_ACEOF
10936 #define error_t int
10937 _ACEOF
10938
10939 fi
10940
10941
10942
10943
10944
10945
10946
10947 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10948 do
10949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955   cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10963 #define $ac_func innocuous_$ac_func
10964
10965 /* System header to define __stub macros and hopefully few prototypes,
10966     which can conflict with char $ac_func (); below.
10967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10968     <limits.h> exists even on freestanding compilers.  */
10969
10970 #ifdef __STDC__
10971 # include <limits.h>
10972 #else
10973 # include <assert.h>
10974 #endif
10975
10976 #undef $ac_func
10977
10978 /* Override any GCC internal prototype to avoid an error.
10979    Use char because int might match the return type of a GCC
10980    builtin and then its argument prototype would still apply.  */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char $ac_func ();
10985 /* The GNU C library defines this for functions which it implements
10986     to always fail with ENOSYS.  Some functions are actually named
10987     something starting with __ and the normal name is an alias.  */
10988 #if defined __stub_$ac_func || defined __stub___$ac_func
10989 choke me
10990 #endif
10991
10992 int
10993 main ()
10994 {
10995 return $ac_func ();
10996   ;
10997   return 0;
10998 }
10999 _ACEOF
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (ac_try="$ac_link"
11002 case "(($ac_try" in
11003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004   *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007   (eval "$ac_link") 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
11011   cat conftest.err >&5
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015   { (case "(($ac_try" in
11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017   *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020   (eval "$ac_try") 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; } &&
11024          { ac_try='test -s conftest$ac_exeext'
11025   { (case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_try") 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; }; then
11034   eval "$as_ac_var=yes"
11035 else
11036   echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039         eval "$as_ac_var=no"
11040 fi
11041
11042 rm -f core conftest.err conftest.$ac_objext \
11043       conftest$ac_exeext conftest.$ac_ext
11044 fi
11045 ac_res=`eval echo '${'$as_ac_var'}'`
11046                { echo "$as_me:$LINENO: result: $ac_res" >&5
11047 echo "${ECHO_T}$ac_res" >&6; }
11048 if test `eval echo '${'$as_ac_var'}'` = yes; then
11049   cat >>confdefs.h <<_ACEOF
11050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11051 _ACEOF
11052
11053 fi
11054 done
11055
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 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11084                   stdio.h unistd.h
11085 do
11086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11088   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 fi
11093 ac_res=`eval echo '${'$as_ac_Header'}'`
11094                { echo "$as_me:$LINENO: result: $ac_res" >&5
11095 echo "${ECHO_T}$ac_res" >&6; }
11096 else
11097   # Is the header compilable?
11098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h.  */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h.  */
11106 $ac_includes_default
11107 #include <$ac_header>
11108 _ACEOF
11109 rm -f conftest.$ac_objext
11110 if { (ac_try="$ac_compile"
11111 case "(($ac_try" in
11112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113   *) ac_try_echo=$ac_try;;
11114 esac
11115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116   (eval "$ac_compile") 2>conftest.er1
11117   ac_status=$?
11118   grep -v '^ *+' conftest.er1 >conftest.err
11119   rm -f conftest.er1
11120   cat conftest.err >&5
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } &&
11123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11124   { (case "(($ac_try" in
11125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126   *) ac_try_echo=$ac_try;;
11127 esac
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129   (eval "$ac_try") 2>&5
11130   ac_status=$?
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); }; } &&
11133          { ac_try='test -s conftest.$ac_objext'
11134   { (case "(($ac_try" in
11135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136   *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139   (eval "$ac_try") 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; }; then
11143   ac_header_compiler=yes
11144 else
11145   echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148         ac_header_compiler=no
11149 fi
11150
11151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11153 echo "${ECHO_T}$ac_header_compiler" >&6; }
11154
11155 # Is the header present?
11156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11158 cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h.  */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h.  */
11164 #include <$ac_header>
11165 _ACEOF
11166 if { (ac_try="$ac_cpp conftest.$ac_ext"
11167 case "(($ac_try" in
11168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169   *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11173   ac_status=$?
11174   grep -v '^ *+' conftest.er1 >conftest.err
11175   rm -f conftest.er1
11176   cat conftest.err >&5
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); } >/dev/null; then
11179   if test -s conftest.err; then
11180     ac_cpp_err=$ac_c_preproc_warn_flag
11181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11182   else
11183     ac_cpp_err=
11184   fi
11185 else
11186   ac_cpp_err=yes
11187 fi
11188 if test -z "$ac_cpp_err"; then
11189   ac_header_preproc=yes
11190 else
11191   echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11193
11194   ac_header_preproc=no
11195 fi
11196
11197 rm -f conftest.err conftest.$ac_ext
11198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11199 echo "${ECHO_T}$ac_header_preproc" >&6; }
11200
11201 # So?  What about this header?
11202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11203   yes:no: )
11204     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11208     ac_header_preproc=yes
11209     ;;
11210   no:yes:* )
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11214 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11217     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11218 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11221     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11223     ( cat <<\_ASBOX
11224 ## ------------------------------------ ##
11225 ## Report this to http://llvm.org/bugs/ ##
11226 ## ------------------------------------ ##
11227 _ASBOX
11228      ) | sed "s/^/$as_me: WARNING:     /" >&2
11229     ;;
11230 esac
11231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236   eval "$as_ac_Header=\$ac_header_preproc"
11237 fi
11238 ac_res=`eval echo '${'$as_ac_Header'}'`
11239                { echo "$as_me:$LINENO: result: $ac_res" >&5
11240 echo "${ECHO_T}$ac_res" >&6; }
11241
11242 fi
11243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11244   cat >>confdefs.h <<_ACEOF
11245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11246 _ACEOF
11247
11248 fi
11249
11250 done
11251
11252
11253
11254
11255
11256 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11257 do
11258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 fi
11265 ac_res=`eval echo '${'$as_ac_Header'}'`
11266                { echo "$as_me:$LINENO: result: $ac_res" >&5
11267 echo "${ECHO_T}$ac_res" >&6; }
11268 else
11269   # Is the header compilable?
11270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278 $ac_includes_default
11279 #include <$ac_header>
11280 _ACEOF
11281 rm -f conftest.$ac_objext
11282 if { (ac_try="$ac_compile"
11283 case "(($ac_try" in
11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285   *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288   (eval "$ac_compile") 2>conftest.er1
11289   ac_status=$?
11290   grep -v '^ *+' conftest.er1 >conftest.err
11291   rm -f conftest.er1
11292   cat conftest.err >&5
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); } &&
11295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11296   { (case "(($ac_try" in
11297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298   *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301   (eval "$ac_try") 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; } &&
11305          { ac_try='test -s conftest.$ac_objext'
11306   { (case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_try") 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; }; then
11315   ac_header_compiler=yes
11316 else
11317   echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11319
11320         ac_header_compiler=no
11321 fi
11322
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11325 echo "${ECHO_T}$ac_header_compiler" >&6; }
11326
11327 # Is the header present?
11328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h.  */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h.  */
11336 #include <$ac_header>
11337 _ACEOF
11338 if { (ac_try="$ac_cpp conftest.$ac_ext"
11339 case "(($ac_try" in
11340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341   *) ac_try_echo=$ac_try;;
11342 esac
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11345   ac_status=$?
11346   grep -v '^ *+' conftest.er1 >conftest.err
11347   rm -f conftest.er1
11348   cat conftest.err >&5
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); } >/dev/null; then
11351   if test -s conftest.err; then
11352     ac_cpp_err=$ac_c_preproc_warn_flag
11353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11354   else
11355     ac_cpp_err=
11356   fi
11357 else
11358   ac_cpp_err=yes
11359 fi
11360 if test -z "$ac_cpp_err"; then
11361   ac_header_preproc=yes
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366   ac_header_preproc=no
11367 fi
11368
11369 rm -f conftest.err conftest.$ac_ext
11370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11371 echo "${ECHO_T}$ac_header_preproc" >&6; }
11372
11373 # So?  What about this header?
11374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11375   yes:no: )
11376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11380     ac_header_preproc=yes
11381     ;;
11382   no:yes:* )
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11386 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11387     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11389     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11390 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11393     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11395     ( cat <<\_ASBOX
11396 ## ------------------------------------ ##
11397 ## Report this to http://llvm.org/bugs/ ##
11398 ## ------------------------------------ ##
11399 _ASBOX
11400      ) | sed "s/^/$as_me: WARNING:     /" >&2
11401     ;;
11402 esac
11403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   eval "$as_ac_Header=\$ac_header_preproc"
11409 fi
11410 ac_res=`eval echo '${'$as_ac_Header'}'`
11411                { echo "$as_me:$LINENO: result: $ac_res" >&5
11412 echo "${ECHO_T}$ac_res" >&6; }
11413
11414 fi
11415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11416   cat >>confdefs.h <<_ACEOF
11417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11418 _ACEOF
11419
11420 fi
11421
11422 done
11423
11424
11425
11426 for ac_header in string.h strings.h
11427 do
11428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433   echo $ECHO_N "(cached) $ECHO_C" >&6
11434 fi
11435 ac_res=`eval echo '${'$as_ac_Header'}'`
11436                { echo "$as_me:$LINENO: result: $ac_res" >&5
11437 echo "${ECHO_T}$ac_res" >&6; }
11438 else
11439   # Is the header compilable?
11440 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h.  */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h.  */
11448 $ac_includes_default
11449 #include <$ac_header>
11450 _ACEOF
11451 rm -f conftest.$ac_objext
11452 if { (ac_try="$ac_compile"
11453 case "(($ac_try" in
11454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455   *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458   (eval "$ac_compile") 2>conftest.er1
11459   ac_status=$?
11460   grep -v '^ *+' conftest.er1 >conftest.err
11461   rm -f conftest.er1
11462   cat conftest.err >&5
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } &&
11465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466   { (case "(($ac_try" in
11467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468   *) ac_try_echo=$ac_try;;
11469 esac
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471   (eval "$ac_try") 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; } &&
11475          { ac_try='test -s conftest.$ac_objext'
11476   { (case "(($ac_try" in
11477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478   *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481   (eval "$ac_try") 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }; }; then
11485   ac_header_compiler=yes
11486 else
11487   echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11489
11490         ac_header_compiler=no
11491 fi
11492
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11495 echo "${ECHO_T}$ac_header_compiler" >&6; }
11496
11497 # Is the header present?
11498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h.  */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h.  */
11506 #include <$ac_header>
11507 _ACEOF
11508 if { (ac_try="$ac_cpp conftest.$ac_ext"
11509 case "(($ac_try" in
11510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511   *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11515   ac_status=$?
11516   grep -v '^ *+' conftest.er1 >conftest.err
11517   rm -f conftest.er1
11518   cat conftest.err >&5
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); } >/dev/null; then
11521   if test -s conftest.err; then
11522     ac_cpp_err=$ac_c_preproc_warn_flag
11523     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11524   else
11525     ac_cpp_err=
11526   fi
11527 else
11528   ac_cpp_err=yes
11529 fi
11530 if test -z "$ac_cpp_err"; then
11531   ac_header_preproc=yes
11532 else
11533   echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11535
11536   ac_header_preproc=no
11537 fi
11538
11539 rm -f conftest.err conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541 echo "${ECHO_T}$ac_header_preproc" >&6; }
11542
11543 # So?  What about this header?
11544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11545   yes:no: )
11546     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550     ac_header_preproc=yes
11551     ;;
11552   no:yes:* )
11553     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11556 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11557     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11560 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11565     ( cat <<\_ASBOX
11566 ## ------------------------------------ ##
11567 ## Report this to http://llvm.org/bugs/ ##
11568 ## ------------------------------------ ##
11569 _ASBOX
11570      ) | sed "s/^/$as_me: WARNING:     /" >&2
11571     ;;
11572 esac
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576   echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578   eval "$as_ac_Header=\$ac_header_preproc"
11579 fi
11580 ac_res=`eval echo '${'$as_ac_Header'}'`
11581                { echo "$as_me:$LINENO: result: $ac_res" >&5
11582 echo "${ECHO_T}$ac_res" >&6; }
11583
11584 fi
11585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586   cat >>confdefs.h <<_ACEOF
11587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11588 _ACEOF
11589  break
11590 fi
11591
11592 done
11593
11594
11595
11596
11597 for ac_func in strchr index
11598 do
11599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11603   echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605   cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h.  */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h.  */
11611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11613 #define $ac_func innocuous_$ac_func
11614
11615 /* System header to define __stub macros and hopefully few prototypes,
11616     which can conflict with char $ac_func (); below.
11617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11618     <limits.h> exists even on freestanding compilers.  */
11619
11620 #ifdef __STDC__
11621 # include <limits.h>
11622 #else
11623 # include <assert.h>
11624 #endif
11625
11626 #undef $ac_func
11627
11628 /* Override any GCC internal prototype to avoid an error.
11629    Use char because int might match the return type of a GCC
11630    builtin and then its argument prototype would still apply.  */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char $ac_func ();
11635 /* The GNU C library defines this for functions which it implements
11636     to always fail with ENOSYS.  Some functions are actually named
11637     something starting with __ and the normal name is an alias.  */
11638 #if defined __stub_$ac_func || defined __stub___$ac_func
11639 choke me
11640 #endif
11641
11642 int
11643 main ()
11644 {
11645 return $ac_func ();
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654   *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657   (eval "$ac_link") 2>conftest.er1
11658   ac_status=$?
11659   grep -v '^ *+' conftest.er1 >conftest.err
11660   rm -f conftest.er1
11661   cat conftest.err >&5
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); } &&
11664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11665   { (case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670   (eval "$ac_try") 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; } &&
11674          { ac_try='test -s conftest$ac_exeext'
11675   { (case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680   (eval "$ac_try") 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   eval "$as_ac_var=yes"
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689         eval "$as_ac_var=no"
11690 fi
11691
11692 rm -f core conftest.err conftest.$ac_objext \
11693       conftest$ac_exeext conftest.$ac_ext
11694 fi
11695 ac_res=`eval echo '${'$as_ac_var'}'`
11696                { echo "$as_me:$LINENO: result: $ac_res" >&5
11697 echo "${ECHO_T}$ac_res" >&6; }
11698 if test `eval echo '${'$as_ac_var'}'` = yes; then
11699   cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11701 _ACEOF
11702  break
11703 fi
11704 done
11705
11706
11707
11708 for ac_func in strrchr rindex
11709 do
11710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h.  */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h.  */
11722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11724 #define $ac_func innocuous_$ac_func
11725
11726 /* System header to define __stub macros and hopefully few prototypes,
11727     which can conflict with char $ac_func (); below.
11728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729     <limits.h> exists even on freestanding compilers.  */
11730
11731 #ifdef __STDC__
11732 # include <limits.h>
11733 #else
11734 # include <assert.h>
11735 #endif
11736
11737 #undef $ac_func
11738
11739 /* Override any GCC internal prototype to avoid an error.
11740    Use char because int might match the return type of a GCC
11741    builtin and then its argument prototype would still apply.  */
11742 #ifdef __cplusplus
11743 extern "C"
11744 #endif
11745 char $ac_func ();
11746 /* The GNU C library defines this for functions which it implements
11747     to always fail with ENOSYS.  Some functions are actually named
11748     something starting with __ and the normal name is an alias.  */
11749 #if defined __stub_$ac_func || defined __stub___$ac_func
11750 choke me
11751 #endif
11752
11753 int
11754 main ()
11755 {
11756 return $ac_func ();
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768   (eval "$ac_link") 2>conftest.er1
11769   ac_status=$?
11770   grep -v '^ *+' conftest.er1 >conftest.err
11771   rm -f conftest.er1
11772   cat conftest.err >&5
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776   { (case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781   (eval "$ac_try") 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; } &&
11785          { ac_try='test -s conftest$ac_exeext'
11786   { (case "(($ac_try" in
11787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788   *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791   (eval "$ac_try") 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; }; then
11795   eval "$as_ac_var=yes"
11796 else
11797   echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800         eval "$as_ac_var=no"
11801 fi
11802
11803 rm -f core conftest.err conftest.$ac_objext \
11804       conftest$ac_exeext conftest.$ac_ext
11805 fi
11806 ac_res=`eval echo '${'$as_ac_var'}'`
11807                { echo "$as_me:$LINENO: result: $ac_res" >&5
11808 echo "${ECHO_T}$ac_res" >&6; }
11809 if test `eval echo '${'$as_ac_var'}'` = yes; then
11810   cat >>confdefs.h <<_ACEOF
11811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812 _ACEOF
11813  break
11814 fi
11815 done
11816
11817
11818
11819 for ac_func in memcpy bcopy
11820 do
11821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11825   echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827   cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h.  */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h.  */
11833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11835 #define $ac_func innocuous_$ac_func
11836
11837 /* System header to define __stub macros and hopefully few prototypes,
11838     which can conflict with char $ac_func (); below.
11839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840     <limits.h> exists even on freestanding compilers.  */
11841
11842 #ifdef __STDC__
11843 # include <limits.h>
11844 #else
11845 # include <assert.h>
11846 #endif
11847
11848 #undef $ac_func
11849
11850 /* Override any GCC internal prototype to avoid an error.
11851    Use char because int might match the return type of a GCC
11852    builtin and then its argument prototype would still apply.  */
11853 #ifdef __cplusplus
11854 extern "C"
11855 #endif
11856 char $ac_func ();
11857 /* The GNU C library defines this for functions which it implements
11858     to always fail with ENOSYS.  Some functions are actually named
11859     something starting with __ and the normal name is an alias.  */
11860 #if defined __stub_$ac_func || defined __stub___$ac_func
11861 choke me
11862 #endif
11863
11864 int
11865 main ()
11866 {
11867 return $ac_func ();
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (ac_try="$ac_link"
11874 case "(($ac_try" in
11875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876   *) ac_try_echo=$ac_try;;
11877 esac
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879   (eval "$ac_link") 2>conftest.er1
11880   ac_status=$?
11881   grep -v '^ *+' conftest.er1 >conftest.err
11882   rm -f conftest.er1
11883   cat conftest.err >&5
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); } &&
11886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11887   { (case "(($ac_try" in
11888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889   *) ac_try_echo=$ac_try;;
11890 esac
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892   (eval "$ac_try") 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); }; } &&
11896          { ac_try='test -s conftest$ac_exeext'
11897   { (case "(($ac_try" in
11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899   *) ac_try_echo=$ac_try;;
11900 esac
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902   (eval "$ac_try") 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; }; then
11906   eval "$as_ac_var=yes"
11907 else
11908   echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11910
11911         eval "$as_ac_var=no"
11912 fi
11913
11914 rm -f core conftest.err conftest.$ac_objext \
11915       conftest$ac_exeext conftest.$ac_ext
11916 fi
11917 ac_res=`eval echo '${'$as_ac_var'}'`
11918                { echo "$as_me:$LINENO: result: $ac_res" >&5
11919 echo "${ECHO_T}$ac_res" >&6; }
11920 if test `eval echo '${'$as_ac_var'}'` = yes; then
11921   cat >>confdefs.h <<_ACEOF
11922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11923 _ACEOF
11924  break
11925 fi
11926 done
11927
11928
11929
11930 for ac_func in memmove strcmp
11931 do
11932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h.  */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h.  */
11944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11946 #define $ac_func innocuous_$ac_func
11947
11948 /* System header to define __stub macros and hopefully few prototypes,
11949     which can conflict with char $ac_func (); below.
11950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11951     <limits.h> exists even on freestanding compilers.  */
11952
11953 #ifdef __STDC__
11954 # include <limits.h>
11955 #else
11956 # include <assert.h>
11957 #endif
11958
11959 #undef $ac_func
11960
11961 /* Override any GCC internal prototype to avoid an error.
11962    Use char because int might match the return type of a GCC
11963    builtin and then its argument prototype would still apply.  */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 char $ac_func ();
11968 /* The GNU C library defines this for functions which it implements
11969     to always fail with ENOSYS.  Some functions are actually named
11970     something starting with __ and the normal name is an alias.  */
11971 #if defined __stub_$ac_func || defined __stub___$ac_func
11972 choke me
11973 #endif
11974
11975 int
11976 main ()
11977 {
11978 return $ac_func ();
11979   ;
11980   return 0;
11981 }
11982 _ACEOF
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (ac_try="$ac_link"
11985 case "(($ac_try" in
11986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987   *) ac_try_echo=$ac_try;;
11988 esac
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990   (eval "$ac_link") 2>conftest.er1
11991   ac_status=$?
11992   grep -v '^ *+' conftest.er1 >conftest.err
11993   rm -f conftest.er1
11994   cat conftest.err >&5
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); } &&
11997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11998   { (case "(($ac_try" in
11999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000   *) ac_try_echo=$ac_try;;
12001 esac
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003   (eval "$ac_try") 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; } &&
12007          { ac_try='test -s conftest$ac_exeext'
12008   { (case "(($ac_try" in
12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010   *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013   (eval "$ac_try") 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; }; then
12017   eval "$as_ac_var=yes"
12018 else
12019   echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12021
12022         eval "$as_ac_var=no"
12023 fi
12024
12025 rm -f core conftest.err conftest.$ac_objext \
12026       conftest$ac_exeext conftest.$ac_ext
12027 fi
12028 ac_res=`eval echo '${'$as_ac_var'}'`
12029                { echo "$as_me:$LINENO: result: $ac_res" >&5
12030 echo "${ECHO_T}$ac_res" >&6; }
12031 if test `eval echo '${'$as_ac_var'}'` = yes; then
12032   cat >>confdefs.h <<_ACEOF
12033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12034 _ACEOF
12035
12036 fi
12037 done
12038
12039
12040
12041
12042 for ac_func in closedir opendir readdir
12043 do
12044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12058 #define $ac_func innocuous_$ac_func
12059
12060 /* System header to define __stub macros and hopefully few prototypes,
12061     which can conflict with char $ac_func (); below.
12062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063     <limits.h> exists even on freestanding compilers.  */
12064
12065 #ifdef __STDC__
12066 # include <limits.h>
12067 #else
12068 # include <assert.h>
12069 #endif
12070
12071 #undef $ac_func
12072
12073 /* Override any GCC internal prototype to avoid an error.
12074    Use char because int might match the return type of a GCC
12075    builtin and then its argument prototype would still apply.  */
12076 #ifdef __cplusplus
12077 extern "C"
12078 #endif
12079 char $ac_func ();
12080 /* The GNU C library defines this for functions which it implements
12081     to always fail with ENOSYS.  Some functions are actually named
12082     something starting with __ and the normal name is an alias.  */
12083 #if defined __stub_$ac_func || defined __stub___$ac_func
12084 choke me
12085 #endif
12086
12087 int
12088 main ()
12089 {
12090 return $ac_func ();
12091   ;
12092   return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (ac_try="$ac_link"
12097 case "(($ac_try" in
12098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099   *) ac_try_echo=$ac_try;;
12100 esac
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102   (eval "$ac_link") 2>conftest.er1
12103   ac_status=$?
12104   grep -v '^ *+' conftest.er1 >conftest.err
12105   rm -f conftest.er1
12106   cat conftest.err >&5
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } &&
12109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12110   { (case "(($ac_try" in
12111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112   *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115   (eval "$ac_try") 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; } &&
12119          { ac_try='test -s conftest$ac_exeext'
12120   { (case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125   (eval "$ac_try") 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129   eval "$as_ac_var=yes"
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134         eval "$as_ac_var=no"
12135 fi
12136
12137 rm -f core conftest.err conftest.$ac_objext \
12138       conftest$ac_exeext conftest.$ac_ext
12139 fi
12140 ac_res=`eval echo '${'$as_ac_var'}'`
12141                { echo "$as_me:$LINENO: result: $ac_res" >&5
12142 echo "${ECHO_T}$ac_res" >&6; }
12143 if test `eval echo '${'$as_ac_var'}'` = yes; then
12144   cat >>confdefs.h <<_ACEOF
12145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12146 _ACEOF
12147
12148 fi
12149 done
12150
12151
12152
12153 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12154 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12155
12156 ICC=no
12157 IXX=no
12158 case $CC in
12159   icc*|icpc*)
12160     ICC=yes
12161     IXX=yes
12162     ;;
12163    *)
12164     ;;
12165 esac
12166
12167 if test "$GCC" != "yes" && test "$ICC" != "yes"
12168 then
12169   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12170 echo "$as_me: error: gcc|icc required but not found" >&2;}
12171    { (exit 1); exit 1; }; }
12172 fi
12173
12174 if test "$GXX" != "yes" && test "$IXX" != "yes"
12175 then
12176   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12177 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12178    { (exit 1); exit 1; }; }
12179 fi
12180
12181 if test "$GCC" = "yes"
12182 then
12183   cat >conftest.$ac_ext <<_ACEOF
12184
12185   /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190
12191     #if !defined(__GNUC__) || __GNUC__ < 3
12192     #error Unsupported GCC version
12193     #endif
12194
12195
12196 _ACEOF
12197 rm -f conftest.$ac_objext
12198 if { (ac_try="$ac_compile"
12199 case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_compile") 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } &&
12211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12212   { (case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_try") 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; } &&
12221          { ac_try='test -s conftest.$ac_objext'
12222   { (case "(($ac_try" in
12223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224   *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227   (eval "$ac_try") 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   :
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12237 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12238    { (exit 1); exit 1; }; }
12239 fi
12240
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 fi
12243
12244 if test -z "$llvm_cv_gnu_make_command"
12245 then
12246   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12247 echo "$as_me: error: GNU Make required but not found" >&2;}
12248    { (exit 1); exit 1; }; }
12249 fi
12250
12251 { echo "$as_me:$LINENO: result: ok" >&5
12252 echo "${ECHO_T}ok" >&6; }
12253
12254 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12255 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12256 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12257
12258 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12259
12260 NO_NESTED_ANON_TYPES=`$CXX -Werror -Wno-nested-anon-types -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-nested-anon-types`
12261
12262 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12263
12264 if test "$GXX" = "yes"
12265 then
12266   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12267
12268         if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12269   then
12270     NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12271
12272   else
12273                     gxx_version=`$CXX -dumpversion`
12274     gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12275     gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12276     gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12277
12278     if    test "$gxx_version_major" -ge "4" \
12279        && test "$gxx_version_minor" -ge "7"; then
12280             NO_UNINITIALIZED=
12281     else
12282       NO_MAYBE_UNINITIALIZED=
12283       NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12284
12285     fi
12286   fi
12287 else
12288   NO_UNINITIALIZED=
12289   NO_MAYBE_UNINITIALIZED=
12290 fi
12291 { 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
12292 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12293
12294
12295 # Check whether --with-python was given.
12296 if test "${with_python+set}" = set; then
12297   withval=$with_python; PYTHON="$withval"
12298 fi
12299
12300
12301 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12302   { echo "$as_me:$LINENO: checking for python" >&5
12303 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12304   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12305 echo "${ECHO_T}user defined: $with_python" >&6; }
12306 else
12307   if test -n "$PYTHON" ; then
12308     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12309 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12310   fi
12311
12312   # Extract the first word of "python python2 python26", so it can be a program name with args.
12313 set dummy python python2 python26; ac_word=$2
12314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12316 if test "${ac_cv_path_PYTHON+set}" = set; then
12317   echo $ECHO_N "(cached) $ECHO_C" >&6
12318 else
12319   case $PYTHON in
12320   [\\/]* | ?:[\\/]*)
12321   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12322   ;;
12323   *)
12324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327   IFS=$as_save_IFS
12328   test -z "$as_dir" && as_dir=.
12329   for ac_exec_ext in '' $ac_executable_extensions; do
12330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12331     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12333     break 2
12334   fi
12335 done
12336 done
12337 IFS=$as_save_IFS
12338
12339   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12340 echo "${ECHO_T}not found" >&6; }
12341                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12342 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12343    { (exit 1); exit 1; }; }"
12344   ;;
12345 esac
12346 fi
12347 PYTHON=$ac_cv_path_PYTHON
12348 if test -n "$PYTHON"; then
12349   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12350 echo "${ECHO_T}$PYTHON" >&6; }
12351 else
12352   { echo "$as_me:$LINENO: result: no" >&5
12353 echo "${ECHO_T}no" >&6; }
12354 fi
12355
12356
12357 fi
12358
12359 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12360 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12361 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12362 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12363 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12364 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12365 if   test "$ac_python_version_major" -eq "2" \
12366    && test "$ac_python_version_minor" -ge "5" ; then
12367   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12368 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12369 else
12370   { echo "$as_me:$LINENO: result: not found" >&5
12371 echo "${ECHO_T}not found" >&6; }
12372   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12373 See \`config.log' for more details." >&5
12374 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12375 See \`config.log' for more details." >&2;}
12376    { (exit 1); exit 1; }; }
12377 fi
12378
12379
12380
12381 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12382 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12383 if test "${ac_cv_lib_m_sin+set}" = set; then
12384   echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386   ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-lm  $LIBS"
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394
12395 /* Override any GCC internal prototype to avoid an error.
12396    Use char because int might match the return type of a GCC
12397    builtin and then its argument prototype would still apply.  */
12398 #ifdef __cplusplus
12399 extern "C"
12400 #endif
12401 char sin ();
12402 int
12403 main ()
12404 {
12405 return sin ();
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
12412 case "(($ac_try" in
12413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414   *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417   (eval "$ac_link") 2>conftest.er1
12418   ac_status=$?
12419   grep -v '^ *+' conftest.er1 >conftest.err
12420   rm -f conftest.er1
12421   cat conftest.err >&5
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } &&
12424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12425   { (case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_try") 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; } &&
12434          { ac_try='test -s conftest$ac_exeext'
12435   { (case "(($ac_try" in
12436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437   *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440   (eval "$ac_try") 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; }; then
12444   ac_cv_lib_m_sin=yes
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449         ac_cv_lib_m_sin=no
12450 fi
12451
12452 rm -f core conftest.err conftest.$ac_objext \
12453       conftest$ac_exeext conftest.$ac_ext
12454 LIBS=$ac_check_lib_save_LIBS
12455 fi
12456 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12457 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12458 if test $ac_cv_lib_m_sin = yes; then
12459   cat >>confdefs.h <<_ACEOF
12460 #define HAVE_LIBM 1
12461 _ACEOF
12462
12463   LIBS="-lm $LIBS"
12464
12465 fi
12466
12467 if test "$llvm_cv_os_type" = "MingW" ; then
12468
12469 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12470 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12471 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12472   echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474   ac_check_lib_save_LIBS=$LIBS
12475 LIBS="-limagehlp  $LIBS"
12476 cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h.  */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h.  */
12482
12483
12484 int
12485 main ()
12486 {
12487 return main ();
12488   ;
12489   return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (ac_try="$ac_link"
12494 case "(($ac_try" in
12495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496   *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499   (eval "$ac_link") 2>conftest.er1
12500   ac_status=$?
12501   grep -v '^ *+' conftest.er1 >conftest.err
12502   rm -f conftest.er1
12503   cat conftest.err >&5
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); } &&
12506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12507   { (case "(($ac_try" in
12508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509   *) ac_try_echo=$ac_try;;
12510 esac
12511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512   (eval "$ac_try") 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); }; } &&
12516          { ac_try='test -s conftest$ac_exeext'
12517   { (case "(($ac_try" in
12518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519   *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522   (eval "$ac_try") 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }; }; then
12526   ac_cv_lib_imagehlp_main=yes
12527 else
12528   echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531         ac_cv_lib_imagehlp_main=no
12532 fi
12533
12534 rm -f core conftest.err conftest.$ac_objext \
12535       conftest$ac_exeext conftest.$ac_ext
12536 LIBS=$ac_check_lib_save_LIBS
12537 fi
12538 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12539 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12540 if test $ac_cv_lib_imagehlp_main = yes; then
12541   cat >>confdefs.h <<_ACEOF
12542 #define HAVE_LIBIMAGEHLP 1
12543 _ACEOF
12544
12545   LIBS="-limagehlp $LIBS"
12546
12547 fi
12548
12549
12550 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12551 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12552 if test "${ac_cv_lib_psapi_main+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   ac_check_lib_save_LIBS=$LIBS
12556 LIBS="-lpsapi  $LIBS"
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563
12564
12565 int
12566 main ()
12567 {
12568 return main ();
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 rm -f conftest.$ac_objext conftest$ac_exeext
12574 if { (ac_try="$ac_link"
12575 case "(($ac_try" in
12576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577   *) ac_try_echo=$ac_try;;
12578 esac
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580   (eval "$ac_link") 2>conftest.er1
12581   ac_status=$?
12582   grep -v '^ *+' conftest.er1 >conftest.err
12583   rm -f conftest.er1
12584   cat conftest.err >&5
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); } &&
12587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12588   { (case "(($ac_try" in
12589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590   *) ac_try_echo=$ac_try;;
12591 esac
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593   (eval "$ac_try") 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); }; } &&
12597          { ac_try='test -s conftest$ac_exeext'
12598   { (case "(($ac_try" in
12599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600   *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603   (eval "$ac_try") 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; }; then
12607   ac_cv_lib_psapi_main=yes
12608 else
12609   echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12611
12612         ac_cv_lib_psapi_main=no
12613 fi
12614
12615 rm -f core conftest.err conftest.$ac_objext \
12616       conftest$ac_exeext conftest.$ac_ext
12617 LIBS=$ac_check_lib_save_LIBS
12618 fi
12619 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12620 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12621 if test $ac_cv_lib_psapi_main = yes; then
12622   cat >>confdefs.h <<_ACEOF
12623 #define HAVE_LIBPSAPI 1
12624 _ACEOF
12625
12626   LIBS="-lpsapi $LIBS"
12627
12628 fi
12629
12630 fi
12631
12632 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12633 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12634 if test "${ac_cv_search_dlopen+set}" = set; then
12635   echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637   ac_func_search_save_LIBS=$LIBS
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h.  */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h.  */
12644
12645 /* Override any GCC internal prototype to avoid an error.
12646    Use char because int might match the return type of a GCC
12647    builtin and then its argument prototype would still apply.  */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char dlopen ();
12652 int
12653 main ()
12654 {
12655 return dlopen ();
12656   ;
12657   return 0;
12658 }
12659 _ACEOF
12660 for ac_lib in '' dl; do
12661   if test -z "$ac_lib"; then
12662     ac_res="none required"
12663   else
12664     ac_res=-l$ac_lib
12665     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12666   fi
12667   rm -f conftest.$ac_objext conftest$ac_exeext
12668 if { (ac_try="$ac_link"
12669 case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674   (eval "$ac_link") 2>conftest.er1
12675   ac_status=$?
12676   grep -v '^ *+' conftest.er1 >conftest.err
12677   rm -f conftest.er1
12678   cat conftest.err >&5
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); } &&
12681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12682   { (case "(($ac_try" in
12683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684   *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687   (eval "$ac_try") 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; } &&
12691          { ac_try='test -s conftest$ac_exeext'
12692   { (case "(($ac_try" in
12693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694   *) ac_try_echo=$ac_try;;
12695 esac
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697   (eval "$ac_try") 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); }; }; then
12701   ac_cv_search_dlopen=$ac_res
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706
12707 fi
12708
12709 rm -f core conftest.err conftest.$ac_objext \
12710       conftest$ac_exeext
12711   if test "${ac_cv_search_dlopen+set}" = set; then
12712   break
12713 fi
12714 done
12715 if test "${ac_cv_search_dlopen+set}" = set; then
12716   :
12717 else
12718   ac_cv_search_dlopen=no
12719 fi
12720 rm conftest.$ac_ext
12721 LIBS=$ac_func_search_save_LIBS
12722 fi
12723 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12724 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12725 ac_res=$ac_cv_search_dlopen
12726 if test "$ac_res" != no; then
12727   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12728
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_DLOPEN 1
12731 _ACEOF
12732
12733 else
12734   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12735 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12736 fi
12737
12738
12739 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12740 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12741 if test "${ac_cv_search_clock_gettime+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744   ac_func_search_save_LIBS=$LIBS
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h.  */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h.  */
12751
12752 /* Override any GCC internal prototype to avoid an error.
12753    Use char because int might match the return type of a GCC
12754    builtin and then its argument prototype would still apply.  */
12755 #ifdef __cplusplus
12756 extern "C"
12757 #endif
12758 char clock_gettime ();
12759 int
12760 main ()
12761 {
12762 return clock_gettime ();
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 for ac_lib in '' rt; do
12768   if test -z "$ac_lib"; then
12769     ac_res="none required"
12770   else
12771     ac_res=-l$ac_lib
12772     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12773   fi
12774   rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778   *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781   (eval "$ac_link") 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
12785   cat conftest.err >&5
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } &&
12788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789   { (case "(($ac_try" in
12790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791   *) ac_try_echo=$ac_try;;
12792 esac
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794   (eval "$ac_try") 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; } &&
12798          { ac_try='test -s conftest$ac_exeext'
12799   { (case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804   (eval "$ac_try") 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; }; then
12808   ac_cv_search_clock_gettime=$ac_res
12809 else
12810   echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12812
12813
12814 fi
12815
12816 rm -f core conftest.err conftest.$ac_objext \
12817       conftest$ac_exeext
12818   if test "${ac_cv_search_clock_gettime+set}" = set; then
12819   break
12820 fi
12821 done
12822 if test "${ac_cv_search_clock_gettime+set}" = set; then
12823   :
12824 else
12825   ac_cv_search_clock_gettime=no
12826 fi
12827 rm conftest.$ac_ext
12828 LIBS=$ac_func_search_save_LIBS
12829 fi
12830 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12831 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12832 ac_res=$ac_cv_search_clock_gettime
12833 if test "$ac_res" != no; then
12834   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12835
12836 fi
12837
12838
12839 if test "$llvm_cv_enable_libffi" = "yes" ; then
12840   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12841 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12842 if test "${ac_cv_search_ffi_call+set}" = set; then
12843   echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845   ac_func_search_save_LIBS=$LIBS
12846 cat >conftest.$ac_ext <<_ACEOF
12847 /* confdefs.h.  */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h.  */
12852
12853 /* Override any GCC internal prototype to avoid an error.
12854    Use char because int might match the return type of a GCC
12855    builtin and then its argument prototype would still apply.  */
12856 #ifdef __cplusplus
12857 extern "C"
12858 #endif
12859 char ffi_call ();
12860 int
12861 main ()
12862 {
12863 return ffi_call ();
12864   ;
12865   return 0;
12866 }
12867 _ACEOF
12868 for ac_lib in '' ffi; do
12869   if test -z "$ac_lib"; then
12870     ac_res="none required"
12871   else
12872     ac_res=-l$ac_lib
12873     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12874   fi
12875   rm -f conftest.$ac_objext conftest$ac_exeext
12876 if { (ac_try="$ac_link"
12877 case "(($ac_try" in
12878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879   *) ac_try_echo=$ac_try;;
12880 esac
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882   (eval "$ac_link") 2>conftest.er1
12883   ac_status=$?
12884   grep -v '^ *+' conftest.er1 >conftest.err
12885   rm -f conftest.er1
12886   cat conftest.err >&5
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } &&
12889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12890   { (case "(($ac_try" in
12891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892   *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895   (eval "$ac_try") 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); }; } &&
12899          { ac_try='test -s conftest$ac_exeext'
12900   { (case "(($ac_try" in
12901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902   *) ac_try_echo=$ac_try;;
12903 esac
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905   (eval "$ac_try") 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; }; then
12909   ac_cv_search_ffi_call=$ac_res
12910 else
12911   echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914
12915 fi
12916
12917 rm -f core conftest.err conftest.$ac_objext \
12918       conftest$ac_exeext
12919   if test "${ac_cv_search_ffi_call+set}" = set; then
12920   break
12921 fi
12922 done
12923 if test "${ac_cv_search_ffi_call+set}" = set; then
12924   :
12925 else
12926   ac_cv_search_ffi_call=no
12927 fi
12928 rm conftest.$ac_ext
12929 LIBS=$ac_func_search_save_LIBS
12930 fi
12931 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12932 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12933 ac_res=$ac_cv_search_ffi_call
12934 if test "$ac_res" != no; then
12935   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12936
12937 cat >>confdefs.h <<\_ACEOF
12938 #define HAVE_FFI_CALL 1
12939 _ACEOF
12940
12941 else
12942   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12943 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12944    { (exit 1); exit 1; }; }
12945 fi
12946
12947 fi
12948
12949 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12950 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12951 if test "${ac_cv_search_mallinfo+set}" = set; then
12952   echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954   ac_func_search_save_LIBS=$LIBS
12955 cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h.  */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h.  */
12961
12962 /* Override any GCC internal prototype to avoid an error.
12963    Use char because int might match the return type of a GCC
12964    builtin and then its argument prototype would still apply.  */
12965 #ifdef __cplusplus
12966 extern "C"
12967 #endif
12968 char mallinfo ();
12969 int
12970 main ()
12971 {
12972 return mallinfo ();
12973   ;
12974   return 0;
12975 }
12976 _ACEOF
12977 for ac_lib in '' malloc; do
12978   if test -z "$ac_lib"; then
12979     ac_res="none required"
12980   else
12981     ac_res=-l$ac_lib
12982     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12983   fi
12984   rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (ac_try="$ac_link"
12986 case "(($ac_try" in
12987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988   *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991   (eval "$ac_link") 2>conftest.er1
12992   ac_status=$?
12993   grep -v '^ *+' conftest.er1 >conftest.err
12994   rm -f conftest.er1
12995   cat conftest.err >&5
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } &&
12998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12999   { (case "(($ac_try" in
13000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001   *) ac_try_echo=$ac_try;;
13002 esac
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004   (eval "$ac_try") 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; } &&
13008          { ac_try='test -s conftest$ac_exeext'
13009   { (case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_try") 2>&5
13015   ac_status=$?
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); }; }; then
13018   ac_cv_search_mallinfo=$ac_res
13019 else
13020   echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13022
13023
13024 fi
13025
13026 rm -f core conftest.err conftest.$ac_objext \
13027       conftest$ac_exeext
13028   if test "${ac_cv_search_mallinfo+set}" = set; then
13029   break
13030 fi
13031 done
13032 if test "${ac_cv_search_mallinfo+set}" = set; then
13033   :
13034 else
13035   ac_cv_search_mallinfo=no
13036 fi
13037 rm conftest.$ac_ext
13038 LIBS=$ac_func_search_save_LIBS
13039 fi
13040 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13041 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13042 ac_res=$ac_cv_search_mallinfo
13043 if test "$ac_res" != no; then
13044   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13045
13046 cat >>confdefs.h <<\_ACEOF
13047 #define HAVE_MALLINFO 1
13048 _ACEOF
13049
13050 fi
13051
13052
13053 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13054
13055 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13056 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13057 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13058   echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060   ac_check_lib_save_LIBS=$LIBS
13061 LIBS="-lpthread  $LIBS"
13062 cat >conftest.$ac_ext <<_ACEOF
13063 /* confdefs.h.  */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h.  */
13068
13069 /* Override any GCC internal prototype to avoid an error.
13070    Use char because int might match the return type of a GCC
13071    builtin and then its argument prototype would still apply.  */
13072 #ifdef __cplusplus
13073 extern "C"
13074 #endif
13075 char pthread_mutex_init ();
13076 int
13077 main ()
13078 {
13079 return pthread_mutex_init ();
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (ac_try="$ac_link"
13086 case "(($ac_try" in
13087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088   *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091   (eval "$ac_link") 2>conftest.er1
13092   ac_status=$?
13093   grep -v '^ *+' conftest.er1 >conftest.err
13094   rm -f conftest.er1
13095   cat conftest.err >&5
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); } &&
13098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13099   { (case "(($ac_try" in
13100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101   *) ac_try_echo=$ac_try;;
13102 esac
13103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13104   (eval "$ac_try") 2>&5
13105   ac_status=$?
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); }; } &&
13108          { ac_try='test -s conftest$ac_exeext'
13109   { (case "(($ac_try" in
13110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111   *) ac_try_echo=$ac_try;;
13112 esac
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114   (eval "$ac_try") 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; }; then
13118   ac_cv_lib_pthread_pthread_mutex_init=yes
13119 else
13120   echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13122
13123         ac_cv_lib_pthread_pthread_mutex_init=no
13124 fi
13125
13126 rm -f core conftest.err conftest.$ac_objext \
13127       conftest$ac_exeext conftest.$ac_ext
13128 LIBS=$ac_check_lib_save_LIBS
13129 fi
13130 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13131 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13132 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13133   cat >>confdefs.h <<_ACEOF
13134 #define HAVE_LIBPTHREAD 1
13135 _ACEOF
13136
13137   LIBS="-lpthread $LIBS"
13138
13139 fi
13140
13141   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13142 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13143 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   ac_func_search_save_LIBS=$LIBS
13147 cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h.  */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h.  */
13153
13154 /* Override any GCC internal prototype to avoid an error.
13155    Use char because int might match the return type of a GCC
13156    builtin and then its argument prototype would still apply.  */
13157 #ifdef __cplusplus
13158 extern "C"
13159 #endif
13160 char pthread_mutex_lock ();
13161 int
13162 main ()
13163 {
13164 return pthread_mutex_lock ();
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 for ac_lib in '' pthread; do
13170   if test -z "$ac_lib"; then
13171     ac_res="none required"
13172   else
13173     ac_res=-l$ac_lib
13174     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13175   fi
13176   rm -f conftest.$ac_objext conftest$ac_exeext
13177 if { (ac_try="$ac_link"
13178 case "(($ac_try" in
13179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180   *) ac_try_echo=$ac_try;;
13181 esac
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183   (eval "$ac_link") 2>conftest.er1
13184   ac_status=$?
13185   grep -v '^ *+' conftest.er1 >conftest.err
13186   rm -f conftest.er1
13187   cat conftest.err >&5
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); } &&
13190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13191   { (case "(($ac_try" in
13192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193   *) ac_try_echo=$ac_try;;
13194 esac
13195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196   (eval "$ac_try") 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; } &&
13200          { ac_try='test -s conftest$ac_exeext'
13201   { (case "(($ac_try" in
13202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203   *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206   (eval "$ac_try") 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; }; then
13210   ac_cv_search_pthread_mutex_lock=$ac_res
13211 else
13212   echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215
13216 fi
13217
13218 rm -f core conftest.err conftest.$ac_objext \
13219       conftest$ac_exeext
13220   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13221   break
13222 fi
13223 done
13224 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13225   :
13226 else
13227   ac_cv_search_pthread_mutex_lock=no
13228 fi
13229 rm conftest.$ac_ext
13230 LIBS=$ac_func_search_save_LIBS
13231 fi
13232 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13233 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13234 ac_res=$ac_cv_search_pthread_mutex_lock
13235 if test "$ac_res" != no; then
13236   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13237
13238 cat >>confdefs.h <<\_ACEOF
13239 #define HAVE_PTHREAD_MUTEX_LOCK 1
13240 _ACEOF
13241
13242 fi
13243
13244   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13245 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13246 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13247   echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249   ac_func_search_save_LIBS=$LIBS
13250 cat >conftest.$ac_ext <<_ACEOF
13251 /* confdefs.h.  */
13252 _ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h.  */
13256
13257 /* Override any GCC internal prototype to avoid an error.
13258    Use char because int might match the return type of a GCC
13259    builtin and then its argument prototype would still apply.  */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 char pthread_rwlock_init ();
13264 int
13265 main ()
13266 {
13267 return pthread_rwlock_init ();
13268   ;
13269   return 0;
13270 }
13271 _ACEOF
13272 for ac_lib in '' pthread; do
13273   if test -z "$ac_lib"; then
13274     ac_res="none required"
13275   else
13276     ac_res=-l$ac_lib
13277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13278   fi
13279   rm -f conftest.$ac_objext conftest$ac_exeext
13280 if { (ac_try="$ac_link"
13281 case "(($ac_try" in
13282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283   *) ac_try_echo=$ac_try;;
13284 esac
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286   (eval "$ac_link") 2>conftest.er1
13287   ac_status=$?
13288   grep -v '^ *+' conftest.er1 >conftest.err
13289   rm -f conftest.er1
13290   cat conftest.err >&5
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } &&
13293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13294   { (case "(($ac_try" in
13295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296   *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299   (eval "$ac_try") 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); }; } &&
13303          { ac_try='test -s conftest$ac_exeext'
13304   { (case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_try") 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; }; then
13313   ac_cv_search_pthread_rwlock_init=$ac_res
13314 else
13315   echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318
13319 fi
13320
13321 rm -f core conftest.err conftest.$ac_objext \
13322       conftest$ac_exeext
13323   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13324   break
13325 fi
13326 done
13327 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13328   :
13329 else
13330   ac_cv_search_pthread_rwlock_init=no
13331 fi
13332 rm conftest.$ac_ext
13333 LIBS=$ac_func_search_save_LIBS
13334 fi
13335 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13336 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13337 ac_res=$ac_cv_search_pthread_rwlock_init
13338 if test "$ac_res" != no; then
13339   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13340
13341 cat >>confdefs.h <<\_ACEOF
13342 #define HAVE_PTHREAD_RWLOCK_INIT 1
13343 _ACEOF
13344
13345 fi
13346
13347   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13348 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13349 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13350   echo $ECHO_N "(cached) $ECHO_C" >&6
13351 else
13352   ac_func_search_save_LIBS=$LIBS
13353 cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359
13360 /* Override any GCC internal prototype to avoid an error.
13361    Use char because int might match the return type of a GCC
13362    builtin and then its argument prototype would still apply.  */
13363 #ifdef __cplusplus
13364 extern "C"
13365 #endif
13366 char pthread_getspecific ();
13367 int
13368 main ()
13369 {
13370 return pthread_getspecific ();
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 for ac_lib in '' pthread; do
13376   if test -z "$ac_lib"; then
13377     ac_res="none required"
13378   else
13379     ac_res=-l$ac_lib
13380     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13381   fi
13382   rm -f conftest.$ac_objext conftest$ac_exeext
13383 if { (ac_try="$ac_link"
13384 case "(($ac_try" in
13385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386   *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389   (eval "$ac_link") 2>conftest.er1
13390   ac_status=$?
13391   grep -v '^ *+' conftest.er1 >conftest.err
13392   rm -f conftest.er1
13393   cat conftest.err >&5
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); } &&
13396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13397   { (case "(($ac_try" in
13398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399   *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402   (eval "$ac_try") 2>&5
13403   ac_status=$?
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); }; } &&
13406          { ac_try='test -s conftest$ac_exeext'
13407   { (case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_try") 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; }; then
13416   ac_cv_search_pthread_getspecific=$ac_res
13417 else
13418   echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421
13422 fi
13423
13424 rm -f core conftest.err conftest.$ac_objext \
13425       conftest$ac_exeext
13426   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13427   break
13428 fi
13429 done
13430 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13431   :
13432 else
13433   ac_cv_search_pthread_getspecific=no
13434 fi
13435 rm conftest.$ac_ext
13436 LIBS=$ac_func_search_save_LIBS
13437 fi
13438 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13439 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13440 ac_res=$ac_cv_search_pthread_getspecific
13441 if test "$ac_res" != no; then
13442   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13443
13444 cat >>confdefs.h <<\_ACEOF
13445 #define HAVE_PTHREAD_GETSPECIFIC 1
13446 _ACEOF
13447
13448 fi
13449
13450 fi
13451
13452
13453 # Check whether --with-udis86 was given.
13454 if test "${with_udis86+set}" = set; then
13455   withval=$with_udis86;
13456       USE_UDIS86=1
13457
13458       case "$withval" in
13459         /usr/lib|yes) ;;
13460         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13461       esac
13462
13463 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13464 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13465 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468   ac_check_lib_save_LIBS=$LIBS
13469 LIBS="-ludis86  $LIBS"
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h.  */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h.  */
13476
13477 /* Override any GCC internal prototype to avoid an error.
13478    Use char because int might match the return type of a GCC
13479    builtin and then its argument prototype would still apply.  */
13480 #ifdef __cplusplus
13481 extern "C"
13482 #endif
13483 char ud_init ();
13484 int
13485 main ()
13486 {
13487 return ud_init ();
13488   ;
13489   return 0;
13490 }
13491 _ACEOF
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499   (eval "$ac_link") 2>conftest.er1
13500   ac_status=$?
13501   grep -v '^ *+' conftest.er1 >conftest.err
13502   rm -f conftest.er1
13503   cat conftest.err >&5
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } &&
13506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507   { (case "(($ac_try" in
13508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509   *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512   (eval "$ac_try") 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; } &&
13516          { ac_try='test -s conftest$ac_exeext'
13517   { (case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_try") 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; }; then
13526   ac_cv_lib_udis86_ud_init=yes
13527 else
13528   echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531         ac_cv_lib_udis86_ud_init=no
13532 fi
13533
13534 rm -f core conftest.err conftest.$ac_objext \
13535       conftest$ac_exeext conftest.$ac_ext
13536 LIBS=$ac_check_lib_save_LIBS
13537 fi
13538 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13539 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13540 if test $ac_cv_lib_udis86_ud_init = yes; then
13541   cat >>confdefs.h <<_ACEOF
13542 #define HAVE_LIBUDIS86 1
13543 _ACEOF
13544
13545   LIBS="-ludis86 $LIBS"
13546
13547 else
13548
13549         echo "Error! You need to have libudis86 around."
13550         exit -1
13551
13552 fi
13553
13554
13555 else
13556   USE_UDIS86=0
13557
13558 fi
13559
13560
13561 cat >>confdefs.h <<_ACEOF
13562 #define USE_UDIS86 $USE_UDIS86
13563 _ACEOF
13564
13565
13566
13567 # Check whether --with-oprofile was given.
13568 if test "${with_oprofile+set}" = set; then
13569   withval=$with_oprofile;
13570       USE_OPROFILE=1
13571
13572       case "$withval" in
13573         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13574         no) llvm_cv_oppath=
13575             USE_OPROFILE=0
13576  ;;
13577         *) llvm_cv_oppath="${withval}/lib/oprofile"
13578            CPPFLAGS="-I${withval}/include";;
13579       esac
13580       case $llvm_cv_os_type in
13581         Linux)
13582           if test -n "$llvm_cv_oppath" ; then
13583             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13584                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13585 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13586 if test "${ac_cv_search_bfd_init+set}" = set; then
13587   echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589   ac_func_search_save_LIBS=$LIBS
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h.  */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h.  */
13596
13597 /* Override any GCC internal prototype to avoid an error.
13598    Use char because int might match the return type of a GCC
13599    builtin and then its argument prototype would still apply.  */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 char bfd_init ();
13604 int
13605 main ()
13606 {
13607 return bfd_init ();
13608   ;
13609   return 0;
13610 }
13611 _ACEOF
13612 for ac_lib in '' bfd; do
13613   if test -z "$ac_lib"; then
13614     ac_res="none required"
13615   else
13616     ac_res=-l$ac_lib
13617     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13618   fi
13619   rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (ac_try="$ac_link"
13621 case "(($ac_try" in
13622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623   *) ac_try_echo=$ac_try;;
13624 esac
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626   (eval "$ac_link") 2>conftest.er1
13627   ac_status=$?
13628   grep -v '^ *+' conftest.er1 >conftest.err
13629   rm -f conftest.er1
13630   cat conftest.err >&5
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); } &&
13633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13634   { (case "(($ac_try" in
13635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636   *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639   (eval "$ac_try") 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; } &&
13643          { ac_try='test -s conftest$ac_exeext'
13644   { (case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649   (eval "$ac_try") 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }; }; then
13653   ac_cv_search_bfd_init=$ac_res
13654 else
13655   echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13657
13658
13659 fi
13660
13661 rm -f core conftest.err conftest.$ac_objext \
13662       conftest$ac_exeext
13663   if test "${ac_cv_search_bfd_init+set}" = set; then
13664   break
13665 fi
13666 done
13667 if test "${ac_cv_search_bfd_init+set}" = set; then
13668   :
13669 else
13670   ac_cv_search_bfd_init=no
13671 fi
13672 rm conftest.$ac_ext
13673 LIBS=$ac_func_search_save_LIBS
13674 fi
13675 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13676 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13677 ac_res=$ac_cv_search_bfd_init
13678 if test "$ac_res" != no; then
13679   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13680
13681 fi
13682
13683             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13684 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13685 if test "${ac_cv_search_op_open_agent+set}" = set; then
13686   echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688   ac_func_search_save_LIBS=$LIBS
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h.  */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h.  */
13695
13696 /* Override any GCC internal prototype to avoid an error.
13697    Use char because int might match the return type of a GCC
13698    builtin and then its argument prototype would still apply.  */
13699 #ifdef __cplusplus
13700 extern "C"
13701 #endif
13702 char op_open_agent ();
13703 int
13704 main ()
13705 {
13706 return op_open_agent ();
13707   ;
13708   return 0;
13709 }
13710 _ACEOF
13711 for ac_lib in '' opagent; do
13712   if test -z "$ac_lib"; then
13713     ac_res="none required"
13714   else
13715     ac_res=-l$ac_lib
13716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13717   fi
13718   rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (ac_try="$ac_link"
13720 case "(($ac_try" in
13721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722   *) ac_try_echo=$ac_try;;
13723 esac
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725   (eval "$ac_link") 2>conftest.er1
13726   ac_status=$?
13727   grep -v '^ *+' conftest.er1 >conftest.err
13728   rm -f conftest.er1
13729   cat conftest.err >&5
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } &&
13732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13733   { (case "(($ac_try" in
13734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735   *) ac_try_echo=$ac_try;;
13736 esac
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738   (eval "$ac_try") 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; } &&
13742          { ac_try='test -s conftest$ac_exeext'
13743   { (case "(($ac_try" in
13744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745   *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748   (eval "$ac_try") 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; }; then
13752   ac_cv_search_op_open_agent=$ac_res
13753 else
13754   echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757
13758 fi
13759
13760 rm -f core conftest.err conftest.$ac_objext \
13761       conftest$ac_exeext
13762   if test "${ac_cv_search_op_open_agent+set}" = set; then
13763   break
13764 fi
13765 done
13766 if test "${ac_cv_search_op_open_agent+set}" = set; then
13767   :
13768 else
13769   ac_cv_search_op_open_agent=no
13770 fi
13771 rm conftest.$ac_ext
13772 LIBS=$ac_func_search_save_LIBS
13773 fi
13774 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13775 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13776 ac_res=$ac_cv_search_op_open_agent
13777 if test "$ac_res" != no; then
13778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13779
13780 else
13781
13782               echo "Error! You need to have libopagent around."
13783               exit -1
13784
13785 fi
13786
13787             if test "${ac_cv_header_opagent_h+set}" = set; then
13788   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13789 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13790 if test "${ac_cv_header_opagent_h+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 fi
13793 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13794 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13795 else
13796   # Is the header compilable?
13797 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13798 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13805 $ac_includes_default
13806 #include <opagent.h>
13807 _ACEOF
13808 rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
13810 case "(($ac_try" in
13811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812   *) ac_try_echo=$ac_try;;
13813 esac
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815   (eval "$ac_compile") 2>conftest.er1
13816   ac_status=$?
13817   grep -v '^ *+' conftest.er1 >conftest.err
13818   rm -f conftest.er1
13819   cat conftest.err >&5
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); } &&
13822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13823   { (case "(($ac_try" in
13824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825   *) ac_try_echo=$ac_try;;
13826 esac
13827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13828   (eval "$ac_try") 2>&5
13829   ac_status=$?
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); }; } &&
13832          { ac_try='test -s conftest.$ac_objext'
13833   { (case "(($ac_try" in
13834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835   *) ac_try_echo=$ac_try;;
13836 esac
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838   (eval "$ac_try") 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; }; then
13842   ac_header_compiler=yes
13843 else
13844   echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847         ac_header_compiler=no
13848 fi
13849
13850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13852 echo "${ECHO_T}$ac_header_compiler" >&6; }
13853
13854 # Is the header present?
13855 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13856 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13857 cat >conftest.$ac_ext <<_ACEOF
13858 /* confdefs.h.  */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h.  */
13863 #include <opagent.h>
13864 _ACEOF
13865 if { (ac_try="$ac_cpp conftest.$ac_ext"
13866 case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13872   ac_status=$?
13873   grep -v '^ *+' conftest.er1 >conftest.err
13874   rm -f conftest.er1
13875   cat conftest.err >&5
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); } >/dev/null; then
13878   if test -s conftest.err; then
13879     ac_cpp_err=$ac_c_preproc_warn_flag
13880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13881   else
13882     ac_cpp_err=
13883   fi
13884 else
13885   ac_cpp_err=yes
13886 fi
13887 if test -z "$ac_cpp_err"; then
13888   ac_header_preproc=yes
13889 else
13890   echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13892
13893   ac_header_preproc=no
13894 fi
13895
13896 rm -f conftest.err conftest.$ac_ext
13897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13898 echo "${ECHO_T}$ac_header_preproc" >&6; }
13899
13900 # So?  What about this header?
13901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13902   yes:no: )
13903     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13904 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13905     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13906 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13907     ac_header_preproc=yes
13908     ;;
13909   no:yes:* )
13910     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13911 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13912     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13913 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13914     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13915 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13916     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13917 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13918     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13919 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13920     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13921 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13922     ( cat <<\_ASBOX
13923 ## ------------------------------------ ##
13924 ## Report this to http://llvm.org/bugs/ ##
13925 ## ------------------------------------ ##
13926 _ASBOX
13927      ) | sed "s/^/$as_me: WARNING:     /" >&2
13928     ;;
13929 esac
13930 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13931 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13932 if test "${ac_cv_header_opagent_h+set}" = set; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935   ac_cv_header_opagent_h=$ac_header_preproc
13936 fi
13937 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13938 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13939
13940 fi
13941 if test $ac_cv_header_opagent_h = yes; then
13942   :
13943 else
13944
13945               echo "Error! You need to have opagent.h around."
13946               exit -1
13947
13948 fi
13949
13950
13951           fi ;;
13952         *)
13953           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13954 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13955    { (exit 1); exit 1; }; } ;;
13956       esac
13957
13958 else
13959
13960       USE_OPROFILE=0
13961
13962
13963 fi
13964
13965
13966 cat >>confdefs.h <<_ACEOF
13967 #define LLVM_USE_OPROFILE $USE_OPROFILE
13968 _ACEOF
13969
13970
13971
13972 # Check whether --with-intel-jitevents was given.
13973 if test "${with_intel_jitevents+set}" = set; then
13974   withval=$with_intel_jitevents;
13975        case "$withval" in
13976           yes) USE_INTEL_JITEVENTS=1
13977 ;;
13978           no)  USE_INTEL_JITEVENTS=0
13979 ;;
13980           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13981 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13982    { (exit 1); exit 1; }; };;
13983        esac
13984
13985       case $llvm_cv_os_type in
13986         Linux|Win32|Cygwin|MingW) ;;
13987         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13988 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13989    { (exit 1); exit 1; }; };;
13990       esac
13991
13992       case "$llvm_cv_target_arch" in
13993         x86|x86_64) ;;
13994         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13995 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13996    { (exit 1); exit 1; }; };;
13997       esac
13998
13999 else
14000
14001       USE_INTEL_JITEVENTS=0
14002
14003
14004 fi
14005
14006
14007 cat >>confdefs.h <<_ACEOF
14008 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14009 _ACEOF
14010
14011
14012 for ac_prog in xml2-config
14013 do
14014   # Extract the first word of "$ac_prog", so it can be a program name with args.
14015 set dummy $ac_prog; ac_word=$2
14016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14018 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14019   echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021   if test -n "$XML2CONFIG"; then
14022   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14023 else
14024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025 for as_dir in $PATH
14026 do
14027   IFS=$as_save_IFS
14028   test -z "$as_dir" && as_dir=.
14029   for ac_exec_ext in '' $ac_executable_extensions; do
14030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14031     ac_cv_prog_XML2CONFIG="$ac_prog"
14032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14033     break 2
14034   fi
14035 done
14036 done
14037 IFS=$as_save_IFS
14038
14039 fi
14040 fi
14041 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14042 if test -n "$XML2CONFIG"; then
14043   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14044 echo "${ECHO_T}$XML2CONFIG" >&6; }
14045 else
14046   { echo "$as_me:$LINENO: result: no" >&5
14047 echo "${ECHO_T}no" >&6; }
14048 fi
14049
14050
14051   test -n "$XML2CONFIG" && break
14052 done
14053
14054
14055 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14056 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14057 if test "x$XML2CONFIG" = "x"; then
14058  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14059 echo "${ECHO_T}xml2-config not found" >&6; }
14060 else
14061  LIBXML2_INC=`$XML2CONFIG --cflags`
14062  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14063 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14064  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14065 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14066 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   ac_check_lib_save_LIBS=$LIBS
14070 LIBS="-lxml2  $LIBS"
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077
14078 /* Override any GCC internal prototype to avoid an error.
14079    Use char because int might match the return type of a GCC
14080    builtin and then its argument prototype would still apply.  */
14081 #ifdef __cplusplus
14082 extern "C"
14083 #endif
14084 char xmlReadFile ();
14085 int
14086 main ()
14087 {
14088 return xmlReadFile ();
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (ac_try="$ac_link"
14095 case "(($ac_try" in
14096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097   *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100   (eval "$ac_link") 2>conftest.er1
14101   ac_status=$?
14102   grep -v '^ *+' conftest.er1 >conftest.err
14103   rm -f conftest.er1
14104   cat conftest.err >&5
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); } &&
14107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14108   { (case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_try") 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; } &&
14117          { ac_try='test -s conftest$ac_exeext'
14118   { (case "(($ac_try" in
14119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14120   *) ac_try_echo=$ac_try;;
14121 esac
14122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14123   (eval "$ac_try") 2>&5
14124   ac_status=$?
14125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126   (exit $ac_status); }; }; then
14127   ac_cv_lib_xml2_xmlReadFile=yes
14128 else
14129   echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132         ac_cv_lib_xml2_xmlReadFile=no
14133 fi
14134
14135 rm -f core conftest.err conftest.$ac_objext \
14136       conftest$ac_exeext conftest.$ac_ext
14137 LIBS=$ac_check_lib_save_LIBS
14138 fi
14139 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14140 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14141 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14142
14143 cat >>confdefs.h <<\_ACEOF
14144 #define CLANG_HAVE_LIBXML 1
14145 _ACEOF
14146
14147                                 LIBXML2_LIBS="-lxml2"
14148 fi
14149
14150 fi
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160 ac_header_dirent=no
14161 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14162   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14163 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14164 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168   cat >conftest.$ac_ext <<_ACEOF
14169 /* confdefs.h.  */
14170 _ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h.  */
14174 #include <sys/types.h>
14175 #include <$ac_hdr>
14176
14177 int
14178 main ()
14179 {
14180 if ((DIR *) 0)
14181 return 0;
14182   ;
14183   return 0;
14184 }
14185 _ACEOF
14186 rm -f conftest.$ac_objext
14187 if { (ac_try="$ac_compile"
14188 case "(($ac_try" in
14189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190   *) ac_try_echo=$ac_try;;
14191 esac
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193   (eval "$ac_compile") 2>conftest.er1
14194   ac_status=$?
14195   grep -v '^ *+' conftest.er1 >conftest.err
14196   rm -f conftest.er1
14197   cat conftest.err >&5
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } &&
14200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14201   { (case "(($ac_try" in
14202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203   *) ac_try_echo=$ac_try;;
14204 esac
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206   (eval "$ac_try") 2>&5
14207   ac_status=$?
14208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); }; } &&
14210          { ac_try='test -s conftest.$ac_objext'
14211   { (case "(($ac_try" in
14212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213   *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216   (eval "$ac_try") 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); }; }; then
14220   eval "$as_ac_Header=yes"
14221 else
14222   echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225         eval "$as_ac_Header=no"
14226 fi
14227
14228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14229 fi
14230 ac_res=`eval echo '${'$as_ac_Header'}'`
14231                { echo "$as_me:$LINENO: result: $ac_res" >&5
14232 echo "${ECHO_T}$ac_res" >&6; }
14233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14234   cat >>confdefs.h <<_ACEOF
14235 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14236 _ACEOF
14237
14238 ac_header_dirent=$ac_hdr; break
14239 fi
14240
14241 done
14242 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14243 if test $ac_header_dirent = dirent.h; then
14244   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14245 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14246 if test "${ac_cv_search_opendir+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   ac_func_search_save_LIBS=$LIBS
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256
14257 /* Override any GCC internal prototype to avoid an error.
14258    Use char because int might match the return type of a GCC
14259    builtin and then its argument prototype would still apply.  */
14260 #ifdef __cplusplus
14261 extern "C"
14262 #endif
14263 char opendir ();
14264 int
14265 main ()
14266 {
14267 return opendir ();
14268   ;
14269   return 0;
14270 }
14271 _ACEOF
14272 for ac_lib in '' dir; do
14273   if test -z "$ac_lib"; then
14274     ac_res="none required"
14275   else
14276     ac_res=-l$ac_lib
14277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14278   fi
14279   rm -f conftest.$ac_objext conftest$ac_exeext
14280 if { (ac_try="$ac_link"
14281 case "(($ac_try" in
14282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283   *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286   (eval "$ac_link") 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14294   { (case "(($ac_try" in
14295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296   *) ac_try_echo=$ac_try;;
14297 esac
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299   (eval "$ac_try") 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; } &&
14303          { ac_try='test -s conftest$ac_exeext'
14304   { (case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_try") 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; }; then
14313   ac_cv_search_opendir=$ac_res
14314 else
14315   echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext \
14322       conftest$ac_exeext
14323   if test "${ac_cv_search_opendir+set}" = set; then
14324   break
14325 fi
14326 done
14327 if test "${ac_cv_search_opendir+set}" = set; then
14328   :
14329 else
14330   ac_cv_search_opendir=no
14331 fi
14332 rm conftest.$ac_ext
14333 LIBS=$ac_func_search_save_LIBS
14334 fi
14335 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14336 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14337 ac_res=$ac_cv_search_opendir
14338 if test "$ac_res" != no; then
14339   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14340
14341 fi
14342
14343 else
14344   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14345 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14346 if test "${ac_cv_search_opendir+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   ac_func_search_save_LIBS=$LIBS
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h.  */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h.  */
14356
14357 /* Override any GCC internal prototype to avoid an error.
14358    Use char because int might match the return type of a GCC
14359    builtin and then its argument prototype would still apply.  */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char opendir ();
14364 int
14365 main ()
14366 {
14367 return opendir ();
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 for ac_lib in '' x; do
14373   if test -z "$ac_lib"; then
14374     ac_res="none required"
14375   else
14376     ac_res=-l$ac_lib
14377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14378   fi
14379   rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383   *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386   (eval "$ac_link") 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14394   { (case "(($ac_try" in
14395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396   *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399   (eval "$ac_try") 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; } &&
14403          { ac_try='test -s conftest$ac_exeext'
14404   { (case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_try") 2>&5
14410   ac_status=$?
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); }; }; then
14413   ac_cv_search_opendir=$ac_res
14414 else
14415   echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14417
14418
14419 fi
14420
14421 rm -f core conftest.err conftest.$ac_objext \
14422       conftest$ac_exeext
14423   if test "${ac_cv_search_opendir+set}" = set; then
14424   break
14425 fi
14426 done
14427 if test "${ac_cv_search_opendir+set}" = set; then
14428   :
14429 else
14430   ac_cv_search_opendir=no
14431 fi
14432 rm conftest.$ac_ext
14433 LIBS=$ac_func_search_save_LIBS
14434 fi
14435 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14436 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14437 ac_res=$ac_cv_search_opendir
14438 if test "$ac_res" != no; then
14439   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14440
14441 fi
14442
14443 fi
14444
14445 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14446 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14447 if test "${ac_cv_header_mmap_anon+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450    ac_ext=c
14451 ac_cpp='$CPP $CPPFLAGS'
14452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14455
14456   cat >conftest.$ac_ext <<_ACEOF
14457 /* confdefs.h.  */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h.  */
14462 #include <sys/mman.h>
14463 #include <unistd.h>
14464 #include <fcntl.h>
14465 int
14466 main ()
14467 {
14468 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477   *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480   (eval "$ac_compile") 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } &&
14487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14488   { (case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493   (eval "$ac_try") 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; } &&
14497          { ac_try='test -s conftest.$ac_objext'
14498   { (case "(($ac_try" in
14499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500   *) ac_try_echo=$ac_try;;
14501 esac
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503   (eval "$ac_try") 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; }; then
14507   ac_cv_header_mmap_anon=yes
14508 else
14509   echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512         ac_cv_header_mmap_anon=no
14513 fi
14514
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516   ac_ext=c
14517 ac_cpp='$CPP $CPPFLAGS'
14518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14521
14522
14523 fi
14524 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14525 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14526 if test "$ac_cv_header_mmap_anon" = yes; then
14527
14528 cat >>confdefs.h <<\_ACEOF
14529 #define HAVE_MMAP_ANONYMOUS 1
14530 _ACEOF
14531
14532 fi
14533
14534 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14535 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14536 if test "${ac_cv_header_stat_broken+set}" = set; then
14537   echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539   cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 #include <sys/types.h>
14546 #include <sys/stat.h>
14547
14548 #if defined S_ISBLK && defined S_IFDIR
14549 # if S_ISBLK (S_IFDIR)
14550 You lose.
14551 # endif
14552 #endif
14553
14554 #if defined S_ISBLK && defined S_IFCHR
14555 # if S_ISBLK (S_IFCHR)
14556 You lose.
14557 # endif
14558 #endif
14559
14560 #if defined S_ISLNK && defined S_IFREG
14561 # if S_ISLNK (S_IFREG)
14562 You lose.
14563 # endif
14564 #endif
14565
14566 #if defined S_ISSOCK && defined S_IFREG
14567 # if S_ISSOCK (S_IFREG)
14568 You lose.
14569 # endif
14570 #endif
14571
14572 _ACEOF
14573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14574   $EGREP "You lose" >/dev/null 2>&1; then
14575   ac_cv_header_stat_broken=yes
14576 else
14577   ac_cv_header_stat_broken=no
14578 fi
14579 rm -f conftest*
14580
14581 fi
14582 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14583 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14584 if test $ac_cv_header_stat_broken = yes; then
14585
14586 cat >>confdefs.h <<\_ACEOF
14587 #define STAT_MACROS_BROKEN 1
14588 _ACEOF
14589
14590 fi
14591
14592 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14593 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14594 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14595   echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597   cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h.  */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h.  */
14603 #include <sys/types.h>
14604 #include <sys/wait.h>
14605 #ifndef WEXITSTATUS
14606 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14607 #endif
14608 #ifndef WIFEXITED
14609 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14610 #endif
14611
14612 int
14613 main ()
14614 {
14615   int s;
14616   wait (&s);
14617   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14618   ;
14619   return 0;
14620 }
14621 _ACEOF
14622 rm -f conftest.$ac_objext
14623 if { (ac_try="$ac_compile"
14624 case "(($ac_try" in
14625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626   *) ac_try_echo=$ac_try;;
14627 esac
14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629   (eval "$ac_compile") 2>conftest.er1
14630   ac_status=$?
14631   grep -v '^ *+' conftest.er1 >conftest.err
14632   rm -f conftest.er1
14633   cat conftest.err >&5
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } &&
14636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14637   { (case "(($ac_try" in
14638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639   *) ac_try_echo=$ac_try;;
14640 esac
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642   (eval "$ac_try") 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; } &&
14646          { ac_try='test -s conftest.$ac_objext'
14647   { (case "(($ac_try" in
14648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649   *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652   (eval "$ac_try") 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; }; then
14656   ac_cv_header_sys_wait_h=yes
14657 else
14658   echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661         ac_cv_header_sys_wait_h=no
14662 fi
14663
14664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665 fi
14666 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14667 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14668 if test $ac_cv_header_sys_wait_h = yes; then
14669
14670 cat >>confdefs.h <<\_ACEOF
14671 #define HAVE_SYS_WAIT_H 1
14672 _ACEOF
14673
14674 fi
14675
14676 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14677 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14678 if test "${ac_cv_header_time+set}" = set; then
14679   echo $ECHO_N "(cached) $ECHO_C" >&6
14680 else
14681   cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687 #include <sys/types.h>
14688 #include <sys/time.h>
14689 #include <time.h>
14690
14691 int
14692 main ()
14693 {
14694 if ((struct tm *) 0)
14695 return 0;
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704   *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707   (eval "$ac_compile") 2>conftest.er1
14708   ac_status=$?
14709   grep -v '^ *+' conftest.er1 >conftest.err
14710   rm -f conftest.er1
14711   cat conftest.err >&5
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); } &&
14714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14715   { (case "(($ac_try" in
14716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717   *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720   (eval "$ac_try") 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; } &&
14724          { ac_try='test -s conftest.$ac_objext'
14725   { (case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730   (eval "$ac_try") 2>&5
14731   ac_status=$?
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); }; }; then
14734   ac_cv_header_time=yes
14735 else
14736   echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739         ac_cv_header_time=no
14740 fi
14741
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 fi
14744 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14745 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14746 if test $ac_cv_header_time = yes; then
14747
14748 cat >>confdefs.h <<\_ACEOF
14749 #define TIME_WITH_SYS_TIME 1
14750 _ACEOF
14751
14752 fi
14753
14754
14755
14756
14757
14758
14759
14760
14761 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14762 do
14763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14765   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14768   echo $ECHO_N "(cached) $ECHO_C" >&6
14769 fi
14770 ac_res=`eval echo '${'$as_ac_Header'}'`
14771                { echo "$as_me:$LINENO: result: $ac_res" >&5
14772 echo "${ECHO_T}$ac_res" >&6; }
14773 else
14774   # Is the header compilable?
14775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14777 cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h.  */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h.  */
14783 $ac_includes_default
14784 #include <$ac_header>
14785 _ACEOF
14786 rm -f conftest.$ac_objext
14787 if { (ac_try="$ac_compile"
14788 case "(($ac_try" in
14789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790   *) ac_try_echo=$ac_try;;
14791 esac
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793   (eval "$ac_compile") 2>conftest.er1
14794   ac_status=$?
14795   grep -v '^ *+' conftest.er1 >conftest.err
14796   rm -f conftest.er1
14797   cat conftest.err >&5
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); } &&
14800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14801   { (case "(($ac_try" in
14802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803   *) ac_try_echo=$ac_try;;
14804 esac
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806   (eval "$ac_try") 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; } &&
14810          { ac_try='test -s conftest.$ac_objext'
14811   { (case "(($ac_try" in
14812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813   *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816   (eval "$ac_try") 2>&5
14817   ac_status=$?
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); }; }; then
14820   ac_header_compiler=yes
14821 else
14822   echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14824
14825         ac_header_compiler=no
14826 fi
14827
14828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14830 echo "${ECHO_T}$ac_header_compiler" >&6; }
14831
14832 # Is the header present?
14833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841 #include <$ac_header>
14842 _ACEOF
14843 if { (ac_try="$ac_cpp conftest.$ac_ext"
14844 case "(($ac_try" in
14845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846   *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14850   ac_status=$?
14851   grep -v '^ *+' conftest.er1 >conftest.err
14852   rm -f conftest.er1
14853   cat conftest.err >&5
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); } >/dev/null; then
14856   if test -s conftest.err; then
14857     ac_cpp_err=$ac_c_preproc_warn_flag
14858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14859   else
14860     ac_cpp_err=
14861   fi
14862 else
14863   ac_cpp_err=yes
14864 fi
14865 if test -z "$ac_cpp_err"; then
14866   ac_header_preproc=yes
14867 else
14868   echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14870
14871   ac_header_preproc=no
14872 fi
14873
14874 rm -f conftest.err conftest.$ac_ext
14875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14876 echo "${ECHO_T}$ac_header_preproc" >&6; }
14877
14878 # So?  What about this header?
14879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14880   yes:no: )
14881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14885     ac_header_preproc=yes
14886     ;;
14887   no:yes:* )
14888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14900     ( cat <<\_ASBOX
14901 ## ------------------------------------ ##
14902 ## Report this to http://llvm.org/bugs/ ##
14903 ## ------------------------------------ ##
14904 _ASBOX
14905      ) | sed "s/^/$as_me: WARNING:     /" >&2
14906     ;;
14907 esac
14908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14911   echo $ECHO_N "(cached) $ECHO_C" >&6
14912 else
14913   eval "$as_ac_Header=\$ac_header_preproc"
14914 fi
14915 ac_res=`eval echo '${'$as_ac_Header'}'`
14916                { echo "$as_me:$LINENO: result: $ac_res" >&5
14917 echo "${ECHO_T}$ac_res" >&6; }
14918
14919 fi
14920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14921   cat >>confdefs.h <<_ACEOF
14922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14923 _ACEOF
14924
14925 fi
14926
14927 done
14928
14929
14930
14931
14932
14933
14934
14935 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14936 do
14937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 fi
14944 ac_res=`eval echo '${'$as_ac_Header'}'`
14945                { echo "$as_me:$LINENO: result: $ac_res" >&5
14946 echo "${ECHO_T}$ac_res" >&6; }
14947 else
14948   # Is the header compilable?
14949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14951 cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h.  */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h.  */
14957 $ac_includes_default
14958 #include <$ac_header>
14959 _ACEOF
14960 rm -f conftest.$ac_objext
14961 if { (ac_try="$ac_compile"
14962 case "(($ac_try" in
14963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964   *) ac_try_echo=$ac_try;;
14965 esac
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967   (eval "$ac_compile") 2>conftest.er1
14968   ac_status=$?
14969   grep -v '^ *+' conftest.er1 >conftest.err
14970   rm -f conftest.er1
14971   cat conftest.err >&5
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); } &&
14974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14975   { (case "(($ac_try" in
14976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977   *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980   (eval "$ac_try") 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; } &&
14984          { ac_try='test -s conftest.$ac_objext'
14985   { (case "(($ac_try" in
14986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987   *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990   (eval "$ac_try") 2>&5
14991   ac_status=$?
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); }; }; then
14994   ac_header_compiler=yes
14995 else
14996   echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999         ac_header_compiler=no
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15004 echo "${ECHO_T}$ac_header_compiler" >&6; }
15005
15006 # Is the header present?
15007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h.  */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h.  */
15015 #include <$ac_header>
15016 _ACEOF
15017 if { (ac_try="$ac_cpp conftest.$ac_ext"
15018 case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15024   ac_status=$?
15025   grep -v '^ *+' conftest.er1 >conftest.err
15026   rm -f conftest.er1
15027   cat conftest.err >&5
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); } >/dev/null; then
15030   if test -s conftest.err; then
15031     ac_cpp_err=$ac_c_preproc_warn_flag
15032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15033   else
15034     ac_cpp_err=
15035   fi
15036 else
15037   ac_cpp_err=yes
15038 fi
15039 if test -z "$ac_cpp_err"; then
15040   ac_header_preproc=yes
15041 else
15042   echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045   ac_header_preproc=no
15046 fi
15047
15048 rm -f conftest.err conftest.$ac_ext
15049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15050 echo "${ECHO_T}$ac_header_preproc" >&6; }
15051
15052 # So?  What about this header?
15053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15054   yes:no: )
15055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15059     ac_header_preproc=yes
15060     ;;
15061   no:yes:* )
15062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15064     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15065 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15068     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15069 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15074     ( cat <<\_ASBOX
15075 ## ------------------------------------ ##
15076 ## Report this to http://llvm.org/bugs/ ##
15077 ## ------------------------------------ ##
15078 _ASBOX
15079      ) | sed "s/^/$as_me: WARNING:     /" >&2
15080     ;;
15081 esac
15082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087   eval "$as_ac_Header=\$ac_header_preproc"
15088 fi
15089 ac_res=`eval echo '${'$as_ac_Header'}'`
15090                { echo "$as_me:$LINENO: result: $ac_res" >&5
15091 echo "${ECHO_T}$ac_res" >&6; }
15092
15093 fi
15094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15095   cat >>confdefs.h <<_ACEOF
15096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15097 _ACEOF
15098
15099 fi
15100
15101 done
15102
15103
15104
15105 for ac_header in utime.h windows.h
15106 do
15107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 fi
15114 ac_res=`eval echo '${'$as_ac_Header'}'`
15115                { echo "$as_me:$LINENO: result: $ac_res" >&5
15116 echo "${ECHO_T}$ac_res" >&6; }
15117 else
15118   # Is the header compilable?
15119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h.  */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h.  */
15127 $ac_includes_default
15128 #include <$ac_header>
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134   *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137   (eval "$ac_compile") 2>conftest.er1
15138   ac_status=$?
15139   grep -v '^ *+' conftest.er1 >conftest.err
15140   rm -f conftest.er1
15141   cat conftest.err >&5
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); } &&
15144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145   { (case "(($ac_try" in
15146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147   *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150   (eval "$ac_try") 2>&5
15151   ac_status=$?
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); }; } &&
15154          { ac_try='test -s conftest.$ac_objext'
15155   { (case "(($ac_try" in
15156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157   *) ac_try_echo=$ac_try;;
15158 esac
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160   (eval "$ac_try") 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164   ac_header_compiler=yes
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169         ac_header_compiler=no
15170 fi
15171
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15174 echo "${ECHO_T}$ac_header_compiler" >&6; }
15175
15176 # Is the header present?
15177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h.  */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h.  */
15185 #include <$ac_header>
15186 _ACEOF
15187 if { (ac_try="$ac_cpp conftest.$ac_ext"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } >/dev/null; then
15200   if test -s conftest.err; then
15201     ac_cpp_err=$ac_c_preproc_warn_flag
15202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15203   else
15204     ac_cpp_err=
15205   fi
15206 else
15207   ac_cpp_err=yes
15208 fi
15209 if test -z "$ac_cpp_err"; then
15210   ac_header_preproc=yes
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215   ac_header_preproc=no
15216 fi
15217
15218 rm -f conftest.err conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6; }
15221
15222 # So?  What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224   yes:no: )
15225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229     ac_header_preproc=yes
15230     ;;
15231   no:yes:* )
15232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15244     ( cat <<\_ASBOX
15245 ## ------------------------------------ ##
15246 ## Report this to http://llvm.org/bugs/ ##
15247 ## ------------------------------------ ##
15248 _ASBOX
15249      ) | sed "s/^/$as_me: WARNING:     /" >&2
15250     ;;
15251 esac
15252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255   echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257   eval "$as_ac_Header=\$ac_header_preproc"
15258 fi
15259 ac_res=`eval echo '${'$as_ac_Header'}'`
15260                { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262
15263 fi
15264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265   cat >>confdefs.h <<_ACEOF
15266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15267 _ACEOF
15268
15269 fi
15270
15271 done
15272
15273
15274
15275
15276
15277
15278 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15279 do
15280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15282   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15285   echo $ECHO_N "(cached) $ECHO_C" >&6
15286 fi
15287 ac_res=`eval echo '${'$as_ac_Header'}'`
15288                { echo "$as_me:$LINENO: result: $ac_res" >&5
15289 echo "${ECHO_T}$ac_res" >&6; }
15290 else
15291   # Is the header compilable?
15292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300 $ac_includes_default
15301 #include <$ac_header>
15302 _ACEOF
15303 rm -f conftest.$ac_objext
15304 if { (ac_try="$ac_compile"
15305 case "(($ac_try" in
15306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307   *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310   (eval "$ac_compile") 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } &&
15317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15318   { (case "(($ac_try" in
15319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320   *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323   (eval "$ac_try") 2>&5
15324   ac_status=$?
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); }; } &&
15327          { ac_try='test -s conftest.$ac_objext'
15328   { (case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333   (eval "$ac_try") 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; }; then
15337   ac_header_compiler=yes
15338 else
15339   echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342         ac_header_compiler=no
15343 fi
15344
15345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15347 echo "${ECHO_T}$ac_header_compiler" >&6; }
15348
15349 # Is the header present?
15350 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15352 cat >conftest.$ac_ext <<_ACEOF
15353 /* confdefs.h.  */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h.  */
15358 #include <$ac_header>
15359 _ACEOF
15360 if { (ac_try="$ac_cpp conftest.$ac_ext"
15361 case "(($ac_try" in
15362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363   *) ac_try_echo=$ac_try;;
15364 esac
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15367   ac_status=$?
15368   grep -v '^ *+' conftest.er1 >conftest.err
15369   rm -f conftest.er1
15370   cat conftest.err >&5
15371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372   (exit $ac_status); } >/dev/null; then
15373   if test -s conftest.err; then
15374     ac_cpp_err=$ac_c_preproc_warn_flag
15375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15376   else
15377     ac_cpp_err=
15378   fi
15379 else
15380   ac_cpp_err=yes
15381 fi
15382 if test -z "$ac_cpp_err"; then
15383   ac_header_preproc=yes
15384 else
15385   echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15387
15388   ac_header_preproc=no
15389 fi
15390
15391 rm -f conftest.err conftest.$ac_ext
15392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15393 echo "${ECHO_T}$ac_header_preproc" >&6; }
15394
15395 # So?  What about this header?
15396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15397   yes:no: )
15398     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15402     ac_header_preproc=yes
15403     ;;
15404   no:yes:* )
15405     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15407     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15408 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15409     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15411     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15412 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15415     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15417     ( cat <<\_ASBOX
15418 ## ------------------------------------ ##
15419 ## Report this to http://llvm.org/bugs/ ##
15420 ## ------------------------------------ ##
15421 _ASBOX
15422      ) | sed "s/^/$as_me: WARNING:     /" >&2
15423     ;;
15424 esac
15425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15428   echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430   eval "$as_ac_Header=\$ac_header_preproc"
15431 fi
15432 ac_res=`eval echo '${'$as_ac_Header'}'`
15433                { echo "$as_me:$LINENO: result: $ac_res" >&5
15434 echo "${ECHO_T}$ac_res" >&6; }
15435
15436 fi
15437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15438   cat >>confdefs.h <<_ACEOF
15439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15440 _ACEOF
15441
15442 fi
15443
15444 done
15445
15446
15447
15448
15449
15450 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15451 do
15452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15454   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 fi
15459 ac_res=`eval echo '${'$as_ac_Header'}'`
15460                { echo "$as_me:$LINENO: result: $ac_res" >&5
15461 echo "${ECHO_T}$ac_res" >&6; }
15462 else
15463   # Is the header compilable?
15464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472 $ac_includes_default
15473 #include <$ac_header>
15474 _ACEOF
15475 rm -f conftest.$ac_objext
15476 if { (ac_try="$ac_compile"
15477 case "(($ac_try" in
15478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479   *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482   (eval "$ac_compile") 2>conftest.er1
15483   ac_status=$?
15484   grep -v '^ *+' conftest.er1 >conftest.err
15485   rm -f conftest.er1
15486   cat conftest.err >&5
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); } &&
15489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15490   { (case "(($ac_try" in
15491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492   *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495   (eval "$ac_try") 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; } &&
15499          { ac_try='test -s conftest.$ac_objext'
15500   { (case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_try") 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; }; then
15509   ac_header_compiler=yes
15510 else
15511   echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514         ac_header_compiler=no
15515 fi
15516
15517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15519 echo "${ECHO_T}$ac_header_compiler" >&6; }
15520
15521 # Is the header present?
15522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15524 cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h.  */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h.  */
15530 #include <$ac_header>
15531 _ACEOF
15532 if { (ac_try="$ac_cpp conftest.$ac_ext"
15533 case "(($ac_try" in
15534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535   *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15539   ac_status=$?
15540   grep -v '^ *+' conftest.er1 >conftest.err
15541   rm -f conftest.er1
15542   cat conftest.err >&5
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } >/dev/null; then
15545   if test -s conftest.err; then
15546     ac_cpp_err=$ac_c_preproc_warn_flag
15547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15548   else
15549     ac_cpp_err=
15550   fi
15551 else
15552   ac_cpp_err=yes
15553 fi
15554 if test -z "$ac_cpp_err"; then
15555   ac_header_preproc=yes
15556 else
15557   echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560   ac_header_preproc=no
15561 fi
15562
15563 rm -f conftest.err conftest.$ac_ext
15564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15565 echo "${ECHO_T}$ac_header_preproc" >&6; }
15566
15567 # So?  What about this header?
15568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15569   yes:no: )
15570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15574     ac_header_preproc=yes
15575     ;;
15576   no:yes:* )
15577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15589     ( cat <<\_ASBOX
15590 ## ------------------------------------ ##
15591 ## Report this to http://llvm.org/bugs/ ##
15592 ## ------------------------------------ ##
15593 _ASBOX
15594      ) | sed "s/^/$as_me: WARNING:     /" >&2
15595     ;;
15596 esac
15597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15600   echo $ECHO_N "(cached) $ECHO_C" >&6
15601 else
15602   eval "$as_ac_Header=\$ac_header_preproc"
15603 fi
15604 ac_res=`eval echo '${'$as_ac_Header'}'`
15605                { echo "$as_me:$LINENO: result: $ac_res" >&5
15606 echo "${ECHO_T}$ac_res" >&6; }
15607
15608 fi
15609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15610   cat >>confdefs.h <<_ACEOF
15611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15612 _ACEOF
15613
15614 fi
15615
15616 done
15617
15618
15619 for ac_header in valgrind/valgrind.h
15620 do
15621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15626   echo $ECHO_N "(cached) $ECHO_C" >&6
15627 fi
15628 ac_res=`eval echo '${'$as_ac_Header'}'`
15629                { echo "$as_me:$LINENO: result: $ac_res" >&5
15630 echo "${ECHO_T}$ac_res" >&6; }
15631 else
15632   # Is the header compilable?
15633 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15635 cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641 $ac_includes_default
15642 #include <$ac_header>
15643 _ACEOF
15644 rm -f conftest.$ac_objext
15645 if { (ac_try="$ac_compile"
15646 case "(($ac_try" in
15647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15648   *) ac_try_echo=$ac_try;;
15649 esac
15650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15651   (eval "$ac_compile") 2>conftest.er1
15652   ac_status=$?
15653   grep -v '^ *+' conftest.er1 >conftest.err
15654   rm -f conftest.er1
15655   cat conftest.err >&5
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); } &&
15658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15659   { (case "(($ac_try" in
15660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661   *) ac_try_echo=$ac_try;;
15662 esac
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664   (eval "$ac_try") 2>&5
15665   ac_status=$?
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); }; } &&
15668          { ac_try='test -s conftest.$ac_objext'
15669   { (case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_try") 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; }; then
15678   ac_header_compiler=yes
15679 else
15680   echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683         ac_header_compiler=no
15684 fi
15685
15686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15688 echo "${ECHO_T}$ac_header_compiler" >&6; }
15689
15690 # Is the header present?
15691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15693 cat >conftest.$ac_ext <<_ACEOF
15694 /* confdefs.h.  */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h.  */
15699 #include <$ac_header>
15700 _ACEOF
15701 if { (ac_try="$ac_cpp conftest.$ac_ext"
15702 case "(($ac_try" in
15703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704   *) ac_try_echo=$ac_try;;
15705 esac
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15708   ac_status=$?
15709   grep -v '^ *+' conftest.er1 >conftest.err
15710   rm -f conftest.er1
15711   cat conftest.err >&5
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); } >/dev/null; then
15714   if test -s conftest.err; then
15715     ac_cpp_err=$ac_c_preproc_warn_flag
15716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15717   else
15718     ac_cpp_err=
15719   fi
15720 else
15721   ac_cpp_err=yes
15722 fi
15723 if test -z "$ac_cpp_err"; then
15724   ac_header_preproc=yes
15725 else
15726   echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15728
15729   ac_header_preproc=no
15730 fi
15731
15732 rm -f conftest.err conftest.$ac_ext
15733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15734 echo "${ECHO_T}$ac_header_preproc" >&6; }
15735
15736 # So?  What about this header?
15737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15738   yes:no: )
15739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15743     ac_header_preproc=yes
15744     ;;
15745   no:yes:* )
15746     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15748     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15749 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15750     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15752     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15753 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15756     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15758     ( cat <<\_ASBOX
15759 ## ------------------------------------ ##
15760 ## Report this to http://llvm.org/bugs/ ##
15761 ## ------------------------------------ ##
15762 _ASBOX
15763      ) | sed "s/^/$as_me: WARNING:     /" >&2
15764     ;;
15765 esac
15766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15769   echo $ECHO_N "(cached) $ECHO_C" >&6
15770 else
15771   eval "$as_ac_Header=\$ac_header_preproc"
15772 fi
15773 ac_res=`eval echo '${'$as_ac_Header'}'`
15774                { echo "$as_me:$LINENO: result: $ac_res" >&5
15775 echo "${ECHO_T}$ac_res" >&6; }
15776
15777 fi
15778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15779   cat >>confdefs.h <<_ACEOF
15780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15781 _ACEOF
15782
15783 fi
15784
15785 done
15786
15787
15788 for ac_header in fenv.h
15789 do
15790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795   echo $ECHO_N "(cached) $ECHO_C" >&6
15796 fi
15797 ac_res=`eval echo '${'$as_ac_Header'}'`
15798                { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15800 else
15801   # Is the header compilable?
15802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h.  */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h.  */
15810 $ac_includes_default
15811 #include <$ac_header>
15812 _ACEOF
15813 rm -f conftest.$ac_objext
15814 if { (ac_try="$ac_compile"
15815 case "(($ac_try" in
15816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817   *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820   (eval "$ac_compile") 2>conftest.er1
15821   ac_status=$?
15822   grep -v '^ *+' conftest.er1 >conftest.err
15823   rm -f conftest.er1
15824   cat conftest.err >&5
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } &&
15827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15828   { (case "(($ac_try" in
15829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830   *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833   (eval "$ac_try") 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; } &&
15837          { ac_try='test -s conftest.$ac_objext'
15838   { (case "(($ac_try" in
15839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840   *) ac_try_echo=$ac_try;;
15841 esac
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843   (eval "$ac_try") 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; }; then
15847   ac_header_compiler=yes
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852         ac_header_compiler=no
15853 fi
15854
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15857 echo "${ECHO_T}$ac_header_compiler" >&6; }
15858
15859 # Is the header present?
15860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h.  */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h.  */
15868 #include <$ac_header>
15869 _ACEOF
15870 if { (ac_try="$ac_cpp conftest.$ac_ext"
15871 case "(($ac_try" in
15872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873   *) ac_try_echo=$ac_try;;
15874 esac
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15877   ac_status=$?
15878   grep -v '^ *+' conftest.er1 >conftest.err
15879   rm -f conftest.er1
15880   cat conftest.err >&5
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } >/dev/null; then
15883   if test -s conftest.err; then
15884     ac_cpp_err=$ac_c_preproc_warn_flag
15885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15886   else
15887     ac_cpp_err=
15888   fi
15889 else
15890   ac_cpp_err=yes
15891 fi
15892 if test -z "$ac_cpp_err"; then
15893   ac_header_preproc=yes
15894 else
15895   echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898   ac_header_preproc=no
15899 fi
15900
15901 rm -f conftest.err conftest.$ac_ext
15902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15903 echo "${ECHO_T}$ac_header_preproc" >&6; }
15904
15905 # So?  What about this header?
15906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15907   yes:no: )
15908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15912     ac_header_preproc=yes
15913     ;;
15914   no:yes:* )
15915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15927     ( cat <<\_ASBOX
15928 ## ------------------------------------ ##
15929 ## Report this to http://llvm.org/bugs/ ##
15930 ## ------------------------------------ ##
15931 _ASBOX
15932      ) | sed "s/^/$as_me: WARNING:     /" >&2
15933     ;;
15934 esac
15935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15938   echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940   eval "$as_ac_Header=\$ac_header_preproc"
15941 fi
15942 ac_res=`eval echo '${'$as_ac_Header'}'`
15943                { echo "$as_me:$LINENO: result: $ac_res" >&5
15944 echo "${ECHO_T}$ac_res" >&6; }
15945
15946 fi
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948   cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950 _ACEOF
15951
15952 fi
15953
15954 done
15955
15956 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15957
15958 for ac_header in pthread.h
15959 do
15960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965   echo $ECHO_N "(cached) $ECHO_C" >&6
15966 fi
15967 ac_res=`eval echo '${'$as_ac_Header'}'`
15968                { echo "$as_me:$LINENO: result: $ac_res" >&5
15969 echo "${ECHO_T}$ac_res" >&6; }
15970 else
15971   # Is the header compilable?
15972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 $ac_includes_default
15981 #include <$ac_header>
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (ac_try="$ac_compile"
15985 case "(($ac_try" in
15986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987   *) ac_try_echo=$ac_try;;
15988 esac
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990   (eval "$ac_compile") 2>conftest.er1
15991   ac_status=$?
15992   grep -v '^ *+' conftest.er1 >conftest.err
15993   rm -f conftest.er1
15994   cat conftest.err >&5
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } &&
15997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15998   { (case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_try") 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; } &&
16007          { ac_try='test -s conftest.$ac_objext'
16008   { (case "(($ac_try" in
16009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010   *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013   (eval "$ac_try") 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); }; }; then
16017   ac_header_compiler=yes
16018 else
16019   echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022         ac_header_compiler=no
16023 fi
16024
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16027 echo "${ECHO_T}$ac_header_compiler" >&6; }
16028
16029 # Is the header present?
16030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16032 cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h.  */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h.  */
16038 #include <$ac_header>
16039 _ACEOF
16040 if { (ac_try="$ac_cpp conftest.$ac_ext"
16041 case "(($ac_try" in
16042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043   *) ac_try_echo=$ac_try;;
16044 esac
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16047   ac_status=$?
16048   grep -v '^ *+' conftest.er1 >conftest.err
16049   rm -f conftest.er1
16050   cat conftest.err >&5
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); } >/dev/null; then
16053   if test -s conftest.err; then
16054     ac_cpp_err=$ac_c_preproc_warn_flag
16055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16056   else
16057     ac_cpp_err=
16058   fi
16059 else
16060   ac_cpp_err=yes
16061 fi
16062 if test -z "$ac_cpp_err"; then
16063   ac_header_preproc=yes
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068   ac_header_preproc=no
16069 fi
16070
16071 rm -f conftest.err conftest.$ac_ext
16072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16073 echo "${ECHO_T}$ac_header_preproc" >&6; }
16074
16075 # So?  What about this header?
16076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16077   yes:no: )
16078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16082     ac_header_preproc=yes
16083     ;;
16084   no:yes:* )
16085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16097     ( cat <<\_ASBOX
16098 ## ------------------------------------ ##
16099 ## Report this to http://llvm.org/bugs/ ##
16100 ## ------------------------------------ ##
16101 _ASBOX
16102      ) | sed "s/^/$as_me: WARNING:     /" >&2
16103     ;;
16104 esac
16105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16108   echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110   eval "$as_ac_Header=\$ac_header_preproc"
16111 fi
16112 ac_res=`eval echo '${'$as_ac_Header'}'`
16113                { echo "$as_me:$LINENO: result: $ac_res" >&5
16114 echo "${ECHO_T}$ac_res" >&6; }
16115
16116 fi
16117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16118   cat >>confdefs.h <<_ACEOF
16119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16120 _ACEOF
16121  HAVE_PTHREAD=1
16122
16123 else
16124   HAVE_PTHREAD=0
16125
16126 fi
16127
16128 done
16129
16130 else
16131   HAVE_PTHREAD=0
16132
16133 fi
16134
16135 if test "$llvm_cv_enable_libffi" = "yes" ; then
16136
16137
16138 for ac_header in ffi.h ffi/ffi.h
16139 do
16140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16142   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 fi
16147 ac_res=`eval echo '${'$as_ac_Header'}'`
16148                { echo "$as_me:$LINENO: result: $ac_res" >&5
16149 echo "${ECHO_T}$ac_res" >&6; }
16150 else
16151   # Is the header compilable?
16152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16154 cat >conftest.$ac_ext <<_ACEOF
16155 /* confdefs.h.  */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h.  */
16160 $ac_includes_default
16161 #include <$ac_header>
16162 _ACEOF
16163 rm -f conftest.$ac_objext
16164 if { (ac_try="$ac_compile"
16165 case "(($ac_try" in
16166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167   *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170   (eval "$ac_compile") 2>conftest.er1
16171   ac_status=$?
16172   grep -v '^ *+' conftest.er1 >conftest.err
16173   rm -f conftest.er1
16174   cat conftest.err >&5
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } &&
16177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16178   { (case "(($ac_try" in
16179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180   *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183   (eval "$ac_try") 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; } &&
16187          { ac_try='test -s conftest.$ac_objext'
16188   { (case "(($ac_try" in
16189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190   *) ac_try_echo=$ac_try;;
16191 esac
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193   (eval "$ac_try") 2>&5
16194   ac_status=$?
16195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); }; }; then
16197   ac_header_compiler=yes
16198 else
16199   echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16201
16202         ac_header_compiler=no
16203 fi
16204
16205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16207 echo "${ECHO_T}$ac_header_compiler" >&6; }
16208
16209 # Is the header present?
16210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h.  */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h.  */
16218 #include <$ac_header>
16219 _ACEOF
16220 if { (ac_try="$ac_cpp conftest.$ac_ext"
16221 case "(($ac_try" in
16222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223   *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16227   ac_status=$?
16228   grep -v '^ *+' conftest.er1 >conftest.err
16229   rm -f conftest.er1
16230   cat conftest.err >&5
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); } >/dev/null; then
16233   if test -s conftest.err; then
16234     ac_cpp_err=$ac_c_preproc_warn_flag
16235     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16236   else
16237     ac_cpp_err=
16238   fi
16239 else
16240   ac_cpp_err=yes
16241 fi
16242 if test -z "$ac_cpp_err"; then
16243   ac_header_preproc=yes
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248   ac_header_preproc=no
16249 fi
16250
16251 rm -f conftest.err conftest.$ac_ext
16252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16253 echo "${ECHO_T}$ac_header_preproc" >&6; }
16254
16255 # So?  What about this header?
16256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16257   yes:no: )
16258     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16262     ac_header_preproc=yes
16263     ;;
16264   no:yes:* )
16265     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16267     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16268 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16269     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16271     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16272 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16275     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16277     ( cat <<\_ASBOX
16278 ## ------------------------------------ ##
16279 ## Report this to http://llvm.org/bugs/ ##
16280 ## ------------------------------------ ##
16281 _ASBOX
16282      ) | sed "s/^/$as_me: WARNING:     /" >&2
16283     ;;
16284 esac
16285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16288   echo $ECHO_N "(cached) $ECHO_C" >&6
16289 else
16290   eval "$as_ac_Header=\$ac_header_preproc"
16291 fi
16292 ac_res=`eval echo '${'$as_ac_Header'}'`
16293                { echo "$as_me:$LINENO: result: $ac_res" >&5
16294 echo "${ECHO_T}$ac_res" >&6; }
16295
16296 fi
16297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16298   cat >>confdefs.h <<_ACEOF
16299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16300 _ACEOF
16301
16302 fi
16303
16304 done
16305
16306 fi
16307
16308
16309 for ac_header in CrashReporterClient.h
16310 do
16311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16313   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16316   echo $ECHO_N "(cached) $ECHO_C" >&6
16317 fi
16318 ac_res=`eval echo '${'$as_ac_Header'}'`
16319                { echo "$as_me:$LINENO: result: $ac_res" >&5
16320 echo "${ECHO_T}$ac_res" >&6; }
16321 else
16322   # Is the header compilable?
16323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16325 cat >conftest.$ac_ext <<_ACEOF
16326 /* confdefs.h.  */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h.  */
16331 $ac_includes_default
16332 #include <$ac_header>
16333 _ACEOF
16334 rm -f conftest.$ac_objext
16335 if { (ac_try="$ac_compile"
16336 case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_compile") 2>conftest.er1
16342   ac_status=$?
16343   grep -v '^ *+' conftest.er1 >conftest.err
16344   rm -f conftest.er1
16345   cat conftest.err >&5
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); } &&
16348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16349   { (case "(($ac_try" in
16350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351   *) ac_try_echo=$ac_try;;
16352 esac
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354   (eval "$ac_try") 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); }; } &&
16358          { ac_try='test -s conftest.$ac_objext'
16359   { (case "(($ac_try" in
16360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361   *) ac_try_echo=$ac_try;;
16362 esac
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364   (eval "$ac_try") 2>&5
16365   ac_status=$?
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); }; }; then
16368   ac_header_compiler=yes
16369 else
16370   echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373         ac_header_compiler=no
16374 fi
16375
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16378 echo "${ECHO_T}$ac_header_compiler" >&6; }
16379
16380 # Is the header present?
16381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h.  */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h.  */
16389 #include <$ac_header>
16390 _ACEOF
16391 if { (ac_try="$ac_cpp conftest.$ac_ext"
16392 case "(($ac_try" in
16393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394   *) ac_try_echo=$ac_try;;
16395 esac
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16398   ac_status=$?
16399   grep -v '^ *+' conftest.er1 >conftest.err
16400   rm -f conftest.er1
16401   cat conftest.err >&5
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); } >/dev/null; then
16404   if test -s conftest.err; then
16405     ac_cpp_err=$ac_c_preproc_warn_flag
16406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16407   else
16408     ac_cpp_err=
16409   fi
16410 else
16411   ac_cpp_err=yes
16412 fi
16413 if test -z "$ac_cpp_err"; then
16414   ac_header_preproc=yes
16415 else
16416   echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419   ac_header_preproc=no
16420 fi
16421
16422 rm -f conftest.err conftest.$ac_ext
16423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16424 echo "${ECHO_T}$ac_header_preproc" >&6; }
16425
16426 # So?  What about this header?
16427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16428   yes:no: )
16429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16433     ac_header_preproc=yes
16434     ;;
16435   no:yes:* )
16436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16448     ( cat <<\_ASBOX
16449 ## ------------------------------------ ##
16450 ## Report this to http://llvm.org/bugs/ ##
16451 ## ------------------------------------ ##
16452 _ASBOX
16453      ) | sed "s/^/$as_me: WARNING:     /" >&2
16454     ;;
16455 esac
16456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16459   echo $ECHO_N "(cached) $ECHO_C" >&6
16460 else
16461   eval "$as_ac_Header=\$ac_header_preproc"
16462 fi
16463 ac_res=`eval echo '${'$as_ac_Header'}'`
16464                { echo "$as_me:$LINENO: result: $ac_res" >&5
16465 echo "${ECHO_T}$ac_res" >&6; }
16466
16467 fi
16468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16469   cat >>confdefs.h <<_ACEOF
16470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16471 _ACEOF
16472
16473 fi
16474
16475 done
16476
16477
16478 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16479 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16480 cat >conftest.$ac_ext <<_ACEOF
16481
16482   /* confdefs.h.  */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h.  */
16487
16488     extern const char *__crashreporter_info__;
16489     int main() {
16490       __crashreporter_info__ = "test";
16491       return 0;
16492     }
16493
16494
16495 _ACEOF
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (ac_try="$ac_link"
16498 case "(($ac_try" in
16499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500   *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503   (eval "$ac_link") 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16511   { (case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_try") 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; } &&
16520          { ac_try='test -s conftest$ac_exeext'
16521   { (case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_try") 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530
16531   { echo "$as_me:$LINENO: result: yes" >&5
16532 echo "${ECHO_T}yes" >&6; }
16533
16534 cat >>confdefs.h <<\_ACEOF
16535 #define HAVE_CRASHREPORTER_INFO 1
16536 _ACEOF
16537
16538
16539 else
16540   echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16542
16543
16544   { echo "$as_me:$LINENO: result: no" >&5
16545 echo "${ECHO_T}no" >&6; }
16546
16547 cat >>confdefs.h <<\_ACEOF
16548 #define HAVE_CRASHREPORTER_INFO 0
16549 _ACEOF
16550
16551
16552 fi
16553
16554 rm -f core conftest.err conftest.$ac_objext \
16555       conftest$ac_exeext conftest.$ac_ext
16556
16557
16558
16559   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16560 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16561 if test "${ac_cv_huge_val_sanity+set}" = set; then
16562   echo $ECHO_N "(cached) $ECHO_C" >&6
16563 else
16564
16565     ac_ext=cpp
16566 ac_cpp='$CXXCPP $CPPFLAGS'
16567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16570
16571     ac_save_CXXFLAGS=$CXXFLAGS
16572     CXXFLAGS="$CXXFLAGS -pedantic"
16573     if test "$cross_compiling" = yes; then
16574   ac_cv_huge_val_sanity=yes
16575 else
16576   cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h.  */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h.  */
16582 #include <math.h>
16583 int
16584 main ()
16585 {
16586 double x = HUGE_VAL; return x != x;
16587   ;
16588   return 0;
16589 }
16590 _ACEOF
16591 rm -f conftest$ac_exeext
16592 if { (ac_try="$ac_link"
16593 case "(($ac_try" in
16594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595   *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598   (eval "$ac_link") 2>&5
16599   ac_status=$?
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16602   { (case "(($ac_try" in
16603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604   *) ac_try_echo=$ac_try;;
16605 esac
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607   (eval "$ac_try") 2>&5
16608   ac_status=$?
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); }; }; then
16611   ac_cv_huge_val_sanity=yes
16612 else
16613   echo "$as_me: program exited with status $ac_status" >&5
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617 ( exit $ac_status )
16618 ac_cv_huge_val_sanity=no
16619 fi
16620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16621 fi
16622
16623
16624     CXXFLAGS=$ac_save_CXXFLAGS
16625     ac_ext=c
16626 ac_cpp='$CPP $CPPFLAGS'
16627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16630
16631
16632 fi
16633 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16634 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16635   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16636
16637
16638 { echo "$as_me:$LINENO: checking for pid_t" >&5
16639 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16640 if test "${ac_cv_type_pid_t+set}" = set; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643   cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h.  */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h.  */
16649 $ac_includes_default
16650 typedef pid_t ac__type_new_;
16651 int
16652 main ()
16653 {
16654 if ((ac__type_new_ *) 0)
16655   return 0;
16656 if (sizeof (ac__type_new_))
16657   return 0;
16658   ;
16659   return 0;
16660 }
16661 _ACEOF
16662 rm -f conftest.$ac_objext
16663 if { (ac_try="$ac_compile"
16664 case "(($ac_try" in
16665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666   *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669   (eval "$ac_compile") 2>conftest.er1
16670   ac_status=$?
16671   grep -v '^ *+' conftest.er1 >conftest.err
16672   rm -f conftest.er1
16673   cat conftest.err >&5
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16677   { (case "(($ac_try" in
16678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679   *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682   (eval "$ac_try") 2>&5
16683   ac_status=$?
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); }; } &&
16686          { ac_try='test -s conftest.$ac_objext'
16687   { (case "(($ac_try" in
16688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689   *) ac_try_echo=$ac_try;;
16690 esac
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692   (eval "$ac_try") 2>&5
16693   ac_status=$?
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); }; }; then
16696   ac_cv_type_pid_t=yes
16697 else
16698   echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16700
16701         ac_cv_type_pid_t=no
16702 fi
16703
16704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 fi
16706 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16707 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16708 if test $ac_cv_type_pid_t = yes; then
16709   :
16710 else
16711
16712 cat >>confdefs.h <<_ACEOF
16713 #define pid_t int
16714 _ACEOF
16715
16716 fi
16717
16718 { echo "$as_me:$LINENO: checking for size_t" >&5
16719 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16720 if test "${ac_cv_type_size_t+set}" = set; then
16721   echo $ECHO_N "(cached) $ECHO_C" >&6
16722 else
16723   cat >conftest.$ac_ext <<_ACEOF
16724 /* confdefs.h.  */
16725 _ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h.  */
16729 $ac_includes_default
16730 typedef size_t ac__type_new_;
16731 int
16732 main ()
16733 {
16734 if ((ac__type_new_ *) 0)
16735   return 0;
16736 if (sizeof (ac__type_new_))
16737   return 0;
16738   ;
16739   return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest.$ac_objext
16743 if { (ac_try="$ac_compile"
16744 case "(($ac_try" in
16745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746   *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749   (eval "$ac_compile") 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } &&
16756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16757   { (case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_try") 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }; } &&
16766          { ac_try='test -s conftest.$ac_objext'
16767   { (case "(($ac_try" in
16768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769   *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772   (eval "$ac_try") 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; }; then
16776   ac_cv_type_size_t=yes
16777 else
16778   echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16780
16781         ac_cv_type_size_t=no
16782 fi
16783
16784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 fi
16786 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16787 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16788 if test $ac_cv_type_size_t = yes; then
16789   :
16790 else
16791
16792 cat >>confdefs.h <<_ACEOF
16793 #define size_t unsigned int
16794 _ACEOF
16795
16796 fi
16797
16798
16799 cat >>confdefs.h <<_ACEOF
16800 #define RETSIGTYPE void
16801 _ACEOF
16802
16803 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16804 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16805 if test "${ac_cv_struct_tm+set}" = set; then
16806   echo $ECHO_N "(cached) $ECHO_C" >&6
16807 else
16808   cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814 #include <sys/types.h>
16815 #include <time.h>
16816
16817 int
16818 main ()
16819 {
16820 struct tm *tp; tp->tm_sec;
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829   *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832   (eval "$ac_compile") 2>conftest.er1
16833   ac_status=$?
16834   grep -v '^ *+' conftest.er1 >conftest.err
16835   rm -f conftest.er1
16836   cat conftest.err >&5
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } &&
16839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16840   { (case "(($ac_try" in
16841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842   *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845   (eval "$ac_try") 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); }; } &&
16849          { ac_try='test -s conftest.$ac_objext'
16850   { (case "(($ac_try" in
16851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852   *) ac_try_echo=$ac_try;;
16853 esac
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855   (eval "$ac_try") 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); }; }; then
16859   ac_cv_struct_tm=time.h
16860 else
16861   echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864         ac_cv_struct_tm=sys/time.h
16865 fi
16866
16867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868 fi
16869 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16870 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16871 if test $ac_cv_struct_tm = sys/time.h; then
16872
16873 cat >>confdefs.h <<\_ACEOF
16874 #define TM_IN_SYS_TIME 1
16875 _ACEOF
16876
16877 fi
16878
16879 { echo "$as_me:$LINENO: checking for int64_t" >&5
16880 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16881 if test "${ac_cv_type_int64_t+set}" = set; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h.  */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h.  */
16890 $ac_includes_default
16891 typedef int64_t ac__type_new_;
16892 int
16893 main ()
16894 {
16895 if ((ac__type_new_ *) 0)
16896   return 0;
16897 if (sizeof (ac__type_new_))
16898   return 0;
16899   ;
16900   return 0;
16901 }
16902 _ACEOF
16903 rm -f conftest.$ac_objext
16904 if { (ac_try="$ac_compile"
16905 case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_compile") 2>conftest.er1
16911   ac_status=$?
16912   grep -v '^ *+' conftest.er1 >conftest.err
16913   rm -f conftest.er1
16914   cat conftest.err >&5
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); } &&
16917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16918   { (case "(($ac_try" in
16919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920   *) ac_try_echo=$ac_try;;
16921 esac
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923   (eval "$ac_try") 2>&5
16924   ac_status=$?
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); }; } &&
16927          { ac_try='test -s conftest.$ac_objext'
16928   { (case "(($ac_try" in
16929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930   *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933   (eval "$ac_try") 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; }; then
16937   ac_cv_type_int64_t=yes
16938 else
16939   echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.$ac_ext >&5
16941
16942         ac_cv_type_int64_t=no
16943 fi
16944
16945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946 fi
16947 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16948 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16949 if test $ac_cv_type_int64_t = yes; then
16950
16951 cat >>confdefs.h <<_ACEOF
16952 #define HAVE_INT64_T 1
16953 _ACEOF
16954
16955
16956 else
16957   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16958 echo "$as_me: error: Type int64_t required but not found" >&2;}
16959    { (exit 1); exit 1; }; }
16960 fi
16961
16962 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16963 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16964 if test "${ac_cv_type_uint64_t+set}" = set; then
16965   echo $ECHO_N "(cached) $ECHO_C" >&6
16966 else
16967   cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h.  */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h.  */
16973 $ac_includes_default
16974 typedef uint64_t ac__type_new_;
16975 int
16976 main ()
16977 {
16978 if ((ac__type_new_ *) 0)
16979   return 0;
16980 if (sizeof (ac__type_new_))
16981   return 0;
16982   ;
16983   return 0;
16984 }
16985 _ACEOF
16986 rm -f conftest.$ac_objext
16987 if { (ac_try="$ac_compile"
16988 case "(($ac_try" in
16989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990   *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993   (eval "$ac_compile") 2>conftest.er1
16994   ac_status=$?
16995   grep -v '^ *+' conftest.er1 >conftest.err
16996   rm -f conftest.er1
16997   cat conftest.err >&5
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); } &&
17000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17001   { (case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006   (eval "$ac_try") 2>&5
17007   ac_status=$?
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); }; } &&
17010          { ac_try='test -s conftest.$ac_objext'
17011   { (case "(($ac_try" in
17012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013   *) ac_try_echo=$ac_try;;
17014 esac
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016   (eval "$ac_try") 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); }; }; then
17020   ac_cv_type_uint64_t=yes
17021 else
17022   echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17024
17025         ac_cv_type_uint64_t=no
17026 fi
17027
17028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17029 fi
17030 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17031 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17032 if test $ac_cv_type_uint64_t = yes; then
17033
17034 cat >>confdefs.h <<_ACEOF
17035 #define HAVE_UINT64_T 1
17036 _ACEOF
17037
17038
17039 else
17040   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17041 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17042 if test "${ac_cv_type_u_int64_t+set}" = set; then
17043   echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045   cat >conftest.$ac_ext <<_ACEOF
17046 /* confdefs.h.  */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h.  */
17051 $ac_includes_default
17052 typedef u_int64_t ac__type_new_;
17053 int
17054 main ()
17055 {
17056 if ((ac__type_new_ *) 0)
17057   return 0;
17058 if (sizeof (ac__type_new_))
17059   return 0;
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 rm -f conftest.$ac_objext
17065 if { (ac_try="$ac_compile"
17066 case "(($ac_try" in
17067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068   *) ac_try_echo=$ac_try;;
17069 esac
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071   (eval "$ac_compile") 2>conftest.er1
17072   ac_status=$?
17073   grep -v '^ *+' conftest.er1 >conftest.err
17074   rm -f conftest.er1
17075   cat conftest.err >&5
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); } &&
17078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079   { (case "(($ac_try" in
17080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081   *) ac_try_echo=$ac_try;;
17082 esac
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084   (eval "$ac_try") 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; } &&
17088          { ac_try='test -s conftest.$ac_objext'
17089   { (case "(($ac_try" in
17090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091   *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094   (eval "$ac_try") 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); }; }; then
17098   ac_cv_type_u_int64_t=yes
17099 else
17100   echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17102
17103         ac_cv_type_u_int64_t=no
17104 fi
17105
17106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17107 fi
17108 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17109 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17110 if test $ac_cv_type_u_int64_t = yes; then
17111
17112 cat >>confdefs.h <<_ACEOF
17113 #define HAVE_U_INT64_T 1
17114 _ACEOF
17115
17116
17117 else
17118   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17119 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17120    { (exit 1); exit 1; }; }
17121 fi
17122
17123 fi
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17135 do
17136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17140   echo $ECHO_N "(cached) $ECHO_C" >&6
17141 else
17142   cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h.  */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h.  */
17148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17150 #define $ac_func innocuous_$ac_func
17151
17152 /* System header to define __stub macros and hopefully few prototypes,
17153     which can conflict with char $ac_func (); below.
17154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17155     <limits.h> exists even on freestanding compilers.  */
17156
17157 #ifdef __STDC__
17158 # include <limits.h>
17159 #else
17160 # include <assert.h>
17161 #endif
17162
17163 #undef $ac_func
17164
17165 /* Override any GCC internal prototype to avoid an error.
17166    Use char because int might match the return type of a GCC
17167    builtin and then its argument prototype would still apply.  */
17168 #ifdef __cplusplus
17169 extern "C"
17170 #endif
17171 char $ac_func ();
17172 /* The GNU C library defines this for functions which it implements
17173     to always fail with ENOSYS.  Some functions are actually named
17174     something starting with __ and the normal name is an alias.  */
17175 #if defined __stub_$ac_func || defined __stub___$ac_func
17176 choke me
17177 #endif
17178
17179 int
17180 main ()
17181 {
17182 return $ac_func ();
17183   ;
17184   return 0;
17185 }
17186 _ACEOF
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (ac_try="$ac_link"
17189 case "(($ac_try" in
17190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191   *) ac_try_echo=$ac_try;;
17192 esac
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194   (eval "$ac_link") 2>conftest.er1
17195   ac_status=$?
17196   grep -v '^ *+' conftest.er1 >conftest.err
17197   rm -f conftest.er1
17198   cat conftest.err >&5
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); } &&
17201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17202   { (case "(($ac_try" in
17203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204   *) ac_try_echo=$ac_try;;
17205 esac
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207   (eval "$ac_try") 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; } &&
17211          { ac_try='test -s conftest$ac_exeext'
17212   { (case "(($ac_try" in
17213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214   *) ac_try_echo=$ac_try;;
17215 esac
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217   (eval "$ac_try") 2>&5
17218   ac_status=$?
17219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220   (exit $ac_status); }; }; then
17221   eval "$as_ac_var=yes"
17222 else
17223   echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226         eval "$as_ac_var=no"
17227 fi
17228
17229 rm -f core conftest.err conftest.$ac_objext \
17230       conftest$ac_exeext conftest.$ac_ext
17231 fi
17232 ac_res=`eval echo '${'$as_ac_var'}'`
17233                { echo "$as_me:$LINENO: result: $ac_res" >&5
17234 echo "${ECHO_T}$ac_res" >&6; }
17235 if test `eval echo '${'$as_ac_var'}'` = yes; then
17236   cat >>confdefs.h <<_ACEOF
17237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17238 _ACEOF
17239
17240 fi
17241 done
17242
17243
17244
17245
17246
17247 for ac_func in powf fmodf strtof round
17248 do
17249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17253   echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255   cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h.  */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h.  */
17261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17263 #define $ac_func innocuous_$ac_func
17264
17265 /* System header to define __stub macros and hopefully few prototypes,
17266     which can conflict with char $ac_func (); below.
17267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17268     <limits.h> exists even on freestanding compilers.  */
17269
17270 #ifdef __STDC__
17271 # include <limits.h>
17272 #else
17273 # include <assert.h>
17274 #endif
17275
17276 #undef $ac_func
17277
17278 /* Override any GCC internal prototype to avoid an error.
17279    Use char because int might match the return type of a GCC
17280    builtin and then its argument prototype would still apply.  */
17281 #ifdef __cplusplus
17282 extern "C"
17283 #endif
17284 char $ac_func ();
17285 /* The GNU C library defines this for functions which it implements
17286     to always fail with ENOSYS.  Some functions are actually named
17287     something starting with __ and the normal name is an alias.  */
17288 #if defined __stub_$ac_func || defined __stub___$ac_func
17289 choke me
17290 #endif
17291
17292 int
17293 main ()
17294 {
17295 return $ac_func ();
17296   ;
17297   return 0;
17298 }
17299 _ACEOF
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (ac_try="$ac_link"
17302 case "(($ac_try" in
17303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304   *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307   (eval "$ac_link") 2>conftest.er1
17308   ac_status=$?
17309   grep -v '^ *+' conftest.er1 >conftest.err
17310   rm -f conftest.er1
17311   cat conftest.err >&5
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); } &&
17314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17315   { (case "(($ac_try" in
17316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317   *) ac_try_echo=$ac_try;;
17318 esac
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320   (eval "$ac_try") 2>&5
17321   ac_status=$?
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); }; } &&
17324          { ac_try='test -s conftest$ac_exeext'
17325   { (case "(($ac_try" in
17326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327   *) ac_try_echo=$ac_try;;
17328 esac
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330   (eval "$ac_try") 2>&5
17331   ac_status=$?
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); }; }; then
17334   eval "$as_ac_var=yes"
17335 else
17336   echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17338
17339         eval "$as_ac_var=no"
17340 fi
17341
17342 rm -f core conftest.err conftest.$ac_objext \
17343       conftest$ac_exeext conftest.$ac_ext
17344 fi
17345 ac_res=`eval echo '${'$as_ac_var'}'`
17346                { echo "$as_me:$LINENO: result: $ac_res" >&5
17347 echo "${ECHO_T}$ac_res" >&6; }
17348 if test `eval echo '${'$as_ac_var'}'` = yes; then
17349   cat >>confdefs.h <<_ACEOF
17350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17351 _ACEOF
17352
17353 fi
17354 done
17355
17356
17357
17358
17359
17360
17361 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17362 do
17363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17367   echo $ECHO_N "(cached) $ECHO_C" >&6
17368 else
17369   cat >conftest.$ac_ext <<_ACEOF
17370 /* confdefs.h.  */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h.  */
17375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17377 #define $ac_func innocuous_$ac_func
17378
17379 /* System header to define __stub macros and hopefully few prototypes,
17380     which can conflict with char $ac_func (); below.
17381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17382     <limits.h> exists even on freestanding compilers.  */
17383
17384 #ifdef __STDC__
17385 # include <limits.h>
17386 #else
17387 # include <assert.h>
17388 #endif
17389
17390 #undef $ac_func
17391
17392 /* Override any GCC internal prototype to avoid an error.
17393    Use char because int might match the return type of a GCC
17394    builtin and then its argument prototype would still apply.  */
17395 #ifdef __cplusplus
17396 extern "C"
17397 #endif
17398 char $ac_func ();
17399 /* The GNU C library defines this for functions which it implements
17400     to always fail with ENOSYS.  Some functions are actually named
17401     something starting with __ and the normal name is an alias.  */
17402 #if defined __stub_$ac_func || defined __stub___$ac_func
17403 choke me
17404 #endif
17405
17406 int
17407 main ()
17408 {
17409 return $ac_func ();
17410   ;
17411   return 0;
17412 }
17413 _ACEOF
17414 rm -f conftest.$ac_objext conftest$ac_exeext
17415 if { (ac_try="$ac_link"
17416 case "(($ac_try" in
17417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418   *) ac_try_echo=$ac_try;;
17419 esac
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421   (eval "$ac_link") 2>conftest.er1
17422   ac_status=$?
17423   grep -v '^ *+' conftest.er1 >conftest.err
17424   rm -f conftest.er1
17425   cat conftest.err >&5
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); } &&
17428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17429   { (case "(($ac_try" in
17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431   *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434   (eval "$ac_try") 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; } &&
17438          { ac_try='test -s conftest$ac_exeext'
17439   { (case "(($ac_try" in
17440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441   *) ac_try_echo=$ac_try;;
17442 esac
17443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444   (eval "$ac_try") 2>&5
17445   ac_status=$?
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); }; }; then
17448   eval "$as_ac_var=yes"
17449 else
17450   echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17452
17453         eval "$as_ac_var=no"
17454 fi
17455
17456 rm -f core conftest.err conftest.$ac_objext \
17457       conftest$ac_exeext conftest.$ac_ext
17458 fi
17459 ac_res=`eval echo '${'$as_ac_var'}'`
17460                { echo "$as_me:$LINENO: result: $ac_res" >&5
17461 echo "${ECHO_T}$ac_res" >&6; }
17462 if test `eval echo '${'$as_ac_var'}'` = yes; then
17463   cat >>confdefs.h <<_ACEOF
17464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17465 _ACEOF
17466
17467 fi
17468 done
17469
17470
17471
17472
17473 for ac_func in isatty mkdtemp mkstemp
17474 do
17475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17479   echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481   cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17489 #define $ac_func innocuous_$ac_func
17490
17491 /* System header to define __stub macros and hopefully few prototypes,
17492     which can conflict with char $ac_func (); below.
17493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17494     <limits.h> exists even on freestanding compilers.  */
17495
17496 #ifdef __STDC__
17497 # include <limits.h>
17498 #else
17499 # include <assert.h>
17500 #endif
17501
17502 #undef $ac_func
17503
17504 /* Override any GCC internal prototype to avoid an error.
17505    Use char because int might match the return type of a GCC
17506    builtin and then its argument prototype would still apply.  */
17507 #ifdef __cplusplus
17508 extern "C"
17509 #endif
17510 char $ac_func ();
17511 /* The GNU C library defines this for functions which it implements
17512     to always fail with ENOSYS.  Some functions are actually named
17513     something starting with __ and the normal name is an alias.  */
17514 #if defined __stub_$ac_func || defined __stub___$ac_func
17515 choke me
17516 #endif
17517
17518 int
17519 main ()
17520 {
17521 return $ac_func ();
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (ac_try="$ac_link"
17528 case "(($ac_try" in
17529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530   *) ac_try_echo=$ac_try;;
17531 esac
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533   (eval "$ac_link") 2>conftest.er1
17534   ac_status=$?
17535   grep -v '^ *+' conftest.er1 >conftest.err
17536   rm -f conftest.er1
17537   cat conftest.err >&5
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); } &&
17540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17541   { (case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546   (eval "$ac_try") 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; } &&
17550          { ac_try='test -s conftest$ac_exeext'
17551   { (case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_try") 2>&5
17557   ac_status=$?
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); }; }; then
17560   eval "$as_ac_var=yes"
17561 else
17562   echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565         eval "$as_ac_var=no"
17566 fi
17567
17568 rm -f core conftest.err conftest.$ac_objext \
17569       conftest$ac_exeext conftest.$ac_ext
17570 fi
17571 ac_res=`eval echo '${'$as_ac_var'}'`
17572                { echo "$as_me:$LINENO: result: $ac_res" >&5
17573 echo "${ECHO_T}$ac_res" >&6; }
17574 if test `eval echo '${'$as_ac_var'}'` = yes; then
17575   cat >>confdefs.h <<_ACEOF
17576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17577 _ACEOF
17578
17579 fi
17580 done
17581
17582
17583
17584
17585
17586
17587
17588
17589 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17590 do
17591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17595   echo $ECHO_N "(cached) $ECHO_C" >&6
17596 else
17597   cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h.  */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h.  */
17603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17605 #define $ac_func innocuous_$ac_func
17606
17607 /* System header to define __stub macros and hopefully few prototypes,
17608     which can conflict with char $ac_func (); below.
17609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17610     <limits.h> exists even on freestanding compilers.  */
17611
17612 #ifdef __STDC__
17613 # include <limits.h>
17614 #else
17615 # include <assert.h>
17616 #endif
17617
17618 #undef $ac_func
17619
17620 /* Override any GCC internal prototype to avoid an error.
17621    Use char because int might match the return type of a GCC
17622    builtin and then its argument prototype would still apply.  */
17623 #ifdef __cplusplus
17624 extern "C"
17625 #endif
17626 char $ac_func ();
17627 /* The GNU C library defines this for functions which it implements
17628     to always fail with ENOSYS.  Some functions are actually named
17629     something starting with __ and the normal name is an alias.  */
17630 #if defined __stub_$ac_func || defined __stub___$ac_func
17631 choke me
17632 #endif
17633
17634 int
17635 main ()
17636 {
17637 return $ac_func ();
17638   ;
17639   return 0;
17640 }
17641 _ACEOF
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (ac_try="$ac_link"
17644 case "(($ac_try" in
17645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646   *) ac_try_echo=$ac_try;;
17647 esac
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649   (eval "$ac_link") 2>conftest.er1
17650   ac_status=$?
17651   grep -v '^ *+' conftest.er1 >conftest.err
17652   rm -f conftest.er1
17653   cat conftest.err >&5
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); } &&
17656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17657   { (case "(($ac_try" in
17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659   *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662   (eval "$ac_try") 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); }; } &&
17666          { ac_try='test -s conftest$ac_exeext'
17667   { (case "(($ac_try" in
17668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669   *) ac_try_echo=$ac_try;;
17670 esac
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672   (eval "$ac_try") 2>&5
17673   ac_status=$?
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); }; }; then
17676   eval "$as_ac_var=yes"
17677 else
17678   echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17680
17681         eval "$as_ac_var=no"
17682 fi
17683
17684 rm -f core conftest.err conftest.$ac_objext \
17685       conftest$ac_exeext conftest.$ac_ext
17686 fi
17687 ac_res=`eval echo '${'$as_ac_var'}'`
17688                { echo "$as_me:$LINENO: result: $ac_res" >&5
17689 echo "${ECHO_T}$ac_res" >&6; }
17690 if test `eval echo '${'$as_ac_var'}'` = yes; then
17691   cat >>confdefs.h <<_ACEOF
17692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17693 _ACEOF
17694
17695 fi
17696 done
17697
17698
17699
17700
17701
17702 for ac_func in strerror strerror_r setenv arc4random
17703 do
17704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710   cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h.  */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h.  */
17716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17718 #define $ac_func innocuous_$ac_func
17719
17720 /* System header to define __stub macros and hopefully few prototypes,
17721     which can conflict with char $ac_func (); below.
17722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17723     <limits.h> exists even on freestanding compilers.  */
17724
17725 #ifdef __STDC__
17726 # include <limits.h>
17727 #else
17728 # include <assert.h>
17729 #endif
17730
17731 #undef $ac_func
17732
17733 /* Override any GCC internal prototype to avoid an error.
17734    Use char because int might match the return type of a GCC
17735    builtin and then its argument prototype would still apply.  */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 char $ac_func ();
17740 /* The GNU C library defines this for functions which it implements
17741     to always fail with ENOSYS.  Some functions are actually named
17742     something starting with __ and the normal name is an alias.  */
17743 #if defined __stub_$ac_func || defined __stub___$ac_func
17744 choke me
17745 #endif
17746
17747 int
17748 main ()
17749 {
17750 return $ac_func ();
17751   ;
17752   return 0;
17753 }
17754 _ACEOF
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (ac_try="$ac_link"
17757 case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_link") 2>conftest.er1
17763   ac_status=$?
17764   grep -v '^ *+' conftest.er1 >conftest.err
17765   rm -f conftest.er1
17766   cat conftest.err >&5
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); } &&
17769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770   { (case "(($ac_try" in
17771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772   *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775   (eval "$ac_try") 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; } &&
17779          { ac_try='test -s conftest$ac_exeext'
17780   { (case "(($ac_try" in
17781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782   *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785   (eval "$ac_try") 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; }; then
17789   eval "$as_ac_var=yes"
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794         eval "$as_ac_var=no"
17795 fi
17796
17797 rm -f core conftest.err conftest.$ac_objext \
17798       conftest$ac_exeext conftest.$ac_ext
17799 fi
17800 ac_res=`eval echo '${'$as_ac_var'}'`
17801                { echo "$as_me:$LINENO: result: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17803 if test `eval echo '${'$as_ac_var'}'` = yes; then
17804   cat >>confdefs.h <<_ACEOF
17805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17806 _ACEOF
17807
17808 fi
17809 done
17810
17811
17812
17813
17814
17815 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17816 do
17817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17821   echo $ECHO_N "(cached) $ECHO_C" >&6
17822 else
17823   cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h.  */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h.  */
17829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17831 #define $ac_func innocuous_$ac_func
17832
17833 /* System header to define __stub macros and hopefully few prototypes,
17834     which can conflict with char $ac_func (); below.
17835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836     <limits.h> exists even on freestanding compilers.  */
17837
17838 #ifdef __STDC__
17839 # include <limits.h>
17840 #else
17841 # include <assert.h>
17842 #endif
17843
17844 #undef $ac_func
17845
17846 /* Override any GCC internal prototype to avoid an error.
17847    Use char because int might match the return type of a GCC
17848    builtin and then its argument prototype would still apply.  */
17849 #ifdef __cplusplus
17850 extern "C"
17851 #endif
17852 char $ac_func ();
17853 /* The GNU C library defines this for functions which it implements
17854     to always fail with ENOSYS.  Some functions are actually named
17855     something starting with __ and the normal name is an alias.  */
17856 #if defined __stub_$ac_func || defined __stub___$ac_func
17857 choke me
17858 #endif
17859
17860 int
17861 main ()
17862 {
17863 return $ac_func ();
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872   *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875   (eval "$ac_link") 2>conftest.er1
17876   ac_status=$?
17877   grep -v '^ *+' conftest.er1 >conftest.err
17878   rm -f conftest.er1
17879   cat conftest.err >&5
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); } &&
17882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17883   { (case "(($ac_try" in
17884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885   *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888   (eval "$ac_try") 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; } &&
17892          { ac_try='test -s conftest$ac_exeext'
17893   { (case "(($ac_try" in
17894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895   *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898   (eval "$ac_try") 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; }; then
17902   eval "$as_ac_var=yes"
17903 else
17904   echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907         eval "$as_ac_var=no"
17908 fi
17909
17910 rm -f core conftest.err conftest.$ac_objext \
17911       conftest$ac_exeext conftest.$ac_ext
17912 fi
17913 ac_res=`eval echo '${'$as_ac_var'}'`
17914                { echo "$as_me:$LINENO: result: $ac_res" >&5
17915 echo "${ECHO_T}$ac_res" >&6; }
17916 if test `eval echo '${'$as_ac_var'}'` = yes; then
17917   cat >>confdefs.h <<_ACEOF
17918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17919 _ACEOF
17920
17921 fi
17922 done
17923
17924
17925
17926
17927
17928
17929 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17930 do
17931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17935   echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937   cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h.  */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h.  */
17943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17945 #define $ac_func innocuous_$ac_func
17946
17947 /* System header to define __stub macros and hopefully few prototypes,
17948     which can conflict with char $ac_func (); below.
17949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17950     <limits.h> exists even on freestanding compilers.  */
17951
17952 #ifdef __STDC__
17953 # include <limits.h>
17954 #else
17955 # include <assert.h>
17956 #endif
17957
17958 #undef $ac_func
17959
17960 /* Override any GCC internal prototype to avoid an error.
17961    Use char because int might match the return type of a GCC
17962    builtin and then its argument prototype would still apply.  */
17963 #ifdef __cplusplus
17964 extern "C"
17965 #endif
17966 char $ac_func ();
17967 /* The GNU C library defines this for functions which it implements
17968     to always fail with ENOSYS.  Some functions are actually named
17969     something starting with __ and the normal name is an alias.  */
17970 #if defined __stub_$ac_func || defined __stub___$ac_func
17971 choke me
17972 #endif
17973
17974 int
17975 main ()
17976 {
17977 return $ac_func ();
17978   ;
17979   return 0;
17980 }
17981 _ACEOF
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (ac_try="$ac_link"
17984 case "(($ac_try" in
17985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986   *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989   (eval "$ac_link") 2>conftest.er1
17990   ac_status=$?
17991   grep -v '^ *+' conftest.er1 >conftest.err
17992   rm -f conftest.er1
17993   cat conftest.err >&5
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); } &&
17996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17997   { (case "(($ac_try" in
17998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999   *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002   (eval "$ac_try") 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); }; } &&
18006          { ac_try='test -s conftest$ac_exeext'
18007   { (case "(($ac_try" in
18008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009   *) ac_try_echo=$ac_try;;
18010 esac
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012   (eval "$ac_try") 2>&5
18013   ac_status=$?
18014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015   (exit $ac_status); }; }; then
18016   eval "$as_ac_var=yes"
18017 else
18018   echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021         eval "$as_ac_var=no"
18022 fi
18023
18024 rm -f core conftest.err conftest.$ac_objext \
18025       conftest$ac_exeext conftest.$ac_ext
18026 fi
18027 ac_res=`eval echo '${'$as_ac_var'}'`
18028                { echo "$as_me:$LINENO: result: $ac_res" >&5
18029 echo "${ECHO_T}$ac_res" >&6; }
18030 if test `eval echo '${'$as_ac_var'}'` = yes; then
18031   cat >>confdefs.h <<_ACEOF
18032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18033 _ACEOF
18034
18035 fi
18036 done
18037
18038 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18039 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18040 if test "${llvm_cv_c_printf_a+set}" = set; then
18041   echo $ECHO_N "(cached) $ECHO_C" >&6
18042 else
18043   ac_ext=c
18044 ac_cpp='$CPP $CPPFLAGS'
18045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18048
18049  if test "$cross_compiling" = yes; then
18050   llvmac_cv_c_printf_a=no
18051 else
18052   cat >conftest.$ac_ext <<_ACEOF
18053
18054   /* confdefs.h.  */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h.  */
18059
18060 #include <stdio.h>
18061 #include <stdlib.h>
18062
18063 int
18064 main ()
18065 {
18066
18067 volatile double A, B;
18068 char Buffer[100];
18069 A = 1;
18070 A /= 10.0;
18071 sprintf(Buffer, "%a", A);
18072 B = atof(Buffer);
18073 if (A != B)
18074   return (1);
18075 if (A != 0x1.999999999999ap-4)
18076   return (1);
18077 return (0);
18078   ;
18079   return 0;
18080 }
18081 _ACEOF
18082 rm -f conftest$ac_exeext
18083 if { (ac_try="$ac_link"
18084 case "(($ac_try" in
18085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086   *) ac_try_echo=$ac_try;;
18087 esac
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089   (eval "$ac_link") 2>&5
18090   ac_status=$?
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18093   { (case "(($ac_try" in
18094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095   *) ac_try_echo=$ac_try;;
18096 esac
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098   (eval "$ac_try") 2>&5
18099   ac_status=$?
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); }; }; then
18102   llvm_cv_c_printf_a=yes
18103 else
18104   echo "$as_me: program exited with status $ac_status" >&5
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108 ( exit $ac_status )
18109 llvmac_cv_c_printf_a=no
18110 fi
18111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18112 fi
18113
18114
18115  ac_ext=c
18116 ac_cpp='$CPP $CPPFLAGS'
18117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18120
18121 fi
18122 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18123 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18124  if test "$llvm_cv_c_printf_a" = "yes"; then
18125
18126 cat >>confdefs.h <<\_ACEOF
18127 #define HAVE_PRINTF_A 1
18128 _ACEOF
18129
18130  fi
18131
18132
18133
18134   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18135 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18136 if test "${ac_cv_func_rand48+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 else
18139
18140     ac_ext=cpp
18141 ac_cpp='$CXXCPP $CPPFLAGS'
18142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18145
18146     cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h.  */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h.  */
18152 #include <stdlib.h>
18153 int
18154 main ()
18155 {
18156 srand48(0);lrand48();drand48();
18157   ;
18158   return 0;
18159 }
18160 _ACEOF
18161 rm -f conftest.$ac_objext
18162 if { (ac_try="$ac_compile"
18163 case "(($ac_try" in
18164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165   *) ac_try_echo=$ac_try;;
18166 esac
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168   (eval "$ac_compile") 2>conftest.er1
18169   ac_status=$?
18170   grep -v '^ *+' conftest.er1 >conftest.err
18171   rm -f conftest.er1
18172   cat conftest.err >&5
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); } &&
18175          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18176   { (case "(($ac_try" in
18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178   *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181   (eval "$ac_try") 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; } &&
18185          { ac_try='test -s conftest.$ac_objext'
18186   { (case "(($ac_try" in
18187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188   *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191   (eval "$ac_try") 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; }; then
18195   ac_cv_func_rand48=yes
18196 else
18197   echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200         ac_cv_func_rand48=no
18201 fi
18202
18203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18204     ac_ext=c
18205 ac_cpp='$CPP $CPPFLAGS'
18206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18209
18210
18211 fi
18212 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18213 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18214
18215 if test "$ac_cv_func_rand48" = "yes" ; then
18216
18217 cat >>confdefs.h <<\_ACEOF
18218 #define HAVE_RAND48 1
18219 _ACEOF
18220
18221 fi
18222
18223
18224 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18225 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18226 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18227   echo $ECHO_N "(cached) $ECHO_C" >&6
18228 else
18229   cat >conftest.$ac_ext <<_ACEOF
18230 /* confdefs.h.  */
18231 _ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h.  */
18235 $ac_includes_default
18236 int
18237 main ()
18238 {
18239 #ifndef strerror_s
18240   char *p = (char *) strerror_s;
18241   return !p;
18242 #endif
18243
18244   ;
18245   return 0;
18246 }
18247 _ACEOF
18248 rm -f conftest.$ac_objext
18249 if { (ac_try="$ac_compile"
18250 case "(($ac_try" in
18251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252   *) ac_try_echo=$ac_try;;
18253 esac
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255   (eval "$ac_compile") 2>conftest.er1
18256   ac_status=$?
18257   grep -v '^ *+' conftest.er1 >conftest.err
18258   rm -f conftest.er1
18259   cat conftest.err >&5
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); } &&
18262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18263   { (case "(($ac_try" in
18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265   *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268   (eval "$ac_try") 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); }; } &&
18272          { ac_try='test -s conftest.$ac_objext'
18273   { (case "(($ac_try" in
18274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275   *) ac_try_echo=$ac_try;;
18276 esac
18277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278   (eval "$ac_try") 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); }; }; then
18282   ac_cv_have_decl_strerror_s=yes
18283 else
18284   echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18286
18287         ac_cv_have_decl_strerror_s=no
18288 fi
18289
18290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291 fi
18292 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18293 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18294 if test $ac_cv_have_decl_strerror_s = yes; then
18295
18296 cat >>confdefs.h <<_ACEOF
18297 #define HAVE_DECL_STRERROR_S 1
18298 _ACEOF
18299
18300
18301 else
18302   cat >>confdefs.h <<_ACEOF
18303 #define HAVE_DECL_STRERROR_S 0
18304 _ACEOF
18305
18306
18307 fi
18308
18309
18310
18311 if test "$llvm_cv_os_type" = "MingW" ; then
18312   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18313 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18314 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18315   echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317   ac_check_lib_save_LIBS=$LIBS
18318 LIBS="-lgcc  $LIBS"
18319 cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h.  */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h.  */
18325
18326 /* Override any GCC internal prototype to avoid an error.
18327    Use char because int might match the return type of a GCC
18328    builtin and then its argument prototype would still apply.  */
18329 #ifdef __cplusplus
18330 extern "C"
18331 #endif
18332 char _alloca ();
18333 int
18334 main ()
18335 {
18336 return _alloca ();
18337   ;
18338   return 0;
18339 }
18340 _ACEOF
18341 rm -f conftest.$ac_objext conftest$ac_exeext
18342 if { (ac_try="$ac_link"
18343 case "(($ac_try" in
18344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345   *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348   (eval "$ac_link") 2>conftest.er1
18349   ac_status=$?
18350   grep -v '^ *+' conftest.er1 >conftest.err
18351   rm -f conftest.er1
18352   cat conftest.err >&5
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); } &&
18355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18356   { (case "(($ac_try" in
18357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358   *) ac_try_echo=$ac_try;;
18359 esac
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361   (eval "$ac_try") 2>&5
18362   ac_status=$?
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); }; } &&
18365          { ac_try='test -s conftest$ac_exeext'
18366   { (case "(($ac_try" in
18367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368   *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371   (eval "$ac_try") 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); }; }; then
18375   ac_cv_lib_gcc__alloca=yes
18376 else
18377   echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380         ac_cv_lib_gcc__alloca=no
18381 fi
18382
18383 rm -f core conftest.err conftest.$ac_objext \
18384       conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18386 fi
18387 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18388 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18389 if test $ac_cv_lib_gcc__alloca = yes; then
18390
18391 cat >>confdefs.h <<\_ACEOF
18392 #define HAVE__ALLOCA 1
18393 _ACEOF
18394
18395 fi
18396
18397   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18398 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18399 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18400   echo $ECHO_N "(cached) $ECHO_C" >&6
18401 else
18402   ac_check_lib_save_LIBS=$LIBS
18403 LIBS="-lgcc  $LIBS"
18404 cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h.  */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h.  */
18410
18411 /* Override any GCC internal prototype to avoid an error.
18412    Use char because int might match the return type of a GCC
18413    builtin and then its argument prototype would still apply.  */
18414 #ifdef __cplusplus
18415 extern "C"
18416 #endif
18417 char __alloca ();
18418 int
18419 main ()
18420 {
18421 return __alloca ();
18422   ;
18423   return 0;
18424 }
18425 _ACEOF
18426 rm -f conftest.$ac_objext conftest$ac_exeext
18427 if { (ac_try="$ac_link"
18428 case "(($ac_try" in
18429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430   *) ac_try_echo=$ac_try;;
18431 esac
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433   (eval "$ac_link") 2>conftest.er1
18434   ac_status=$?
18435   grep -v '^ *+' conftest.er1 >conftest.err
18436   rm -f conftest.er1
18437   cat conftest.err >&5
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); } &&
18440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18441   { (case "(($ac_try" in
18442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443   *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446   (eval "$ac_try") 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); }; } &&
18450          { ac_try='test -s conftest$ac_exeext'
18451   { (case "(($ac_try" in
18452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453   *) ac_try_echo=$ac_try;;
18454 esac
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456   (eval "$ac_try") 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); }; }; then
18460   ac_cv_lib_gcc___alloca=yes
18461 else
18462   echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18464
18465         ac_cv_lib_gcc___alloca=no
18466 fi
18467
18468 rm -f core conftest.err conftest.$ac_objext \
18469       conftest$ac_exeext conftest.$ac_ext
18470 LIBS=$ac_check_lib_save_LIBS
18471 fi
18472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18473 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18474 if test $ac_cv_lib_gcc___alloca = yes; then
18475
18476 cat >>confdefs.h <<\_ACEOF
18477 #define HAVE___ALLOCA 1
18478 _ACEOF
18479
18480 fi
18481
18482   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18483 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18484 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18485   echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487   ac_check_lib_save_LIBS=$LIBS
18488 LIBS="-lgcc  $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h.  */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h.  */
18495
18496 /* Override any GCC internal prototype to avoid an error.
18497    Use char because int might match the return type of a GCC
18498    builtin and then its argument prototype would still apply.  */
18499 #ifdef __cplusplus
18500 extern "C"
18501 #endif
18502 char __chkstk ();
18503 int
18504 main ()
18505 {
18506 return __chkstk ();
18507   ;
18508   return 0;
18509 }
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515   *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518   (eval "$ac_link") 2>conftest.er1
18519   ac_status=$?
18520   grep -v '^ *+' conftest.er1 >conftest.err
18521   rm -f conftest.er1
18522   cat conftest.err >&5
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } &&
18525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526   { (case "(($ac_try" in
18527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528   *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531   (eval "$ac_try") 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; } &&
18535          { ac_try='test -s conftest$ac_exeext'
18536   { (case "(($ac_try" in
18537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538   *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541   (eval "$ac_try") 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); }; }; then
18545   ac_cv_lib_gcc___chkstk=yes
18546 else
18547   echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550         ac_cv_lib_gcc___chkstk=no
18551 fi
18552
18553 rm -f core conftest.err conftest.$ac_objext \
18554       conftest$ac_exeext conftest.$ac_ext
18555 LIBS=$ac_check_lib_save_LIBS
18556 fi
18557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18558 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18559 if test $ac_cv_lib_gcc___chkstk = yes; then
18560
18561 cat >>confdefs.h <<\_ACEOF
18562 #define HAVE___CHKSTK 1
18563 _ACEOF
18564
18565 fi
18566
18567   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18568 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18569 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lgcc  $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 /* Override any GCC internal prototype to avoid an error.
18582    Use char because int might match the return type of a GCC
18583    builtin and then its argument prototype would still apply.  */
18584 #ifdef __cplusplus
18585 extern "C"
18586 #endif
18587 char ___chkstk ();
18588 int
18589 main ()
18590 {
18591 return ___chkstk ();
18592   ;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603   (eval "$ac_link") 2>conftest.er1
18604   ac_status=$?
18605   grep -v '^ *+' conftest.er1 >conftest.err
18606   rm -f conftest.er1
18607   cat conftest.err >&5
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } &&
18610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18611   { (case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616   (eval "$ac_try") 2>&5
18617   ac_status=$?
18618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619   (exit $ac_status); }; } &&
18620          { ac_try='test -s conftest$ac_exeext'
18621   { (case "(($ac_try" in
18622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623   *) ac_try_echo=$ac_try;;
18624 esac
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626   (eval "$ac_try") 2>&5
18627   ac_status=$?
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); }; }; then
18630   ac_cv_lib_gcc____chkstk=yes
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635         ac_cv_lib_gcc____chkstk=no
18636 fi
18637
18638 rm -f core conftest.err conftest.$ac_objext \
18639       conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18641 fi
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18643 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18644 if test $ac_cv_lib_gcc____chkstk = yes; then
18645
18646 cat >>confdefs.h <<\_ACEOF
18647 #define HAVE____CHKSTK 1
18648 _ACEOF
18649
18650 fi
18651
18652
18653   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18654 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18655 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658   ac_check_lib_save_LIBS=$LIBS
18659 LIBS="-lgcc  $LIBS"
18660 cat >conftest.$ac_ext <<_ACEOF
18661 /* confdefs.h.  */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h.  */
18666
18667 /* Override any GCC internal prototype to avoid an error.
18668    Use char because int might match the return type of a GCC
18669    builtin and then its argument prototype would still apply.  */
18670 #ifdef __cplusplus
18671 extern "C"
18672 #endif
18673 char __ashldi3 ();
18674 int
18675 main ()
18676 {
18677 return __ashldi3 ();
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686   *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689   (eval "$ac_link") 2>conftest.er1
18690   ac_status=$?
18691   grep -v '^ *+' conftest.er1 >conftest.err
18692   rm -f conftest.er1
18693   cat conftest.err >&5
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); } &&
18696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697   { (case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702   (eval "$ac_try") 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; } &&
18706          { ac_try='test -s conftest$ac_exeext'
18707   { (case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_try") 2>&5
18713   ac_status=$?
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); }; }; then
18716   ac_cv_lib_gcc___ashldi3=yes
18717 else
18718   echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18720
18721         ac_cv_lib_gcc___ashldi3=no
18722 fi
18723
18724 rm -f core conftest.err conftest.$ac_objext \
18725       conftest$ac_exeext conftest.$ac_ext
18726 LIBS=$ac_check_lib_save_LIBS
18727 fi
18728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18729 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18730 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18731
18732 cat >>confdefs.h <<\_ACEOF
18733 #define HAVE___ASHLDI3 1
18734 _ACEOF
18735
18736 fi
18737
18738   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18739 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18740 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18741   echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743   ac_check_lib_save_LIBS=$LIBS
18744 LIBS="-lgcc  $LIBS"
18745 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h.  */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h.  */
18751
18752 /* Override any GCC internal prototype to avoid an error.
18753    Use char because int might match the return type of a GCC
18754    builtin and then its argument prototype would still apply.  */
18755 #ifdef __cplusplus
18756 extern "C"
18757 #endif
18758 char __ashrdi3 ();
18759 int
18760 main ()
18761 {
18762 return __ashrdi3 ();
18763   ;
18764   return 0;
18765 }
18766 _ACEOF
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (ac_try="$ac_link"
18769 case "(($ac_try" in
18770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771   *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774   (eval "$ac_link") 2>conftest.er1
18775   ac_status=$?
18776   grep -v '^ *+' conftest.er1 >conftest.err
18777   rm -f conftest.er1
18778   cat conftest.err >&5
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } &&
18781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782   { (case "(($ac_try" in
18783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784   *) ac_try_echo=$ac_try;;
18785 esac
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787   (eval "$ac_try") 2>&5
18788   ac_status=$?
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); }; } &&
18791          { ac_try='test -s conftest$ac_exeext'
18792   { (case "(($ac_try" in
18793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794   *) ac_try_echo=$ac_try;;
18795 esac
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797   (eval "$ac_try") 2>&5
18798   ac_status=$?
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); }; }; then
18801   ac_cv_lib_gcc___ashrdi3=yes
18802 else
18803   echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806         ac_cv_lib_gcc___ashrdi3=no
18807 fi
18808
18809 rm -f core conftest.err conftest.$ac_objext \
18810       conftest$ac_exeext conftest.$ac_ext
18811 LIBS=$ac_check_lib_save_LIBS
18812 fi
18813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18814 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18815 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18816
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE___ASHRDI3 1
18819 _ACEOF
18820
18821 fi
18822
18823   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18824 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18825 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18826   echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828   ac_check_lib_save_LIBS=$LIBS
18829 LIBS="-lgcc  $LIBS"
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836
18837 /* Override any GCC internal prototype to avoid an error.
18838    Use char because int might match the return type of a GCC
18839    builtin and then its argument prototype would still apply.  */
18840 #ifdef __cplusplus
18841 extern "C"
18842 #endif
18843 char __divdi3 ();
18844 int
18845 main ()
18846 {
18847 return __divdi3 ();
18848   ;
18849   return 0;
18850 }
18851 _ACEOF
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (ac_try="$ac_link"
18854 case "(($ac_try" in
18855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856   *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859   (eval "$ac_link") 2>conftest.er1
18860   ac_status=$?
18861   grep -v '^ *+' conftest.er1 >conftest.err
18862   rm -f conftest.er1
18863   cat conftest.err >&5
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); } &&
18866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18867   { (case "(($ac_try" in
18868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869   *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872   (eval "$ac_try") 2>&5
18873   ac_status=$?
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); }; } &&
18876          { ac_try='test -s conftest$ac_exeext'
18877   { (case "(($ac_try" in
18878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879   *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882   (eval "$ac_try") 2>&5
18883   ac_status=$?
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); }; }; then
18886   ac_cv_lib_gcc___divdi3=yes
18887 else
18888   echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18890
18891         ac_cv_lib_gcc___divdi3=no
18892 fi
18893
18894 rm -f core conftest.err conftest.$ac_objext \
18895       conftest$ac_exeext conftest.$ac_ext
18896 LIBS=$ac_check_lib_save_LIBS
18897 fi
18898 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18899 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18900 if test $ac_cv_lib_gcc___divdi3 = yes; then
18901
18902 cat >>confdefs.h <<\_ACEOF
18903 #define HAVE___DIVDI3 1
18904 _ACEOF
18905
18906 fi
18907
18908   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18909 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18910 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18911   echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913   ac_check_lib_save_LIBS=$LIBS
18914 LIBS="-lgcc  $LIBS"
18915 cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h.  */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h.  */
18921
18922 /* Override any GCC internal prototype to avoid an error.
18923    Use char because int might match the return type of a GCC
18924    builtin and then its argument prototype would still apply.  */
18925 #ifdef __cplusplus
18926 extern "C"
18927 #endif
18928 char __fixdfdi ();
18929 int
18930 main ()
18931 {
18932 return __fixdfdi ();
18933   ;
18934   return 0;
18935 }
18936 _ACEOF
18937 rm -f conftest.$ac_objext conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941   *) ac_try_echo=$ac_try;;
18942 esac
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944   (eval "$ac_link") 2>conftest.er1
18945   ac_status=$?
18946   grep -v '^ *+' conftest.er1 >conftest.err
18947   rm -f conftest.er1
18948   cat conftest.err >&5
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); } &&
18951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952   { (case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_try") 2>&5
18958   ac_status=$?
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); }; } &&
18961          { ac_try='test -s conftest$ac_exeext'
18962   { (case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_try") 2>&5
18968   ac_status=$?
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); }; }; then
18971   ac_cv_lib_gcc___fixdfdi=yes
18972 else
18973   echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18975
18976         ac_cv_lib_gcc___fixdfdi=no
18977 fi
18978
18979 rm -f core conftest.err conftest.$ac_objext \
18980       conftest$ac_exeext conftest.$ac_ext
18981 LIBS=$ac_check_lib_save_LIBS
18982 fi
18983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18984 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18985 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18986
18987 cat >>confdefs.h <<\_ACEOF
18988 #define HAVE___FIXDFDI 1
18989 _ACEOF
18990
18991 fi
18992
18993   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18994 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18995 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18996   echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998   ac_check_lib_save_LIBS=$LIBS
18999 LIBS="-lgcc  $LIBS"
19000 cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h.  */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h.  */
19006
19007 /* Override any GCC internal prototype to avoid an error.
19008    Use char because int might match the return type of a GCC
19009    builtin and then its argument prototype would still apply.  */
19010 #ifdef __cplusplus
19011 extern "C"
19012 #endif
19013 char __fixsfdi ();
19014 int
19015 main ()
19016 {
19017 return __fixsfdi ();
19018   ;
19019   return 0;
19020 }
19021 _ACEOF
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026   *) ac_try_echo=$ac_try;;
19027 esac
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029   (eval "$ac_link") 2>conftest.er1
19030   ac_status=$?
19031   grep -v '^ *+' conftest.er1 >conftest.err
19032   rm -f conftest.er1
19033   cat conftest.err >&5
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); } &&
19036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037   { (case "(($ac_try" in
19038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039   *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042   (eval "$ac_try") 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; } &&
19046          { ac_try='test -s conftest$ac_exeext'
19047   { (case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_try") 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; }; then
19056   ac_cv_lib_gcc___fixsfdi=yes
19057 else
19058   echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19060
19061         ac_cv_lib_gcc___fixsfdi=no
19062 fi
19063
19064 rm -f core conftest.err conftest.$ac_objext \
19065       conftest$ac_exeext conftest.$ac_ext
19066 LIBS=$ac_check_lib_save_LIBS
19067 fi
19068 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19069 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19070 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19071
19072 cat >>confdefs.h <<\_ACEOF
19073 #define HAVE___FIXSFDI 1
19074 _ACEOF
19075
19076 fi
19077
19078   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19079 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19080 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19081   echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083   ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-lgcc  $LIBS"
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091
19092 /* Override any GCC internal prototype to avoid an error.
19093    Use char because int might match the return type of a GCC
19094    builtin and then its argument prototype would still apply.  */
19095 #ifdef __cplusplus
19096 extern "C"
19097 #endif
19098 char __floatdidf ();
19099 int
19100 main ()
19101 {
19102 return __floatdidf ();
19103   ;
19104   return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext conftest$ac_exeext
19108 if { (ac_try="$ac_link"
19109 case "(($ac_try" in
19110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111   *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114   (eval "$ac_link") 2>conftest.er1
19115   ac_status=$?
19116   grep -v '^ *+' conftest.er1 >conftest.err
19117   rm -f conftest.er1
19118   cat conftest.err >&5
19119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120   (exit $ac_status); } &&
19121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19122   { (case "(($ac_try" in
19123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124   *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127   (eval "$ac_try") 2>&5
19128   ac_status=$?
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); }; } &&
19131          { ac_try='test -s conftest$ac_exeext'
19132   { (case "(($ac_try" in
19133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134   *) ac_try_echo=$ac_try;;
19135 esac
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137   (eval "$ac_try") 2>&5
19138   ac_status=$?
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); }; }; then
19141   ac_cv_lib_gcc___floatdidf=yes
19142 else
19143   echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146         ac_cv_lib_gcc___floatdidf=no
19147 fi
19148
19149 rm -f core conftest.err conftest.$ac_objext \
19150       conftest$ac_exeext conftest.$ac_ext
19151 LIBS=$ac_check_lib_save_LIBS
19152 fi
19153 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19154 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19155 if test $ac_cv_lib_gcc___floatdidf = yes; then
19156
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE___FLOATDIDF 1
19159 _ACEOF
19160
19161 fi
19162
19163   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19164 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19165 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19166   echo $ECHO_N "(cached) $ECHO_C" >&6
19167 else
19168   ac_check_lib_save_LIBS=$LIBS
19169 LIBS="-lgcc  $LIBS"
19170 cat >conftest.$ac_ext <<_ACEOF
19171 /* confdefs.h.  */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h.  */
19176
19177 /* Override any GCC internal prototype to avoid an error.
19178    Use char because int might match the return type of a GCC
19179    builtin and then its argument prototype would still apply.  */
19180 #ifdef __cplusplus
19181 extern "C"
19182 #endif
19183 char __lshrdi3 ();
19184 int
19185 main ()
19186 {
19187 return __lshrdi3 ();
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 rm -f conftest.$ac_objext conftest$ac_exeext
19193 if { (ac_try="$ac_link"
19194 case "(($ac_try" in
19195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196   *) ac_try_echo=$ac_try;;
19197 esac
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199   (eval "$ac_link") 2>conftest.er1
19200   ac_status=$?
19201   grep -v '^ *+' conftest.er1 >conftest.err
19202   rm -f conftest.er1
19203   cat conftest.err >&5
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); } &&
19206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19207   { (case "(($ac_try" in
19208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209   *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212   (eval "$ac_try") 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; } &&
19216          { ac_try='test -s conftest$ac_exeext'
19217   { (case "(($ac_try" in
19218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219   *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222   (eval "$ac_try") 2>&5
19223   ac_status=$?
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); }; }; then
19226   ac_cv_lib_gcc___lshrdi3=yes
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231         ac_cv_lib_gcc___lshrdi3=no
19232 fi
19233
19234 rm -f core conftest.err conftest.$ac_objext \
19235       conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19237 fi
19238 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19239 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19240 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19241
19242 cat >>confdefs.h <<\_ACEOF
19243 #define HAVE___LSHRDI3 1
19244 _ACEOF
19245
19246 fi
19247
19248   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19249 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19250 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19251   echo $ECHO_N "(cached) $ECHO_C" >&6
19252 else
19253   ac_check_lib_save_LIBS=$LIBS
19254 LIBS="-lgcc  $LIBS"
19255 cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h.  */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h.  */
19261
19262 /* Override any GCC internal prototype to avoid an error.
19263    Use char because int might match the return type of a GCC
19264    builtin and then its argument prototype would still apply.  */
19265 #ifdef __cplusplus
19266 extern "C"
19267 #endif
19268 char __moddi3 ();
19269 int
19270 main ()
19271 {
19272 return __moddi3 ();
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 rm -f conftest.$ac_objext conftest$ac_exeext
19278 if { (ac_try="$ac_link"
19279 case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_link") 2>conftest.er1
19285   ac_status=$?
19286   grep -v '^ *+' conftest.er1 >conftest.err
19287   rm -f conftest.er1
19288   cat conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } &&
19291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19292   { (case "(($ac_try" in
19293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294   *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297   (eval "$ac_try") 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; } &&
19301          { ac_try='test -s conftest$ac_exeext'
19302   { (case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_try") 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; }; then
19311   ac_cv_lib_gcc___moddi3=yes
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316         ac_cv_lib_gcc___moddi3=no
19317 fi
19318
19319 rm -f core conftest.err conftest.$ac_objext \
19320       conftest$ac_exeext conftest.$ac_ext
19321 LIBS=$ac_check_lib_save_LIBS
19322 fi
19323 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19324 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19325 if test $ac_cv_lib_gcc___moddi3 = yes; then
19326
19327 cat >>confdefs.h <<\_ACEOF
19328 #define HAVE___MODDI3 1
19329 _ACEOF
19330
19331 fi
19332
19333   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19334 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19335 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19336   echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19338   ac_check_lib_save_LIBS=$LIBS
19339 LIBS="-lgcc  $LIBS"
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h.  */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h.  */
19346
19347 /* Override any GCC internal prototype to avoid an error.
19348    Use char because int might match the return type of a GCC
19349    builtin and then its argument prototype would still apply.  */
19350 #ifdef __cplusplus
19351 extern "C"
19352 #endif
19353 char __udivdi3 ();
19354 int
19355 main ()
19356 {
19357 return __udivdi3 ();
19358   ;
19359   return 0;
19360 }
19361 _ACEOF
19362 rm -f conftest.$ac_objext conftest$ac_exeext
19363 if { (ac_try="$ac_link"
19364 case "(($ac_try" in
19365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366   *) ac_try_echo=$ac_try;;
19367 esac
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369   (eval "$ac_link") 2>conftest.er1
19370   ac_status=$?
19371   grep -v '^ *+' conftest.er1 >conftest.err
19372   rm -f conftest.er1
19373   cat conftest.err >&5
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } &&
19376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19377   { (case "(($ac_try" in
19378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379   *) ac_try_echo=$ac_try;;
19380 esac
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382   (eval "$ac_try") 2>&5
19383   ac_status=$?
19384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); }; } &&
19386          { ac_try='test -s conftest$ac_exeext'
19387   { (case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392   (eval "$ac_try") 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; }; then
19396   ac_cv_lib_gcc___udivdi3=yes
19397 else
19398   echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401         ac_cv_lib_gcc___udivdi3=no
19402 fi
19403
19404 rm -f core conftest.err conftest.$ac_objext \
19405       conftest$ac_exeext conftest.$ac_ext
19406 LIBS=$ac_check_lib_save_LIBS
19407 fi
19408 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19409 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19410 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19411
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE___UDIVDI3 1
19414 _ACEOF
19415
19416 fi
19417
19418   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19419 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19420 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19421   echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423   ac_check_lib_save_LIBS=$LIBS
19424 LIBS="-lgcc  $LIBS"
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431
19432 /* Override any GCC internal prototype to avoid an error.
19433    Use char because int might match the return type of a GCC
19434    builtin and then its argument prototype would still apply.  */
19435 #ifdef __cplusplus
19436 extern "C"
19437 #endif
19438 char __umoddi3 ();
19439 int
19440 main ()
19441 {
19442 return __umoddi3 ();
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451   *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454   (eval "$ac_link") 2>conftest.er1
19455   ac_status=$?
19456   grep -v '^ *+' conftest.er1 >conftest.err
19457   rm -f conftest.er1
19458   cat conftest.err >&5
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } &&
19461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19462   { (case "(($ac_try" in
19463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464   *) ac_try_echo=$ac_try;;
19465 esac
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467   (eval "$ac_try") 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; } &&
19471          { ac_try='test -s conftest$ac_exeext'
19472   { (case "(($ac_try" in
19473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474   *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477   (eval "$ac_try") 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_cv_lib_gcc___umoddi3=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486         ac_cv_lib_gcc___umoddi3=no
19487 fi
19488
19489 rm -f core conftest.err conftest.$ac_objext \
19490       conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19492 fi
19493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19494 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19495 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19496
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE___UMODDI3 1
19499 _ACEOF
19500
19501 fi
19502
19503
19504   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19505 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19506 if test "${ac_cv_lib_gcc___main+set}" = set; then
19507   echo $ECHO_N "(cached) $ECHO_C" >&6
19508 else
19509   ac_check_lib_save_LIBS=$LIBS
19510 LIBS="-lgcc  $LIBS"
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h.  */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h.  */
19517
19518 /* Override any GCC internal prototype to avoid an error.
19519    Use char because int might match the return type of a GCC
19520    builtin and then its argument prototype would still apply.  */
19521 #ifdef __cplusplus
19522 extern "C"
19523 #endif
19524 char __main ();
19525 int
19526 main ()
19527 {
19528 return __main ();
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_link") 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19548   { (case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553   (eval "$ac_try") 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; } &&
19557          { ac_try='test -s conftest$ac_exeext'
19558   { (case "(($ac_try" in
19559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560   *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563   (eval "$ac_try") 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; }; then
19567   ac_cv_lib_gcc___main=yes
19568 else
19569   echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         ac_cv_lib_gcc___main=no
19573 fi
19574
19575 rm -f core conftest.err conftest.$ac_objext \
19576       conftest$ac_exeext conftest.$ac_ext
19577 LIBS=$ac_check_lib_save_LIBS
19578 fi
19579 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19580 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19581 if test $ac_cv_lib_gcc___main = yes; then
19582
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE___MAIN 1
19585 _ACEOF
19586
19587 fi
19588
19589   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19590 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19591 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   ac_check_lib_save_LIBS=$LIBS
19595 LIBS="-lgcc  $LIBS"
19596 cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h.  */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h.  */
19602
19603 /* Override any GCC internal prototype to avoid an error.
19604    Use char because int might match the return type of a GCC
19605    builtin and then its argument prototype would still apply.  */
19606 #ifdef __cplusplus
19607 extern "C"
19608 #endif
19609 char __cmpdi2 ();
19610 int
19611 main ()
19612 {
19613 return __cmpdi2 ();
19614   ;
19615   return 0;
19616 }
19617 _ACEOF
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (ac_try="$ac_link"
19620 case "(($ac_try" in
19621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622   *) ac_try_echo=$ac_try;;
19623 esac
19624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625   (eval "$ac_link") 2>conftest.er1
19626   ac_status=$?
19627   grep -v '^ *+' conftest.er1 >conftest.err
19628   rm -f conftest.er1
19629   cat conftest.err >&5
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); } &&
19632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19633   { (case "(($ac_try" in
19634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635   *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638   (eval "$ac_try") 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; } &&
19642          { ac_try='test -s conftest$ac_exeext'
19643   { (case "(($ac_try" in
19644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645   *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648   (eval "$ac_try") 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; }; then
19652   ac_cv_lib_gcc___cmpdi2=yes
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657         ac_cv_lib_gcc___cmpdi2=no
19658 fi
19659
19660 rm -f core conftest.err conftest.$ac_objext \
19661       conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19663 fi
19664 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19665 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19666 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19667
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE___CMPDI2 1
19670 _ACEOF
19671
19672 fi
19673
19674 fi
19675
19676 if test "$llvm_cv_os_type" = "MingW" ; then
19677   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19678 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19679   cat >conftest.$ac_ext <<_ACEOF
19680
19681   /* confdefs.h.  */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h.  */
19686
19687     #include <windows.h>
19688     #include <imagehlp.h>
19689     extern void foo(PENUMLOADED_MODULES_CALLBACK);
19690     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19691
19692
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_compile") 2>conftest.er1
19702   ac_status=$?
19703   grep -v '^ *+' conftest.er1 >conftest.err
19704   rm -f conftest.er1
19705   cat conftest.err >&5
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); } &&
19708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19709   { (case "(($ac_try" in
19710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711   *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714   (eval "$ac_try") 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); }; } &&
19718          { ac_try='test -s conftest.$ac_objext'
19719   { (case "(($ac_try" in
19720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721   *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724   (eval "$ac_try") 2>&5
19725   ac_status=$?
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); }; }; then
19728
19729   { echo "$as_me:$LINENO: result: yes" >&5
19730 echo "${ECHO_T}yes" >&6; }
19731   llvm_cv_win32_elmcb_pcstr="PCSTR"
19732
19733 else
19734   echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737
19738   { echo "$as_me:$LINENO: result: no" >&5
19739 echo "${ECHO_T}no" >&6; }
19740   llvm_cv_win32_elmcb_pcstr="PSTR"
19741
19742 fi
19743
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745
19746 cat >>confdefs.h <<_ACEOF
19747 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19748 _ACEOF
19749
19750 fi
19751
19752
19753
19754   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19755 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19756 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19757   echo $ECHO_N "(cached) $ECHO_C" >&6
19758 else
19759
19760     ac_ext=cpp
19761 ac_cpp='$CXXCPP $CPPFLAGS'
19762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19765
19766     cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772 #include <math.h>
19773 int
19774 main ()
19775 {
19776 float f; isnan(f);
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788   (eval "$ac_compile") 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } &&
19795          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19796   { (case "(($ac_try" in
19797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798   *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801   (eval "$ac_try") 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); }; } &&
19805          { ac_try='test -s conftest.$ac_objext'
19806   { (case "(($ac_try" in
19807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808   *) ac_try_echo=$ac_try;;
19809 esac
19810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811   (eval "$ac_try") 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; }; then
19815   ac_cv_func_isnan_in_math_h=yes
19816 else
19817   echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820         ac_cv_func_isnan_in_math_h=no
19821 fi
19822
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824     ac_ext=c
19825 ac_cpp='$CPP $CPPFLAGS'
19826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19829
19830
19831 fi
19832 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19833 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19834
19835
19836 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19837
19838 cat >>confdefs.h <<\_ACEOF
19839 #define HAVE_ISNAN_IN_MATH_H 1
19840 _ACEOF
19841
19842 fi
19843
19844
19845   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19846 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19847 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19848   echo $ECHO_N "(cached) $ECHO_C" >&6
19849 else
19850
19851     ac_ext=cpp
19852 ac_cpp='$CXXCPP $CPPFLAGS'
19853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19856
19857     cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h.  */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h.  */
19863 #include <cmath>
19864 int
19865 main ()
19866 {
19867 float f; isnan(f);
19868   ;
19869   return 0;
19870 }
19871 _ACEOF
19872 rm -f conftest.$ac_objext
19873 if { (ac_try="$ac_compile"
19874 case "(($ac_try" in
19875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876   *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879   (eval "$ac_compile") 2>conftest.er1
19880   ac_status=$?
19881   grep -v '^ *+' conftest.er1 >conftest.err
19882   rm -f conftest.er1
19883   cat conftest.err >&5
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); } &&
19886          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19887   { (case "(($ac_try" in
19888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889   *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892   (eval "$ac_try") 2>&5
19893   ac_status=$?
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); }; } &&
19896          { ac_try='test -s conftest.$ac_objext'
19897   { (case "(($ac_try" in
19898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899   *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902   (eval "$ac_try") 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; }; then
19906   ac_cv_func_isnan_in_cmath=yes
19907 else
19908   echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911         ac_cv_func_isnan_in_cmath=no
19912 fi
19913
19914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19915     ac_ext=c
19916 ac_cpp='$CPP $CPPFLAGS'
19917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19920
19921
19922 fi
19923 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19924 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19925
19926 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19927
19928 cat >>confdefs.h <<\_ACEOF
19929 #define HAVE_ISNAN_IN_CMATH 1
19930 _ACEOF
19931
19932 fi
19933
19934
19935   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19936 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19937 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940
19941     ac_ext=cpp
19942 ac_cpp='$CXXCPP $CPPFLAGS'
19943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19946
19947     cat >conftest.$ac_ext <<_ACEOF
19948 /* confdefs.h.  */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h.  */
19953 #include <cmath>
19954 int
19955 main ()
19956 {
19957 float f; std::isnan(f);
19958   ;
19959   return 0;
19960 }
19961 _ACEOF
19962 rm -f conftest.$ac_objext
19963 if { (ac_try="$ac_compile"
19964 case "(($ac_try" in
19965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966   *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969   (eval "$ac_compile") 2>conftest.er1
19970   ac_status=$?
19971   grep -v '^ *+' conftest.er1 >conftest.err
19972   rm -f conftest.er1
19973   cat conftest.err >&5
19974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975   (exit $ac_status); } &&
19976          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19977   { (case "(($ac_try" in
19978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979   *) ac_try_echo=$ac_try;;
19980 esac
19981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19982   (eval "$ac_try") 2>&5
19983   ac_status=$?
19984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985   (exit $ac_status); }; } &&
19986          { ac_try='test -s conftest.$ac_objext'
19987   { (case "(($ac_try" in
19988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989   *) ac_try_echo=$ac_try;;
19990 esac
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992   (eval "$ac_try") 2>&5
19993   ac_status=$?
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); }; }; then
19996   ac_cv_func_std_isnan_in_cmath=yes
19997 else
19998   echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001         ac_cv_func_std_isnan_in_cmath=no
20002 fi
20003
20004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20005     ac_ext=c
20006 ac_cpp='$CPP $CPPFLAGS'
20007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20010
20011
20012 fi
20013 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20014 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20015
20016 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20017
20018 cat >>confdefs.h <<\_ACEOF
20019 #define HAVE_STD_ISNAN_IN_CMATH 1
20020 _ACEOF
20021
20022 fi
20023
20024
20025
20026
20027   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20028 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20029 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032
20033     ac_ext=cpp
20034 ac_cpp='$CXXCPP $CPPFLAGS'
20035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20038
20039     cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045 #include <math.h>
20046 int
20047 main ()
20048 {
20049 float f; isinf(f);
20050   ;
20051   return 0;
20052 }
20053 _ACEOF
20054 rm -f conftest.$ac_objext
20055 if { (ac_try="$ac_compile"
20056 case "(($ac_try" in
20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058   *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061   (eval "$ac_compile") 2>conftest.er1
20062   ac_status=$?
20063   grep -v '^ *+' conftest.er1 >conftest.err
20064   rm -f conftest.er1
20065   cat conftest.err >&5
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); } &&
20068          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20069   { (case "(($ac_try" in
20070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071   *) ac_try_echo=$ac_try;;
20072 esac
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074   (eval "$ac_try") 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; } &&
20078          { ac_try='test -s conftest.$ac_objext'
20079   { (case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_try") 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; }; then
20088   ac_cv_func_isinf_in_math_h=yes
20089 else
20090   echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093         ac_cv_func_isinf_in_math_h=no
20094 fi
20095
20096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097     ac_ext=c
20098 ac_cpp='$CPP $CPPFLAGS'
20099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20102
20103
20104 fi
20105 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20106 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20107
20108 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20109
20110 cat >>confdefs.h <<\_ACEOF
20111 #define HAVE_ISINF_IN_MATH_H 1
20112 _ACEOF
20113
20114 fi
20115
20116
20117   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20118 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20119 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20120   echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122
20123     ac_ext=cpp
20124 ac_cpp='$CXXCPP $CPPFLAGS'
20125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20128
20129     cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 #include <cmath>
20136 int
20137 main ()
20138 {
20139 float f; isinf(f);
20140   ;
20141   return 0;
20142 }
20143 _ACEOF
20144 rm -f conftest.$ac_objext
20145 if { (ac_try="$ac_compile"
20146 case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_compile") 2>conftest.er1
20152   ac_status=$?
20153   grep -v '^ *+' conftest.er1 >conftest.err
20154   rm -f conftest.er1
20155   cat conftest.err >&5
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } &&
20158          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20159   { (case "(($ac_try" in
20160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161   *) ac_try_echo=$ac_try;;
20162 esac
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164   (eval "$ac_try") 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; } &&
20168          { ac_try='test -s conftest.$ac_objext'
20169   { (case "(($ac_try" in
20170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171   *) ac_try_echo=$ac_try;;
20172 esac
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174   (eval "$ac_try") 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; }; then
20178   ac_cv_func_isinf_in_cmath=yes
20179 else
20180   echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20182
20183         ac_cv_func_isinf_in_cmath=no
20184 fi
20185
20186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20187     ac_ext=c
20188 ac_cpp='$CPP $CPPFLAGS'
20189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20192
20193
20194 fi
20195 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20196 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20197
20198 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20199
20200 cat >>confdefs.h <<\_ACEOF
20201 #define HAVE_ISINF_IN_CMATH 1
20202 _ACEOF
20203
20204 fi
20205
20206
20207   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20208 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20209 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212
20213     ac_ext=cpp
20214 ac_cpp='$CXXCPP $CPPFLAGS'
20215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20218
20219     cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h.  */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h.  */
20225 #include <cmath>
20226 int
20227 main ()
20228 {
20229 float f; std::isinf(f);
20230   ;
20231   return 0;
20232 }
20233 _ACEOF
20234 rm -f conftest.$ac_objext
20235 if { (ac_try="$ac_compile"
20236 case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_compile") 2>conftest.er1
20242   ac_status=$?
20243   grep -v '^ *+' conftest.er1 >conftest.err
20244   rm -f conftest.er1
20245   cat conftest.err >&5
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); } &&
20248          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20249   { (case "(($ac_try" in
20250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251   *) ac_try_echo=$ac_try;;
20252 esac
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254   (eval "$ac_try") 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); }; } &&
20258          { ac_try='test -s conftest.$ac_objext'
20259   { (case "(($ac_try" in
20260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261   *) ac_try_echo=$ac_try;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264   (eval "$ac_try") 2>&5
20265   ac_status=$?
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); }; }; then
20268   ac_cv_func_std_isinf_in_cmath=yes
20269 else
20270   echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273         ac_cv_func_std_isinf_in_cmath=no
20274 fi
20275
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277     ac_ext=c
20278 ac_cpp='$CPP $CPPFLAGS'
20279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20282
20283
20284 fi
20285 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20286 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20287
20288 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20289
20290 cat >>confdefs.h <<\_ACEOF
20291 #define HAVE_STD_ISINF_IN_CMATH 1
20292 _ACEOF
20293
20294 fi
20295
20296
20297   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20298 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20299 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20300   echo $ECHO_N "(cached) $ECHO_C" >&6
20301 else
20302
20303     ac_ext=cpp
20304 ac_cpp='$CXXCPP $CPPFLAGS'
20305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20308
20309     cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h.  */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h.  */
20315 #include <ieeefp.h>
20316 int
20317 main ()
20318 {
20319 float f; finite(f);
20320   ;
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext
20325 if { (ac_try="$ac_compile"
20326 case "(($ac_try" in
20327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328   *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331   (eval "$ac_compile") 2>conftest.er1
20332   ac_status=$?
20333   grep -v '^ *+' conftest.er1 >conftest.err
20334   rm -f conftest.er1
20335   cat conftest.err >&5
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } &&
20338          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20339   { (case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344   (eval "$ac_try") 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; } &&
20348          { ac_try='test -s conftest.$ac_objext'
20349   { (case "(($ac_try" in
20350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351   *) ac_try_echo=$ac_try;;
20352 esac
20353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354   (eval "$ac_try") 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); }; }; then
20358   ac_cv_func_finite_in_ieeefp_h=yes
20359 else
20360   echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20362
20363         ac_cv_func_finite_in_ieeefp_h=no
20364 fi
20365
20366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20367     ac_ext=c
20368 ac_cpp='$CPP $CPPFLAGS'
20369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20372
20373
20374 fi
20375 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20376 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20377
20378 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20379
20380 cat >>confdefs.h <<\_ACEOF
20381 #define HAVE_FINITE_IN_IEEEFP_H 1
20382 _ACEOF
20383
20384 fi
20385
20386
20387
20388 if test "$llvm_cv_platform_type" = "Unix" ; then
20389
20390
20391 for ac_header in stdlib.h unistd.h
20392 do
20393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20398   echo $ECHO_N "(cached) $ECHO_C" >&6
20399 fi
20400 ac_res=`eval echo '${'$as_ac_Header'}'`
20401                { echo "$as_me:$LINENO: result: $ac_res" >&5
20402 echo "${ECHO_T}$ac_res" >&6; }
20403 else
20404   # Is the header compilable?
20405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 $ac_includes_default
20414 #include <$ac_header>
20415 _ACEOF
20416 rm -f conftest.$ac_objext
20417 if { (ac_try="$ac_compile"
20418 case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_compile") 2>conftest.er1
20424   ac_status=$?
20425   grep -v '^ *+' conftest.er1 >conftest.err
20426   rm -f conftest.er1
20427   cat conftest.err >&5
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); } &&
20430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20431   { (case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_try") 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; } &&
20440          { ac_try='test -s conftest.$ac_objext'
20441   { (case "(($ac_try" in
20442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443   *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446   (eval "$ac_try") 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   ac_header_compiler=yes
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455         ac_header_compiler=no
20456 fi
20457
20458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20460 echo "${ECHO_T}$ac_header_compiler" >&6; }
20461
20462 # Is the header present?
20463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471 #include <$ac_header>
20472 _ACEOF
20473 if { (ac_try="$ac_cpp conftest.$ac_ext"
20474 case "(($ac_try" in
20475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476   *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20480   ac_status=$?
20481   grep -v '^ *+' conftest.er1 >conftest.err
20482   rm -f conftest.er1
20483   cat conftest.err >&5
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); } >/dev/null; then
20486   if test -s conftest.err; then
20487     ac_cpp_err=$ac_c_preproc_warn_flag
20488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20489   else
20490     ac_cpp_err=
20491   fi
20492 else
20493   ac_cpp_err=yes
20494 fi
20495 if test -z "$ac_cpp_err"; then
20496   ac_header_preproc=yes
20497 else
20498   echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20500
20501   ac_header_preproc=no
20502 fi
20503
20504 rm -f conftest.err conftest.$ac_ext
20505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20506 echo "${ECHO_T}$ac_header_preproc" >&6; }
20507
20508 # So?  What about this header?
20509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20510   yes:no: )
20511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20515     ac_header_preproc=yes
20516     ;;
20517   no:yes:* )
20518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20520     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20521 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20522     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20524     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20525 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20528     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20530     ( cat <<\_ASBOX
20531 ## ------------------------------------ ##
20532 ## Report this to http://llvm.org/bugs/ ##
20533 ## ------------------------------------ ##
20534 _ASBOX
20535      ) | sed "s/^/$as_me: WARNING:     /" >&2
20536     ;;
20537 esac
20538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20541   echo $ECHO_N "(cached) $ECHO_C" >&6
20542 else
20543   eval "$as_ac_Header=\$ac_header_preproc"
20544 fi
20545 ac_res=`eval echo '${'$as_ac_Header'}'`
20546                { echo "$as_me:$LINENO: result: $ac_res" >&5
20547 echo "${ECHO_T}$ac_res" >&6; }
20548
20549 fi
20550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20551   cat >>confdefs.h <<_ACEOF
20552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20553 _ACEOF
20554
20555 fi
20556
20557 done
20558
20559
20560 for ac_func in getpagesize
20561 do
20562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568   cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h.  */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h.  */
20574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20576 #define $ac_func innocuous_$ac_func
20577
20578 /* System header to define __stub macros and hopefully few prototypes,
20579     which can conflict with char $ac_func (); below.
20580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20581     <limits.h> exists even on freestanding compilers.  */
20582
20583 #ifdef __STDC__
20584 # include <limits.h>
20585 #else
20586 # include <assert.h>
20587 #endif
20588
20589 #undef $ac_func
20590
20591 /* Override any GCC internal prototype to avoid an error.
20592    Use char because int might match the return type of a GCC
20593    builtin and then its argument prototype would still apply.  */
20594 #ifdef __cplusplus
20595 extern "C"
20596 #endif
20597 char $ac_func ();
20598 /* The GNU C library defines this for functions which it implements
20599     to always fail with ENOSYS.  Some functions are actually named
20600     something starting with __ and the normal name is an alias.  */
20601 #if defined __stub_$ac_func || defined __stub___$ac_func
20602 choke me
20603 #endif
20604
20605 int
20606 main ()
20607 {
20608 return $ac_func ();
20609   ;
20610   return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620   (eval "$ac_link") 2>conftest.er1
20621   ac_status=$?
20622   grep -v '^ *+' conftest.er1 >conftest.err
20623   rm -f conftest.er1
20624   cat conftest.err >&5
20625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626   (exit $ac_status); } &&
20627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20628   { (case "(($ac_try" in
20629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630   *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633   (eval "$ac_try") 2>&5
20634   ac_status=$?
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); }; } &&
20637          { ac_try='test -s conftest$ac_exeext'
20638   { (case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643   (eval "$ac_try") 2>&5
20644   ac_status=$?
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); }; }; then
20647   eval "$as_ac_var=yes"
20648 else
20649   echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20651
20652         eval "$as_ac_var=no"
20653 fi
20654
20655 rm -f core conftest.err conftest.$ac_objext \
20656       conftest$ac_exeext conftest.$ac_ext
20657 fi
20658 ac_res=`eval echo '${'$as_ac_var'}'`
20659                { echo "$as_me:$LINENO: result: $ac_res" >&5
20660 echo "${ECHO_T}$ac_res" >&6; }
20661 if test `eval echo '${'$as_ac_var'}'` = yes; then
20662   cat >>confdefs.h <<_ACEOF
20663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20664 _ACEOF
20665
20666 fi
20667 done
20668
20669 { echo "$as_me:$LINENO: checking for working mmap" >&5
20670 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20671 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20672   echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674   if test "$cross_compiling" = yes; then
20675   ac_cv_func_mmap_fixed_mapped=no
20676 else
20677   cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683 $ac_includes_default
20684 /* malloc might have been renamed as rpl_malloc. */
20685 #undef malloc
20686
20687 /* Thanks to Mike Haertel and Jim Avera for this test.
20688    Here is a matrix of mmap possibilities:
20689         mmap private not fixed
20690         mmap private fixed at somewhere currently unmapped
20691         mmap private fixed at somewhere already mapped
20692         mmap shared not fixed
20693         mmap shared fixed at somewhere currently unmapped
20694         mmap shared fixed at somewhere already mapped
20695    For private mappings, we should verify that changes cannot be read()
20696    back from the file, nor mmap's back from the file at a different
20697    address.  (There have been systems where private was not correctly
20698    implemented like the infamous i386 svr4.0, and systems where the
20699    VM page cache was not coherent with the file system buffer cache
20700    like early versions of FreeBSD and possibly contemporary NetBSD.)
20701    For shared mappings, we should conversely verify that changes get
20702    propagated back to all the places they're supposed to be.
20703
20704    Grep wants private fixed already mapped.
20705    The main things grep needs to know about mmap are:
20706    * does it exist and is it safe to write into the mmap'd area
20707    * how to use it (BSD variants)  */
20708
20709 #include <fcntl.h>
20710 #include <sys/mman.h>
20711
20712 #if !STDC_HEADERS && !HAVE_STDLIB_H
20713 char *malloc ();
20714 #endif
20715
20716 /* This mess was copied from the GNU getpagesize.h.  */
20717 #if !HAVE_GETPAGESIZE
20718 /* Assume that all systems that can run configure have sys/param.h.  */
20719 # if !HAVE_SYS_PARAM_H
20720 #  define HAVE_SYS_PARAM_H 1
20721 # endif
20722
20723 # ifdef _SC_PAGESIZE
20724 #  define getpagesize() sysconf(_SC_PAGESIZE)
20725 # else /* no _SC_PAGESIZE */
20726 #  if HAVE_SYS_PARAM_H
20727 #   include <sys/param.h>
20728 #   ifdef EXEC_PAGESIZE
20729 #    define getpagesize() EXEC_PAGESIZE
20730 #   else /* no EXEC_PAGESIZE */
20731 #    ifdef NBPG
20732 #     define getpagesize() NBPG * CLSIZE
20733 #     ifndef CLSIZE
20734 #      define CLSIZE 1
20735 #     endif /* no CLSIZE */
20736 #    else /* no NBPG */
20737 #     ifdef NBPC
20738 #      define getpagesize() NBPC
20739 #     else /* no NBPC */
20740 #      ifdef PAGESIZE
20741 #       define getpagesize() PAGESIZE
20742 #      endif /* PAGESIZE */
20743 #     endif /* no NBPC */
20744 #    endif /* no NBPG */
20745 #   endif /* no EXEC_PAGESIZE */
20746 #  else /* no HAVE_SYS_PARAM_H */
20747 #   define getpagesize() 8192   /* punt totally */
20748 #  endif /* no HAVE_SYS_PARAM_H */
20749 # endif /* no _SC_PAGESIZE */
20750
20751 #endif /* no HAVE_GETPAGESIZE */
20752
20753 int
20754 main ()
20755 {
20756   char *data, *data2, *data3;
20757   int i, pagesize;
20758   int fd;
20759
20760   pagesize = getpagesize ();
20761
20762   /* First, make a file with some known garbage in it. */
20763   data = (char *) malloc (pagesize);
20764   if (!data)
20765     return 1;
20766   for (i = 0; i < pagesize; ++i)
20767     *(data + i) = rand ();
20768   umask (0);
20769   fd = creat ("conftest.mmap", 0600);
20770   if (fd < 0)
20771     return 1;
20772   if (write (fd, data, pagesize) != pagesize)
20773     return 1;
20774   close (fd);
20775
20776   /* Next, try to mmap the file at a fixed address which already has
20777      something else allocated at it.  If we can, also make sure that
20778      we see the same garbage.  */
20779   fd = open ("conftest.mmap", O_RDWR);
20780   if (fd < 0)
20781     return 1;
20782   data2 = (char *) malloc (2 * pagesize);
20783   if (!data2)
20784     return 1;
20785   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20786   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20787                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20788     return 1;
20789   for (i = 0; i < pagesize; ++i)
20790     if (*(data + i) != *(data2 + i))
20791       return 1;
20792
20793   /* Finally, make sure that changes to the mapped area do not
20794      percolate back to the file as seen by read().  (This is a bug on
20795      some variants of i386 svr4.0.)  */
20796   for (i = 0; i < pagesize; ++i)
20797     *(data2 + i) = *(data2 + i) + 1;
20798   data3 = (char *) malloc (pagesize);
20799   if (!data3)
20800     return 1;
20801   if (read (fd, data3, pagesize) != pagesize)
20802     return 1;
20803   for (i = 0; i < pagesize; ++i)
20804     if (*(data + i) != *(data3 + i))
20805       return 1;
20806   close (fd);
20807   return 0;
20808 }
20809 _ACEOF
20810 rm -f conftest$ac_exeext
20811 if { (ac_try="$ac_link"
20812 case "(($ac_try" in
20813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814   *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817   (eval "$ac_link") 2>&5
20818   ac_status=$?
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20821   { (case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_try") 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; }; then
20830   ac_cv_func_mmap_fixed_mapped=yes
20831 else
20832   echo "$as_me: program exited with status $ac_status" >&5
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20835
20836 ( exit $ac_status )
20837 ac_cv_func_mmap_fixed_mapped=no
20838 fi
20839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20840 fi
20841
20842
20843 fi
20844 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20845 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20846 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20847
20848 cat >>confdefs.h <<\_ACEOF
20849 #define HAVE_MMAP 1
20850 _ACEOF
20851
20852 fi
20853 rm -f conftest.mmap
20854
20855   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20856 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20857 if test "${ac_cv_func_mmap_file+set}" = set; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860    ac_ext=c
20861 ac_cpp='$CPP $CPPFLAGS'
20862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20865
20866   if test "$cross_compiling" = yes; then
20867   ac_cv_func_mmap_file=no
20868 else
20869   cat >conftest.$ac_ext <<_ACEOF
20870
20871     /* confdefs.h.  */
20872 _ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h.  */
20876
20877 #include <sys/types.h>
20878 #include <sys/mman.h>
20879 #include <fcntl.h>
20880
20881 int
20882 main ()
20883 {
20884
20885   int fd;
20886   fd = creat ("foo",0777);
20887   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20888   unlink ("foo");
20889   return (fd != (int) MAP_FAILED);
20890   ;
20891   return 0;
20892 }
20893 _ACEOF
20894 rm -f conftest$ac_exeext
20895 if { (ac_try="$ac_link"
20896 case "(($ac_try" in
20897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898   *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901   (eval "$ac_link") 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20905   { (case "(($ac_try" in
20906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907   *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910   (eval "$ac_try") 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; }; then
20914   ac_cv_func_mmap_file=yes
20915 else
20916   echo "$as_me: program exited with status $ac_status" >&5
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920 ( exit $ac_status )
20921 ac_cv_func_mmap_file=no
20922 fi
20923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20924 fi
20925
20926
20927   ac_ext=c
20928 ac_cpp='$CPP $CPPFLAGS'
20929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20932
20933
20934 fi
20935 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20936 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20937 if test "$ac_cv_func_mmap_file" = yes; then
20938
20939 cat >>confdefs.h <<\_ACEOF
20940 #define HAVE_MMAP_FILE
20941 _ACEOF
20942
20943    MMAP_FILE=yes
20944
20945 fi
20946
20947   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20948 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20949 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20950   echo $ECHO_N "(cached) $ECHO_C" >&6
20951 else
20952   if test "$llvm_cv_os_type" = "Interix" ; then
20953    ac_cv_need_dev_zero_for_mmap=yes
20954  else
20955    ac_cv_need_dev_zero_for_mmap=no
20956  fi
20957
20958 fi
20959 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20960 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20961 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20962
20963 cat >>confdefs.h <<\_ACEOF
20964 #define NEED_DEV_ZERO_FOR_MMAP 1
20965 _ACEOF
20966
20967 fi
20968
20969   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20970   then
20971     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20972 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20973   fi
20974   if test "$ac_cv_func_mmap_file" = "no"
20975   then
20976     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20977 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20978   fi
20979 fi
20980
20981 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20982 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20983 ac_ext=cpp
20984 ac_cpp='$CXXCPP $CPPFLAGS'
20985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20988
20989 cat >conftest.$ac_ext <<_ACEOF
20990
20991   /* confdefs.h.  */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h.  */
20996
20997     int main() {
20998       volatile unsigned long val = 1;
20999       __sync_synchronize();
21000       __sync_val_compare_and_swap(&val, 1, 0);
21001       __sync_add_and_fetch(&val, 1);
21002       __sync_sub_and_fetch(&val, 1);
21003       return 0;
21004     }
21005
21006
21007 _ACEOF
21008 rm -f conftest.$ac_objext conftest$ac_exeext
21009 if { (ac_try="$ac_link"
21010 case "(($ac_try" in
21011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012   *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015   (eval "$ac_link") 2>conftest.er1
21016   ac_status=$?
21017   grep -v '^ *+' conftest.er1 >conftest.err
21018   rm -f conftest.er1
21019   cat conftest.err >&5
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } &&
21022          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21023   { (case "(($ac_try" in
21024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025   *) ac_try_echo=$ac_try;;
21026 esac
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028   (eval "$ac_try") 2>&5
21029   ac_status=$?
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); }; } &&
21032          { ac_try='test -s conftest$ac_exeext'
21033   { (case "(($ac_try" in
21034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035   *) ac_try_echo=$ac_try;;
21036 esac
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038   (eval "$ac_try") 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); }; }; then
21042
21043   { echo "$as_me:$LINENO: result: yes" >&5
21044 echo "${ECHO_T}yes" >&6; }
21045
21046 cat >>confdefs.h <<\_ACEOF
21047 #define LLVM_HAS_ATOMICS 1
21048 _ACEOF
21049
21050
21051 else
21052   echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055
21056   { echo "$as_me:$LINENO: result: no" >&5
21057 echo "${ECHO_T}no" >&6; }
21058
21059 cat >>confdefs.h <<\_ACEOF
21060 #define LLVM_HAS_ATOMICS 0
21061 _ACEOF
21062
21063   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21064 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21065
21066 fi
21067
21068 rm -f core conftest.err conftest.$ac_objext \
21069       conftest$ac_exeext conftest.$ac_ext
21070 ac_ext=c
21071 ac_cpp='$CPP $CPPFLAGS'
21072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21075
21076
21077
21078 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21079   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21080 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21081 if test "${llvm_cv_linux_mixed+set}" = set; then
21082   echo $ECHO_N "(cached) $ECHO_C" >&6
21083 else
21084    ac_ext=c
21085 ac_cpp='$CPP $CPPFLAGS'
21086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089
21090   cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h.  */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h.  */
21096 #ifndef __x86_64__
21097        error: Not x86-64 even if uname says so!
21098       #endif
21099
21100 int
21101 main ()
21102 {
21103
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (ac_try="$ac_compile"
21110 case "(($ac_try" in
21111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112   *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115   (eval "$ac_compile") 2>conftest.er1
21116   ac_status=$?
21117   grep -v '^ *+' conftest.er1 >conftest.err
21118   rm -f conftest.er1
21119   cat conftest.err >&5
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); } &&
21122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21123   { (case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_try") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); }; } &&
21132          { ac_try='test -s conftest.$ac_objext'
21133   { (case "(($ac_try" in
21134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135   *) ac_try_echo=$ac_try;;
21136 esac
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138   (eval "$ac_try") 2>&5
21139   ac_status=$?
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); }; }; then
21142   llvm_cv_linux_mixed=no
21143 else
21144   echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147         llvm_cv_linux_mixed=yes
21148 fi
21149
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151   ac_ext=c
21152 ac_cpp='$CPP $CPPFLAGS'
21153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21156
21157
21158 fi
21159 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21160 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21161
21162   if test "$llvm_cv_linux_mixed" = "yes"; then
21163     llvm_cv_target_arch="x86"
21164     ARCH="x86"
21165   fi
21166 fi
21167
21168
21169 for ac_func in __dso_handle
21170 do
21171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21175   echo $ECHO_N "(cached) $ECHO_C" >&6
21176 else
21177   cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21185 #define $ac_func innocuous_$ac_func
21186
21187 /* System header to define __stub macros and hopefully few prototypes,
21188     which can conflict with char $ac_func (); below.
21189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21190     <limits.h> exists even on freestanding compilers.  */
21191
21192 #ifdef __STDC__
21193 # include <limits.h>
21194 #else
21195 # include <assert.h>
21196 #endif
21197
21198 #undef $ac_func
21199
21200 /* Override any GCC internal prototype to avoid an error.
21201    Use char because int might match the return type of a GCC
21202    builtin and then its argument prototype would still apply.  */
21203 #ifdef __cplusplus
21204 extern "C"
21205 #endif
21206 char $ac_func ();
21207 /* The GNU C library defines this for functions which it implements
21208     to always fail with ENOSYS.  Some functions are actually named
21209     something starting with __ and the normal name is an alias.  */
21210 #if defined __stub_$ac_func || defined __stub___$ac_func
21211 choke me
21212 #endif
21213
21214 int
21215 main ()
21216 {
21217 return $ac_func ();
21218   ;
21219   return 0;
21220 }
21221 _ACEOF
21222 rm -f conftest.$ac_objext conftest$ac_exeext
21223 if { (ac_try="$ac_link"
21224 case "(($ac_try" in
21225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226   *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229   (eval "$ac_link") 2>conftest.er1
21230   ac_status=$?
21231   grep -v '^ *+' conftest.er1 >conftest.err
21232   rm -f conftest.er1
21233   cat conftest.err >&5
21234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235   (exit $ac_status); } &&
21236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21237   { (case "(($ac_try" in
21238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239   *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242   (eval "$ac_try") 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; } &&
21246          { ac_try='test -s conftest$ac_exeext'
21247   { (case "(($ac_try" in
21248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249   *) ac_try_echo=$ac_try;;
21250 esac
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252   (eval "$ac_try") 2>&5
21253   ac_status=$?
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); }; }; then
21256   eval "$as_ac_var=yes"
21257 else
21258   echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21260
21261         eval "$as_ac_var=no"
21262 fi
21263
21264 rm -f core conftest.err conftest.$ac_objext \
21265       conftest$ac_exeext conftest.$ac_ext
21266 fi
21267 ac_res=`eval echo '${'$as_ac_var'}'`
21268                { echo "$as_me:$LINENO: result: $ac_res" >&5
21269 echo "${ECHO_T}$ac_res" >&6; }
21270 if test `eval echo '${'$as_ac_var'}'` = yes; then
21271   cat >>confdefs.h <<_ACEOF
21272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21273 _ACEOF
21274
21275 fi
21276 done
21277
21278
21279 SHLIBEXT=$libltdl_cv_shlibext
21280
21281
21282 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21283
21284
21285 if test "${prefix}" = "NONE" ; then
21286   prefix="/usr/local"
21287 fi
21288 eval LLVM_PREFIX="${prefix}";
21289 eval LLVM_BINDIR="${prefix}/bin";
21290 eval LLVM_LIBDIR="${prefix}/lib";
21291 eval LLVM_DATADIR="${prefix}/share/llvm";
21292 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21293 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21294 eval LLVM_INCLUDEDIR="${prefix}/include";
21295 eval LLVM_INFODIR="${prefix}/info";
21296 eval LLVM_MANDIR="${prefix}/man";
21297 LLVM_CONFIGTIME=`date`
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21310   LLVM_CONFIGTIME="(timestamp not enabled)"
21311 fi
21312
21313
21314 cat >>confdefs.h <<_ACEOF
21315 #define LLVM_PREFIX "$LLVM_PREFIX"
21316 _ACEOF
21317
21318
21319 cat >>confdefs.h <<_ACEOF
21320 #define LLVM_BINDIR "$LLVM_BINDIR"
21321 _ACEOF
21322
21323
21324 cat >>confdefs.h <<_ACEOF
21325 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21326 _ACEOF
21327
21328
21329 cat >>confdefs.h <<_ACEOF
21330 #define LLVM_DATADIR "$LLVM_DATADIR"
21331 _ACEOF
21332
21333
21334 cat >>confdefs.h <<_ACEOF
21335 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21336 _ACEOF
21337
21338
21339 cat >>confdefs.h <<_ACEOF
21340 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21341 _ACEOF
21342
21343
21344 cat >>confdefs.h <<_ACEOF
21345 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21346 _ACEOF
21347
21348
21349 cat >>confdefs.h <<_ACEOF
21350 #define LLVM_INFODIR "$LLVM_INFODIR"
21351 _ACEOF
21352
21353
21354 cat >>confdefs.h <<_ACEOF
21355 #define LLVM_MANDIR "$LLVM_MANDIR"
21356 _ACEOF
21357
21358
21359 cat >>confdefs.h <<_ACEOF
21360 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21361 _ACEOF
21362
21363
21364 cat >>confdefs.h <<_ACEOF
21365 #define LLVM_HOSTTRIPLE "$host"
21366 _ACEOF
21367
21368
21369 cat >>confdefs.h <<_ACEOF
21370 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21371 _ACEOF
21372
21373
21374 if test "$BINDINGS_TO_BUILD" = auto ; then
21375   BINDINGS_TO_BUILD=""
21376   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21377     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21378   fi
21379 fi
21380 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21381
21382
21383 ALL_BINDINGS=ocaml
21384
21385
21386 binding_prereqs_failed=0
21387 for a_binding in $BINDINGS_TO_BUILD ; do
21388   case "$a_binding" in
21389   ocaml)
21390     if test "x$OCAMLC" = x ; then
21391       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21392 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21393       binding_prereqs_failed=1
21394     fi
21395     if test "x$OCAMLDEP" = x ; then
21396       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21397 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21398       binding_prereqs_failed=1
21399     fi
21400     if test "x$OCAMLOPT" = x ; then
21401       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21402 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21403           fi
21404     if test "x$with_ocaml_libdir" != xauto ; then
21405       OCAML_LIBDIR=$with_ocaml_libdir
21406
21407     else
21408       ocaml_stdlib="`"$OCAMLC" -where`"
21409       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21410       then
21411         # ocaml stdlib is beneath our prefix; use stdlib
21412         OCAML_LIBDIR=$ocaml_stdlib
21413
21414       else
21415         # ocaml stdlib is outside our prefix; use libdir/ocaml
21416         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21417
21418       fi
21419     fi
21420     ;;
21421   esac
21422 done
21423 if test "$binding_prereqs_failed" = 1 ; then
21424   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21425 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21426    { (exit 1); exit 1; }; }
21427 fi
21428
21429 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21430 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21431 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21432   echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434    ac_ext=cpp
21435 ac_cpp='$CXXCPP $CPPFLAGS'
21436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21439
21440   oldcxxflags="$CXXFLAGS"
21441   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21442   cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h.  */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h.  */
21448 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21449 int
21450 main ()
21451 {
21452 X<int>().f();
21453   ;
21454   return 0;
21455 }
21456 _ACEOF
21457 rm -f conftest.$ac_objext
21458 if { (ac_try="$ac_compile"
21459 case "(($ac_try" in
21460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461   *) ac_try_echo=$ac_try;;
21462 esac
21463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21464   (eval "$ac_compile") 2>conftest.er1
21465   ac_status=$?
21466   grep -v '^ *+' conftest.er1 >conftest.err
21467   rm -f conftest.er1
21468   cat conftest.err >&5
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); } &&
21471          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21472   { (case "(($ac_try" in
21473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474   *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477   (eval "$ac_try") 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; } &&
21481          { ac_try='test -s conftest.$ac_objext'
21482   { (case "(($ac_try" in
21483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484   *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487   (eval "$ac_try") 2>&5
21488   ac_status=$?
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); }; }; then
21491   llvm_cv_cxx_visibility_inlines_hidden=yes
21492 else
21493   echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496         llvm_cv_cxx_visibility_inlines_hidden=no
21497 fi
21498
21499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21500   CXXFLAGS="$oldcxxflags"
21501   ac_ext=c
21502 ac_cpp='$CPP $CPPFLAGS'
21503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21506
21507
21508 fi
21509 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21510 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21511 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21512   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21513
21514 else
21515   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21516
21517 fi
21518
21519
21520 if test "$llvm_cv_link_use_r" = "yes" ; then
21521   RPATH="-Wl,-R"
21522 else
21523   RPATH="-Wl,-rpath"
21524 fi
21525
21526
21527 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21528   RDYNAMIC="-Wl,-export-dynamic"
21529 else
21530   RDYNAMIC=""
21531 fi
21532
21533
21534
21535 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21536
21537
21538
21539
21540
21541
21542 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21543
21544 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21545
21546 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21547
21548 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21549
21550 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21551
21552
21553 ac_config_files="$ac_config_files Makefile.config"
21554
21555
21556 ac_config_files="$ac_config_files llvm.spec"
21557
21558
21559 ac_config_files="$ac_config_files docs/doxygen.cfg"
21560
21561
21562 if test "${clang_src_root}" = ""; then
21563   clang_src_root="$srcdir/tools/clang"
21564 fi
21565 if test -f ${clang_src_root}/README.txt; then
21566     configh="include/clang/Config/config.h"
21567   doxy="docs/doxygen.cfg"
21568   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21569
21570   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21571
21572 fi
21573
21574 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21575
21576
21577 test "x$program_prefix" = "xNONE" && program_prefix=""
21578
21579
21580
21581 ac_config_commands="$ac_config_commands setup"
21582
21583 ac_config_commands="$ac_config_commands Makefile"
21584
21585
21586 ac_config_commands="$ac_config_commands Makefile.common"
21587
21588
21589 ac_config_commands="$ac_config_commands examples/Makefile"
21590
21591
21592 ac_config_commands="$ac_config_commands lib/Makefile"
21593
21594
21595 ac_config_commands="$ac_config_commands runtime/Makefile"
21596
21597
21598 ac_config_commands="$ac_config_commands test/Makefile"
21599
21600
21601 ac_config_commands="$ac_config_commands test/Makefile.tests"
21602
21603
21604 ac_config_commands="$ac_config_commands unittests/Makefile"
21605
21606
21607 ac_config_commands="$ac_config_commands tools/Makefile"
21608
21609
21610 ac_config_commands="$ac_config_commands utils/Makefile"
21611
21612
21613 ac_config_commands="$ac_config_commands projects/Makefile"
21614
21615
21616 ac_config_commands="$ac_config_commands bindings/Makefile"
21617
21618
21619 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21620
21621
21622
21623 cat >confcache <<\_ACEOF
21624 # This file is a shell script that caches the results of configure
21625 # tests run on this system so they can be shared between configure
21626 # scripts and configure runs, see configure's option --config-cache.
21627 # It is not useful on other systems.  If it contains results you don't
21628 # want to keep, you may remove or edit it.
21629 #
21630 # config.status only pays attention to the cache file if you give it
21631 # the --recheck option to rerun configure.
21632 #
21633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21635 # following values.
21636
21637 _ACEOF
21638
21639 # The following way of writing the cache mishandles newlines in values,
21640 # but we know of no workaround that is simple, portable, and efficient.
21641 # So, we kill variables containing newlines.
21642 # Ultrix sh set writes to stderr and can't be redirected directly,
21643 # and sets the high bit in the cache file unless we assign to the vars.
21644 (
21645   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21646     eval ac_val=\$$ac_var
21647     case $ac_val in #(
21648     *${as_nl}*)
21649       case $ac_var in #(
21650       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21651 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21652       esac
21653       case $ac_var in #(
21654       _ | IFS | as_nl) ;; #(
21655       *) $as_unset $ac_var ;;
21656       esac ;;
21657     esac
21658   done
21659
21660   (set) 2>&1 |
21661     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21662     *${as_nl}ac_space=\ *)
21663       # `set' does not quote correctly, so add quotes (double-quote
21664       # substitution turns \\\\ into \\, and sed turns \\ into \).
21665       sed -n \
21666         "s/'/'\\\\''/g;
21667           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21668       ;; #(
21669     *)
21670       # `set' quotes correctly as required by POSIX, so do not add quotes.
21671       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21672       ;;
21673     esac |
21674     sort
21675 ) |
21676   sed '
21677      /^ac_cv_env_/b end
21678      t clear
21679      :clear
21680      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21681      t end
21682      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21683      :end' >>confcache
21684 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21685   if test -w "$cache_file"; then
21686     test "x$cache_file" != "x/dev/null" &&
21687       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21688 echo "$as_me: updating cache $cache_file" >&6;}
21689     cat confcache >$cache_file
21690   else
21691     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21692 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21693   fi
21694 fi
21695 rm -f confcache
21696
21697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21698 # Let make expand exec_prefix.
21699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21700
21701 DEFS=-DHAVE_CONFIG_H
21702
21703 ac_libobjs=
21704 ac_ltlibobjs=
21705 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21706   # 1. Remove the extension, and $U if already installed.
21707   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21708   ac_i=`echo "$ac_i" | sed "$ac_script"`
21709   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21710   #    will be set to the directory where LIBOBJS objects are built.
21711   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21712   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21713 done
21714 LIBOBJS=$ac_libobjs
21715
21716 LTLIBOBJS=$ac_ltlibobjs
21717
21718
21719 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21720   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21721 Usually this means the macro was only invoked conditionally." >&5
21722 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21723 Usually this means the macro was only invoked conditionally." >&2;}
21724    { (exit 1); exit 1; }; }
21725 fi
21726 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21727   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21728 Usually this means the macro was only invoked conditionally." >&5
21729 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21730 Usually this means the macro was only invoked conditionally." >&2;}
21731    { (exit 1); exit 1; }; }
21732 fi
21733
21734 : ${CONFIG_STATUS=./config.status}
21735 ac_clean_files_save=$ac_clean_files
21736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21737 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21738 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21739 cat >$CONFIG_STATUS <<_ACEOF
21740 #! $SHELL
21741 # Generated by $as_me.
21742 # Run this file to recreate the current configuration.
21743 # Compiler output produced by configure, useful for debugging
21744 # configure, is in config.log if it exists.
21745
21746 debug=false
21747 ac_cs_recheck=false
21748 ac_cs_silent=false
21749 SHELL=\${CONFIG_SHELL-$SHELL}
21750 _ACEOF
21751
21752 cat >>$CONFIG_STATUS <<\_ACEOF
21753 ## --------------------- ##
21754 ## M4sh Initialization.  ##
21755 ## --------------------- ##
21756
21757 # Be Bourne compatible
21758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21759   emulate sh
21760   NULLCMD=:
21761   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21762   # is contrary to our usage.  Disable this feature.
21763   alias -g '${1+"$@"}'='"$@"'
21764   setopt NO_GLOB_SUBST
21765 else
21766   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21767 fi
21768 BIN_SH=xpg4; export BIN_SH # for Tru64
21769 DUALCASE=1; export DUALCASE # for MKS sh
21770
21771
21772 # PATH needs CR
21773 # Avoid depending upon Character Ranges.
21774 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21775 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21776 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21777 as_cr_digits='0123456789'
21778 as_cr_alnum=$as_cr_Letters$as_cr_digits
21779
21780 # The user is always right.
21781 if test "${PATH_SEPARATOR+set}" != set; then
21782   echo "#! /bin/sh" >conf$$.sh
21783   echo  "exit 0"   >>conf$$.sh
21784   chmod +x conf$$.sh
21785   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21786     PATH_SEPARATOR=';'
21787   else
21788     PATH_SEPARATOR=:
21789   fi
21790   rm -f conf$$.sh
21791 fi
21792
21793 # Support unset when possible.
21794 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21795   as_unset=unset
21796 else
21797   as_unset=false
21798 fi
21799
21800
21801 # IFS
21802 # We need space, tab and new line, in precisely that order.  Quoting is
21803 # there to prevent editors from complaining about space-tab.
21804 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21805 # splitting by setting IFS to empty value.)
21806 as_nl='
21807 '
21808 IFS=" ""        $as_nl"
21809
21810 # Find who we are.  Look in the path if we contain no directory separator.
21811 case $0 in
21812   *[\\/]* ) as_myself=$0 ;;
21813   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21814 for as_dir in $PATH
21815 do
21816   IFS=$as_save_IFS
21817   test -z "$as_dir" && as_dir=.
21818   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21819 done
21820 IFS=$as_save_IFS
21821
21822      ;;
21823 esac
21824 # We did not find ourselves, most probably we were run as `sh COMMAND'
21825 # in which case we are not to be found in the path.
21826 if test "x$as_myself" = x; then
21827   as_myself=$0
21828 fi
21829 if test ! -f "$as_myself"; then
21830   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21831   { (exit 1); exit 1; }
21832 fi
21833
21834 # Work around bugs in pre-3.0 UWIN ksh.
21835 for as_var in ENV MAIL MAILPATH
21836 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21837 done
21838 PS1='$ '
21839 PS2='> '
21840 PS4='+ '
21841
21842 # NLS nuisances.
21843 for as_var in \
21844   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21845   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21846   LC_TELEPHONE LC_TIME
21847 do
21848   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21849     eval $as_var=C; export $as_var
21850   else
21851     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21852   fi
21853 done
21854
21855 # Required to use basename.
21856 if expr a : '\(a\)' >/dev/null 2>&1 &&
21857    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21858   as_expr=expr
21859 else
21860   as_expr=false
21861 fi
21862
21863 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21864   as_basename=basename
21865 else
21866   as_basename=false
21867 fi
21868
21869
21870 # Name of the executable.
21871 as_me=`$as_basename -- "$0" ||
21872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21873          X"$0" : 'X\(//\)$' \| \
21874          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21875 echo X/"$0" |
21876     sed '/^.*\/\([^/][^/]*\)\/*$/{
21877             s//\1/
21878             q
21879           }
21880           /^X\/\(\/\/\)$/{
21881             s//\1/
21882             q
21883           }
21884           /^X\/\(\/\).*/{
21885             s//\1/
21886             q
21887           }
21888           s/.*/./; q'`
21889
21890 # CDPATH.
21891 $as_unset CDPATH
21892
21893
21894
21895   as_lineno_1=$LINENO
21896   as_lineno_2=$LINENO
21897   test "x$as_lineno_1" != "x$as_lineno_2" &&
21898   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21899
21900   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21901   # uniformly replaced by the line number.  The first 'sed' inserts a
21902   # line-number line after each line using $LINENO; the second 'sed'
21903   # does the real work.  The second script uses 'N' to pair each
21904   # line-number line with the line containing $LINENO, and appends
21905   # trailing '-' during substitution so that $LINENO is not a special
21906   # case at line end.
21907   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21908   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21909   # E. McMahon (1931-1989) for sed's syntax.  :-)
21910   sed -n '
21911     p
21912     /[$]LINENO/=
21913   ' <$as_myself |
21914     sed '
21915       s/[$]LINENO.*/&-/
21916       t lineno
21917       b
21918       :lineno
21919       N
21920       :loop
21921       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21922       t loop
21923       s/-\n.*//
21924     ' >$as_me.lineno &&
21925   chmod +x "$as_me.lineno" ||
21926     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21927    { (exit 1); exit 1; }; }
21928
21929   # Don't try to exec as it changes $[0], causing all sort of problems
21930   # (the dirname of $[0] is not the place where we might find the
21931   # original and so on.  Autoconf is especially sensitive to this).
21932   . "./$as_me.lineno"
21933   # Exit status is that of the last command.
21934   exit
21935 }
21936
21937
21938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21939   as_dirname=dirname
21940 else
21941   as_dirname=false
21942 fi
21943
21944 ECHO_C= ECHO_N= ECHO_T=
21945 case `echo -n x` in
21946 -n*)
21947   case `echo 'x\c'` in
21948   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21949   *)   ECHO_C='\c';;
21950   esac;;
21951 *)
21952   ECHO_N='-n';;
21953 esac
21954
21955 if expr a : '\(a\)' >/dev/null 2>&1 &&
21956    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21957   as_expr=expr
21958 else
21959   as_expr=false
21960 fi
21961
21962 rm -f conf$$ conf$$.exe conf$$.file
21963 if test -d conf$$.dir; then
21964   rm -f conf$$.dir/conf$$.file
21965 else
21966   rm -f conf$$.dir
21967   mkdir conf$$.dir
21968 fi
21969 echo >conf$$.file
21970 if ln -s conf$$.file conf$$ 2>/dev/null; then
21971   as_ln_s='ln -s'
21972   # ... but there are two gotchas:
21973   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21974   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21975   # In both cases, we have to default to `cp -p'.
21976   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21977     as_ln_s='cp -p'
21978 elif ln conf$$.file conf$$ 2>/dev/null; then
21979   as_ln_s=ln
21980 else
21981   as_ln_s='cp -p'
21982 fi
21983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21984 rmdir conf$$.dir 2>/dev/null
21985
21986 if mkdir -p . 2>/dev/null; then
21987   as_mkdir_p=:
21988 else
21989   test -d ./-p && rmdir ./-p
21990   as_mkdir_p=false
21991 fi
21992
21993 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21994 # systems may use methods other than mode bits to determine executability.
21995 cat >conf$$.file <<_ASEOF
21996 #! /bin/sh
21997 exit 0
21998 _ASEOF
21999 chmod +x conf$$.file
22000 if test -x conf$$.file >/dev/null 2>&1; then
22001   as_executable_p="test -x"
22002 else
22003   as_executable_p=:
22004 fi
22005 rm -f conf$$.file
22006
22007 # Sed expression to map a string onto a valid CPP name.
22008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22009
22010 # Sed expression to map a string onto a valid variable name.
22011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22012
22013
22014 exec 6>&1
22015
22016 # Save the log message, to keep $[0] and so on meaningful, and to
22017 # report actual input values of CONFIG_FILES etc. instead of their
22018 # values after options handling.
22019 ac_log="
22020 This file was extended by LLVM $as_me 3.3svn, which was
22021 generated by GNU Autoconf 2.60.  Invocation command line was
22022
22023   CONFIG_FILES    = $CONFIG_FILES
22024   CONFIG_HEADERS  = $CONFIG_HEADERS
22025   CONFIG_LINKS    = $CONFIG_LINKS
22026   CONFIG_COMMANDS = $CONFIG_COMMANDS
22027   $ $0 $@
22028
22029 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22030 "
22031
22032 _ACEOF
22033
22034 cat >>$CONFIG_STATUS <<_ACEOF
22035 # Files that config.status was made for.
22036 config_files="$ac_config_files"
22037 config_headers="$ac_config_headers"
22038 config_commands="$ac_config_commands"
22039
22040 _ACEOF
22041
22042 cat >>$CONFIG_STATUS <<\_ACEOF
22043 ac_cs_usage="\
22044 \`$as_me' instantiates files from templates according to the
22045 current configuration.
22046
22047 Usage: $0 [OPTIONS] [FILE]...
22048
22049   -h, --help       print this help, then exit
22050   -V, --version    print version number, then exit
22051   -q, --quiet      do not print progress messages
22052   -d, --debug      don't remove temporary files
22053       --recheck    update $as_me by reconfiguring in the same conditions
22054   --file=FILE[:TEMPLATE]
22055                    instantiate the configuration file FILE
22056   --header=FILE[:TEMPLATE]
22057                    instantiate the configuration header FILE
22058
22059 Configuration files:
22060 $config_files
22061
22062 Configuration headers:
22063 $config_headers
22064
22065 Configuration commands:
22066 $config_commands
22067
22068 Report bugs to <bug-autoconf@gnu.org>."
22069
22070 _ACEOF
22071 cat >>$CONFIG_STATUS <<_ACEOF
22072 ac_cs_version="\\
22073 LLVM config.status 3.3svn
22074 configured by $0, generated by GNU Autoconf 2.60,
22075   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22076
22077 Copyright (C) 2006 Free Software Foundation, Inc.
22078 This config.status script is free software; the Free Software Foundation
22079 gives unlimited permission to copy, distribute and modify it."
22080
22081 ac_pwd='$ac_pwd'
22082 srcdir='$srcdir'
22083 INSTALL='$INSTALL'
22084 _ACEOF
22085
22086 cat >>$CONFIG_STATUS <<\_ACEOF
22087 # If no file are specified by the user, then we need to provide default
22088 # value.  By we need to know if files were specified by the user.
22089 ac_need_defaults=:
22090 while test $# != 0
22091 do
22092   case $1 in
22093   --*=*)
22094     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22095     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22096     ac_shift=:
22097     ;;
22098   *)
22099     ac_option=$1
22100     ac_optarg=$2
22101     ac_shift=shift
22102     ;;
22103   esac
22104
22105   case $ac_option in
22106   # Handling of the options.
22107   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22108     ac_cs_recheck=: ;;
22109   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22110     echo "$ac_cs_version"; exit ;;
22111   --debug | --debu | --deb | --de | --d | -d )
22112     debug=: ;;
22113   --file | --fil | --fi | --f )
22114     $ac_shift
22115     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22116     ac_need_defaults=false;;
22117   --header | --heade | --head | --hea )
22118     $ac_shift
22119     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22120     ac_need_defaults=false;;
22121   --he | --h)
22122     # Conflict between --help and --header
22123     { echo "$as_me: error: ambiguous option: $1
22124 Try \`$0 --help' for more information." >&2
22125    { (exit 1); exit 1; }; };;
22126   --help | --hel | -h )
22127     echo "$ac_cs_usage"; exit ;;
22128   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22129   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22130     ac_cs_silent=: ;;
22131
22132   # This is an error.
22133   -*) { echo "$as_me: error: unrecognized option: $1
22134 Try \`$0 --help' for more information." >&2
22135    { (exit 1); exit 1; }; } ;;
22136
22137   *) ac_config_targets="$ac_config_targets $1"
22138      ac_need_defaults=false ;;
22139
22140   esac
22141   shift
22142 done
22143
22144 ac_configure_extra_args=
22145
22146 if $ac_cs_silent; then
22147   exec 6>/dev/null
22148   ac_configure_extra_args="$ac_configure_extra_args --silent"
22149 fi
22150
22151 _ACEOF
22152 cat >>$CONFIG_STATUS <<_ACEOF
22153 if \$ac_cs_recheck; then
22154   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22155   CONFIG_SHELL=$SHELL
22156   export CONFIG_SHELL
22157   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22158 fi
22159
22160 _ACEOF
22161 cat >>$CONFIG_STATUS <<\_ACEOF
22162 exec 5>>config.log
22163 {
22164   echo
22165   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22166 ## Running $as_me. ##
22167 _ASBOX
22168   echo "$ac_log"
22169 } >&5
22170
22171 _ACEOF
22172 cat >>$CONFIG_STATUS <<_ACEOF
22173 #
22174 # INIT-COMMANDS
22175 #
22176 llvm_src="${srcdir}"
22177
22178 _ACEOF
22179
22180 cat >>$CONFIG_STATUS <<\_ACEOF
22181
22182 # Handling of arguments.
22183 for ac_config_target in $ac_config_targets
22184 do
22185   case $ac_config_target in
22186     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22187     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22188     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22189     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22190     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22191     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22192     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22193     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22194     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22195     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22196     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22197     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22198     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22199     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22200     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22201     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22202     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22203     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22204     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22205     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22206     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22207     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22208     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22209     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22210     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22211     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22212     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22213
22214   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22215 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22216    { (exit 1); exit 1; }; };;
22217   esac
22218 done
22219
22220
22221 # If the user did not use the arguments to specify the items to instantiate,
22222 # then the envvar interface is used.  Set only those that are not.
22223 # We use the long form for the default assignment because of an extremely
22224 # bizarre bug on SunOS 4.1.3.
22225 if $ac_need_defaults; then
22226   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22227   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22228   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22229 fi
22230
22231 # Have a temporary directory for convenience.  Make it in the build tree
22232 # simply because there is no reason against having it here, and in addition,
22233 # creating and moving files from /tmp can sometimes cause problems.
22234 # Hook for its removal unless debugging.
22235 # Note that there is a small window in which the directory will not be cleaned:
22236 # after its creation but before its name has been assigned to `$tmp'.
22237 $debug ||
22238 {
22239   tmp=
22240   trap 'exit_status=$?
22241   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22242 ' 0
22243   trap '{ (exit 1); exit 1; }' 1 2 13 15
22244 }
22245 # Create a (secure) tmp directory for tmp files.
22246
22247 {
22248   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22249   test -n "$tmp" && test -d "$tmp"
22250 }  ||
22251 {
22252   tmp=./conf$$-$RANDOM
22253   (umask 077 && mkdir "$tmp")
22254 } ||
22255 {
22256    echo "$me: cannot create a temporary directory in ." >&2
22257    { (exit 1); exit 1; }
22258 }
22259
22260 #
22261 # Set up the sed scripts for CONFIG_FILES section.
22262 #
22263
22264 # No need to generate the scripts if there are no CONFIG_FILES.
22265 # This happens for instance when ./config.status config.h
22266 if test -n "$CONFIG_FILES"; then
22267
22268 _ACEOF
22269
22270
22271
22272 ac_delim='%!_!# '
22273 for ac_last_try in false false false false false :; do
22274   cat >conf$$subs.sed <<_ACEOF
22275 SHELL!$SHELL$ac_delim
22276 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22277 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22278 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22279 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22280 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22281 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22282 exec_prefix!$exec_prefix$ac_delim
22283 prefix!$prefix$ac_delim
22284 program_transform_name!$program_transform_name$ac_delim
22285 bindir!$bindir$ac_delim
22286 sbindir!$sbindir$ac_delim
22287 libexecdir!$libexecdir$ac_delim
22288 datarootdir!$datarootdir$ac_delim
22289 datadir!$datadir$ac_delim
22290 sysconfdir!$sysconfdir$ac_delim
22291 sharedstatedir!$sharedstatedir$ac_delim
22292 localstatedir!$localstatedir$ac_delim
22293 includedir!$includedir$ac_delim
22294 oldincludedir!$oldincludedir$ac_delim
22295 docdir!$docdir$ac_delim
22296 infodir!$infodir$ac_delim
22297 htmldir!$htmldir$ac_delim
22298 dvidir!$dvidir$ac_delim
22299 pdfdir!$pdfdir$ac_delim
22300 psdir!$psdir$ac_delim
22301 libdir!$libdir$ac_delim
22302 localedir!$localedir$ac_delim
22303 mandir!$mandir$ac_delim
22304 DEFS!$DEFS$ac_delim
22305 ECHO_C!$ECHO_C$ac_delim
22306 ECHO_N!$ECHO_N$ac_delim
22307 ECHO_T!$ECHO_T$ac_delim
22308 LIBS!$LIBS$ac_delim
22309 build_alias!$build_alias$ac_delim
22310 host_alias!$host_alias$ac_delim
22311 target_alias!$target_alias$ac_delim
22312 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22313 CC!$CC$ac_delim
22314 CFLAGS!$CFLAGS$ac_delim
22315 LDFLAGS!$LDFLAGS$ac_delim
22316 CPPFLAGS!$CPPFLAGS$ac_delim
22317 ac_ct_CC!$ac_ct_CC$ac_delim
22318 EXEEXT!$EXEEXT$ac_delim
22319 OBJEXT!$OBJEXT$ac_delim
22320 CXX!$CXX$ac_delim
22321 CXXFLAGS!$CXXFLAGS$ac_delim
22322 ac_ct_CXX!$ac_ct_CXX$ac_delim
22323 CPP!$CPP$ac_delim
22324 subdirs!$subdirs$ac_delim
22325 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22326 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22327 build!$build$ac_delim
22328 build_cpu!$build_cpu$ac_delim
22329 build_vendor!$build_vendor$ac_delim
22330 build_os!$build_os$ac_delim
22331 host!$host$ac_delim
22332 host_cpu!$host_cpu$ac_delim
22333 host_vendor!$host_vendor$ac_delim
22334 host_os!$host_os$ac_delim
22335 target!$target$ac_delim
22336 target_cpu!$target_cpu$ac_delim
22337 target_vendor!$target_vendor$ac_delim
22338 target_os!$target_os$ac_delim
22339 OS!$OS$ac_delim
22340 HOST_OS!$HOST_OS$ac_delim
22341 TARGET_OS!$TARGET_OS$ac_delim
22342 LINKALL!$LINKALL$ac_delim
22343 NOLINKALL!$NOLINKALL$ac_delim
22344 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22345 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22346 ARCH!$ARCH$ac_delim
22347 HOST_ARCH!$HOST_ARCH$ac_delim
22348 ENDIAN!$ENDIAN$ac_delim
22349 GREP!$GREP$ac_delim
22350 EGREP!$EGREP$ac_delim
22351 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22352 BUILD_CC!$BUILD_CC$ac_delim
22353 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22354 BUILD_CXX!$BUILD_CXX$ac_delim
22355 CVSBUILD!$CVSBUILD$ac_delim
22356 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22357 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22358 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22359 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22360 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22361 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22362 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22363 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22364 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22365 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22366 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22367 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22368 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22369 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22370 JIT!$JIT$ac_delim
22371 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22372 _ACEOF
22373
22374   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22375     break
22376   elif $ac_last_try; then
22377     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22378 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22379    { (exit 1); exit 1; }; }
22380   else
22381     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22382   fi
22383 done
22384
22385 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22386 if test -n "$ac_eof"; then
22387   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22388   ac_eof=`expr $ac_eof + 1`
22389 fi
22390
22391 cat >>$CONFIG_STATUS <<_ACEOF
22392 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22394 _ACEOF
22395 sed '
22396 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22397 s/^/s,@/; s/!/@,|#_!!_#|/
22398 :n
22399 t n
22400 s/'"$ac_delim"'$/,g/; t
22401 s/$/\\/; p
22402 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22403 ' >>$CONFIG_STATUS <conf$$subs.sed
22404 rm -f conf$$subs.sed
22405 cat >>$CONFIG_STATUS <<_ACEOF
22406 CEOF$ac_eof
22407 _ACEOF
22408
22409
22410 ac_delim='%!_!# '
22411 for ac_last_try in false false false false false :; do
22412   cat >conf$$subs.sed <<_ACEOF
22413 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22414 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22415 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22416 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22417 ENABLE_PIC!$ENABLE_PIC$ac_delim
22418 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22419 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22420 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22421 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22422 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22423 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22424 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22425 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22426 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22427 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22428 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22429 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22430 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22431 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22432 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22433 NM!$NM$ac_delim
22434 ifGNUmake!$ifGNUmake$ac_delim
22435 LN_S!$LN_S$ac_delim
22436 CMP!$CMP$ac_delim
22437 CP!$CP$ac_delim
22438 DATE!$DATE$ac_delim
22439 FIND!$FIND$ac_delim
22440 MKDIR!$MKDIR$ac_delim
22441 MV!$MV$ac_delim
22442 RANLIB!$RANLIB$ac_delim
22443 AR!$AR$ac_delim
22444 RM!$RM$ac_delim
22445 SED!$SED$ac_delim
22446 TAR!$TAR$ac_delim
22447 BINPWD!$BINPWD$ac_delim
22448 GRAPHVIZ!$GRAPHVIZ$ac_delim
22449 DOT!$DOT$ac_delim
22450 FDP!$FDP$ac_delim
22451 NEATO!$NEATO$ac_delim
22452 TWOPI!$TWOPI$ac_delim
22453 CIRCO!$CIRCO$ac_delim
22454 GV!$GV$ac_delim
22455 DOTTY!$DOTTY$ac_delim
22456 XDOT_PY!$XDOT_PY$ac_delim
22457 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22458 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22459 INSTALL_DATA!$INSTALL_DATA$ac_delim
22460 BZIP2!$BZIP2$ac_delim
22461 CAT!$CAT$ac_delim
22462 DOXYGEN!$DOXYGEN$ac_delim
22463 GROFF!$GROFF$ac_delim
22464 GZIPBIN!$GZIPBIN$ac_delim
22465 PDFROFF!$PDFROFF$ac_delim
22466 ZIP!$ZIP$ac_delim
22467 OCAMLC!$OCAMLC$ac_delim
22468 OCAMLOPT!$OCAMLOPT$ac_delim
22469 OCAMLDEP!$OCAMLDEP$ac_delim
22470 OCAMLDOC!$OCAMLDOC$ac_delim
22471 GAS!$GAS$ac_delim
22472 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22473 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22474 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22475 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22476 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22477 LIBADD_DL!$LIBADD_DL$ac_delim
22478 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22479 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22480 NO_NESTED_ANON_TYPES!$NO_NESTED_ANON_TYPES$ac_delim
22481 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22482 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22483 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22484 PYTHON!$PYTHON$ac_delim
22485 USE_UDIS86!$USE_UDIS86$ac_delim
22486 USE_OPROFILE!$USE_OPROFILE$ac_delim
22487 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22488 XML2CONFIG!$XML2CONFIG$ac_delim
22489 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22490 LIBXML2_INC!$LIBXML2_INC$ac_delim
22491 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22492 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22493 MMAP_FILE!$MMAP_FILE$ac_delim
22494 SHLIBEXT!$SHLIBEXT$ac_delim
22495 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22496 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22497 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22498 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22499 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22500 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22501 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22502 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22503 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22504 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22505 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22506 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22507 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22508 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22509 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22510 _ACEOF
22511
22512   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22513     break
22514   elif $ac_last_try; then
22515     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22516 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22517    { (exit 1); exit 1; }; }
22518   else
22519     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22520   fi
22521 done
22522
22523 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22524 if test -n "$ac_eof"; then
22525   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22526   ac_eof=`expr $ac_eof + 1`
22527 fi
22528
22529 cat >>$CONFIG_STATUS <<_ACEOF
22530 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22532 _ACEOF
22533 sed '
22534 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22535 s/^/s,@/; s/!/@,|#_!!_#|/
22536 :n
22537 t n
22538 s/'"$ac_delim"'$/,g/; t
22539 s/$/\\/; p
22540 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22541 ' >>$CONFIG_STATUS <conf$$subs.sed
22542 rm -f conf$$subs.sed
22543 cat >>$CONFIG_STATUS <<_ACEOF
22544 CEOF$ac_eof
22545 _ACEOF
22546
22547
22548 ac_delim='%!_!# '
22549 for ac_last_try in false false false false false :; do
22550   cat >conf$$subs.sed <<_ACEOF
22551 RPATH!$RPATH$ac_delim
22552 RDYNAMIC!$RDYNAMIC$ac_delim
22553 program_prefix!$program_prefix$ac_delim
22554 LIBOBJS!$LIBOBJS$ac_delim
22555 LTLIBOBJS!$LTLIBOBJS$ac_delim
22556 _ACEOF
22557
22558   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
22559     break
22560   elif $ac_last_try; then
22561     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22562 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22563    { (exit 1); exit 1; }; }
22564   else
22565     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22566   fi
22567 done
22568
22569 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22570 if test -n "$ac_eof"; then
22571   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22572   ac_eof=`expr $ac_eof + 1`
22573 fi
22574
22575 cat >>$CONFIG_STATUS <<_ACEOF
22576 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22578 _ACEOF
22579 sed '
22580 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22581 s/^/s,@/; s/!/@,|#_!!_#|/
22582 :n
22583 t n
22584 s/'"$ac_delim"'$/,g/; t
22585 s/$/\\/; p
22586 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22587 ' >>$CONFIG_STATUS <conf$$subs.sed
22588 rm -f conf$$subs.sed
22589 cat >>$CONFIG_STATUS <<_ACEOF
22590 :end
22591 s/|#_!!_#|//g
22592 CEOF$ac_eof
22593 _ACEOF
22594
22595
22596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22598 # trailing colons and then remove the whole line if VPATH becomes empty
22599 # (actually we leave an empty line to preserve line numbers).
22600 if test "x$srcdir" = x.; then
22601   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22602 s/:*\$(srcdir):*/:/
22603 s/:*\${srcdir}:*/:/
22604 s/:*@srcdir@:*/:/
22605 s/^\([^=]*=[     ]*\):*/\1/
22606 s/:*$//
22607 s/^[^=]*=[       ]*$//
22608 }'
22609 fi
22610
22611 cat >>$CONFIG_STATUS <<\_ACEOF
22612 fi # test -n "$CONFIG_FILES"
22613
22614
22615 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22616 do
22617   case $ac_tag in
22618   :[FHLC]) ac_mode=$ac_tag; continue;;
22619   esac
22620   case $ac_mode$ac_tag in
22621   :[FHL]*:*);;
22622   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22623 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22624    { (exit 1); exit 1; }; };;
22625   :[FH]-) ac_tag=-:-;;
22626   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22627   esac
22628   ac_save_IFS=$IFS
22629   IFS=:
22630   set x $ac_tag
22631   IFS=$ac_save_IFS
22632   shift
22633   ac_file=$1
22634   shift
22635
22636   case $ac_mode in
22637   :L) ac_source=$1;;
22638   :[FH])
22639     ac_file_inputs=
22640     for ac_f
22641     do
22642       case $ac_f in
22643       -) ac_f="$tmp/stdin";;
22644       *) # Look for the file first in the build tree, then in the source tree
22645          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22646          # because $ac_f cannot contain `:'.
22647          test -f "$ac_f" ||
22648            case $ac_f in
22649            [\\/$]*) false;;
22650            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22651            esac ||
22652            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22653 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22654    { (exit 1); exit 1; }; };;
22655       esac
22656       ac_file_inputs="$ac_file_inputs $ac_f"
22657     done
22658
22659     # Let's still pretend it is `configure' which instantiates (i.e., don't
22660     # use $as_me), people would be surprised to read:
22661     #    /* config.h.  Generated by config.status.  */
22662     configure_input="Generated from "`IFS=:
22663           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22664     if test x"$ac_file" != x-; then
22665       configure_input="$ac_file.  $configure_input"
22666       { echo "$as_me:$LINENO: creating $ac_file" >&5
22667 echo "$as_me: creating $ac_file" >&6;}
22668     fi
22669
22670     case $ac_tag in
22671     *:-:* | *:-) cat >"$tmp/stdin";;
22672     esac
22673     ;;
22674   esac
22675
22676   ac_dir=`$as_dirname -- "$ac_file" ||
22677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22678          X"$ac_file" : 'X\(//\)[^/]' \| \
22679          X"$ac_file" : 'X\(//\)$' \| \
22680          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22681 echo X"$ac_file" |
22682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22683             s//\1/
22684             q
22685           }
22686           /^X\(\/\/\)[^/].*/{
22687             s//\1/
22688             q
22689           }
22690           /^X\(\/\/\)$/{
22691             s//\1/
22692             q
22693           }
22694           /^X\(\/\).*/{
22695             s//\1/
22696             q
22697           }
22698           s/.*/./; q'`
22699   { as_dir="$ac_dir"
22700   case $as_dir in #(
22701   -*) as_dir=./$as_dir;;
22702   esac
22703   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22704     as_dirs=
22705     while :; do
22706       case $as_dir in #(
22707       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22708       *) as_qdir=$as_dir;;
22709       esac
22710       as_dirs="'$as_qdir' $as_dirs"
22711       as_dir=`$as_dirname -- "$as_dir" ||
22712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22713          X"$as_dir" : 'X\(//\)[^/]' \| \
22714          X"$as_dir" : 'X\(//\)$' \| \
22715          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22716 echo X"$as_dir" |
22717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22718             s//\1/
22719             q
22720           }
22721           /^X\(\/\/\)[^/].*/{
22722             s//\1/
22723             q
22724           }
22725           /^X\(\/\/\)$/{
22726             s//\1/
22727             q
22728           }
22729           /^X\(\/\).*/{
22730             s//\1/
22731             q
22732           }
22733           s/.*/./; q'`
22734       test -d "$as_dir" && break
22735     done
22736     test -z "$as_dirs" || eval "mkdir $as_dirs"
22737   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22739    { (exit 1); exit 1; }; }; }
22740   ac_builddir=.
22741
22742 case "$ac_dir" in
22743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22744 *)
22745   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22746   # A ".." for each directory in $ac_dir_suffix.
22747   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22748   case $ac_top_builddir_sub in
22749   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22750   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22751   esac ;;
22752 esac
22753 ac_abs_top_builddir=$ac_pwd
22754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22755 # for backward compatibility:
22756 ac_top_builddir=$ac_top_build_prefix
22757
22758 case $srcdir in
22759   .)  # We are building in place.
22760     ac_srcdir=.
22761     ac_top_srcdir=$ac_top_builddir_sub
22762     ac_abs_top_srcdir=$ac_pwd ;;
22763   [\\/]* | ?:[\\/]* )  # Absolute name.
22764     ac_srcdir=$srcdir$ac_dir_suffix;
22765     ac_top_srcdir=$srcdir
22766     ac_abs_top_srcdir=$srcdir ;;
22767   *) # Relative name.
22768     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22769     ac_top_srcdir=$ac_top_build_prefix$srcdir
22770     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22771 esac
22772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22773
22774
22775   case $ac_mode in
22776   :F)
22777   #
22778   # CONFIG_FILE
22779   #
22780
22781   case $INSTALL in
22782   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22783   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22784   esac
22785 _ACEOF
22786
22787 cat >>$CONFIG_STATUS <<\_ACEOF
22788 # If the template does not know about datarootdir, expand it.
22789 # FIXME: This hack should be removed a few years after 2.60.
22790 ac_datarootdir_hack=; ac_datarootdir_seen=
22791
22792 case `sed -n '/datarootdir/ {
22793   p
22794   q
22795 }
22796 /@datadir@/p
22797 /@docdir@/p
22798 /@infodir@/p
22799 /@localedir@/p
22800 /@mandir@/p
22801 ' $ac_file_inputs` in
22802 *datarootdir*) ac_datarootdir_seen=yes;;
22803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22804   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22805 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22806 _ACEOF
22807 cat >>$CONFIG_STATUS <<_ACEOF
22808   ac_datarootdir_hack='
22809   s&@datadir@&$datadir&g
22810   s&@docdir@&$docdir&g
22811   s&@infodir@&$infodir&g
22812   s&@localedir@&$localedir&g
22813   s&@mandir@&$mandir&g
22814     s&\\\${datarootdir}&$datarootdir&g' ;;
22815 esac
22816 _ACEOF
22817
22818 # Neutralize VPATH when `$srcdir' = `.'.
22819 # Shell code in configure.ac might set extrasub.
22820 # FIXME: do we really want to maintain this feature?
22821 cat >>$CONFIG_STATUS <<_ACEOF
22822   sed "$ac_vpsub
22823 $extrasub
22824 _ACEOF
22825 cat >>$CONFIG_STATUS <<\_ACEOF
22826 :t
22827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22828 s&@configure_input@&$configure_input&;t t
22829 s&@top_builddir@&$ac_top_builddir_sub&;t t
22830 s&@srcdir@&$ac_srcdir&;t t
22831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22832 s&@top_srcdir@&$ac_top_srcdir&;t t
22833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22834 s&@builddir@&$ac_builddir&;t t
22835 s&@abs_builddir@&$ac_abs_builddir&;t t
22836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22837 s&@INSTALL@&$ac_INSTALL&;t t
22838 $ac_datarootdir_hack
22839 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22840
22841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22842   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22843   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22844   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22845 which seems to be undefined.  Please make sure it is defined." >&5
22846 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22847 which seems to be undefined.  Please make sure it is defined." >&2;}
22848
22849   rm -f "$tmp/stdin"
22850   case $ac_file in
22851   -) cat "$tmp/out"; rm -f "$tmp/out";;
22852   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22853   esac
22854  ;;
22855   :H)
22856   #
22857   # CONFIG_HEADER
22858   #
22859 _ACEOF
22860
22861 # Transform confdefs.h into a sed script `conftest.defines', that
22862 # substitutes the proper values into config.h.in to produce config.h.
22863 rm -f conftest.defines conftest.tail
22864 # First, append a space to every undef/define line, to ease matching.
22865 echo 's/$/ /' >conftest.defines
22866 # Then, protect against being on the right side of a sed subst, or in
22867 # an unquoted here document, in config.status.  If some macros were
22868 # called several times there might be several #defines for the same
22869 # symbol, which is useless.  But do not sort them, since the last
22870 # AC_DEFINE must be honored.
22871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22872 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22873 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22874 # PARAMS is the parameter list in the macro definition--in most cases, it's
22875 # just an empty string.
22876 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22877 ac_dB='\\)[      (].*,\\1define\\2'
22878 ac_dC=' '
22879 ac_dD=' ,'
22880
22881 uniq confdefs.h |
22882   sed -n '
22883         t rset
22884         :rset
22885         s/^[     ]*#[    ]*define[       ][      ]*//
22886         t ok
22887         d
22888         :ok
22889         s/[\\&,]/\\&/g
22890         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22891         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22892   ' >>conftest.defines
22893
22894 # Remove the space that was appended to ease matching.
22895 # Then replace #undef with comments.  This is necessary, for
22896 # example, in the case of _POSIX_SOURCE, which is predefined and required
22897 # on some systems where configure will not decide to define it.
22898 # (The regexp can be short, since the line contains either #define or #undef.)
22899 echo 's/ $//
22900 s,^[     #]*u.*,/* & */,' >>conftest.defines
22901
22902 # Break up conftest.defines:
22903 ac_max_sed_lines=50
22904
22905 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22906 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22907 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22908 # et cetera.
22909 ac_in='$ac_file_inputs'
22910 ac_out='"$tmp/out1"'
22911 ac_nxt='"$tmp/out2"'
22912
22913 while :
22914 do
22915   # Write a here document:
22916     cat >>$CONFIG_STATUS <<_ACEOF
22917     # First, check the format of the line:
22918     cat >"\$tmp/defines.sed" <<\\CEOF
22919 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22920 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22921 b
22922 :def
22923 _ACEOF
22924   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22925   echo 'CEOF
22926     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22927   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22928   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22929   grep . conftest.tail >/dev/null || break
22930   rm -f conftest.defines
22931   mv conftest.tail conftest.defines
22932 done
22933 rm -f conftest.defines conftest.tail
22934
22935 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22936 cat >>$CONFIG_STATUS <<\_ACEOF
22937   if test x"$ac_file" != x-; then
22938     echo "/* $configure_input  */" >"$tmp/config.h"
22939     cat "$ac_result" >>"$tmp/config.h"
22940     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22941       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22942 echo "$as_me: $ac_file is unchanged" >&6;}
22943     else
22944       rm -f $ac_file
22945       mv "$tmp/config.h" $ac_file
22946     fi
22947   else
22948     echo "/* $configure_input  */"
22949     cat "$ac_result"
22950   fi
22951   rm -f "$tmp/out12"
22952  ;;
22953
22954   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22955 echo "$as_me: executing $ac_file commands" >&6;}
22956  ;;
22957   esac
22958
22959
22960   case $ac_file$ac_mode in
22961     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22962    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22963     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22964    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22965     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22966    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22967     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22968    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22969     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22970    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22971     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22972    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22973     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22974    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22975     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22976    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22977     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22978    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22979     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22980    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22981     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22982    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22983     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22984    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22985     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22986    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22987
22988   esac
22989 done # for ac_tag
22990
22991
22992 { (exit 0); exit 0; }
22993 _ACEOF
22994 chmod +x $CONFIG_STATUS
22995 ac_clean_files=$ac_clean_files_save
22996
22997
22998 # configure is writing to config.log, and then calls config.status.
22999 # config.status does its own redirection, appending to config.log.
23000 # Unfortunately, on DOS this fails, as config.log is still kept open
23001 # by configure, so config.status won't be able to write to it; its
23002 # output is simply discarded.  So we exec the FD to /dev/null,
23003 # effectively closing config.log, so it can be properly (re)opened and
23004 # appended to by config.status.  When coming back to configure, we
23005 # need to make the FD available again.
23006 if test "$no_create" != yes; then
23007   ac_cs_success=:
23008   ac_config_status_args=
23009   test "$silent" = yes &&
23010     ac_config_status_args="$ac_config_status_args --quiet"
23011   exec 5>/dev/null
23012   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23013   exec 5>>config.log
23014   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23015   # would make configure fail if this is the last instruction.
23016   $ac_cs_success || { (exit 1); exit 1; }
23017 fi
23018
23019 #
23020 # CONFIG_SUBDIRS section.
23021 #
23022 if test "$no_recursion" != yes; then
23023
23024   # Remove --cache-file and --srcdir arguments so they do not pile up.
23025   ac_sub_configure_args=
23026   ac_prev=
23027   eval "set x $ac_configure_args"
23028   shift
23029   for ac_arg
23030   do
23031     if test -n "$ac_prev"; then
23032       ac_prev=
23033       continue
23034     fi
23035     case $ac_arg in
23036     -cache-file | --cache-file | --cache-fil | --cache-fi \
23037     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23038       ac_prev=cache_file ;;
23039     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23040     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23041     | --c=*)
23042       ;;
23043     --config-cache | -C)
23044       ;;
23045     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23046       ac_prev=srcdir ;;
23047     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23048       ;;
23049     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23050       ac_prev=prefix ;;
23051     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23052       ;;
23053     *)
23054       case $ac_arg in
23055       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23056       esac
23057       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23058     esac
23059   done
23060
23061   # Always prepend --prefix to ensure using the same prefix
23062   # in subdir configurations.
23063   ac_arg="--prefix=$prefix"
23064   case $ac_arg in
23065   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23066   esac
23067   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23068
23069   ac_popdir=`pwd`
23070   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23071
23072     # Do not complain, so a configure script can configure whichever
23073     # parts of a large source tree are present.
23074     test -d "$srcdir/$ac_dir" || continue
23075
23076     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23077     echo "$as_me:$LINENO: $ac_msg" >&5
23078     echo "$ac_msg" >&6
23079     { as_dir="$ac_dir"
23080   case $as_dir in #(
23081   -*) as_dir=./$as_dir;;
23082   esac
23083   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23084     as_dirs=
23085     while :; do
23086       case $as_dir in #(
23087       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23088       *) as_qdir=$as_dir;;
23089       esac
23090       as_dirs="'$as_qdir' $as_dirs"
23091       as_dir=`$as_dirname -- "$as_dir" ||
23092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23093          X"$as_dir" : 'X\(//\)[^/]' \| \
23094          X"$as_dir" : 'X\(//\)$' \| \
23095          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23096 echo X"$as_dir" |
23097     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23098             s//\1/
23099             q
23100           }
23101           /^X\(\/\/\)[^/].*/{
23102             s//\1/
23103             q
23104           }
23105           /^X\(\/\/\)$/{
23106             s//\1/
23107             q
23108           }
23109           /^X\(\/\).*/{
23110             s//\1/
23111             q
23112           }
23113           s/.*/./; q'`
23114       test -d "$as_dir" && break
23115     done
23116     test -z "$as_dirs" || eval "mkdir $as_dirs"
23117   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23118 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23119    { (exit 1); exit 1; }; }; }
23120     ac_builddir=.
23121
23122 case "$ac_dir" in
23123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23124 *)
23125   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23126   # A ".." for each directory in $ac_dir_suffix.
23127   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23128   case $ac_top_builddir_sub in
23129   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23130   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23131   esac ;;
23132 esac
23133 ac_abs_top_builddir=$ac_pwd
23134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23135 # for backward compatibility:
23136 ac_top_builddir=$ac_top_build_prefix
23137
23138 case $srcdir in
23139   .)  # We are building in place.
23140     ac_srcdir=.
23141     ac_top_srcdir=$ac_top_builddir_sub
23142     ac_abs_top_srcdir=$ac_pwd ;;
23143   [\\/]* | ?:[\\/]* )  # Absolute name.
23144     ac_srcdir=$srcdir$ac_dir_suffix;
23145     ac_top_srcdir=$srcdir
23146     ac_abs_top_srcdir=$srcdir ;;
23147   *) # Relative name.
23148     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23149     ac_top_srcdir=$ac_top_build_prefix$srcdir
23150     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23151 esac
23152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23153
23154
23155     cd "$ac_dir"
23156
23157     # Check for guested configure; otherwise get Cygnus style configure.
23158     if test -f "$ac_srcdir/configure.gnu"; then
23159       ac_sub_configure=$ac_srcdir/configure.gnu
23160     elif test -f "$ac_srcdir/configure"; then
23161       ac_sub_configure=$ac_srcdir/configure
23162     elif test -f "$ac_srcdir/configure.in"; then
23163       # This should be Cygnus configure.
23164       ac_sub_configure=$ac_aux_dir/configure
23165     else
23166       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23167 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23168       ac_sub_configure=
23169     fi
23170
23171     # The recursion is here.
23172     if test -n "$ac_sub_configure"; then
23173       # Make the cache file name correct relative to the subdirectory.
23174       case $cache_file in
23175       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23176       *) # Relative name.
23177         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23178       esac
23179
23180       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23181 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23182       # The eval makes quoting arguments work.
23183       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23184            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23185         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23186 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23187    { (exit 1); exit 1; }; }
23188     fi
23189
23190     cd "$ac_popdir"
23191   done
23192 fi
23193